Finding keyboards and mice and other devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux