Keep Ubuntu 17.10 / 18.04 Desktop Running when Laptop Lid is Closed

Ubuntu desktop is configured to automatically suspend when the laptop lid is closed in order to save power. however, you can easily turn this off so that the laptop does nothing when the lid is closed.

When Ubuntu goes to suspend mode, it’s not actually turned off – just gone to sleep. You can resume by opening the lid and your desktop will continue from where you left off.

In some cases, you may not want your laptop to go to sleep when you close the lid. like when you’re downloading a huge file and taking longer to complete. simply close the lid without putting the laptop to sleep while the download is in progress.

This brief tutorial is going to show students and new users how to disable or turn off Ubuntu suspend mode when the laptop lid is closed.If you do not want the computer to suspend when you close the lid, you can change the setting for that behavior. to do that, continue below.

Step 1: Install GNOME Tweaks

In order to have this option on Ubuntu 17.10 and 18.04, you must have GNOME Tweaks installed. to install, open Ubuntu Software install or open the Activities Overview and search for GNOME Tweaks.

Then go and install it.

GNOME Tweaks

Step 2: Turn Off Suspend Mode when Laptop Lid Closed

Now that GNOME Tweaks is installed, go to the Activities Overview and search for Tweaks. click Tweaks to open the applications. When it opens, click on Power and move the button for Suspend when laptop lid is closed to OFF

Ubuntu lid closed

This should automatically save. The next time you close your laptop lid, Ubuntu will continue to run without going to sleep with all your application still running.

This is great feature to have, I don’t really know why it was removed from Ubuntu default installation.

That’s it!

You may also like the post below:


  1. The tweak solved also my problem of having to login every time I closed the lid in 18.04
    But now, when I open the lid my WiFi is off and set in Airplane mode.
    Any idea how to solve that?

  2. Any ideas on how to keep an external monitor on when the lid is closed? I am running Ubuntu 18.04 on an Acer Aspire laptop

Leave a Comment

Your email address will not be published.