[mythtv-users] IVTV and DVB cards swapping /dev/ location

Doug Lytle support at drdos.info
Mon Aug 10 20:09:28 UTC 2009


Mitch Gore wrote:
>
> I have seen posts in the past on writing custom u.dev rules to force 
> the same but I am not sure how to do this in Ubuntu.
>

It's not really too difficult, at least under Mandriva.  You can gather 
udev info about the device with udevinfo:

udevinfo -a -p $(udevinfo -q path -n /dev/video0)


Look though the printout and decide on what key words you want the rule 
to match against, this is what I did for my USB-UIRT:

udevinfo -a -p $(udevinfo -q path -n /dev/ttyUSB0)

KERNEL=="ttyUSB0"
ATTRS{product}=="USB-UIRT"

cat usb-uirt.rules

# MythTV USB TTY0 rules for USB-UIRT
KERNEL=="ttyUSB*", SYSFS{product}=="USB-UIRT", MODE="0644", NAME="usb-uirt"


Anything that matches in the kernel, ttyUSB and has a product-id of 
USB-UIRT, create a /dev/usb-uirt device with a mode of 0644

Doug



-- 
 
Ben Franklin quote:

"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."



More information about the mythtv-users mailing list