K800i sends correct usage IDs, get mis-interpreted by Xorg
Hello list,
this is my first post here and I am not sure whether I've come to the right forum for my problem. I'll try nonetheless.
Using bluez-* 3.9 on Kubuntu 7.04 (Feisty), with Xorg 7.2.
I use my Sony Ericsson K800i to remote control my desktop and it works almost fine. I defined an HID profile using the USB HID usage tables
[1] and the Bluetooth HID remote control developer information [2] by Sony Ericsson.
The problem is that some usage IDs don't get interpreted correctly by Xorg. An example:
<KEY_VOL_UP>
<ACTION>
<KEYBOARD MODIFIERS = "00" USAGEID = "4E" /> <!-- Page Down -->
</ACTION>
</KEY_VOL_UP>
This sets the phone's volume up key to send the usage ID 4E (unmodified) which is the keyboard equivalent of Page Down according to the HID specs.
However, testing this with xev yields the following:
KeyPress event, serial 31, synthetic NO, window 0x1800001,
root 0x1a5, subw 0x0, time 3560039, (107,75), root:(1705,822), state 0x0, keycode 117 (keysym 0xffaf, KP_Divide), same_screen YES, XKeysymToKeycode returns keycode: 112
XLookupString gives 1 bytes: (2f) "/"
XmbLookupString gives 1 bytes: (2f) "/"
XFilterEvent returns: False
Apparently Xorg interprets that usage ID as KP_Divide ("/") or keycode 117, which it definitely is not.
This is just a real example, other usage IDs are also problematic.
Also of note should be that I set up an Xorg input device for the phone. Without it no mouse events would ever occur:
Section "InputDevice"
Identifier "k800i"
Driver "evdev"
Option "Protocol" "Auto"
Option "Name" "Sony Ericsson Remote Control of PC applications and other devices"
Option "Buttons" "3"
Option "SendCoreEvents"
EndSection
Before getting into any more detail, could this a problem of Xorg or is this the doing of bluez?
Where can I check if bluez receives the correct usage ID and translates it into the wrong Xorg keycode, should that be the case?
Or can anybody suggest anything else? Any other information I haven't looked at yet? Should I try my luck at the Xorg mailing list (they'd probably just send me back here :))?
Thanks a lot in advance!
Andreas
[1] http://www.usb.org/developers/devclass_docs/Hut1_11.pdf
[2] http://developer.sonyericsson.com/getDocument.do?docId=66147
Signature · 4 lines
Andreas "daff" Ntaflos Vienna, Austria GPG Fingerprint: 6234 2E8E 5C81 C6CB E5EC 7E65 397C E2A8 090C A9B4
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel Holtmann
maintainerHi Andreas,
Quoted 46 lines
this is my first post here and I am not sure whether I've come to the right forum for my problem. I'll try nonetheless.
Using bluez-* 3.9 on Kubuntu 7.04 (Feisty), with Xorg 7.2.
I use my Sony Ericsson K800i to remote control my desktop and it works almost fine. I defined an HID profile using the USB HID usage tables
[1] and the Bluetooth HID remote control developer information [2] by Sony Ericsson.The problem is that some usage IDs don't get interpreted correctly by Xorg. An example:
<
KEY_VOL_UP>
<ACTION><KEYBOARD MODIFIERS = "00" USAGEID = "4E" /> <!-- Page Down --></ACTION>
</KEY_VOL_UP>This sets the phone's volume up key to send the usage ID 4E (unmodified) which is the keyboard equivalent of Page Down according to the HID specs.
However, testing this with xev yields the following:
KeyPress event, serial 31, synthetic NO, window
0x1800001,
root0x1a5, subw0x0, time 3560039, (107,75), root:(1705,822), state0x0, keycode 117 (keysym0xffaf,KP_Divide),same_screenYES, XKeysymToKeycode returns keycode: 112
XLookupString gives 1 bytes: (2f) "/"
XmbLookupString gives 1 bytes: (2f) "/"
XFilterEvent returns: FalseApparently Xorg interprets that usage ID as
KP_Divide("/") or keycode 117, which it definitely is not.This is just a real example, other usage IDs are also problematic.
Also of note should be that I set up an Xorg input device for the phone. Without it no mouse events would ever occur:
Section "InputDevice"
Identifier "k800i" Driver "evdev" Option "Protocol" "Auto" Option "Name" "Sony Ericsson Remote Control of PC
Quoted 7 lines
applications and other devices"
Option "Buttons" "3"
Option "SendCoreEvents"
EndSectionBefore getting into any more detail, could this a problem of Xorg or is this the doing of bluez?
this is not a BlueZ problem. It is either Xorg or the HID<->Input translation in the kernel.
Regards
Marcel
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users