The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
1

media control hotkeys don't work

asked Oct 27 '14

tripe gravatar image

updated Oct 27 '14

Adaephon gravatar image

Hey guys!

I'm struggeling with the hotkeys for volume up / down and mute. Other Hotkeys like wifi on/off, brightness do work (Lenovo E325) I checked xev and it tells me for the not working keys:

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

FocusIn event, serial 29, synthetic NO, window 0x2400001,
    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 

The grab/ungrab part tells me, that it is used by another process? But which? In Unity I have no problems using the keys. So I installed pa-applet and it tells me, that when i start it:

Failed to grab XF86AudioRaiseVolume 

Failed to grab XF86AudioLowerVolume

actually the keys are bind correctly when i start a xterm w/o a wm. So the problem seems to be with i3.Any ideas? Cheers

1 answer

Sort by » oldest newest most voted
0

answered Oct 27 '14

Adaephon gravatar image

updated Oct 28 '14

It seems that i3 or some other application is grabbing these keys. At hey are "swallowed" by the other program the only thing xev notices is that it lost the input focus for a very short time ("FocusOut", "FocusIn").

Please check if you have any bindsym bindings to XF86AudioRaiseVolume or XF86AudioLowerVolume in your ~/.i3/config and remove/comment them. It could also be bindcode bindings. (For me the codes are 122 and 123 but that may differ depending on keyboard, layout and driver)

Also, if some other program already listens to those keys, they would also not be shown by xev and it could explain the error message you get from pa-applet. The most likely culprit would be another mixer or some media-player as many of them allow global keyboard shortcuts and would have reason to bind these keys.

Comments

did so, problem is still there. (btw: ty for formatting my entry)

tripe gravatar imagetripe (Oct 27 '14)edit

Where there any bindings? If so did you reload/restart *i3*?

Adaephon gravatar imageAdaephon (Oct 28 '14)edit

yes, there were. yes i did reload i3, but did not help. can it be another process than sth in the i3conf?

tripe gravatar imagetripe (Oct 28 '14)edit

Yes, it could be another process. I already updated my answer accordingly. Do you use some session manager, gnome, xfce, unity, etc.?

Adaephon gravatar imageAdaephon (Oct 28 '14)edit

Ive isntalled Ubuntu 14.04. Does that help?

tripe gravatar imagetripe (Oct 28 '14)edit

Question Tools

Stats

Asked: Oct 27 '14

Seen: 493 times

Last updated: Oct 28 '14