Return-Path: MIME-Version: 1.0 In-Reply-To: References: <1332793209-2950-1-git-send-email-dh.herrmann@googlemail.com> Date: Wed, 4 Apr 2012 19:59:57 -0300 Message-ID: Subject: Re: [RFC v2 0/1] User-space HID I/O Driver From: Joao Paulo Rechi Vita To: Jiri Kosina Cc: David Herrmann , linux-input@vger.kernel.org, chen.ganir@ti.com, claudio.takahasi@openbossa.org, linux-bluetooth@vger.kernel.org, anderson.lizardo@openbossa.org, marcel@holtmann.org Content-Type: text/plain; charset=UTF-8 List-ID: 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 t= o register >> >> hid_ll_drivers in user-space. This is needed to implement Bluetooth H= oG (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 perform= ed? > > So hidraw shows the respective bits set properly, but they are not coming > out of /dev/input/eventX, right? > Exactly. > How about /syse/kernel/debug/hid//events, does it show the events= ? > 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! --=20 Jo=C3=A3o Paulo Rechi Vita Openbossa Labs - INdT