Return-Path: MIME-Version: 1.0 In-Reply-To: References: <1332793209-2950-1-git-send-email-dh.herrmann@googlemail.com> Date: Thu, 26 Apr 2012 14:22:09 -0300 Message-ID: Subject: Re: [RFC v2 0/1] User-space HID I/O Driver From: Claudio Takahasi To: David Herrmann , Jiri Kosina Cc: Joao Paulo Rechi Vita , linux-input@vger.kernel.org, chen.ganir@ti.com, linux-bluetooth@vger.kernel.org, anderson.lizardo@openbossa.org, marcel@holtmann.org Content-Type: text/plain; charset=UTF-8 List-ID: Hi David/Jiri, On Wed, Apr 4, 2012 at 7:59 PM, Joao Paulo Rechi Vita wrote: > On Tue, Apr 3, 2012 at 7:14 PM, Jiri Kosina wrote: >> On Tue, 3 Apr 2012, Joao Paulo Rechi Vita wrote: >> >>> >> This is the second revision of the UHID driver. It basically allows = to register >>> >> hid_ll_drivers in user-space. This is needed to implement Bluetooth = HoG (HID >>> >> over GATT) as discussed earlier. >>> >> >>> > >>> > We have a first prototype implementation of the HoG plugin working >>> > with the uhid driver \o/ >>> > >>> >>> I'm having problems with modifiers keys (they don't work). The USB-HID >>> spec says that for each modifier key pressed a bit have to be set on >>> the modifiers byte (byte 2) of the report array. Dumping the data both >>> on the HoG plugin on bluetoothd and through hidraw for the created HID >>> device shows that these bits are being set correctly. >>> >>> Any idea of what could be wrong or additional checks that can be perfor= med? >> >> So hidraw shows the respective bits set properly, but they are not comin= g >> out of /dev/input/eventX, right? >> > > Exactly. > >> How about /syse/kernel/debug/hid//events, does it show the event= s? >> > > Thanks for the help, but it wasn't needed. The problem was actually on > the userspace HoG->HID parsing, we're adding an additional 0x00 byte > to the beginning of the array. Now modifiers works! > > -- > Jo=C3=A3o Paulo Rechi Vita > Openbossa Labs - INdT The basic features are now working, we have tested HoG keyboard and mouse. The major features missing related to HID are output/feature reports, and suspend. My HID knowledge is quite limited but it seems that output reports are not working on uhid, at least I didn't see events from the host. Even for USB keyboard it doesn't work, do you have any pointers? BR, Claudio