How can I modify the power button behaviour? [duplicate]
To do it GUI:
Install dconf-tools:
sudo apt-get install dconf-tools
open dconf-editor from dash or just run dconf-editor &
in terminal
Navigate to org.gnome.settings-daemon.plugins.power
and set your default button-power action there:
replace suspend by shutdown.
gsettings set org.gnome.settings-daemon.plugins.power button-power shutdown
will change your the behaviour of the power button of your system from interactive (default) to immediate normal shutdown.
The command is gsettings set org.gnome.settings-daemon.plugins.power button-power <option>
Available options are:
- Blank: does nothing
- Suspend: makes your system suspend
- Shutdown: starts a normal issued shutdown procedure
- Hibernate: hibernates your system
- Nothing: does nothing
- Log out: log your user out