Thursday, June 14, 2007

udevinfo

Found a great command recently to query udev about all the information concerning a specific device.

udevinfo -a -p $(udevinfo -q path -n /dev/video1)

Basically, the -a will print all the SYSFS attributes available to udev for that device, and -p specifies the udev device (in this case we add a udevinfo query of the specific /dev to find out the actual devpath).

Very useful for trying to map physical equipment (multiple video capture devices in this case) to specific devices in /dev.

No comments:

Post a Comment