Gnome 3. Disabling suspend when the lid is closed

For some reason there's no way to change standard behaviour when the lid is closed in Gnome3 via System Settings. Fortunately it's possible to do in terminal. For this execute the following commands (NOT as root):

$ gsettings set org.gnome.settings-daemon.plugins.power lid-close-ac-action "<action>"
$ gsettings set org.gnome.settings-daemon.plugins.power lid-close-battery-action "<action>"

where <action> should be one from the list: nothing|blank|suspend|hibernate|shutdown

Tagged as : Linux Gnome

Comments