mhrk04 / mhrk04.github.io

A personal website generated by Hugo.
https://www.mhaziqrk.uk/
0 stars 1 forks source link

posts/2022/laptop-lid-ignore/ #69

Open utterances-bot opened 11 months ago

utterances-bot commented 11 months ago

Ubuntu Server - Laptop Lid Ignore | Mhaziqrk Blog

Use Your Laptop As A Server Tested on : Ubuntu 20.04 LTS To disable entering the sleep mode I had to edit the /etc/systemd/logind.conf file and modify the line: Just uncomment the line by removing # from this :

HandleLidSwitch=suspend #LidSwitchIgnoreInhibited=no #HandleLidSwitchDocked=ignore to this :

HandleLidSwitch=ignore LidSwitchIgnoreInhibited=no HandleLidSwitchDocked=ignore Then restart the OS via: sudo service systemd-logind restart Then you can close the laptop lid .

https://www.mhaziqrk.uk/posts/2022/laptop-lid-ignore/

mhrk04 commented 11 months ago

Good