[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    Bad work multimedia keys
From:       Максим Мосейчук <franchesko.salias.hudro.pe
Date:       2015-11-30 23:59:08
Message-ID: CADyKhVzw3UzE3rmAEEoN261=_zWdBwXJ7BYcbCEdxN5oO8DzEw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I have bluetooth headset with multimedia keys - prev, next, play/stop (one
key, events rotate).
All keys fine work, but not play/stop. After stop playing, button cant
start play.
I run unity-settings-daemon with gdb, and program dont recive XEvent if
headset generate pl=D0=B0y event, but recive others events. Not only unity
affected, gnome to.
Event "play" filtered in xorg/xkb or more anywhere.

Out xev:
"""
KeyRelease event, serial 38, synthetic NO, window 0x5000001,
root 0x28f, subw 0x0, time 1857845, (1073,512), root:(1073,564),
state 0x0, keycode 209 (keysym 0x1008ff31, XF86AudioPause), same_screen YES=
,
XLookupString gives 0 bytes:
XFilterEvent returns: False


KeyPress event, serial 38, synthetic NO, window 0x5000001,
root 0x28f, subw 0x0, time 1870079, (88,93), root:(88,145),
state 0x0, keycode 208 (keysym 0x1008ff14, XF86AudioPlay), same_screen YES,
XKeysymToKeycode returns keycode: 172
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False


KeyRelease event, serial 38, synthetic NO, window 0x5000001,
root 0x28f, subw 0x0, time 1870087, (88,93), root:(88,145),
state 0x0, keycode 208 (keysym 0x1008ff14, XF86AudioPlay), same_screen YES,
XKeysymToKeycode returns keycode: 172
XLookupString gives 0 bytes:
XFilterEvent returns: False
""
For play key generate KeyPress and KeyRelease events. For others only
KeyRelease event.


evtest out:
"""
Event: time 1448926844.966315, type 1 (EV_KEY), code 201 (KEY_PAUSECD),
value 1
Event: time 1448926844.966315, -------------- SYN_REPORT ------------
Event: time 1448926844.982340, type 1 (EV_KEY), code 201 (KEY_PAUSECD),
value 0
Event: time 1448926844.982340, -------------- SYN_REPORT ------------
Event: time 1448926846.181324, type 1 (EV_KEY), code 200 (KEY_PLAYCD),
value 1
Event: time 1448926846.181324, -------------- SYN_REPORT ------------
Event: time 1448926846.187562, type 1 (EV_KEY), code 200 (KEY_PLAYCD),
value 0
Event: time 1448926846.187562, -------------- SYN_REPORT ------------
"""
Here for all buttons generate 2 events. That headset work fine.

I was trying to figure out the source code, but it is very confusing.
Please specify at least where to look for the error.
There is described in more detail and normal English.
https://bugs.launchpad.net/ubuntu/+source/unity-settings-daemon/+bug/139714=
2

[Attachment #5 (text/html)]

<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 &quot;play&quot; filtered in \
xorg/xkb or more anywhere.<br><br>Out xev:<br>&quot;&quot;&quot;<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>&quot;&quot;<br>For \
play key generate KeyPress and KeyRelease events. For others only KeyRelease \
event.<br><br><br>evtest out:<br>&quot;&quot;&quot;<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>&quot;&quot;&quot;<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>



[Attachment #6 (text/plain)]

_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic