How to Stop Ubuntu from Automatically Suspending (Sleeping) When Inactive

Why Stop Ubuntu from Suspending Automatically?

By default, Ubuntu Desktop is configured to automatically suspend (go to sleep) if you leave your computer inactive for an extended period, usually 20 or 30 minutes. This is designed to save electricity and battery life on laptops.

However, if you are running a long compile job, downloading massive files, rendering a video, or using the computer as a local server, an automatic suspend will abruptly halt all your active background processes. To keep your machine running 24/7 without interruption, you must disable the auto-suspend feature.

How to Disable Automatic Suspend in Ubuntu

You can easily turn off this power-saving feature using the graphical Settings menu.

  1. Click the System Menu (the battery/network/volume icons) in the top-right corner of your screen.
  2. Click on Settings (the gear icon).
  3. In the left-hand sidebar, scroll down and click on Power.
  4. Look for the section labelled Power Saving Options.
  5. Find the setting titled Automatic Suspend. It will likely say “On” or display a specific time.
  6. Click on Automatic Suspend to open the dialogue box.
  7. If you are on a laptop, you will see two switches: “On Battery Power” and “Plugged In.” Toggle both switches to the Off position (or just the one you require).
  8. If you are on a desktop, simply toggle the main switch to Off.
  9. Close the Settings window.

Your Ubuntu machine will now remain fully awake indefinitely, regardless of how long you leave the keyboard and mouse untouched. (Note: Your screen may still turn blank to save the monitor, but the computer itself will continue processing data in the background).

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.