<div dir="ltr">I have bluetooth headset with multimedia keys - prev, next, play/stop (one key, events rotate).<br>All keys fine work, but not play/stop. After stop playing, button cant start play.<br><div>I run unity-settings-daemon with gdb, and program dont recive XEvent if headset generate plаy event, but recive others events. Not only unity affected, gnome to.</div><div>Event "play" filtered in xorg/xkb or more anywhere.<br><br>Out xev:<br>"""<br>KeyRelease event, serial 38, synthetic NO, window 0x5000001,<br>    root 0x28f, subw 0x0, time 1857845, (1073,512), root:(1073,564),<br>    state 0x0, keycode 209 (keysym 0x1008ff31, XF86AudioPause), same_screen YES,<br>    XLookupString gives 0 bytes: <br>    XFilterEvent returns: False<br><br><br>KeyPress event, serial 38, synthetic NO, window 0x5000001,<br> root 0x28f, subw 0x0, time 1870079, (88,93), root:(88,145),<br> state 0x0, keycode 208 (keysym 0x1008ff14, XF86AudioPlay), same_screen YES,<br> XKeysymToKeycode returns keycode: 172<br> XLookupString gives 0 bytes: <br> XmbLookupString gives 0 bytes: <br> XFilterEvent returns: False<br><br><br>KeyRelease event, serial 38, synthetic NO, window 0x5000001,<br> root 0x28f, subw 0x0, time 1870087, (88,93), root:(88,145),<br> state 0x0, keycode 208 (keysym 0x1008ff14, XF86AudioPlay), same_screen YES,<br> XKeysymToKeycode returns keycode: 172<br> XLookupString gives 0 bytes: <br> XFilterEvent returns: False<br>""<br>For play key generate KeyPress and KeyRelease events. For others only KeyRelease event.<br><br><br>evtest out:<br>"""<br>Event: time 1448926844.966315, type 1 (EV_KEY), code 201 (KEY_PAUSECD), value 1<br>Event: time 1448926844.966315, -------------- SYN_REPORT ------------<br>Event: time 1448926844.982340, type 1 (EV_KEY), code 201 (KEY_PAUSECD), value 0<br>Event: time 1448926844.982340, -------------- SYN_REPORT ------------<br>Event: time 1448926846.181324, type 1 (EV_KEY), code 200 (KEY_PLAYCD), value 1<br>Event: time 1448926846.181324, -------------- SYN_REPORT ------------<br>Event: time 1448926846.187562, type 1 (EV_KEY), code 200 (KEY_PLAYCD), value 0<br>Event: time 1448926846.187562, -------------- SYN_REPORT ------------<br>"""<div>Here for all buttons generate 2 events. That headset work fine.</div><div><br></div><div><div>I was trying to figure out the source code, but it is very confusing. Please specify at least where to look for the error.</div><div>There is described in more detail and normal English. <a href="https://bugs.launchpad.net/ubuntu/+source/unity-settings-daemon/+bug/1397142">https://bugs.launchpad.net/ubuntu/+source/unity-settings-daemon/+bug/1397142</a></div></div></div></div>