Wednesday, 12 February 2020

Ubuntu 18 - My laptop shuts down when I close the lid even though it's set to hibernate



Tested Solutions

My laptop shuts down when I close the lid even though it's set to hibernate

Edit logind.conf file

/etc/systemd$ sudo nano logind.conf

Insert the following changes (remove #'s )

#HandleLidSwitch=suspend
#HandleLidSwitchDocked=suspend

Restart logind.service unit

$ systemctl restart systemd-logind.service (help man)

Note: If changes are not working yet, use this command to suspend the computer system.

$ systemctl suspend


Useful Knowledge

  • systemd  - (systemctl manual) is a suite of basic building blocks for a Linux system.
  • Power management with systemd (read more)
  •  
  • ACPId - (is a flexible and extensible daemon for delivering ACPI events, When an event occurs, it executes programs to handle the event.)
sudo apt install acpi
acpi -i   (To read out battery information)

ACPI (Advanced Configuration and Power Interface) is an open industry specification co-developed by Hewlett-Packard, Intel, Microsoft, Phoenix, and Toshiba. 
ACPI modules are kernel modules for different ACPI parts.


 

 

1 comment :