linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Yan Seiner <yan@seiner.com>
To: linux-hotplug@vger.kernel.org
Subject: Finding keyboards and mice and other devices
Date: Wed, 21 Jan 2009 14:53:54 +0000	[thread overview]
Message-ID: <49773702.7020902@seiner.com> (raw)

This is probably not a udev questin, but I hope someone can direct to a 
better place....

I am trying to scan the system to find all of the mice, keyboards, dvd 
drives, etc connected via usb.

I need to enumerate all of the devices connected to any USB hub by 
type.  I can find devices in /sys but I don't know what they are....

Ideally I need a script that will tell me

2-4:1.0 keyboard
2-4:2.0 mouse
2-4:3.0 dvd player

Is there any way I can pull this from sysfs?  Or set it up via udev?


Thanks,

--Yan

                 reply	other threads:[~2009-01-21 14:53 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=49773702.7020902@seiner.com \
    --to=yan@seiner.com \
    --cc=linux-hotplug@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).