# Persistent symlinks for webcam and tunerKERNEL=="video*", ATTRS{idProduct}=="0002", ATTRS{idVendor}=="1d6b", SYMLINK+="webcam"KERNEL=="video*", ATTRS{device}=="0x4384", ATTRS{vendor}=="0x1002", SYMLINK+="tvtuner"
Я зробив простіше:/etc/udev/rules.d/85-v4l.rulesКод: [Вибрати]# Persistent symlinks for webcam and tunerKERNEL=="video*", ATTRS{idProduct}=="0002", ATTRS{idVendor}=="1d6b", SYMLINK+="webcam"KERNEL=="video*", ATTRS{device}=="0x4384", ATTRS{vendor}=="0x1002", SYMLINK+="tvtuner"Тепер у мене вебка завжди доступна по /dev/webcam а ТБ-приймач — /dev/tvtuner.
Результат "lspci -v" в студію.
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor DRAM Controller (rev 09) Subsystem: Intel Corporation Device 2002 Flags: bus master, fast devsel, latency 0 Capabilities: [e0] Vendor Specific Information: Len=0c <?>00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller (rev 09) (prog-if 00 [VGA controller]) Subsystem: Intel Corporation Device 2002 Flags: bus master, fast devsel, latency 0, IRQ 49 Memory at fe000000 (64-bit, non-prefetchable) [size=4M] Memory at e0000000 (64-bit, prefetchable) [size=256M] I/O ports at f000 [size=64] Expansion ROM at <unassigned> [disabled] Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit- Capabilities: [d0] Power Management version 2 Capabilities: [a4] PCI Advanced Features Kernel driver in use: i915 Kernel modules: i91500:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04) Subsystem: Intel Corporation Device 2002 Flags: bus master, fast devsel, latency 0, IRQ 50 Memory at fe629000 (64-bit, non-prefetchable) [size=16] Capabilities: [50] Power Management version 3 Capabilities: [8c] MSI: Enable+ Count=1/1 Maskable- 64bit+ Kernel driver in use: mei Kernel modules: mei00:19.0 Ethernet controller: Intel Corporation 82579V Gigabit Network Connection (rev 05) Subsystem: Intel Corporation Device 2002 Flags: bus master, fast devsel, latency 0, IRQ 48 Memory at fe600000 (32-bit, non-prefetchable) [size=128K] Memory at fe628000 (32-bit, non-prefetchable) [size=4K] I/O ports at f080 [size=32] Capabilities: [c8] Power Management version 2 Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+ Capabilities: [e0] PCI Advanced Features Kernel driver in use: e1000e Kernel modules: e1000e00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05) (prog-if 20 [EHCI]) Subsystem: Intel Corporation Device 2002 Flags: bus master, medium devsel, latency 0, IRQ 16 Memory at fe627000 (32-bit, non-prefetchable) [size=1K] Capabilities: [50] Power Management version 2 Capabilities: [58] Debug port: BAR=1 offset=00a0 Capabilities: [98] PCI Advanced Features Kernel driver in use: ehci_hcd00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05) Subsystem: Intel Corporation Device 2002 Flags: bus master, fast devsel, latency 0, IRQ 51 Memory at fe620000 (64-bit, non-prefetchable) [size=16K] Capabilities: [50] Power Management version 2 Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+ Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00 Capabilities: [100] Virtual Channel Capabilities: [130] Root Complex Link Kernel driver in use: snd_hda_intel Kernel modules: snd-hda-intel00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0 Bus: primary=00, secondary=01, subordinate=02, sec-latency=0 Memory behind bridge: fe500000-fe5fffff Capabilities: [40] Express Root Port (Slot+), MSI 00 Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit- Capabilities: [90] Subsystem: Intel Corporation Device 2002 Capabilities: [a0] Power Management version 2 Kernel driver in use: pcieport Kernel modules: shpchp00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b5) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0 Bus: primary=00, secondary=03, subordinate=03, sec-latency=0 Memory behind bridge: fe400000-fe4fffff Capabilities: [40] Express Root Port (Slot+), MSI 00 Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit- Capabilities: [90] Subsystem: Intel Corporation Device 2002 Capabilities: [a0] Power Management version 2 Kernel driver in use: pcieport Kernel modules: shpchp00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05) (prog-if 20 [EHCI]) Subsystem: Intel Corporation Device 2002 Flags: bus master, medium devsel, latency 0, IRQ 23 Memory at fe626000 (32-bit, non-prefetchable) [size=1K] Capabilities: [50] Power Management version 2 Capabilities: [58] Debug port: BAR=1 offset=00a0 Capabilities: [98] PCI Advanced Features Kernel driver in use: ehci_hcd00:1f.0 ISA bridge: Intel Corporation H67 Express Chipset Family LPC Controller (rev 05) Subsystem: Intel Corporation Device 2002 Flags: bus master, medium devsel, latency 0 Capabilities: [e0] Vendor Specific Information: Len=0c <?> Kernel driver in use: lpc_ich Kernel modules: lpc_ich00:1f.2 RAID bus controller: Intel Corporation 82801 SATA Controller [RAID mode] (rev 05) Subsystem: Intel Corporation Device 2002 Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 42 I/O ports at f0d0 [size=8] I/O ports at f0c0 [size=4] I/O ports at f0b0 [size=8] I/O ports at f0a0 [size=4] I/O ports at f060 [size=32] Memory at fe625000 (32-bit, non-prefetchable) [size=2K] Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit- Capabilities: [70] Power Management version 3 Capabilities: [a8] SATA HBA v1.0 Capabilities: [b0] PCI Advanced Features Kernel driver in use: ahci00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05) Subsystem: Intel Corporation Device 2002 Flags: medium devsel, IRQ 11 Memory at fe624000 (64-bit, non-prefetchable) [size=256] I/O ports at f040 [size=32] Kernel modules: i2c-i80101:00.0 PCI bridge: Integrated Technology Express, Inc. Device 8892 (rev 30) (prog-if 01 [Subtractive decode]) Flags: bus master, fast devsel, latency 0 Bus: primary=01, secondary=02, subordinate=02, sec-latency=32 Memory behind bridge: fe500000-fe5fffff Capabilities: [90] Power Management version 2 Capabilities: [a0] Subsystem: Intel Corporation Device 200202:00.0 Multimedia controller: Philips Semiconductors SAA7134/SAA7135HL Video Broadcast Decoder (rev 01) Subsystem: Philips Semiconductors SAA713x-based TV tuner card Flags: bus master, medium devsel, latency 32, IRQ 16 Memory at fe500000 (32-bit, non-prefetchable) [size=1K] Capabilities: [40] Power Management version 1 Kernel driver in use: saa7134 Kernel modules: saa713403:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 03) (prog-if 30 [XHCI]) Subsystem: Intel Corporation Device 2002 Flags: bus master, fast devsel, latency 0, IRQ 19 Memory at fe400000 (64-bit, non-prefetchable) [size=8K] Capabilities: [50] Power Management version 3 Capabilities: [70] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [90] MSI-X: Enable+ Count=8 Masked- Capabilities: [a0] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [140] Device Serial Number ff-ff-ff-ff-ff-ff-ff-ff Capabilities: [150] Latency Tolerance Reporting Kernel driver in use: xhci_hcd
А тепер результат "lspci -vvvnn -s 02:00.0"
02:00.0 Multimedia controller [0480]: Philips Semiconductors SAA7134/SAA7135HL Video Broadcast Decoder [1131:7134] (rev 01) Subsystem: Philips Semiconductors SAA713x-based TV tuner card [1131:0000] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 32 (3750ns min, 9500ns max) Interrupt: pin A routed to IRQ 16 Region 0: Memory at fe500000 (32-bit, non-prefetchable) [size=1K] Capabilities: [40] Power Management version 1 Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME- Kernel driver in use: saa7134 Kernel modules: saa7134
sudo modprobe -vr saa7134_dvbsudo modprobe -vr saa7134_alsasudo modprobe -vr saa7134sudo modprobe -v saa7134 card=17
sudo modprobe -vr saa7134_dvbWARNING: All config files need .conf: /etc/modprobe.d/saa7134, it will be ignored in a future release.WARNING: All config files need .conf: /etc/modprobe.d/aliases, it will be ignored in a future release.tomkat@bigbox:~$ sudo modprobe -vr saa7134_alsaWARNING: All config files need .conf: /etc/modprobe.d/saa7134, it will be ignored in a future release.WARNING: All config files need .conf: /etc/modprobe.d/aliases, it will be ignored in a future release.FATAL: Module saa7134_alsa is in use.tomkat@bigbox:~$ sudo modprobe -vr saa7134WARNING: All config files need .conf: /etc/modprobe.d/saa7134, it will be ignored in a future release.WARNING: All config files need .conf: /etc/modprobe.d/aliases, it will be ignored in a future release.FATAL: Module saa7134 is in use.tomkat@bigbox:~$ sudo modprobe -v saa7134 card=17WARNING: All config files need .conf: /etc/modprobe.d/saa7134, it will be ignored in a future release.WARNING: All config files need .conf: /etc/modprobe.d/aliases, it will be ignored in a future release.
sudo echo "option saa7134 card=17" > /etc/modules.d/saa7134
sudo dmesg|grep saa7134[ 5.781744] saa7134[0]: found at 0000:02:00.0, rev: 1, irq: 16, latency: 32, mmio: 0xfe500000[ 5.781753] saa7134[0]: subsystem: 1131:0000, board: LifeView FlyVIDEO3000 [card=2,insmod option][ 5.781769] saa7134[0]: board init: gpio is c000[ 5.781769] saa7134[0]: there are different flyvideo cards with different tuners[ 5.781769] saa7134[0]: out there, you might have to use the tuner=<nr> insmod[ 5.781769] saa7134[0]: option to override the default value.[ 5.861190] input: saa7134 IR (LifeView FlyVIDEO30 as /devices/pci0000:00/0000:00:1c.0/0000:01:00.0/0000:02:00.0/rc/rc0/input7[ 5.861241] rc0: saa7134 IR (LifeView FlyVIDEO30 as /devices/pci0000:00/0000:00:1c.0/0000:01:00.0/0000:02:00.0/rc/rc0[ 5.965053] saa7134[0]: Huh, no eeprom present (err=-5)?[ 5.988791] saa7134[0]: i2c scan: found device @ 0xc0 [tuner (analog)][ 6.256401] saa7134[0]: registered device video1 [v4l2][ 6.256475] saa7134[0]: registered device vbi0[ 6.256508] saa7134[0]: registered device radio1[ 6.258260] saa7134 ALSA driver for DMA sound loaded[ 6.258276] saa7134[0]/alsa: saa7134[0] at 0xfe500000 irq 16 registered as card -2
sudo echo "option saa7134 i2c_scan=1" > /etc/modules.d/saa7134
options saa7134 secam=d alsa=1 card=102 gbuffers=4 i2c_scan=1 radio_nr=1