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 649222 - [regression] global media playback keyboard shortcuts don't work anymore
[regression] global media playback keyboard shortcuts don't work anymore
Status: RESOLVED FIXED
Product: gnome-settings-daemon
Classification: Core
Component: media-keys
3.0.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-settings-daemon-maint
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2011-05-02 19:07 UTC by Jean-François Fortin Tam
Modified: 2011-07-01 12:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gnome-session debug log (63.81 KB, text/x-log)
2011-05-18 12:55 UTC, Jean-François Fortin Tam
Details

Description Jean-François Fortin Tam 2011-05-02 19:07:21 UTC
I have set the following shortcuts in gnome-control-center's keyboard shortcuts panel:
- F7 to play/pause
- F6 to go to the previous track
- F8 to go to the next track

At the moment, these don't seem to work/do anything at all, even when rhythmbox is focused.

This used to work in gnome 2.32.
Comment 1 Bastien Nocera 2011-05-03 11:12:53 UTC
Those certainly do work here. What makes you think that GNOME is responsible, and not Rhythmbox? Does it work in Totem?
Comment 2 Jean-François Fortin Tam 2011-05-03 13:51:27 UTC
Because it doesn't work in Totem either, indeed :) even after re-setting the shortcut keys mentionned above in gnome-control-center.
Comment 3 Bastien Nocera 2011-05-03 14:53:41 UTC
Launch "dbus-monitor --session" and press the keys, does anything happen?
Comment 4 Jean-François Fortin Tam 2011-05-03 16:23:00 UTC
Nothing particular seems to happen.

# Launching dbus monitor:

jeff@kusanagi:~$ dbus-monitor --session
signal sender=org.freedesktop.DBus -> dest=:1.1371 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
   string ":1.1371"
method call sender=:1.1371 -> dest=org.freedesktop.DBus serial=3 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='method_call'"
method call sender=:1.1371 -> dest=org.freedesktop.DBus serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='method_return'"
method call sender=:1.1371 -> dest=org.freedesktop.DBus serial=5 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='error'"

# And when I press the F6/F7/F8/etc keys, all I get is those things printed in the dbus-monitor terminal:

^[[19~^[[19~^[[18~^
Comment 5 Bastien Nocera 2011-05-04 11:41:23 UTC
That would mean that either the media-keys plugin is disabled, or it's not capturing the keys correctly.

Please, in a running session, rename gnome-settings-daemon to gnome-settings-daemon.bak, kill the running gnome-settings-daemon, and run gnome-settings-daemon.bak by hand with the --debug flag, and attach the output to this bug.

Once done, you can rename gnome-settings-daemon back and re-launch it by hand.
Comment 6 Jean-François Fortin Tam 2011-05-04 14:19:10 UTC
Hmm, could you be more specific? I presume you meant doing the following as root:
cd /usr/libexec/
mv gnome-settings-daemon gnome-settings-daemon.bak

But then, when I "killall gnome-settings-daemon" (as a regular logged-in user), gnome-shell obviously crashes (with an "oh no!" screen) and throws me back to gdm (which seems borked up also).
Comment 7 Bastien Nocera 2011-05-04 14:26:21 UTC
(In reply to comment #6)
> Hmm, could you be more specific? I presume you meant doing the following as
> root:
> cd /usr/libexec/
> mv gnome-settings-daemon gnome-settings-daemon.bak
> 
> But then, when I "killall gnome-settings-daemon" (as a regular logged-in user),
> gnome-shell obviously crashes (with an "oh no!" screen) and throws me back to
> gdm (which seems borked up also).

Just dismiss the screen with Alt+F4 or minimise it (Alt+Space, select minimise).
Comment 8 Jean-François Fortin Tam 2011-05-18 12:55:34 UTC
Created attachment 188024 [details]
gnome-session debug log

As requested.
Comment 9 Bastien Nocera 2011-07-01 12:35:51 UTC
commit bc6561d2b2adbe39e928528dfaba2d129b143952
Author: Bastien Nocera <hadess@hadess.net>
Date:   Fri Jul 1 13:32:30 2011 +0100

    common: Fix function keys not being grabbed
    
    Because they were unmodified, and we tried to avoid screwing
    up the user's keymaps for those.
    
    Bug was introduced in 469145ff59fe2a65d603cfeb5011427dc0f7c36b
    
    https://bugzilla.gnome.org/show_bug.cgi?id=649222

commit afceb3e697934780b487db1e11e21fb23cbe9e28
Author: Bastien Nocera <hadess@hadess.net>
Date:   Fri Jul 1 13:28:51 2011 +0100

    common: Use defines instead of variables for ranges
    
    Seeing as those won't ever change.