Sven Anders wrote:
> Ok, the HIDBP (HID Boot-Protocol) is very basic...
>
> I found this:
>
> There are two options for using a USB mouse or a USB keyboard - the standalone
> Boot Protocol (HIDBP) way and the full featured HID driver way. The Boot
> Protocol way is generally inferior, and this document describes the full
> featured way. The Boot Protocol way may be appropriate for embedded systems
> and other systems with resource constraints and no real need for the full
> keyboard and mouse capabilities.
Mmmh... now this makes a lot of sense!
The full featured protocol (which sends 4 instead of 3 bytes, the 4th
being the scroll data) is called "report protocol".
>> Does the HID protocol have support for the scroll-wheel?
>
> Yes, but probably not the HIDBP.
Exactly!
> 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);
}
which seems to always choose the boot protocol for the device and never
reset it! I think we should play around with that piece of code...
>
>> [EMAIL PROTECTED]:~# hidd --show
>> 00:12:A1:60:8A:33 Bluetooth HID Boot Protocol Device [0a5c:0001] connected
> [boot-protocol]
>
> I think this means it's will in HIDBP mode. Maybe I'm wrong?!
>
> My "USB HIDBP Mouse" option in the kernel is turned off.
Yep, mine too and it's right.
-------------------------------------------------------------------------
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