Hardy - gnome-keybinding-properties shortcuts don't work

Bug #182165 reported by Shane Par-Due
22
Affects Status Importance Assigned to Milestone
gnome-control-center (Ubuntu)
Fix Released
Medium
Ubuntu Desktop Bugs

Bug Description

None of the shortcuts I configure in gnome-keybinding-properties work. I've tried killing the process and rebooting, but nothing seems to make them work. This isn't specific to just one shortcut.

I'm also running the AMD64 version if it matters.

description: updated
Revision history for this message
Kjell Braden (afflux) wrote :

I can confirm similar issues. My media keys aren't working, also the "search" button, "favorites", "homepage", "email", "messenger" and "calculator". However, "standby" works, and ctrl+alt+L for locking the screen doesn't.
I can reproduce this only with metacity enabled, but I don't think that's the right package to assign this bug since it hasn't changed for about a month.

I'm running uptodate hardy with kernel 2.6.24-3, xorg 7.3+10ubuntu2, and gnome-control-center 2.21.4-0ubuntu1.

Revision history for this message
Kjell Braden (afflux) wrote :

Note that I'm running i386.

Revision history for this message
Kjell Braden (afflux) wrote :

ubuntueifel found out that changing the keybindings, e.g. Mute to Ctrl+Q, they still don't work.

Revision history for this message
Kjell Braden (afflux) wrote :

I finally found out what's the problem: I reverted the changes to gnome-settings-daemon/gnome-settings-multimedia-keys.c (see below) and it works!

These were the changes between 2.21.2-0ubuntu2 and 2.21.4-0ubuntu1:
--- gnome-control-center-2.21.4/gnome-settings-daemon/gnome-settings-multimedia-keys.c
+++ gnome-control-center-2.21.4.orig/gnome-settings-daemon/gnome-settings-multimedia-keys.c
@@ -45,11 +45,10 @@
 /* we exclude shift, GDK_CONTROL_MASK and GDK_MOD1_MASK since we know what
    these modifiers mean
    these are the mods whose combinations are bound by the keygrabbing code */
+#define IGNORED_MODS (0x2000 /*Xkb modifier*/ | GDK_LOCK_MASK | GDK_HYPER_MASK)
-#define IGNORED_MODS (0x2000 /*Xkb modifier*/ | GDK_LOCK_MASK | \
- GDK_MOD2_MASK | GDK_MOD3_MASK | GDK_MOD4_MASK | GDK_MOD5_MASK)
 /* these are the ones we actually use for global keys, we always only check
  * for these set */
+#define USED_MODS (GDK_SHIFT_MASK | GDK_CONTROL_MASK | GDK_MOD1_MASK | GDK_SUPER_MASK | GDK_META_MASK)
-#define USED_MODS (GDK_SHIFT_MASK | GDK_CONTROL_MASK | GDK_MOD1_MASK)

 typedef struct {
    GnomeSettingsModule parent;
@@ -696,13 +695,20 @@
       break;
    case HOME_KEY:
       path = g_shell_quote (g_get_home_dir ());
+ cmd = g_strconcat ("nautilus --no-desktop", path, NULL);
- cmd = g_strconcat ("nautilus ", path, NULL);
       g_free (path);
       execute (acme, cmd, FALSE, FALSE);
       g_free (cmd);
       break;
    case SEARCH_KEY:
+ cmd = NULL;
+ if ((cmd = g_find_program_in_path ("beagle-search")))
+ execute (acme, "beagle-search", FALSE, FALSE);
+ else if ((cmd = g_find_program_in_path ("tracker-search-tool")))
+ execute (acme, "tracker-search-tool", FALSE, FALSE);
+ else
+ execute (acme, "gnome-search-tool", FALSE, FALSE);
+ g_free (cmd);
- execute (acme, "gnome-search-tool", FALSE, FALSE);
       break;
    case EMAIL_KEY:
       do_mail_action (acme);

I'm quite certain that the problem is in the first to changes to the "#define" lines since the other changes were specific to the search and home keys.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

thanks for your report and work on it.

Changed in gnome-control-center:
assignee: nobody → desktop-bugs
status: Confirmed → Triaged
Revision history for this message
Matthew Tighe (tighem) wrote :

Would this affect only some of the keybindings? My mute and search buttons work, but home folder (which should launch nautilus) and mail are not working.

Revision history for this message
Kjell Braden (afflux) wrote :

I don't really know, but my media keys work now and they hadn't worked before. The nautilus key indeed does not work yet, while mail does.

Revision history for this message
Chow Loong Jin (hyperair) wrote :

Only my play/pause shortcut doesn't work, as well as others to do with media players. The rest do. Does that help? =\

Revision history for this message
Kjell Braden (afflux) wrote :

hyperar, what media player are you using?

Revision history for this message
Ari Torhamo (ari-torhamo) wrote :

Those media keys, which weren't working for me before, started to work with the latest updates (which became available between yesterday evening and this morning). It's funny though, that after the update I'm no longer not able to assign a key to open my home folder - the same thing that some others here already brought up. Oh, and the fourth of the user selectable 'preset' keys doesn't work either - it probably didn't work before either, but I'm not sure about that. So, everything else but these two things seem to work. I didn't go through every single item on the list, fro example I supposed that if 'move a window to work space 1' works, then it works with other workspaces too.

Revision history for this message
Andreas Engelbredt Dalsgaard (andreas-dalsgaard) wrote :

I also had the problem of play/pause shortcut didn't work, after upgrading the gnome-settings-daemon package it seems to be solved.

Revision history for this message
Sebastien Bacher (seb128) wrote :

The multimedia keys issue is bug #188702 and should be solved now, does anybody still have non working shortcuts?

Changed in gnome-control-center:
status: Triaged → Incomplete
Revision history for this message
Ari Torhamo (ari-torhamo) wrote :

All of the actual multimedia keys work for me now.

It would be great to have the issue with the fourth 'preset' key solved though. I just did some further testing and noticed that this key works flawlessly in Windows. The 'preset' keys from one to three also work in Ubuntu regardless of which keyboard I select in the keyboard settings, be it a multimedia, laptop, generic, Apple or any old keyboard from any manufacturer. I propably should make a separate report of this one though. Anyone else have the fourth 'preset' key not working? My keyboard is the keyboard part of the Logitech Cordless Desktop Comfort Laser combo.

Revision history for this message
Kjell Braden (afflux) wrote :

My nautilus key is not working.

I'm getting the following everytime I press "favorites", which should launch nautilus, in xev:
-- snip --
FocusOut event, serial 30, synthetic NO, window 0x3000001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 30, synthetic NO, window 0x3000001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 30, synthetic NO, window 0x0,
    keys: 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
           0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-- snip --

Revision history for this message
Mephisto (ferrylandzaat) wrote :

I upgraded from gutsy yesterday and my special keys stopped working. I can see them generate a key in xev, so they work fine, but they're not picked up by gnome. When i reassign the keys in the config applet, they work until logged out. All other global hotkeys (metacity, tomboy, audacious, etc) work fine. Any way to get more insight on what goes wrong? It seems to be a problem with gnome-settings-daemon, but i'm not sure about it.

Revision history for this message
Dave Vree (hdave) wrote :

I also upgraded from Gutsy and lost my play/pause/stop/fdw/bkwd buttons. The volume/mute/find/email buttons all still work.

Revision history for this message
Dave Vree (hdave) wrote :

I should add that the keybinding in the system->preferences->keyboard shortcuts are correct. Num Lock is not on, and everything worked find with Gutsy.

Revision history for this message
Evgeny Remizov (ram3ai) wrote :

I have the same problem as HDave. On my Inspiron 6400:
MediaDirect, Mute, Sound Higher, Sound Lower - work
PlayPause, Back, Forward, Stop - don't work

and that's a regression comparing to Gutsy

Revision history for this message
Sebastien Bacher (seb128) wrote :

do you still get this issue? could you describe easy steps to trigger the bug?

Revision history for this message
Dave Vree (hdave) wrote :

I am on Hardy proposed...and no longer get this issue. I should also add that part of my problem was due to a bug in VMWare where using VMWare disabled Alt/Ctrl and other keys sometimes.

Running the command "setxkbmap" fixed it.

Revision history for this message
Sebastien Bacher (seb128) wrote :

closing the bug since that works correctly now

Changed in gnome-control-center:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.