Return-Path: Message-ID: <1347542812.2373.6.camel@obelisk.thedillows.org> Subject: Re: [PATCH] Add support for Logitech Harmony Adapter for PS3 From: David Dillow To: Antonio Ospite Cc: David Herrmann , Luiz Augusto von Dentz , Bastien Nocera , linux-bluetooth@vger.kernel.org Date: Thu, 13 Sep 2012 09:26:52 -0400 In-Reply-To: <20120913003628.ce5babb2a66d09fe17fa15de@studenti.unina.it> References: <1346378760.7976.2.camel@obelisk.thedillows.org> <20120907124559.GA16092@x220> <1347284864.3532.1.camel@sirocco.hadess.net> <1347394656.1606.10.camel@sirocco.hadess.net> <1347456657.23874.29.camel@sirocco.hadess.net> <20120913003628.ce5babb2a66d09fe17fa15de@studenti.unina.it> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: On Thu, 2012-09-13 at 00:36 +0200, Antonio Ospite wrote: > I too will take a look during the week-end about writing a kernel > driver, if it's not that much of an effort I might take the project > (no promises yet). I have a PS3 BD remote Bastien donated. > > David AFAICS from profiles/input/fakehid.c[1], a custom report has to be > decoded and appropriate input events have to be sent. I spent some time last night, and have made some progress in understanding the HID layer. I'm fixing up the report descriptor and massaging the raw packets to match in an effort to use the common input code. evtest isn't showing output yet, but I think I'm close. I only have the Logitech adapter, which does not seem to need the bitmask handling in fakehid.c -- could you watch /sys/kernel/debug/hid/0005:*/events while pressing the buttons that are listed in the ps3remote_bits list -- looks like back/circle, cross, triangle (options), etc. I'm guessing those are needed for some devices, but the Harmony adapter just sends the codes needed in ps3remote_keymap, so it doesn't seem I need to care about the bitmap, except I'm sure it was done for a reason... Thanks, Dave