[PATCH] ignore uhid devices in X devd backend

Eitan Adler lists at eitanadler.com
Thu Feb 13 23:38:36 UTC 2014


On Thu, Feb 13, 2014 at 6:32 PM, Robert Millan <rmh at freebsd.org> wrote:
> On 03/02/2014 14:49, Robert Millan wrote:
>>
>> This patch removes uhid from the hw_types[] list. According to the
>> uhid driver description, this driver is only a fallback for devices
>> not supported by any other driver.
>>
>> On my system, the USB keyboard shows up as an uhid device in addition
>> to /dev/ukbd0, but the previous devd code misidentified it as a mouse.
>>
>> This just leads to trouble when X attempts to open() it and fails,
>> for the reasons described in my earlier devd_no_kbd.diff patch.
>
> This might no longer apply with the code in:
>
> http://trillian.chruetertee.ch/ports/browser/trunk/x11-servers/xorg-server/files/extra-devd
>
> which includes an open() test with fallback.
>
> (still I don't see the point of processing uhid devices, though)

Even so, we still don't want to bother processing devices which can't
possibly be correct.


-- 
Eitan Adler


More information about the freebsd-x11 mailing list