LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-31-2006, 05:48 PM   #1
Maverick1182
Member
 
Registered: Aug 2004
Location: London
Distribution: Gentoo
Posts: 277

Rep: Reputation: 30
Can i specify a /dev/video number?


Hi there i've finally managed to get my webcam to work with the right brightness setting to be able to be seen over the internet, i do this by running the following command when loading the driver

modprobe spca5xx GRed=500 GBlue=500 GGreen=500 gamma=4

the only problem is the webcam gets allocated a random number every time i boot i.e it can sometimes be /dev/video1 or /dev/video0 and other time. THis makes it rather irritating when i run my camera server as i need to specify which device i want to stream, it usually ends up streaming the tv card. I've looked through the modinfo of the spca5xx driver but theres no option to specify a device number as is available in the following link for mod_quickcam

http://www.linuxquestions.org/questi...ad.php?t=73435

I have a logitech quickcam messenger so i guess i can use this driver but its worked fine with the spca5xx driver up until now, so if it aint broke...(yet) lol

any ideas?
 
Old 10-31-2006, 05:58 PM   #2
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
udev rules maybe?
they keep my psp, iPod and iPod nano from getting mixed up I don't see why they wouldn't work for this purpose.

Last edited by johnson_steve; 10-31-2006 at 06:01 PM.
 
Old 10-31-2006, 06:43 PM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by Maverick1182
Hi there i've finally managed to get my webcam to work with the right brightness setting to be able to be seen over the internet, i do this by running the following command when loading the driver

modprobe spca5xx GRed=500 GBlue=500 GGreen=500 gamma=4

the only problem is the webcam gets allocated a random number every time i boot i.e it can sometimes be /dev/video1 or /dev/video0 and other time. THis makes it rather irritating when i run my camera server as i need to specify which device i want to stream, it usually ends up streaming the tv card. I've looked through the modinfo of the spca5xx driver but theres no option to specify a device number as is available in the following link for mod_quickcam

http://www.linuxquestions.org/questi...ad.php?t=73435

I have a logitech quickcam messenger so i guess i can use this driver but its worked fine with the spca5xx driver up until now, so if it aint broke...(yet) lol

any ideas?
Not certain of the exact file in Gentoo but try using /etc/modules.conf and putting something like this in it.

Code:
alias char-major-81-0 bttv
alias char-major-81-1 spca5xx
options spca5xx GRed=500 GBlue=500 GGreen=500 gamma=4
This would assign the video0 to a bttv card with the Cam being the video1 and using the options you need to have loaded for it to work properly obviously changing the bttv to your tv card module.
 
Old 11-01-2006, 10:07 AM   #4
Maverick1182
Member
 
Registered: Aug 2004
Location: London
Distribution: Gentoo
Posts: 277

Original Poster
Rep: Reputation: 30
From reading a few help sites on gentoo wiki i created a file: /etc/udev/rules.d/10-local.rules

KERNEL=="video[0-9]*", BUS=="pci", SYSFS{device}=="0x036e", SYSFS{vendor}=="0x109e", SYSFS{dev}=="81:0", NAME="video0", SYMLINK="video1TV_card_878", GROUP="video"

KERNEL=="video[0-9]*", BUS=="usb", SYSFS{idVendor}=="046d", SYSFS{idProduct}=="0920", NAME="video1" , SYMLINK="Mywebcam" , GROUP="video"

This seems to work on a restart.

Hope this helps anyone else.

Last edited by Maverick1182; 11-01-2006 at 10:22 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Display video frame number or SMPTE? nakko Linux - Software 0 02-08-2006 03:51 PM
Video Card boot up error: undefined mode number tt08 Linux - Newbie 1 10-24-2004 09:26 AM
USB hard drive rejects dev number mad2physicist Linux - Hardware 16 12-15-2003 12:11 PM
Scanbus doesn't work....how to track down dev number? Trinity22 Linux - General 2 09-22-2003 08:20 AM
Two Video Devices - /dev/video0 & /dev/video1 liguorir Linux - Software 1 07-21-2003 08:20 PM

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

All times are GMT -5. The time now is 04:20 PM.

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