linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* autodetecting usb keyboard and required modules from shell
@ 2011-10-14 21:08 Arkadiusz Miśkiewicz
  0 siblings, 0 replies; only message in thread
From: Arkadiusz Miśkiewicz @ 2011-10-14 21:08 UTC (permalink / raw)
  To: linux-input


Hi,

I'm trying to find a simple way to detect that usb keyboard is being used in 
running system (so the required modules are already loaded etc) and then 
figure out which modules drive that keyboard.

The hard part is that I'm trying to do that from shell by simply looking into 
procfs or sysfs. (no usbutils, no udev available).

/proc/bus/input/devices looks like good place to start but how to distinguish 
keyboards there from other devices (for example my usb keyboard is named 
"Winbond Electronics Corp Hermon USB hidmouse Device" there) ?

I see that kernel reports some keyboards as "USB HID v1.00 Keyboard" for 
example but does it report that info somewhere in sysfs?

Any hints welcome.

Thanks,
-- 
Arkadiusz Miśkiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-10-14 21:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-14 21:08 autodetecting usb keyboard and required modules from shell Arkadiusz Miśkiewicz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).