[PATCH] do not feed keyboard device path in X devd backend

Robert Millan rmh at freebsd.org
Mon Feb 3 14:37:31 UTC 2014


When feeding the keyboard device path (e.g. /dev/ukbd0) to X server,
it will attempt to open it. This is incorrect because X doesn't want
_all_ the input from keyboard but rather just the one typed in its
VT (usually /dev/ttyv7).

Plus, attempting to open /dev/ukbd0 usually fails with EBUSY as the
keyboard is already being used by syscons.

This patch adjusts devd.c to follow the same approach as HAL: detect
the keyboard but feed it a zero-length device path. The result is
that X detects the presence of a keyboard, and therefore loads the
kbd_drv module, but doesn't attempt to open it directly (which is
unnecessary since /dev/ttyv7 is already open).

-- 
Robert Millan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: devd_no_kbd.diff
Type: text/x-patch
Size: 754 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-x11/attachments/20140203/dfcf74bc/attachment.bin>


More information about the freebsd-x11 mailing list