Date: Mon, 03 Feb 2014 14:49:01 +0000 From: Robert Millan <rmh@freebsd.org> To: Baptiste Daroussin <bapt@FreeBSD.org> Cc: freebsd-x11@freebsd.org Subject: [PATCH] ignore uhid devices in X devd backend Message-ID: <52EFAC5D.8010603@freebsd.org>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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.
--
Robert Millan
[-- Attachment #2 --]
=== modified file 'devd.c'
--- devd.c 2014-02-03 14:43:14 +0000
+++ devd.c 2014-02-03 14:44:07 +0000
@@ -73,7 +73,6 @@ static struct hw_type hw_types[] = {
{ "atkbd", ATTR_KEYBOARD, "kdb" },
{ "ums", ATTR_POINTER, "mouse" },
{ "psm", ATTR_POINTER, "mouse" },
- { "uhid", ATTR_POINTER, "mouse" },
{ "joy", ATTR_JOYSTICK, NULL },
{ "atp", ATTR_TOUCHPAD, NULL },
{ "uep", ATTR_TOUCHSCREEN, NULL },
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52EFAC5D.8010603>
