I want my laptop to shutdown when I close the laptop lid. But in the power settings I can only choose between:
- Do nothing
Is there any way to configure it with more options?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
You can set the action to other values, such as shutdown, blank or interactive, by using
dconf-tools, then launch gconf-editor from the Dash.
The two items of interest are
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