You Asked: How Do I Keep My Computer from Sleeping Linux?
Contents

How do I keep Linux from going to sleep?

Configure lid power settings:

  1. Open the /etc/systemd/logind. …
  2. Find the line #HandleLidSwitch=suspend.
  3. Remove the # character at the beginning of the line.
  4. Change the line to either of the desired settings below: …
  5. Save the file and restart the service to apply the changes by typing # systemctl restart systemd-logind.

How do I disable my system from going to sleep?

Turning Off Sleep Settings

  1. Go to Power Options in the Control Panel. In Windows 10, you can get there from right clicking on. the start menu and clicking on Power Options.
  2. Click change plan settings next to your current power plan.
  3. Change “Put the computer to sleep” to never.
  4. Click “Save Changes”
James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest