The problem
In Ubuntu 24.04, when I close the lid, the default behavior is computer suspend. I want to change the behavior to do nothing.
The solution
$ vim /etc/systemd/logind.conf HandleLidSwitch=lock HandleLidSwitchExternalPower=lock HandleLidSwitchDocked=lock $ systemctl restart systemd-logind.service
Reference
[1]: M, J. (2024, August 14). Change Lid Close Behavior in Ubuntu 20.04, 22.04 & 24.04 Updated | UbuntuHandbook. https://ubuntuhandbook.org/index.php/2020/05/lid-close-behavior-ubuntu-20-04/

Comments
Post a Comment