Re: [PATCH] HID: driver for BTC "Emprex 3009URF III Vista MCE Remote" quirky remote

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jan 2, 2010 at 10:25 PM, Jiri Kosina <jkosina@xxxxxxx> wrote:
> On Sat, 2 Jan 2010, Wayne Thomas wrote:
>
>> >> The Behavior Tech. Computer Corp. (BTC) remote branded as "Emprex 3009URF III
>> >> Vista Remote Controller" uses non-standard mappings for all of its 'special
>> >> purpose' keys (0xffbc usage page).  Applies cleanly to 2.6.30 and 2.6.32
>> >> (other versions not tested).
>> >> scripts/scriptpatch.pl reports 13 styling errors in hid-btc.c
>> >> ("break;" should be on trailing lines)
>> >> but have not changed them to maintain styling consistency with existing drivers.
>> >
>> > I believe that this kind of mapping adjustment can be done via UDEV/HAL
>> > key remapping facilities, without need for the kernel patch.
>>
>> I'll look into what you have suggested.  The issue is identical to
>> that of the TopSeed remote, which is why I used this method.  If this
>> is the case I assume that the topseed driver (and any others) should
>> also be removed?
>
> Hi Wayne,
>
> unfortunately you have a point here.
>
> Moving all the drivers which don't do anything else than establish simple
> HID->input mappings (such as your driver, or the TopSpeed one), into
> userspace (udev, please note that HAL is now deprecated), has been on my
> TODO list for quite a long time.
>
> But there has unfortunately always been something more important, so I
> have been quite sluggish with this.
>
> If you'd be submitting your changes for BTC to udev, it would be cool if
> you could do the same for other drivers we now have in kernel, so that
> they could be removed one day.
> Otherwise I'll do it hopefully soon, I will push it in my TODO a little
> bit higher as a new-year's resolution :)
>
> Thanks,
>
> --
> Jiri Kosina
> SUSE Labs, Novell Inc.
>

Jiri/Dmitry,
I've had a look around in the udev source code for an idea of how you
intend on this to be implemented, but unfortunately couldn't find a
sutiable example to examine.  As such I wont be of much use to you
with in this regard.
Something I did note however was that there is at least five different
quirky drivers that are using the 0x0ffbc0000 HID usage page (defined
as HID_UP_LOGIVENDOR), a handful of which do nothing more than capture
the keypresses from this usage page.  Comparing the keys in question I
realised that they could have been captured under a single quirky
driver, if not in hid-input itself.  It appears to me that a new
generation of Windows MCE remote devices are coming onto the market
that are using this usage page as standard.  I was going to fiddle
around with this but instead will wait to see how this will be
implemented in udev.
Sorry I couldn't relieve some of your work-load.

Cheers
Wayne
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux