From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ users <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] hid keyboard events get lost
Date: Mon, 28 May 2007 15:55:14 +0200 [thread overview]
Message-ID: <1180360514.21432.102.camel@aeonflux.holtmann.net> (raw)
In-Reply-To: <465AC8C7.1020502@imperial.ac.uk>
Hi Konrad,
> just to let you know: the ``Freedom Universal Keyboard'' is working
> perfectly now, after applying some minor tweaks to the kernel:
>
> 1. something to avoid the long negotiation for the mtu size, i commented
> out the following lines in l2cap_build_conf_req
> (net/bluetooth/l2cap.c):
>
> // if (pi->imtu != L2CAP_DEFAULT_MTU)
> // l2cap_add_conf_opt(&ptr, L2CAP_CONF_MTU, 2, pi->imtu);
>
> yes i know, this might not be the way to go, but bt still works with
> my mobile and the headset. maybe someone has an idea for a cleaner
> solution?
>
> 2. unfortunately the data coming from the keyboard is missing the first
> byte telling us about keyboard input. in hidp_input_report
> (net/bluetooth/hidp/core.c) insert the following
> lines after variable declaration:
>
> if ( ( session->input->id.vendor == 0x045e ) &&
> ( session->input->id.product == 0x0403 ) )
> {
> for ( i = 7; i >= 0; i -- ) skb->data[i + 1] = skb->data[i];
> skb->data[0] = 0x01;
> }
>
> again, is there a way to cope with this problem in a more generic
> way?
I need one of these keyboard to actually find the correct to fix this.
While it might be likely that we need a HID quirk, I am not happy with
any weird changes in L2CAP without understanding the reasons for it.
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
next prev parent reply other threads:[~2007-05-28 13:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-25 15:16 [Bluez-users] hid keyboard events get lost Konrad Kieling
2007-05-28 12:19 ` Konrad Kieling
2007-05-28 13:55 ` Marcel Holtmann [this message]
2007-05-28 20:50 ` Konrad Kieling
2007-05-29 4:02 ` Marcel Holtmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1180360514.21432.102.camel@aeonflux.holtmann.net \
--to=marcel@holtmann.org \
--cc=bluez-users@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox