Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want my laptop to shutdown when I close the laptop lid. But in the power settings I can only choose between:

  • Suspend
  • Do nothing
  • Hibernate (Disabled)

Is there any way to configure it with more options?

share|improve this question
up vote 1 down vote accepted

You can set the action to other values, such as shutdown, blank or interactive, by using gconf-editor.

enter image description here

First, install dconf-tools, then launch gconf-editor from the Dash.

Navigate to org.gnome.settings-daemon.plugins.power.

The two items of interest are lid-close-as-action and lid-close-battery-action. Click the existing value to change it.

To quickly change the action to shutdown when the lid is closed, open a terminal window and run

gsettings set org.gnome.settings-daemon.plugins.power lid-close-ac-action shutdown

gsettings set org.gnome.settings-daemon.plugins.power lid-close-battery-action shutdown
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.