linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Arkadiusz Miśkiewicz" <a.miskiewicz@gmail.com>
To: linux-input@vger.kernel.org
Subject: autodetecting usb keyboard and required modules from shell
Date: Fri, 14 Oct 2011 23:08:33 +0200	[thread overview]
Message-ID: <201110142308.33646.a.miskiewicz@gmail.com> (raw)


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

                 reply	other threads:[~2011-10-14 21:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201110142308.33646.a.miskiewicz@gmail.com \
    --to=a.miskiewicz@gmail.com \
    --cc=linux-input@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).