USB keyboard udev rule
alastair at truebox.co.uk
Mon Nov 10 12:53:24 CET 2008
> Does anyone have a udev rule for USB keyboard that does the following.
> When no external USB devices are connected and a keyboard is plugged in,
> USB can switch to host mode and switch back when USB keyboard is
> unplugged. As far as I'm concerned, this would be a very welcome feature.
AFAIK we don't have a means of autodetecting whether we should be host
or device, and if we aren't in host mode we can't detect the keyboard
insertion. There may be a way of doing this using the ID pin but I don't
know how standard it would be.
More information about the community