Make it possible to shut down the computer the instant the power button is pressed
Submitted by Martin
I would like to shut down my computer by pressing the power button. Currently this is not possible. I understand that this is deliberate choice (and discussed in Bug 7811080), but I still believe it should be possible for the user to configure Gnome to make the computer shut down immediately when the power button is pressed.
These are the main reasons I would personally prefer the power button to immediately shut down the computer:
When I turn off my desktop to reboot into Windows to play games, it's less effort to just click the power button, wait until it's off, and then click it again, than to go through a dialogue to reboot the computer, and it's nice to have a consistent way of rebooting into the other OS whether I'm going from Linux to Windows or from Windows to Linux.
When I turn off my desktop to leave it off for a while, I like to switch off the power strip my desktop is connected to, which means I wait until the computer is turned off. That means waiting for the 60 second timeout is obviously not feasible.
My desktop is also such that it's incredibly unlikely that anything will ever accidentally touch it, and I believe that's the case for a lot of desktop computers.
I have a computer connected to a TV, which acts more like an appliance than a personal computer. It has no keyboard or mouse connected, and is instead controlled via a web interface I wrote, where you can tell it to stream video/audio from a URL, or use a remote desktop feature to open netflix, etc. That web interface has a shutdown button, but sometimes it's just easier to press the power button instead of bringing up a phone and go to the web interface. That computer is currently running XFCE, but Gnome would also have worked really well for it, had it not been for the power button issue. I believe the situation is similar for a lot of potential appliance-like Linux systems.
Now, I'm not arguing that there should be an easily accessible setting in gnome-control-center. I wouldn't mind it, but I don't care a lot about it. I just think there should be some way to get Gnome to immediately shut down when the power button is pressed. A setting in dconf-editor would do just fine.