Laptop Ubuntu system, close the lid without hibernation settings

1. Modify the logind.conf configuration file

sudo vim /etc/systemd/logind.conf

or

sudo gedit /etc/systemd/logind.conf

2. Copy this line

#HandleLidSwitch=suspend

changed to

HandleLidSwitch=ignore

3. Restart the logind service

service systemd-logind restart

Guess you like

Origin blog.csdn.net/weixin_44178072/article/details/127184329