Ortwin Glück schrieb:
>> Now the question:
>>
>> How do I switch my bluetooth mouse to full HID mode?
>
> Ehh! That's the hard part. I don't think you can from userland.
>
> I found in the HID specs (from usb.org) that the driver should issue a
> "change protocol" to put the device into report-protocol mode.
>
> However, in net/bluetooth/core.c there is
>
> if (session->input) {
> hidp_send_ctrl_message(session,
> HIDP_TRANS_SET_PROTOCOL | HIDP_PROTO_BOOT, NULL, 0);
> session->flags |= (1 << HIDP_BOOT_PROTOCOL_MODE);
>
> session->leds = 0xff;
> hidp_input_event(session->input, EV_LED, 0, 0);
> }
Hi, I gave it a try and remove those lines:
--- linux/net/bluetooth/hidp/core.c.orig 2007-02-21 01:32:25.000000000 +0100
+++ linux/net/bluetooth/hidp/core.c 2007-02-21 01:33:24.000000000 +0100
@@ -653,9 +653,9 @@
goto unlink;
if (session->input) {
- hidp_send_ctrl_message(session,
- HIDP_TRANS_SET_PROTOCOL | HIDP_PROTO_BOOT, NULL, 0);
- session->flags |= (1 << HIDP_BOOT_PROTOCOL_MODE);
+ //hidp_send_ctrl_message(session,
+ // HIDP_TRANS_SET_PROTOCOL | HIDP_PROTO_BOOT, NULL, 0);
+ //session->flags |= (1 << HIDP_BOOT_PROTOCOL_MODE);
session->leds = 0xff;
hidp_input_event(session->input, EV_LED, 0, 0);
Now my scroll-wheel works!
I still need the 'hidd'
Regardless of which tool I use to connect (hidd or hcitool), it
gaves an error - but the connection is established correctly!
| [EMAIL PROTECTED]:/home/anders/# hcitool cc 00:12:A1:60:8A:33
| Can't create connection: Input/output error
or
| [EMAIL PROTECTED]:/home/anders/# hidd --connect 00:12:A1:60:8A:33
| Can't create HID control channel: Connection refused
Now the 'boot-protocol' is gone...
| [EMAIL PROTECTED]:/home/anders/# hidd --show
| 00:12:A1:60:8A:33 Bluetooth HID Boot Protocol Device [0a5c:0001] connected
| [EMAIL PROTECTED]:/home/anders/# hcitool con
| Connections:
| > ACL 00:12:A1:60:8A:33 handle 47 state 1 lm MASTER
Now this needs some more investigation and possible some interaction with the
bluetooth people!
Regards
Sven
--
Sven Anders <[EMAIL PROTECTED]> () Ascii Ribbon Campaign
/\ Support plain text e-mail
ANDURAS service solutions AG
Innstraße 71 - 94036 Passau - Germany
Web: www.anduras.de - Tel: +49 (0)851-4 90 50-0 - Fax: +49 (0)851-4 90 50-55
Rechtsform: Aktiengesellschaft - Sitz: Passau - Amtsgericht Passau HRB 6032
Mitglieder des Vorstands: Sven Anders, Marcus Junker
Vorsitzender des Aufsichtsrats: Dipl. Kfm. Thomas Träger
begin:vcard fn:Sven Anders n:Anders;Sven org:ANDURAS AG;Research and Development adr;quoted-printable:;;Innstra=C3=9Fe 71;Passau;Bavaria;94036;Germany email;internet:[EMAIL PROTECTED] title:Dipl. Inf. tel;work:++49 (0)851 / 490 50 -0 tel;fax:++49 (0)851 / 590 50 - 55 x-mozilla-html:FALSE url:http://www.anduras.de version:2.1 end:vcard
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Mactel-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mactel-linux-devel
