LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-12-2008, 02:13 PM   #1
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070

Rep: Reputation: 45
Videocard and Webcam


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.
 
Old 02-12-2008, 04:10 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
This may help;
http://www.gossamer-threads.com/list...v/users/311042
 
Old 03-02-2008, 08:20 AM   #3
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070

Original Poster
Rep: Reputation: 45
Thanks but my card doesn't use ivtv, just v4l.
 
Old 03-02-2008, 08:38 AM   #4
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
Well then I would set up that option.
 
Old 03-05-2008, 05:16 PM   #5
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070

Original Poster
Rep: Reputation: 45
From your reply it seems it should be an easy thing to do. Is it a simple matter of installing the livna ivtv driver for F8?

Code:
[root@localhost ~]# /sbin/lspci -v | grep cx
        Kernel driver in use: cx8800
        Kernel modules: cx8800
[root@localhost ~]# /sbin/lspci -v | grep CX
00:0b.0 Multimedia video controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder (rev 05)
[root@localhost ~]# lsmod | grep cx
cx8800                 39549  0
cx88xx                 70629  1 cx8800
ir_common              40005  1 cx88xx
i2c_algo_bit           14149  1 cx88xx
video_buf              29380  2 cx8800,cx88xx
tveeprom               24913  1 cx88xx
compat_ioctl32         16192  2 cx8800,gspca
videodev               33857  3 cx8800,cx88xx,gspca
v4l2_common            25921  5 tuner,cx8800,cx88xx,compat_ioctl32,videodev
i2c_core               28865  7 lm90,nvidia,tuner,cx88xx,i2c_algo_bit,tveeprom,i2c_viapro
btcx_risc              12489  2 cx8800,cx88xx
Code:
[root@localhost ~]# smart search ivtv
Loading cache...
Updating cache...                                             ###################################################################################### [100%]

ivtv-firmware - Firmware for the PVR 250/350/150/500 model series

Saving cache...
 
Old 03-05-2008, 05:53 PM   #6
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
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 ...
 
Old 03-05-2008, 11:56 PM   #7
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Lightbulb

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.
 
Old 03-07-2008, 02:47 PM   #8
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070

Original Poster
Rep: Reputation: 45
Electro I've rebooted once since using that and it is as I want it.

I guess if I don't post again we will know it worked.

Thanks in advance.
 
  


Reply

Tags
dev, video



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How To Install A Usb Webcam [Genius WebCam on Suse 9.1 Personal] ofvergara SUSE / openSUSE 4 11-29-2006 12:09 PM
videocard knutbot Linux - Hardware 8 09-07-2006 05:55 PM
About buying a videocard. jato Linux - Hardware 1 06-02-2004 04:15 PM
could be monitor/videocard/something else AtomiCTheGr8 Linux - Hardware 1 08-09-2002 05:07 AM
videocard problems Casper Linux - Newbie 6 10-15-2000 09:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration