[CentOS] Volume keys don't work

Sat Apr 17 18:21:50 UTC 2010
MHR <mhullrich at gmail.com>

On Sat, Apr 17, 2010 at 11:01 AM, Robert Heller <heller at deepsoft.com> wrote:
>
> Fire up xev and tell us what is displayed when you push these various keys.
>

Thanks - I forgot about that:

KeyPress event, serial 29, synthetic NO, window 0x1f00001,
    root 0x1a5, subw 0x0, time 217713917, (135,130), root:(976,196),
    state 0x10, keycode 174 (keysym 0x1008ff11, XF86AudioLowerVolume),
same_screen YES,
    XKeysymToKeycode returns keycode: 165
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 29, synthetic NO, window 0x1f00001,
    root 0x1a5, subw 0x0, time 217714167, (135,130), root:(976,196),
    state 0x10, keycode 174 (keysym 0x1008ff11, XF86AudioLowerVolume),
same_screen YES,
    XKeysymToKeycode returns keycode: 165
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyPress event, serial 29, synthetic NO, window 0x1f00001,
    root 0x1a5, subw 0x0, time 217715861, (135,130), root:(976,196),
    state 0x10, keycode 176 (keysym 0x1008ff13, XF86AudioRaiseVolume),
same_screen YES,
    XKeysymToKeycode returns keycode: 158
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 29, synthetic NO, window 0x1f00001,
    root 0x1a5, subw 0x0, time 217716135, (135,130), root:(976,196),
    state 0x10, keycode 176 (keysym 0x1008ff13, XF86AudioRaiseVolume),
same_screen YES,
    XKeysymToKeycode returns keycode: 158
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

But for the track skip keys:

FocusOut event, serial 29, synthetic NO, window 0x1f00001,
    mode NotifyGrab, detail NotifyAncestor

FocusOut event, serial 29, synthetic NO, window 0x1f00001,
    mode NotifyUngrab, detail NotifyPointer

FocusIn event, serial 29, synthetic NO, window 0x1f00001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 29, synthetic NO, window 0x0,
    keys:  2   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

FocusOut event, serial 29, synthetic NO, window 0x1f00001,
    mode NotifyGrab, detail NotifyAncestor

FocusOut event, serial 29, synthetic NO, window 0x1f00001,
    mode NotifyUngrab, detail NotifyPointer

FocusIn event, serial 29, synthetic NO, window 0x1f00001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 29, synthetic NO, window 0x0,
    keys:  2   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

So it is recognizing the volume up/downkeys but not responding to them
(i.e., when they are the key maps for volume up and down, they don't
adjust the volume).

I changed the shortcuts to use the volume keys, and they show this:

KeyPress event, serial 29, synthetic NO, window 0x1f00001,
    root 0x1a5, subw 0x0, time 217987731, (110,163), root:(951,229),
    state 0x10, keycode 174 (keysym 0x1008ff11, XF86AudioLowerVolume),
same_screen YES,
    XKeysymToKeycode returns keycode: 165
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 29, synthetic NO, window 0x1f00001,
    root 0x1a5, subw 0x0, time 217987964, (110,163), root:(951,229),
    state 0x10, keycode 174 (keysym 0x1008ff11, XF86AudioLowerVolume),
same_screen YES,
    XKeysymToKeycode returns keycode: 165
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyPress event, serial 29, synthetic NO, window 0x1f00001,
    root 0x1a5, subw 0x0, time 217989723, (110,163), root:(951,229),
    state 0x10, keycode 176 (keysym 0x1008ff13, XF86AudioRaiseVolume),
same_screen YES,
    XKeysymToKeycode returns keycode: 158
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 29, synthetic NO, window 0x1f00001,
    root 0x1a5, subw 0x0, time 217989951, (110,163), root:(951,229),
    state 0x10, keycode 176 (keysym 0x1008ff13, XF86AudioRaiseVolume),
same_screen YES,
    XKeysymToKeycode returns keycode: 158
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

The differences between the two views is this:

2c2
<     root 0x1a5, subw 0x0, time 217713917, (135,130), root:(976,196),
---
>     root 0x1a5, subw 0x0, time 217987731, (110,163), root:(951,229),
10c10
<     root 0x1a5, subw 0x0, time 217714167, (135,130), root:(976,196),
---
>     root 0x1a5, subw 0x0, time 217987964, (110,163), root:(951,229),
17c17
<     root 0x1a5, subw 0x0, time 217715861, (135,130), root:(976,196),
---
>     root 0x1a5, subw 0x0, time 217989723, (110,163), root:(951,229),
25c25
<     root 0x1a5, subw 0x0, time 217716135, (135,130), root:(976,196),
---
>     root 0x1a5, subw 0x0, time 217989951, (110,163), root:(951,229),

I don't think this is significant, but I thought I'd include it anyway.

Thanks.

mhr