ssh to another laptop with linux system while its lid is closing
Method1: $ sudoedit /etc/systemd/logind.conf modify: HandleLidSwitch= ignore HandleLidSwitchExternalPower= ignore HandleLidSwitchDocked= ignore $ reboot Method2: $ sudoedit /etc/UPower/UPower.conf modify: IgnoreLid= true $ service upower restart [Optional] $ reboot Finally, ssh to the desired laptop, then you can close the lid !!! Reference 1. https://askubuntu.com/questions/15520/how-can-i-tell-ubuntu-to-do-nothing-when-i-close-my-laptop-lid