2008-07-05 07:00:01

by Rui Pedro Lopes

[permalink] [raw]
Subject: [Bluez-devel] Forward and Backward keys on presenter

Hi all!

I have a microsoft notebook presenter mouse 8000
(http://www.microsoft.com/hardware/Presenter/productdetails.aspx?pid=085) and I have managed to have it working (as a mouse). When switching to presenter mode, the multimedia keys work (volume up and down), but the forward and backword keys do not. I tried to get the key codes with xev, but nothing shows up. Even the scan code (with showkey -s or with getscancode - http://keytouch.sourceforge.net/) nothing shows up.

However, with hcidump I can see that something goes through:

(as a mouse)
> 02 32 20 0B 00 07 00 41 00 A1 11 00 FF 00 00 00
> 02 32 20 0B 00 07 00 41 00 A1 11 00 FE FF 00 00
> 02 32 20 0B 00 07 00 41 00 A1 16 00 00 0F 00 00
> 04 14 06 00 2E 00 00 00 00
> 02 32 20 0B 00 07 00 41 00 A1 16 00 00 00 00 00
(switching to presenter)
> 04 14 06 00 2E 00 02 A2 00
> 04 14 06 00 32 00 00 00 00
> 04 14 06 00 32 00 02 4E 00
(pressing forward key)
> 02 32 20 0B 00 07 00 41 00 A1 16 00 00 00 00 00
> 02 32 20 0B 00 07 00 41 00 A1 16 00 00 00 00 00
(switching to mouse)
> 04 14 06 00 32 00 00 00 00
> 04 14 06 00 32 00 02 1E 00
> 04 14 06 00 32 00 00 00 00
> 04 14 06 00 32 00 02 4E 00

(as a mouse)
> ACL data: handle 50 flags 0x02 dlen 11
L2CAP(d): cid 0x0041 len 7 [psm 0]
A1 16 00 00 08 00 00
> HCI Event: Mode Change (0x14) plen 6
00 32 00 00 00 00
> HCI Event: Mode Change (0x14) plen 6
00 32 00 02 1E 00
> ACL data: handle 50 flags 0x02 dlen 11
L2CAP(d): cid 0x0041 len 7 [psm 0]
A1 16 00 00 00 00 00
(switching to presenter)
> HCI Event: Mode Change (0x14) plen 6
00 32 00 00 00 00
> HCI Event: Mode Change (0x14) plen 6
00 32 00 02 4E 00
(pressing forward key)
> ACL data: handle 50 flags 0x02 dlen 11
L2CAP(d): cid 0x0041 len 7 [psm 0]
A1 16 00 00 0E 00 00
> HCI Event: Mode Change (0x14) plen 6
00 32 00 00 00 00
> HCI Event: Mode Change (0x14) plen 6
00 32 00 02 1E 00
> ACL data: handle 50 flags 0x02 dlen 11
L2CAP(d): cid 0x0041 len 7 [psm 0]
A1 16 00 00 00 00 00
(back to mouse mode)
> HCI Event: Mode Change (0x14) plen 6
00 32 00 00 00 00
> HCI Event: Mode Change (0x14) plen 6
00 32 00 02 4E 00

I do not know how to interpret this information. Does anyone knows if
the problem is related to the bluetooth part or to X?
Is there any possibility of getting it working?

Cheers,

/rp


Attachments:
signature.asc (189.00 B)
This is a digitally signed message part
(No filename) (347.00 B)
(No filename) (164.00 B)
Download all attachments

2008-07-05 17:21:35

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] Forward and Backward keys on presenter

Hi Rui,

> I have a microsoft notebook presenter mouse 8000
> (http://www.microsoft.com/hardware/Presenter/productdetails.aspx?pid=085) and I have managed to have it working (as a mouse). When switching to presenter mode, the multimedia keys work (volume up and down), but the forward and backword keys do not. I tried to get the key codes with xev, but nothing shows up. Even the scan code (with showkey -s or with getscancode - http://keytouch.sourceforge.net/) nothing shows up.
>
> However, with hcidump I can see that something goes through:
>
> (as a mouse)
> > 02 32 20 0B 00 07 00 41 00 A1 11 00 FF 00 00 00
> > 02 32 20 0B 00 07 00 41 00 A1 11 00 FE FF 00 00
> > 02 32 20 0B 00 07 00 41 00 A1 16 00 00 0F 00 00
> > 04 14 06 00 2E 00 00 00 00
> > 02 32 20 0B 00 07 00 41 00 A1 16 00 00 00 00 00
> (switching to presenter)
> > 04 14 06 00 2E 00 02 A2 00
> > 04 14 06 00 32 00 00 00 00
> > 04 14 06 00 32 00 02 4E 00
> (pressing forward key)
> > 02 32 20 0B 00 07 00 41 00 A1 16 00 00 00 00 00
> > 02 32 20 0B 00 07 00 41 00 A1 16 00 00 00 00 00
> (switching to mouse)
> > 04 14 06 00 32 00 00 00 00
> > 04 14 06 00 32 00 02 1E 00
> > 04 14 06 00 32 00 00 00 00
> > 04 14 06 00 32 00 02 4E 00
>
> (as a mouse)
> > ACL data: handle 50 flags 0x02 dlen 11
> L2CAP(d): cid 0x0041 len 7 [psm 0]
> A1 16 00 00 08 00 00
> > HCI Event: Mode Change (0x14) plen 6
> 00 32 00 00 00 00
> > HCI Event: Mode Change (0x14) plen 6
> 00 32 00 02 1E 00
> > ACL data: handle 50 flags 0x02 dlen 11
> L2CAP(d): cid 0x0041 len 7 [psm 0]
> A1 16 00 00 00 00 00
> (switching to presenter)
> > HCI Event: Mode Change (0x14) plen 6
> 00 32 00 00 00 00
> > HCI Event: Mode Change (0x14) plen 6
> 00 32 00 02 4E 00
> (pressing forward key)
> > ACL data: handle 50 flags 0x02 dlen 11
> L2CAP(d): cid 0x0041 len 7 [psm 0]
> A1 16 00 00 0E 00 00
> > HCI Event: Mode Change (0x14) plen 6
> 00 32 00 00 00 00
> > HCI Event: Mode Change (0x14) plen 6
> 00 32 00 02 1E 00
> > ACL data: handle 50 flags 0x02 dlen 11
> L2CAP(d): cid 0x0041 len 7 [psm 0]
> A1 16 00 00 00 00 00
> (back to mouse mode)
> > HCI Event: Mode Change (0x14) plen 6
> 00 32 00 00 00 00
> > HCI Event: Mode Change (0x14) plen 6
> 00 32 00 02 4E 00
>
> I do not know how to interpret this information. Does anyone knows if
> the problem is related to the bluetooth part or to X?
> Is there any possibility of getting it working?

the generic HID driver inside the kernel will handle this part. So to
convert all buttons, it might need some quirks to be setup. However I
have no idea which ones are needed since I don't have one of these
devices at home for testing.

Regards

Marcel



-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel