How to know the commercial name of a device?
Hi, I'm using Ubuntu 12.04 (AMD64).
I have an usb web cam and a pci Tv card on my system, so I use programs like Tvtime, Skype, Guvcview, and others.
The great problem I encountered is that udev assign randomly /dev/videoX device to the video devices, so sometimes I have the tv card on /dev/video0 and the web cam on /dev/video1 or vice versa. I try to fix the /dev/videoX with local rules, but it is not working (there is another question opened https:/
So I need to have a script that check which physical device is connected to the /dev/videoX, in order to instruct the program to open pointing to the right device (i.e.: tvtime -d /dev/video1).
Presently I made something querying udevadm but is quite intricate and most of all it is based on the localization of a string that starts with the substring "DRIVERS==", tomorrow they may change something and my script doesn't work any more.
So, my question is:
There is a system file or a bash command or query that lets me know which physical device is connected to /dev/videoX?
It could be useful the commercial name or HW typology or any other info.
Thx a lot.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Dave Gilbert
- Solved:
- Last query:
- Last reply: