After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 690154 - gnome-control-center keyboard shortcuts does not manage keyboard power button keybindings properly
gnome-control-center keyboard shortcuts does not manage keyboard power button...
Status: RESOLVED DUPLICATE of bug 670579
Product: gnome-control-center
Classification: Core
Component: Keyboard
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
3.10
Depends on:
Blocks:
 
 
Reported: 2012-12-13 13:50 UTC by Stephen
Modified: 2013-04-24 10:20 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Stephen 2012-12-13 13:50:14 UTC
My keyboard has a "sleep" button on it. I wish to reassign it to open a terminal rather than shut down my computer. To do so, I click on gnome-control-center -> keyboard -> shortcuts -> launchers -> Launch Terminal, then I press the "sleep" button on my keyboard. The "sleep" button appears to be properly assigned to run the terminal command. However, when I press the "sleep" button now, I would expect it to launch a terminal. Instead it puts the computer to sleep.

Digging further, it appears that the power buttons on the computer (including those on the keyboard) are controlled by the following dconf settings:
org.gnome.settings-daemon.plugins.power	button-hibernate
org.gnome.settings-daemon.plugins.power	button-power
org.gnome.settings-daemon.plugins.power	button-sleep
org.gnome.settings-daemon.plugins.power	button-suspend

If I use dconf-editor to set these values to 'nothing', then the "sleep" button on my keyboard opens the terminal as expected. The gnome-control-center keyboard shortcuts GUI does not disable the power settings for this button automatically for me.

The gnome-control-center keyboard shortcuts GUI should know about and manage the org.gnome.settings-daemon.plugins.power button settings. It should allow the buttons to be re-assigned like other keyboard buttons.

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: gnome-control-center 1:3.4.2-0ubuntu19
ProcVersionSignature: Ubuntu 3.5.0-18.29-generic 3.5.7
Uname: Linux 3.5.0-18-generic i686
ApportVersion: 2.6.1-0ubuntu6
Architecture: i386
Date: Thu Nov 15 08:33:50 2012
ExecutablePath: /usr/bin/gnome-control-center
InstallationDate: Installed on 2012-10-31 (14 days ago)
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
MarkForUpload: True
SourcePackage: gnome-control-center
UpgradeStatus: Upgraded to quantal on 2012-11-01 (14 days ago)
usr_lib_gnome-control-center:
 activity-log-manager-control-center 0.9.4-0ubuntu4
 deja-dup 24.0-0ubuntu1
 gnome-control-center-signon 0.0.18-0ubuntu1
 indicator-datetime 12.10.2-0ubuntu3
Comment 1 Stephen 2012-12-13 13:51:16 UTC
I originally reported this bug against Ubuntu, but was asked to report this as an upstream GNOME bug.
https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1079190
Comment 2 Bastien Nocera 2013-04-24 10:20:57 UTC
The Power key is not supposed to be tweakable, it's one of the hard-coded keys. Instead, you should have had a warning saying that the Power key was already assigned to another function.

*** This bug has been marked as a duplicate of bug 670579 ***