I'm running 18.04 and trying to have my system use hibernate instead of pm-hibernate when my laptop's lid closes.
I have a swap partition of 20GB on 16GB of RAM, so ample space.
When I use pm-hibernate, I get a small apci error that pops up very quickly when both hibernating and restoring that I cannot read. While the hibernate works in the sense it seems to dump to disk and restore from disk, it seems to be a sleep state in that it uses battery at a normal rate, rather than shutting down completely and ceasing battery use.
However, when I use the hibernate installed by:
sudo apt-get install hibernate
And restore from that, I notice my machine does in fact shutdown—the LEDs stop throbbing, etc—and battery usage goes to zero. This is the behavior I would like to see when my lid closes, not the sleep behavior that uses battery as if I were making active use of the computer.
I have followed these guides:
And added my swap partition change in:
To include the correct resume= link, and requested s2disk specifically with:
sudo cat /etc/pm/config.d/00sleep_module SLEEP_MODULE="swsusp"
I have read the following related askubuntus:
- Hibernate on lid close
- Ubuntu 17.04 hibernate works but pm-hibernate does not
- Laptop locks screen instead of hibernates
- how to make linux prefer sudo pm-hibernate over systemctl hibernate as default?
- Sleep mode consumes as much as battery as when laptop is in use
- Replacing default hibernate method to s2disk
I have also read these links on Lenovo and Arch forums:
How can I make sure the that the hibernate called by lid-close is hibernate not pm-hibernate?
This is still a problem and still makes the Carbon X1 6th gen fundamentally useless with ubuntu. Any solutions that could fix this and maybe additionally add a login prompt might be almost as good as a Windows machine from 4 years ago… 😉