[opensuse] Hauppauge DVB-S cards - how to use the MAC address in udev rules?
On my new mythtv backend, I have two Hauppauge DVB-S cards for satellite reception. I would like to assign permanent device names to them using some udev rules. The cards do have unique MAC addresses, but afaict, they are not available through/to udev. udevadm does not list it, see below. Any suggestions? (apart from using the adapter_nr argument on the module). thanks Per # udevadm info --attribute-walk --name /dev/dvb/adapter3/frontend0 Udevadm info starts with the device specified by the devpath and then walks up the chain of parent devices. It prints for every device found, all possible attributes in the udev rules key format. A rule to match, can be composed by the attributes of the device and the attributes from one single parent device. looking at device '/devices/pci0000:00/0000:00:1e.0/0000:0a:01.2/dvb/dvb3.frontend0': KERNEL=="dvb3.frontend0" SUBSYSTEM=="dvb" DRIVER=="" looking at parent device '/devices/pci0000:00/0000:00:1e.0/0000:0a:01.2': KERNELS=="0000:0a:01.2" SUBSYSTEMS=="pci" DRIVERS=="cx88-mpeg driver manager" ATTRS{irq}=="19" ATTRS{subsystem_vendor}=="0x0070" ATTRS{broken_parity_status}=="0" ATTRS{class}=="0x048000" ATTRS{consistent_dma_mask_bits}=="32" ATTRS{dma_mask_bits}=="32" ATTRS{local_cpus}=="00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001" ATTRS{device}=="0x8802" ATTRS{enable}=="1" ATTRS{msi_bus}=="" ATTRS{local_cpulist}=="0" ATTRS{vendor}=="0x14f1" ATTRS{subsystem_device}=="0x9202" ATTRS{numa_node}=="-1" looking at parent device '/devices/pci0000:00/0000:00:1e.0': KERNELS=="0000:00:1e.0" SUBSYSTEMS=="pci" DRIVERS=="" ATTRS{irq}=="0" ATTRS{subsystem_vendor}=="0x1014" ATTRS{broken_parity_status}=="0" ATTRS{class}=="0x060401" ATTRS{consistent_dma_mask_bits}=="32" ATTRS{dma_mask_bits}=="32" ATTRS{local_cpus}=="00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001" ATTRS{device}=="0x244e" ATTRS{enable}=="1" ATTRS{msi_bus}=="1" ATTRS{local_cpulist}=="0" ATTRS{vendor}=="0x8086" ATTRS{subsystem_device}=="0x02f7" ATTRS{numa_node}=="-1" looking at parent device '/devices/pci0000:00': KERNELS=="pci0000:00" SUBSYSTEMS=="" DRIVERS=="" -- Per Jessen, Zürich (2.3°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Per Jessen wrote:
On my new mythtv backend, I have two Hauppauge DVB-S cards for satellite reception. I would like to assign permanent device names to them using some udev rules. The cards do have unique MAC addresses, but afaict, they are not available through/to udev. udevadm does not list it, see below.
Forgot to add: the MAC addresses and serial#s are listed by the tveeprom module: # dmesg | grep tvee tveeprom 8-0050: Hauppauge model 92001, rev C1B1, serial# 930330 tveeprom 8-0050: MAC address is 00:0d:fe:0e:32:1a tveeprom 8-0050: tuner model is Conexant_CX24109 (idx 111, type 4) tveeprom 8-0050: TV standards ATSC/DVB Digital (eeprom 0x80) tveeprom 8-0050: audio processor is CX883 (idx 32) tveeprom 8-0050: decoder processor is CX883 (idx 22) tveeprom 12-0050: Hauppauge model 92001, rev C1B1, serial# 930303 tveeprom 12-0050: MAC address is 00:0d:fe:0e:31:ff tveeprom 12-0050: tuner model is Conexant_CX24109 (idx 111, type 4) tveeprom 12-0050: TV standards ATSC/DVB Digital (eeprom 0x80) tveeprom 12-0050: audio processor is CX883 (idx 32) tveeprom 12-0050: decoder processor is CX883 (idx 22) -- Per Jessen, Zürich (2.2°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 29/11/12 20:40, Per Jessen wrote:
On my new mythtv backend, I have two Hauppauge DVB-S cards for satellite reception. I would like to assign permanent device names to them using some udev rules. The cards do have unique MAC addresses, but afaict, they are not available through/to udev. udevadm does not list it, see below.
I know that this is not answering your question but the next time you have the need for a card have a look at the TechniSat cards. A German comany. I have been using one of their cards for some years now. URL: http://www.technisat.com/ They also support Linux. BC -- Using openSUSE 12.2 x86_64 KDE 4.9.3 & kernel 3.6.8-1 on a system with- AMD FX 8-core 3.6/4.2GHz processor 16GB PC14900/1866MHz Quad Channel Corsair "Vengeance" RAM Gigabyte AMD3+ m/board; Gigabyte nVidia GTX550Ti 1GB DDR5 GPU -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Basil Chupin wrote:
On 29/11/12 20:40, Per Jessen wrote:
On my new mythtv backend, I have two Hauppauge DVB-S cards for satellite reception. I would like to assign permanent device names to them using some udev rules. The cards do have unique MAC addresses, but afaict, they are not available through/to udev. udevadm does not list it, see below.
I know that this is not answering your question but the next time you have the need for a card have a look at the TechniSat cards. A German comany. I have been using one of their cards for some years now. URL:
They also support Linux.
Yeah, I know the brand very well, although I'm not sure if they do cards any moree. Regardless, I have a whole pile of the Hauppauge cards that I acquired for free, and they actually work very well. -- Per Jessen, Zürich (2.2°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hello, On Thu, 29 Nov 2012, Per Jessen wrote:
Basil Chupin wrote:
I know that this is not answering your question but the next time you have the need for a card have a look at the TechniSat cards. A German comany. I have been using one of their cards for some years now. URL:
They also support Linux.
FWIW: I had two TechniSat SkyStar HD2 die on me i a matter of weeks (Tuner failed). But as long as they worked, they worked well out of the box and did not require any firmware.
Yeah, I know the brand very well, although I'm not sure if they do cards any moree. Regardless, I have a whole pile of the Hauppauge cards that I acquired for free, and they actually work very well.
I currently use a TeVii S470, that needs firmware (you need to DL seperately), but otherwise works nicely (though switching channels in kaffeine is quite slow at >= 3s). HTH, -dnh -- hier ist es ja wie im Urlaub! Nix mehr zu tun. Kein Dau zu beerdigen. Kein Elch zu verjagen. Nicht mal ein kleiner Troll möchte sterben 'gehen. Na dann setz Ich mich mal hier auf die Friedhofsbank und geniesse die Ruhe. Ach ja ! Meine Froschpillen werden langsam knapp. [Woko° in dag°] -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Per Jessen wrote:
On my new mythtv backend, I have two Hauppauge DVB-S cards for satellite reception. I would like to assign permanent device names to them using some udev rules. The cards do have unique MAC addresses, but afaict, they are not available through/to udev. udevadm does not list it, see below.
Any suggestions? (apart from using the adapter_nr argument on the module).
Using adapter_nr as a module option didn't work for me, quite possibly due to operator error. I created /etc/modules-load.d/dvb.conf like this: options cx23885 adapter_nr=0,1 options cx88_dvb adapter_nr=2,3 DVB: registering new adapter (cx23885[0]) DVB: registering adapter 0 frontend 0 (STV0900 frontend)... DVB: registering new adapter (cx88[0]) DVB: registering adapter 1 frontend 0 (Conexant CX24123/CX24109)... DVB: registering new adapter (cx88[1]) DVB: registering adapter 2 frontend 0 (Conexant CX24123/CX24109)... DVB: registering new adapter (cx23885[0]) DVB: registering adapter 3 frontend 0 (STV0900 frontend)... Basically with this I get adapter0 = card1, receiver0 adapter1 = card2, receiver0 adapter2 = card3, receiver0 adapter3 = card1, receiver1 what I am hoping for is: adapter0 = card1, receiver0 adapter1 = card1, receiver1 adapter2 = card2, receiver0 adapter3 = card3, receiver0 thanks Per -- Per Jessen, Zürich (2.3°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Per Jessen wrote:
Per Jessen wrote:
On my new mythtv backend, I have two Hauppauge DVB-S cards for satellite reception. I would like to assign permanent device names to them using some udev rules. The cards do have unique MAC addresses, but afaict, they are not available through/to udev. udevadm does not list it, see below.
Any suggestions? (apart from using the adapter_nr argument on the module).
Using adapter_nr as a module option didn't work for me, quite possibly due to operator error. I created /etc/modules-load.d/dvb.conf like this:
Operator error - I should have used /etc/modprobe.d instead. Using adapter_nr now works just fine. -- Per Jessen, Zürich (0.8°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Basil Chupin
-
David Haller
-
Per Jessen