Passing Hauppauge TV Tuner to Plex container

After lots of testing I ended up running Plex in a container (the experimental container option not a custom app) and everything is running except my Hauppauge USB TV Tuner.

I’ve added the USB device on the container page, but after restarting the container I don’t see /dev/dvb in the container shell and therefore Plex can’t see the tuner. Being a container there aren’t a lot of available configuration options like apps and custom apps. I tried the chmod -R 666 /dev/dvb that fixed my Intel ARC passthrough issues, but still no luck.

I checked other posts and they all suggest fixes that aren’t available when using the container. I’m running TrueNAS 25.10.4.

Any suggestions of what i should look at next?

If you check the kernel logs (dmesg), it should tell you that it cannot find the firmware for the tuner (at least in my case it did). As TrueNAS does not bundle the firmware, fixing this is a bit of a hack.

I used the firmware form here: GitHub - satori99/dual-tv-firmware: Linux firmeware for Hauppauge Dual TV Tuner (USB) · GitHub → dvb-demod-si2168-d60-01.fw for my Hauppauge WinTV-Solo, put it in /lib/firmware and it worked. Keep it mind that you would have to do this after each update.

You can check for your device’s specific firmware on the Internet. The kernel logs should tell you exactly what to search for.

Thank you for the reply.

I forgot to mention in my original post that I checked the console in the GUI when I installed the card and saw no errors. The /dev/dvb devices are available on the system but when i add the USB device to the container i don’t see /dev/dvb in the container shell.

The threads i read about the firmware issue mention Plex seeing the tuner but not finding channels when scanned, but i’m not even there yet.

Here are the TrueNAS kern.log entries from when i plugged in the tuner:

Jul 22 13:54:27 truenas kernel: usb 2-1.2: new high-speed USB device number 3 using ehci-pci
Jul 22 13:54:27 truenas kernel: usb 2-1.2: New USB device found, idVendor=2040, idProduct=826d, bcdDevice= 1.00
Jul 22 13:54:27 truenas kernel: usb 2-1.2: New USB device strings: Mfr=3, Product=1, SerialNumber=2
Jul 22 13:54:27 truenas kernel: usb 2-1.2: Product: 955D
Jul 22 13:54:27 truenas kernel: usb 2-1.2: Manufacturer: HCW
Jul 22 13:54:27 truenas kernel: usb 2-1.2: SerialNumber: 0014457689
Jul 22 13:54:27 truenas kernel: mc: Linux media interface: v0.10
Jul 22 13:54:27 truenas kernel: videodev: Linux video capture interface: v2.00
Jul 22 13:54:27 truenas kernel: em28xx 2-1.2:1.0: New device HCW 955D @ 480 Mbps (2040:826d, interface 0, class 0)
Jul 22 13:54:27 truenas kernel: em28xx 2-1.2:1.0: DVB interface 0 found: bulk
Jul 22 13:54:27 truenas kernel: em28xx 2-1.2:1.0: chip ID is em28174
Jul 22 13:54:28 truenas kernel: em28xx 2-1.2:1.0: EEPROM ID = 26 00 01 00, EEPROM hash = 0xfa990d4e
Jul 22 13:54:28 truenas kernel: em28xx 2-1.2:1.0: EEPROM info:
Jul 22 13:54:28 truenas kernel: em28xx 2-1.2:1.0:       microcode start address = 0x0004, boot configuration = 0x01
Jul 22 13:54:28 truenas kernel: em28xx 2-1.2:1.0:       AC97 audio (5 sample rates)
Jul 22 13:54:28 truenas kernel: em28xx 2-1.2:1.0:       500mA max power
Jul 22 13:54:28 truenas kernel: em28xx 2-1.2:1.0:       Table at offset 0x27, strings=0x0a72, 0x187c, 0x086a
Jul 22 13:54:28 truenas kernel: em28xx 2-1.2:1.0: Identified as Hauppauge WinTV-dualHD 01595 ATSC/QAM (card=100)
Jul 22 13:54:28 truenas kernel: tveeprom: Hauppauge model 204201, rev C2I6, serial# 14457689
Jul 22 13:54:28 truenas kernel: tveeprom: tuner model is SiLabs Si2157 (idx 186, type 4)
Jul 22 13:54:28 truenas kernel: tveeprom: TV standards PAL(B/G) NTSC(M) PAL(I) SECAM(L/L') PAL(D/D1/K) ATSC/DVB Digital (eeprom 0xfc)
Jul 22 13:54:28 truenas kernel: tveeprom: audio processor is None (idx 0)
Jul 22 13:54:28 truenas kernel: tveeprom: has no radio, has IR receiver, has no IR transmitter
Jul 22 13:54:28 truenas kernel: em28xx 2-1.2:1.0: dvb set to bulk mode.
Jul 22 13:54:28 truenas kernel: em28xx 2-1.2:1.0: chip ID is em28174
Jul 22 13:54:29 truenas kernel: em28xx 2-1.2:1.0: EEPROM ID = 26 00 01 00, EEPROM hash = 0xfa990d4e
Jul 22 13:54:29 truenas kernel: em28xx 2-1.2:1.0: EEPROM info:
Jul 22 13:54:29 truenas kernel: em28xx 2-1.2:1.0:       microcode start address = 0x0004, boot configuration = 0x01
Jul 22 13:54:29 truenas kernel: em28xx 2-1.2:1.0:       AC97 audio (5 sample rates)
Jul 22 13:54:29 truenas kernel: em28xx 2-1.2:1.0:       500mA max power
Jul 22 13:54:29 truenas kernel: em28xx 2-1.2:1.0:       Table at offset 0x27, strings=0x0a72, 0x187c, 0x086a
Jul 22 13:54:29 truenas kernel: em28xx 2-1.2:1.0: Identified as Hauppauge WinTV-dualHD 01595 ATSC/QAM (card=100)
Jul 22 13:54:29 truenas kernel: tveeprom: Hauppauge model 204201, rev C2I6, serial# 14457689
Jul 22 13:54:29 truenas kernel: tveeprom: tuner model is SiLabs Si2157 (idx 186, type 4)
Jul 22 13:54:29 truenas kernel: tveeprom: TV standards PAL(B/G) NTSC(M) PAL(I) SECAM(L/L') PAL(D/D1/K) ATSC/DVB Digital (eeprom 0xfc)
Jul 22 13:54:29 truenas kernel: tveeprom: audio processor is None (idx 0)
Jul 22 13:54:29 truenas kernel: tveeprom: has no radio, has IR receiver, has no IR transmitter
Jul 22 13:54:29 truenas kernel: em28xx 2-1.2:1.0: dvb ts2 set to bulk mode.
Jul 22 13:54:30 truenas kernel: usbcore: registered new interface driver em28xx
Jul 22 13:54:30 truenas kernel: em28xx 2-1.2:1.0: Binding DVB extension
Jul 22 13:54:30 truenas kernel: i2c i2c-13: Added multiplexed i2c bus 16
Jul 22 13:54:30 truenas kernel: lgdt3306a 13-0059: LG Electronics LGDT3306A successfully identified
Jul 22 13:54:30 truenas kernel: si2157 16-0060: Silicon Labs Si2157 successfully attached
Jul 22 13:54:30 truenas kernel: dvbdev: DVB: registering new adapter (2-1.2:1.0)
Jul 22 13:54:30 truenas kernel: em28xx 2-1.2:1.0: DVB: registering adapter 0 frontend 0 (LG Electronics LGDT3306A VSB/QAM Frontend)...
Jul 22 13:54:30 truenas kernel: dvbdev: dvb_create_media_entity: media entity 'LG Electronics LGDT3306A VSB/QAM Frontend' registered.
Jul 22 13:54:30 truenas kernel: dvbdev: dvb_create_media_entity: media entity 'dvb-demux' registered.
Jul 22 13:54:30 truenas kernel: em28xx 2-1.2:1.0: DVB extension successfully initialized
Jul 22 13:54:30 truenas kernel: em28xx 2-1.2:1.0: Binding DVB extension
Jul 22 13:54:30 truenas kernel: i2c i2c-15: Added multiplexed i2c bus 17
Jul 22 13:54:30 truenas kernel: lgdt3306a 15-000e: LG Electronics LGDT3306A successfully identified
Jul 22 13:54:30 truenas kernel: si2157 17-0062: Silicon Labs Si2157 successfully attached
Jul 22 13:54:30 truenas kernel: dvbdev: DVB: registering new adapter (2-1.2:1.0)
Jul 22 13:54:30 truenas kernel: em28xx 2-1.2:1.0: DVB: registering adapter 1 frontend 0 (LG Electronics LGDT3306A VSB/QAM Frontend)...
Jul 22 13:54:30 truenas kernel: dvbdev: dvb_create_media_entity: media entity 'LG Electronics LGDT3306A VSB/QAM Frontend' registered.
Jul 22 13:54:30 truenas kernel: dvbdev: dvb_create_media_entity: media entity 'dvb-demux' registered.
Jul 22 13:54:30 truenas kernel: em28xx 2-1.2:1.0: DVB extension successfully initialized
Jul 22 13:54:30 truenas kernel: em28xx: Registered (Em28xx dvb Extension) extension
Jul 22 13:54:30 truenas kernel: Registered IR keymap rc-hauppauge
Jul 22 13:54:30 truenas kernel: rc rc0: Hauppauge WinTV-dualHD 01595 ATSC/QAM as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/rc/rc0
Jul 22 13:54:30 truenas kernel: rc rc0: lirc_dev: driver em28xx registered at minor = 0, scancode receiver, no transmitter
Jul 22 13:54:30 truenas kernel: input: Hauppauge WinTV-dualHD 01595 ATSC/QAM as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/rc/rc0/input11
Jul 22 13:54:30 truenas kernel: em28xx 2-1.2:1.0: Input extension successfully initialized
Jul 22 13:54:30 truenas kernel: em28xx 2-1.2:1.0: Remote control support is not available for this card.
Jul 22 13:54:30 truenas kernel: em28xx: Registered (Em28xx Input Extension) extension



As a test i installed Plex as a TrueNAS app and passed it /dev/dvb/adapter0. Plex immediately found the USB TV Tuner, scanned channels all without issue and i’m able to stream live tv.

So I’m back to the tuner and /dev/dvb not being passed to the container.

Found the following when looking at the logs on the container using journalctl:

Jul 22 21:14:26 Plex udevadm[136]: dvb_core: Failed to write 'add' to '/sys/module/dvb_core/uevent': Permission denied
Jul 22 21:14:26 Plex udevadm[136]: em28xx_dvb: Failed to write 'add' to '/sys/module/em28xx_dvb/uevent': Permission denied
Jul 22 21:14:28 Plex udevadm[165]: dvb0.demux0: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/dvb/dvb0.demux0/uevent': Permission denied
Jul 22 21:14:28 Plex udevadm[165]: dvb0.dvr0: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/dvb/dvb0.dvr0/uevent': Permission denied
Jul 22 21:14:28 Plex udevadm[165]: dvb0.frontend0: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/dvb/dvb0.frontend0/uevent': Permission denied
Jul 22 21:14:28 Plex udevadm[165]: dvb0.net0: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/dvb/dvb0.net0/uevent': Permission denied
Jul 22 21:14:28 Plex udevadm[165]: dvb1.demux0: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/dvb/dvb1.demux0/uevent': Permission denied
Jul 22 21:14:28 Plex udevadm[165]: dvb1.dvr0: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/dvb/dvb1.dvr0/uevent': Permission denied
Jul 22 21:14:28 Plex udevadm[165]: dvb1.frontend0: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/dvb/dvb1.frontend0/uevent': Permission denied
Jul 22 21:14:28 Plex udevadm[165]: dvb1.net0: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/dvb/dvb1.net0/uevent': Permission denied

To further test this I created containers with different OS and passed the Tuner USB to see if maybe it was an image or host OS issue and they all gavethe same udevadm errors. Tried Debian bookworm, centos, fedora, alpine and ubuntu.

Getting back to this and looking at ways to trouble shoot i noticed when i run ‘udevadm trigger’ outputs tons of “XYZ: Failed to write ‘change’ to ‘/sys/devices/XYZ/uevent’: Permission denied” for everything including tty, scsi_tmf_0, vcsu6, cooling_device, intel-rapl, vhost-net, vga_arbiter, urandom, zfs, memory*, and on and on. So many errors it overflows the container shell buffer in the TrueNAS GUI.

yeah host /dev/dvb + the app scanning channels means the tuner is up. experimental containers only pass the usb device for me, so /dev/dvb never shows inside the shell

id try
-ls -l /dev/dvb/adapter0 on the host
-bind mount those char nodes into the container (frontend0 demux0 dvr0)
-kick it privileged once to confirm, then lock it back down to /dev/dvb/*

if the container ui wont take char devices, keep the app install that already scanned, or a custom app / compose with
device:

  • /dev/dvb/adapter0

Figured it out.

sudo incus config device add MyContainer dvb0 unix-char source=/dev/dvb/adapter0/frontend0 path=/dev/dvb/adapter0/frontend0 mode=0666
sudo incus config device add MyContainer dvb1 unix-char source=/dev/dvb/adapter0/demux0   path=/dev/dvb/adapter0/demux0   mode=0666
sudo incus config device add MyContainer dvb2 unix-char source=/dev/dvb/adapter0/dvr0     path=/dev/dvb/adapter0/dvr0     mode=0666
sudo incus config device add MyContainer dvb3 unix-char source=/dev/dvb/adapter0/net0     path=/dev/dvb/adapter0/net0     mode=0666
sudo incus config device add MyContainer dvb4 unix-char source=/dev/dvb/adapter1/frontend0 path=/dev/dvb/adapter1/frontend0 mode=0666
sudo incus config device add MyContainer dvb5 unix-char source=/dev/dvb/adapter1/demux0   path=/dev/dvb/adapter1/demux0   mode=0666
sudo incus config device add MyContainer dvb6 unix-char source=/dev/dvb/adapter1/dvr0     path=/dev/dvb/adapter1/dvr0     mode=0666
sudo incus config device add MyContainer dvb7 unix-char source=/dev/dvb/adapter1/net0     path=/dev/dvb/adapter1/net0     mode=0666

As soon as i ran those commands plex was able to find the tuner.

Check whether /dev/dvb exists on the TrueNAS host first. If it does but not inside the container, the problem is likely device passthrough or permissions—the experimental container may not be exposing the DVB device nodes correctly.