ukbd vs. uhid
Christoph Langguth
christoph at rosenkeller.org
Tue Jul 14 20:20:04 UTC 2009
Hi all,
just bumping this issue, triggered by the mentioning of PR 102066, and
using a better subject line which might receive replies :-)
While trying to get my keyboard and its multimedia keys to work with
usbhidctl (it doesn't really work at the moment), I came across this:
- the keyboard is only handled by *either* ukbd *or* uhid. In fact, if
unpatched, uhid will not even try to consider the device, because of the
following code inside uhid.c's uhid_probe() function:
if (uaa->use_generic == 0) {
/* give Mouse and Keyboard drivers a try first */
return (ENXIO);
}
That means that the keyboard always ends up as device ukbdX, and never
as uhidY.
Before even trying to get it to work using uhid, I think this is the
issue that needs to be sorted out: Can a device be handled by *two*
independent drivers at once?
- If so, how?
- If not, what could a possible solution be?
Thanks & cheers,
Chris
More information about the freebsd-usb
mailing list