Ubuntu – Laptop shuts down on lid close

10.04power-managementshutdown

When I close the lid of my Asus X77JQ, lucid shuts it down automatically after five minutes. I want to be able to sleep in the same room as my laptop, so I would like to be able to close the lid without it shutting down. How can I do this?

The power options lid close option is set to do nothing.

Best Answer

Actions to take when closing the laptop lid are configured with command gnome-power-preferences (menu: System -> Preferences -> Power management)

You will need to set two options: "When laptop lid is closed" to "Do nothing", and also "Put computer to sleep when inactive for" to "Never" (otherwise the laptop won't sleep automatically when you close the lid, but will soon afterwards because it's inactive). Note that these options have separate values for "AC power" and "Battery power": of course, you'll have to configure the correct one for your case (or both).

*Note: You may have to run the following command for the option to show up: gconftool-2 --type string --set /apps/gnome-power-manager/buttons/lid_ac "nothing"