I would like my Computer to just power off when I press the hardware Power
Button. Instead I dialog with a countdown and Options (Cancel, Restart, Power Off) comes up. How to disable this dialog and power off immediately?
Or at least, how to set the countdown to much, much less then 60 seconds?
Ubuntu 18.04
or you can also try
In Ubuntu 20.10 I found it under
org.gnome.settings-daemon.plugins.power
. The default value isinteractive
, but you can change it toshutdown
.Change it using
gsettings
like pasha's answer, or usedconf-editor
, which has a GUI.Using
and
worked for me on Ubuntu 20.04 LTS. A nice side effect is, that this also causes immediately Power-Off by HDMI-CEC controls.
Check if there are other desktop environments like: com.canonical.unity.settings-daemon.plugins.power or org.mate.power-manager
There might be the correct change, but for the wrong environment...
a more generic search of your gsettings can also help:
gsettings list-recursively | grep button
on my system additionally shows:As answered here by WU-TANG