4 ms·
Both s2idle and deep ( https://www.kernel.org/doc/Documentation/power/states.txt https://www.kernel.org/doc/Documentation/power/states.txt ) are what you want,
by JustFinishedBSG 7y ago
Both s2idle and deep ( https://www.kernel.org/doc/Documentation/power/states.txt https://www.kernel.org/doc/Documentation/power/states.txt ) are what you want, and work.
> Just that and I wish Bluetooth remembered the on/off state it was left in after reboot.
That's just a Qualcomm problem. The BT is completely broken. Fixed in the latest kernel for me.
- Lio 7y agoI might be missing something but doesn't that still depend on swap space and having a swapfile and virtual memory set up? I'm fine with having a swapfile but I don't want it used for anything other than Suspend-to-disk. i.e. I don't want the SSD being hit with multiple writes caused by VM.
- JustFinishedBSG 7y agoNo they just enter lower power states and keep everything in RAM. I don't even have a swap and it works fine.
- Lio 7y agoSorry maybe I'm not explaining what I want to very well. On the Mac it will suspend to RAM but also dump to an image file at the same time. If the mac runs out of power it will later restore from the image once power is restored. That's possible on Linux using hybrid-sleep and suspend-then-hibernate but they require a swapfile. I haven't yet found a way to have a swapfile without allowing that swapfile to be used for virtual memory too. I worry that virtual RAM will eat my SSD.
- seba_dos1 7y agoHow often do you upgrade your drive? If you expect to change it sometime in next 5 years or so, I wouldn't worry about using swap on SSD at all.
- Lio 7y agoTo be honest I hadn’t really considered that. I’ve never actually upgraded an SSD in a laptop. I guess it may be more the thought that it will kill the SSD than the reality but it’s still something I’d prefer to avoid if there’s a solution.