4 ms·
Can I get my S4 back? I've never had issues with it, as opposed to constant S2/3 issues, and the startup is still faster than having to look for a cable because
by tpxl 3y ago
Can I get my S4 back? I've never had issues with it, as opposed to constant S2/3 issues, and the startup is still faster than having to look for a cable because S2/S3 managed to drain all the battery.
- aimor 3y agoWhat is the current situation with sleep states? I've been seeing lots of conversations the last two years and I just don't have a big level picture of why it's such an issue now. I only use S4 (hibernate) because I can ignore my laptop for weeks at a time, unplugged, and jump right back in to where I left off. Microsoft seems to have changed some things in Windows to hide the hibernate option for some reason I can't figure out.
- secondcoming 3y agoHibernate isn't great if you have lots of RAM. Windows won't allow you put the hiberfil.sys anywhere other than C:\. I was confused as to why my C: SSD appeared full until I figured it was because of hibernation (I have 128GB RAM).
- jeroenhd 3y agoIt's a shame hyberfil.sys can't be moved, but as I understand it, the reason behind it is that the kernel only has an extremely rudimentary NTFS driver at the point it resumes so I don't think it'll change soon. That said, with modern SSD prices I think the size it takes up is quite reasonable these days. For a while, when people were running 64GiB SSDs, the situation was a lot worse.
- justsomehnguy 3y agoIt's always amuses me when the systems are unbalanced. 'Gaming PC' with a latest i7 but a $200 video card. 'DB Server' with gigantic core count each at 2.0GHz (for less than 30 people of course). Of HDDs as a primary storage. Laptop with 128Gb of RAM yet insufficient storage to hold 128Gb hiberfil.sys.
- fulafel 3y agoPeople also use hibernation on desktops, servers and VMs (traditionally when normal suspend has problems, but maybe nowadays when s2idle has insomnia problems).
- justsomehnguy 3y agoIf you managed to get 128Gb of RAM in your desktop then you can manage to get a 1Tb SSD. Hibernation on a server? Pointless most of the time, because the bulk of the startup time is pre-OS. And hibernating VMs is just retarded.
- fulafel 3y agoDepends on the vintage. Up to about 2015 a 128 GB workstation config typically had a <= 512 GB boot SSD and some spinning disk as well. In servers it's actually quite nice in homelab style setups where you might want to preserve your working session states, or just doing it on a nightly schedule without worrying about losing work. For VMs it's of course useful to persist vm state to disk and suspend for lots of reasons (don't keep the RAM reseved, or free up VFIO passhthrough hardware for instance). But people often use hypervisor based snapshot for this. One advantage guest OS supported hibernation has it that your guest is aware of its own power state changes and can run your configured power management event hooks on suspend and wake. In the VFIO reddit it seems to be common for people who do windows vm gaming with gpu passthrough to prefer guest hibernate to hyprevisor side snapshots as well, not sure what are the main advantage there.
- Dylan16807 3y ago> Depends on the vintage. Up to about 2015 a 128 GB workstation config typically had a <= 512 GB boot SSD 2015 was a long time ago in terms of SSD technology, but even then the space needed to hibernate 128GB was only $50. If it's 'typical' to make a workstation that can't spare that space then that's even funnier than if it wasn't typical.
- justsomehnguy 3y ago
- jeroenhd 3y agoWho took your S4? I can't say what other operating systems do these days, but both Linux and Windows support suspending to disk out of the box.
- cesarb 3y ago> but both Linux and Windows support suspending to disk out of the box. At least with Linux, out of the box all you'll have is the message "Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7" in your logs. (The trick is to either disable Secure Boot, or AFAIK make use of an encrypted swap partition; IIRC, there's a bug which makes it not recognize a swap volume within LVM within LUKS as encrypted swap, so it has to be directly on a disk partition.)
- mecsred 3y agoI've run both a Secure Boot/encrypted boot partition NixOS and plain LVM on LUKS archlinux on my Framework and neither had any issues or bugs with hibernating. Just add a resume hook to mkinitcpio and a kernel parameter to the UUID of the swap vol and it works fine.