Red Hat Bugzilla – Bug 1028451
Keybindings capture bugs
Last modified: 2015-11-19 02:12:07 EST
In bug 707095, we created new keybindings that behave slightly differently for
when in the lock/unlock screens, and allowed the power key keybinding to be
used in the login screen.
However, that brought up 2 bugs in gnome-shell:
- you can't capture the same keybinding for 2 different modes (so g-s-d would
know that it's in the lock screen and make sure not to show polkit or
interactive dialogues in the lock screen)
- when in gdm, the keybinding mode is LOCK_SCREEN instead of LOGIN_SCREEN
When those 2 bugs are fixed, it should be possible to shutdown the machine by
pressing the power button in the lock screen after having changed the button's
gsettings set org.gnome.settings-daemon.plugins.power button-power "shutdown"
And ditto in gdm:
# cat >/etc/dconf/db/gdm.d/01-power <<EOF
# dconf update
The related RHEL 7 bug is:
May I ask if there's any news about this bug? We use the "power button" with virtual machines quite frequently. Thank you.
Sixteen months have passed since this bug was filed, and no updates. Well done.
Florian, did the upstream fix for this go into 3.14 ?
(In reply to Matthias Clasen from comment #5)
> Florian, did the upstream fix for this go into 3.14 ?
No, 3.16 only. The patches themselves should be easy enough to backport, but they change private API between gnome-shell and gnome-settings-daemon, so some coordination is required.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.