On Tue, Apr 3, 2012 at 7:14 PM, Jiri Kosina <jkosina@xxxxxxx> 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 performed? > > 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/<device>/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! -- João Paulo Rechi Vita Openbossa Labs - INdT -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html