You are not logged in.

#1 2010-09-03 15:23:26

mandalic
Member
Registered: 2009-11-13
Posts: 43

TV Card and Web-Camera /dev/video problem

Dear Archers,

I have TV card shoved into the PCI slot and a web-camera that works through USB interface. Both work just fine. Now, the problem I have is not related to TV Card/webcam "per se", but to their default /dev/video{#} entry. I'd like to make them static, e.g. to force TV to use /dev/video0 and webcam to use /dev/video1.

Each time I reboot my machine, they seem to assign automatically, at random, or dunno how, but quite often, when I fire TVTime, it complains about wrong /dev/video instance, 'cause webcam holds the previous TV card /dev/video entry. That means that I have to go to tvtime config and change the default video device. I do that almost every time! It's annoying, and I'd like to change that once and for all.

Now here you jump in - any suggestions?

Kind regards,
aL3xa

Last edited by mandalic (2010-09-03 15:25:10)

Offline

#2 2010-09-03 15:58:17

birdflesh
Member
From: Greece
Registered: 2010-08-04
Posts: 97

Re: TV Card and Web-Camera /dev/video problem

Try loading the modules for webcam and tv card manually  in the modules line of rc.conf

Offline

#3 2010-09-05 04:37:40

PirateJonno
Forum Fellow
From: New Zealand
Registered: 2009-04-13
Posts: 372

Re: TV Card and Web-Camera /dev/video problem

alternatively, look here for another method


"You can watch for your administrator to install the latest kernel with watch uname -r" - From the watch man page

Offline

#4 2010-12-01 00:18:03

mandalic
Member
Registered: 2009-11-13
Posts: 43

Re: TV Card and Web-Camera /dev/video problem

I tried that, no luck there. Obviously, the solution is either to write UDEV rule or to set MOD_AUTOLOAD="no" and load them explicitly.

D'you know of any links with sample UDEV rules with /dev/video{n} devices?!?

Offline

#5 2010-12-01 00:39:59

my0pic
Member
From: Melbourne, Australia
Registered: 2008-05-23
Posts: 206

Re: TV Card and Web-Camera /dev/video problem

Offline

#6 2010-12-09 20:20:57

mandalic
Member
Registered: 2009-11-13
Posts: 43

Re: TV Card and Web-Camera /dev/video problem

OK, this is definitely a bug! UDEV just keeps loading modules at random. I've written an UDEV rule and saved it in /etc/udev/rules.d/10-local.rules

# tv-card
KERNEL=="input[0-9]?", SUBSYSTEMS=="pci", ATTRS{subsystem_device}=="0x0138", SYMLINK+="tvcard"

# webcam
KERNEL=="input[0-9]?", SUBSYSTEMS=="usb", ATTRS{idProduct}=="627b", SYMLINK+="webcam"

UDEV doesn't create "webcam" or "tvcard", and still loads tv-card/webcam in random order!

Any ideas what might cause this problem!?!?

Offline

Board footer

Powered by FluxBB