I am using GNOME 3.18.1 on Arch Linux 4.2.5-1-ARCH x86_64 on a Dell E6530 laptop. Since I installed this OS years ago, the power button on my laptop has always led my OS to completely power down.
However, in the last few weeks this behaviour has changed, so that pressing the power button now puts my laptop into energy savings mode. I did not change my power settings. I always keep my system up to date using pacman -Syyu
, however, so I suspect that an update changed this functionality.
In the power settings there is no option for this.
How can I restore the initial behaviour, so that pressing that button powers the system off?
Best Answer
That's caused by the latest
gnome-settings-daemon
updates...There is no such option in power settings because it was removed by the GNOME devs (the
shutdown/power off
action is considered "too destructive").Bottom line: you can no longer power off your laptop by pressing the power off button.
You could however add a new
dconf
/gsettings
option (i.e.shutdown
) to the settings daemon power plugin if you're willing to patch and rebuildgnome-settings-daemon
:Once you install the patched version, a new
shutdown
option will be available indconf-editor
under org > gnome > settings-daemon > plugins > power > power-button-action:so select that to shutdown via power button or, if you prefer CLI, run in terminal:
Sure, for the above to work you also need the right settings in
/etc/systemd/logind.conf
:Keep in mind that pressing the power button will shutdown your system without any warning.