LinHES Forums
http://forums.linhes.org/

UDEV sucks!!!!!
http://forums.linhes.org/viewtopic.php?f=2&t=13882
Page 4 of 4

Author:  alexvd [ Fri Jun 29, 2007 4:47 pm ]
Post subject: 

In regards to the ivtv errors. It appears those are related to using the hold parmameters and it will first try the old way and then use the new way. Apparently they are harmless because I dont have any issues with capturing.

Author:  no2u [ Fri Mar 05, 2010 12:51 pm ]
Post subject: 

The udev video device ordering has been pretty stable for me in LinHES R6 (perhaps by design), but I still run into this periodically. I've made some minor tweaks to my udev rules file (now I'm just placing it in the /etc/udev/rules.d directory), just another example in case anyone is still having problems:
Code:
# Mark's udev rules file for device naming consistency -
# Use "udevadm info -a -n /dev/video0" to find attributes to use in this file
# Save this file as 99_zzz_my.rules file in udev/rules.d
# Then manually enter /dev/video-pvr250 etc in place of /dev/video0 etc in setup

# TV tuners
KERNEL=="video?", ATTR{name}=="saa7133*",          SYMLINK+="video-kworld"
KERNEL=="video?", ATTR{name}=="ivtv0 encoder MPG", SYMLINK+="video-pvr250"
KERNEL=="video?", ATTR{name}=="cx88*",             SYMLINK+="video-pcHDTV"
KERNEL=="video?", ATTR{name}=="Hauppauge HD PVR",  SYMLINK+="video-hdpvr"

# DVB device symlinks don't do much good because MythTV setup doesn't allow direct entry of the dvb paths, but for completeness
KERNEL=="dvb?.frontend0", DRIVERS=="saa7134",              SYMLINK+="dvb-kworld"
KERNEL=="dvb?.frontend0", DRIVERS=="cx88-mpeg*",           SYMLINK+="dvb-pcHDTV"
KERNEL=="dvb?.frontend0", ATTRS{product}=="WinTV HVR-850", SYMLINK+="dvb-hvr850"

# Zoneminder security cameras, sorted by PCI function
KERNEL=="video?", ATTR{name}=="BT878*", DRIVERS=="bttv", ID=="0000:??:08.0", SYMLINK+="video-bttv0"
KERNEL=="video?", ATTR{name}=="BT878*", DRIVERS=="bttv", ID=="0000:??:09.0", SYMLINK+="video-bttv1"
KERNEL=="video?", ATTR{name}=="BT878*", DRIVERS=="bttv", ID=="0000:??:0a.0", SYMLINK+="video-bttv2"
KERNEL=="video?", ATTR{name}=="BT878*", DRIVERS=="bttv", ID=="0000:??:0b.0", SYMLINK+="video-bttv3"

I've fiddled with the "lshal" and "lspci" commands, but the best way to find good rules for inserting into this file seems to be by using the udevadm command, such as:
Code:
 udevadm info -a -n /dev/video0

...where video0 in this case is of course just an example.

Author:  paulsid [ Fri Mar 05, 2010 5:34 pm ]
Post subject: 

no2u wrote:
The udev video device ordering has been pretty stable for me in LinHES R6 (perhaps by design), but I still run into this periodically. I've made some minor tweaks to my udev rules file

udev rules freaked me out, luckily I found you can fix the video# of the HD-PVR by adding a line to /etc/modprobe.conf:
Code:
options hdpvr boost_audio=1 video_nr=1

video_nr=X will make the device show as /dev/videoX.
boost_audio=1 is of course optional, it boosts the recording volume.

I realise you have other devices... just pointing this out for those with HD-PVRs in simpler setups.

Page 4 of 4 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/