1

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.

6
  • This also happens to me. I read man logind.conf and then uncommented the line HandlePowerKey=poweroff in /etc/systemd/logind.conf, but it still keeps suspending when pressing the power button rather than powering off.
    – skytux
    Nov 22, 2015 at 22:48
  • Yes I already tried that. Looks like they have removed this functionality. Too bad. I read a G+ post that they plan to include this in 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. Nov 23, 2015 at 6:20
  • This feature was removed from 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 here Jan 28, 2016 at 19:49
  • Nice guide @don_crissti . l have power-button-actionin dconf-editor but it only have options for nothing, suspend and hibernate . not option for shutdown . I crashed the system once trying to patch it. I will try again following your Jan 29, 2016 at 7:07
  • Just curious, is there an another way to configure this, instead of patching the software itself. Currently I installed acpi 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. Jan 29, 2016 at 7:12

2 Answers 2

0

Try with:

gsettings range org.gnome.settings-daemon.plugins.power power-button-action
1
  • Can you expand your answer to explain how this command works?
    – Burgi
    Mar 29, 2016 at 8:15
0

The following answer answers it: https://unix.stackexchange.com/questions/242129/gnome-3-how-to-set-power-button-to-shutdown-instead-of-suspend

In a nutshell, run dconf-editor and browse to org > gnome > settings-daemon > plugins > power > power-button-action.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .