Preventing Sleep Mode When Closing a Linux Laptop
Recently, I assembled a NAS system using an old laptop and needed to configure it so that the laptop does not enter sleep mode when the lid is closed. Here are the steps I followed: Edit the logind.conf file with the following command: vi /etc/systemd/logind.conf You will see the following content: #HandlePowerKey: Action when the … Read more