* [Bluez-users] K800i sends correct usage IDs, get mis-interpreted by Xorg
@ 2007-05-01 3:32 Andreas Ntaflos
2007-05-04 6:43 ` Marcel Holtmann
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Ntaflos @ 2007-05-01 3:32 UTC (permalink / raw)
To: bluez-users
[-- Attachment #1.1: Type: text/plain, Size: 2550 bytes --]
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
--
Andreas "daff" Ntaflos
Vienna, Austria
GPG Fingerprint: 6234 2E8E 5C81 C6CB E5EC 7E65 397C E2A8 090C A9B4
[-- Attachment #1.2: Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 286 bytes --]
-------------------------------------------------------------------------
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/
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Bluez-users] K800i sends correct usage IDs, get mis-interpreted by Xorg
2007-05-01 3:32 [Bluez-users] K800i sends correct usage IDs, get mis-interpreted by Xorg Andreas Ntaflos
@ 2007-05-04 6:43 ` Marcel Holtmann
0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2007-05-04 6:43 UTC (permalink / raw)
To: BlueZ users
Hi Andreas,
> 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?
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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-05-04 6:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-01 3:32 [Bluez-users] K800i sends correct usage IDs, get mis-interpreted by Xorg Andreas Ntaflos
2007-05-04 6:43 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox