I Recently upgraded to Fedora 23. I noticed "power button action" is missing from gnome-tweak-tool. It is also not available in dconf-editor. Even in terminal It is not available.
[Abhinav@localhost ~] $ gsettings set org.gnome.settings-daemon.plugins.power button-power 'shutdown'
No such key 'button-power'
[Abhinav@localhost ~] $
I used to set it to shutdown so that I just need to press power button and laptop would shut itself down. But now it instead go to sleep. How do I get that setting back in F23.
man logind.conf
and then uncommented the lineHandlePowerKey=poweroff
in/etc/systemd/logind.conf
, but it still keeps suspending when pressing the power button rather than powering off.power
section in gnome-settings. I wonder what made them think removing essentials from tweak-tool is a good approch, when they don't have their own ready for use.gnome-settings-daemon
and is not going to be restored in the foreseeable future. If you want to re-enable it you'll have to patch the source code; follow my guide herepower-button-action
in dconf-editor but it only have options fornothing
,suspend
andhibernate
. not option forshutdown
. I crashed the system once trying to patch it. I will try again following youracpi
and changed/etc/acpi/events/powerconf
file and changed action to/sbin/poweroff
. This is working for me so far but i do like your way to add a configuration in GUI tool. Just scared to patch a mainstream software.