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.
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
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…
You may also like the post below: