Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've installed a webcam (Logitech Quickcam Messenger) and a TV Card (Leadtek TV200XP Expert). Both work fine.
The small problem I have is that at each reboot, they seem to interchange between /dev/video0 and /dev/video1. The problem is then that things like xdtv will be setup to load the TV as /dev/video1, but when the TV Card is /dev/video0 xdtv will try to get video from the webcam. Same kind of issue with skype 2 beta. And for 3 reboots they may stay unchanged, then bam. Changes.
How do I get each device to be always loaded as /dev/video0 and /dev/video1 respectively. That is force them not to interchange. I don't care which is video0 and which is video1 as long as they just stay fixed.
No in your modprobe.conf or with udev you should be able to set up the options for /dev/video1 /dev/video0 so they are the same each time. But I really don't know where that is on debian, but may help get you started. In the link I was looking at this part.
Quote:
you can add to
> your modprobe.conf and set it to 1. This will cause the PVR to always
> be on /dev/video1 leaving /dev/video0 open for the ATSC card no matter
> what order the drivers load in.
On Gentoo I can edit /etc//udev/rules.d/ but I don't know about debian.
sorry I didn't explain better ...
Do not edit your udev rules. Gentoo developers provided a file that is used to personalized udev further with out messing up present and future udev rules. I suggest create 10-local.rule in /etc/udev/rules.d.
To make sure one card gets designated as /dev/video0 and the other gets designated as /dev/video1. Use /sbin/modinfo module_name to get a list of module options. Usually it is index or it could be card, but it depends on the developer.
I suggest add the following to /etc/modules.conf for most distributions, but comply to rules of the distribution.
options module_name index=X
The X designates a number from 0 to 9 or it could go up to 255 (I think). The number 0 is the first card and 1 will be the second card.
For your setup, it could be the following lines.
options cx8800 video_nr=0
options gspca index=1
Before using the options above, check the options of the module to see if they are correct.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.