I would like closing the laptop lid to be a no-op. How can I do that?
|
For 13.10 - 16.04:To make Ubuntu do nothing when laptop lid is closed:
See also: Ubuntu Server 13.10 now goes to sleep when closing laptop lid |
|||||||||||||||||||||
|
For 11.04 and earlier:Do nothing when laptop lid is closed (helpful when an external monitor is connected):
OR 1.When on AC Power, do nothing when laptop lid is closed: 2.When on Battery Power, do nothing when laptop lid is closed: Blank screen when laptop lid is closed (preferable when no external monitor is connected):
OR 1.When on AC Power, blank screen when laptop lid is closed: 2.When on Battery Power, blank screen when laptop lid is closed: |
|||||
|
For 11.10 - 12.04:You can select "Do Nothing" in the power settings. Open the dash (super key), search for "power" and then select the correct option in the dropdown. Note that closing the lid will actually turn off the screen though plus any external monitors:
If you move the mouse then any connected monitors will power back up with the laptop closed. This will then become the primary monitor. |
|||||||||||||||||||||
|
Ubuntu 15.10 - Ubuntu 16.10
|
|||||||||||||
|
11.04 and previous versionsCopying 1st given answer from: http://ubuntuforums.org/showthread.php?t=1319921&highlight=close+laptop+lid In a terminal (Applications-->Accessories-->Terminal), type: gconf-editor Navigate to apps-->gnome-power-manager-->buttons and set lid_ac and/or lid_battery to "nothing" (without the quotes).
|
||||
|
|
|
I have 14.04.1 LTS, Trusty Tahr. What doesn't worked for me:
What worked for me: Setting |
|||||
|
|
There is a bug with some laptops and monitors that makes Ubuntu not honor the "do nothing" setting when the laptop's lid is closed. I have not been able to find a complete solution, but maybe there is something to do with this link where they hint at this file :
|
||||
|
|
For Saucy:Edit This is due to an upstream GNOME change. See GNOME bug 687277 for the rationale for this change. |
|||||||||
|
11.04 and previous versionsyou can also go to near bottom of the window you will find a dropdown where you can select what your system does when lid is closed |
||||
|
|
12.04In System Settings, open Brightness & Lock. On that page, uncheck the checkbox at the bottom that says, "Require my password when waking from suspend." |
|||||
|
|
I like to suspend my laptop sometimes, and other times I like to keep it going for long times like a server (do nothing when I close the lid). I use Debian, and here's my simple script to do either one on the fly without rebooting:
|
||||
|
|
|
You can easily disable the lid lock feature by clicking the System Settings icon in the Launcher/Task bar, and then clicking on Brightness & Lock. From there, you flip the Lock switch to the off position, and un-check the "Require my password when wakening from suspend." check-box. Another thing you have to watch for if you also plan on setting up hibernation (suspend-to-disk) is whether or not your system has a large enough swap partition to actually go into hibernation. Hibernation is different than suspend, but sometimes people like to set up the hibernation feature while they are configuring suspend. You can also go over your Power settings, so they don't suspend the system when the lid is close. You can do this in System Setting -> Power. |
||||
|
|
For 12.10:Edit This method no longer works in Saucy. I am unsure about 13.04. |
|||||||||
|
|
Let us create a script that works on all versions
|
||||
|
|
protected by Community♦ Jun 9 '16 at 4:02
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?





