Bug#928357: vdr: VDR ist started before DVB device is ready
Helmar Gerloni
helmar at gerloni.net
Thu May 2 18:45:35 BST 2019
Package: vdr
Version: 2.4.0-1+b1
Severity: normal
Tags: patch
Dear Maintainer,
during system startup VDR is mostly started before the DVB device is ready (USB Hauppauge WinTV-dualHD DVB). VDR then exits with an error. You can see this in /var/log/messages:
Apr 30 20:51:21 cslbox vdr: [473] VDR version 2.4.0 started
Apr 30 20:51:21 cslbox vdr: [473] switched to user 'vdr'
Apr 30 20:51:21 cslbox vdr: [473] codeset is 'UTF-8' - known
Apr 30 20:51:21 cslbox vdr: [473] loading plugin: /usr/lib/vdr/plugins/libvdr-vnsiserver.so.2.4.0
Apr 30 20:51:21 cslbox vdr: [473] loading /var/lib/vdr/setup.conf
Apr 30 20:51:21 cslbox vdr: [473] loading /var/lib/vdr/sources.conf
Apr 30 20:51:21 cslbox vdr: [473] loading /var/lib/vdr/diseqc.conf
Apr 30 20:51:21 cslbox vdr: [473] loading /var/lib/vdr/scr.conf
Apr 30 20:51:21 cslbox vdr: [473] loading /var/lib/vdr/channels.conf
Apr 30 20:51:21 cslbox vdr: [473] loading /var/lib/vdr/commands.conf
Apr 30 20:51:21 cslbox vdr: [473] loading /var/lib/vdr/reccmds.conf
Apr 30 20:51:21 cslbox vdr: [473] loading /var/lib/vdr/svdrphosts.conf
Apr 30 20:51:21 cslbox vdr: [473] loading /var/lib/vdr/keymacros.conf
Apr 30 20:51:21 cslbox vdr: [473] no DVB device found
Apr 30 20:51:21 cslbox vdr: [473] initializing plugin: vnsiserver (1.6.0): VDR-Network-Streaming-Interface (VNSI) Server
Apr 30 20:51:21 cslbox vdr: [473] deleting plugin: vnsiserver
Apr 30 20:51:21 cslbox vdr: [473] exiting, exit code 2
Apr 30 20:51:22 cslbox kernel: [ 7.745194] em28xx 1-2:1.0: EEPROM ID = 26 00 01 00, EEPROM hash = 0x36e7cbc8
Apr 30 20:51:22 cslbox kernel: [ 7.745199] em28xx 1-2:1.0: EEPROM info:
Apr 30 20:51:22 cslbox kernel: [ 7.745202] em28xx 1-2:1.0: microcode start address = 0x0004, boot configuration = 0x01
Apr 30 20:51:22 cslbox kernel: [ 7.751972] em28xx 1-2:1.0: AC97 audio (5 sample rates)
Apr 30 20:51:22 cslbox kernel: [ 7.751978] em28xx 1-2:1.0: 500mA max power
Apr 30 20:51:22 cslbox kernel: [ 7.751983] em28xx 1-2:1.0: Table at offset 0x27, strings=0x0e6a, 0x1888, 0x087e
Apr 30 20:51:22 cslbox kernel: [ 7.810633] em28xx 1-2:1.0: Identified as Hauppauge WinTV-dualHD DVB (card=99)
Apr 30 20:51:22 cslbox kernel: [ 7.816201] tveeprom: Hauppauge model 204109, rev B3I6, serial# 13908624
Apr 30 20:51:22 cslbox kernel: [ 7.816208] tveeprom: tuner model is SiLabs Si2157 (idx 186, type 4)
Apr 30 20:51:22 cslbox kernel: [ 7.816212] tveeprom: TV standards PAL(B/G) NTSC(M) PAL(I) SECAM(L/L') PAL(D/D1/K) ATSC/DVB Digital (eeprom 0xfc)
Apr 30 20:51:22 cslbox kernel: [ 7.816215] tveeprom: audio processor is None (idx 0)
Apr 30 20:51:22 cslbox kernel: [ 7.816217] tveeprom: has no radio, has IR receiver, has no IR transmitter
Apr 30 20:51:22 cslbox kernel: [ 7.816228] em28xx 1-2:1.0: dvb ts2 set to isoc mode.
Apr 30 20:51:22 cslbox kernel: [ 8.015316] usbcore: registered new interface driver em28xx
Apr 30 20:51:22 cslbox kernel: [ 8.175093] em28xx 1-2:1.0: Binding DVB extension
Apr 30 20:51:22 cslbox kernel: [ 8.185623] i2c i2c-7: Added multiplexed i2c bus 10
Apr 30 20:51:22 cslbox kernel: [ 8.185628] si2168 7-0064: Silicon Labs Si2168-B40 successfully identified
Apr 30 20:51:22 cslbox kernel: [ 8.185630] si2168 7-0064: firmware version: B 4.0.2
Apr 30 20:51:22 cslbox kernel: [ 8.194254] si2157 10-0060: Silicon Labs Si2147/2148/2157/2158 successfully attached
Apr 30 20:51:22 cslbox kernel: [ 8.194693] dvbdev: DVB: registering new adapter (1-2:1.0)
Apr 30 20:51:22 cslbox kernel: [ 8.194702] em28xx 1-2:1.0: DVB: registering adapter 0 frontend 0 (Silicon Labs Si2168)...
Apr 30 20:51:22 cslbox kernel: [ 8.198994] em28xx 1-2:1.0: DVB extension successfully initialized
Apr 30 20:51:22 cslbox kernel: [ 8.199000] em28xx 1-2:1.0: Binding DVB extension
Apr 30 20:51:22 cslbox kernel: [ 8.205710] i2c i2c-9: Added multiplexed i2c bus 11
Apr 30 20:51:22 cslbox kernel: [ 8.205716] si2168 9-0067: Silicon Labs Si2168-B40 successfully identified
Apr 30 20:51:22 cslbox kernel: [ 8.205718] si2168 9-0067: firmware version: B 4.0.2
Apr 30 20:51:22 cslbox kernel: [ 8.211156] si2157 11-0063: Silicon Labs Si2147/2148/2157/2158 successfully attached
Apr 30 20:51:22 cslbox kernel: [ 8.211201] dvbdev: DVB: registering new adapter (1-2:1.0)
Apr 30 20:51:22 cslbox kernel: [ 8.211214] em28xx 1-2:1.0: DVB: registering adapter 1 frontend 0 (Silicon Labs Si2168)...
Apr 30 20:51:22 cslbox kernel: [ 8.212526] em28xx 1-2:1.0: DVB extension successfully initialized
Apr 30 20:51:22 cslbox kernel: [ 8.212531] em28xx: Registered (Em28xx dvb Extension) extension
Apr 30 20:51:22 cslbox kernel: [ 8.225141] r8169 0000:01:00.0: firmware: direct-loading firmware rtl_nic/rtl8168g-2.fw
Apr 30 20:51:22 cslbox kernel: [ 8.225385] Generic PHY r8169-100:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=r8169-100:00, irq=IGNORE)
Apr 30 20:51:22 cslbox kernel: [ 8.226573] em28xx 1-2:1.0: Registering input extension
Apr 30 20:51:22 cslbox kernel: [ 8.258393] Registered IR keymap rc-hauppauge
Apr 30 20:51:22 cslbox kernel: [ 8.259245] rc rc0: 1-2:1.0 IR as /devices/pci0000:00/0000:00:15.0/usb1/1-2/1-2:1.0/rc/rc0
Apr 30 20:51:22 cslbox kernel: [ 8.259328] input: 1-2:1.0 IR as /devices/pci0000:00/0000:00:15.0/usb1/1-2/1-2:1.0/rc/rc0/input15
Apr 30 20:51:22 cslbox kernel: [ 8.259602] rc rc0: lirc_dev: driver em28xx registered at minor = 0, scancode receiver, no transmitter
Apr 30 20:51:22 cslbox kernel: [ 8.259605] em28xx 1-2:1.0: Input extension successfully initialized
Apr 30 20:51:22 cslbox kernel: [ 8.259609] em28xx 1-2:1.0: Remote control support is not available for this card.
Apr 30 20:51:22 cslbox kernel: [ 8.259610] em28xx: Registered (Em28xx Input Extension) extension
I tried the fix suggested in https://github.com/VDR4Arch/vdr4arch/issues/18#issuecomment-16367463 and it workes just fine; with this patch VDR is always running after a reboot:
# diff -u /lib/systemd/system/vdr.service.orig /lib/systemd/system/vdr.service
--- /lib/systemd/system/vdr.service.orig 2018-04-15 18:47:21.000000000 +0200
+++ /lib/systemd/system/vdr.service 2019-05-02 11:25:08.305147345 +0200
@@ -1,6 +1,9 @@
[Unit]
Description=Video Disk Recorder
+Wants=systemd-udev-settle.service
+After=systemd-udev-settle.service
+
[Service]
Type=notify
ExecStartPre=/bin/sh /usr/lib/vdr/merge-commands.sh "commands"
-- System Information:
Debian Release: buster/sid
APT prefers testing-proposed-updates
APT policy: (500, 'testing-proposed-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages vdr depends on:
ii adduser 3.118
ii debconf [debconf-2.0] 1.5.71
ii libc6 2.28-8
ii libcap2 1:2.25-2
ii libfontconfig1 2.13.1-2
ii libfreetype6 2.9.1-3
ii libgcc1 1:8.3.0-6
ii libjpeg62-turbo 1:1.5.2-2+b1
ii libstdc++6 8.3.0-6
ii libsystemd0 241-3
ii lsb-base 10.2019031300
Versions of packages vdr recommends:
pn lirc <none>
ii ttf-bitstream-vera 1.10-8
Versions of packages vdr suggests:
pn vdr-plugin-dvbsddevice <none>
-- Configuration Files:
/etc/vdr/conf.d/00-vdr.conf changed:
[vdr]
--video=/var/lib/data/vdr-recordings
--config=/var/lib/vdr
--lib=/usr/lib/vdr/plugins
--record=/usr/lib/vdr/vdr-recordingaction
--epgfile=/var/cache/vdr/epg.data
--user=vdr
--grab=/tmp
--port=6419
--watchdog=60
--vfat
-- debconf information:
* vdr/create_video_dir: false
* vdr/select_dvb_card: Terrestrial
More information about the pkg-vdr-dvb-devel
mailing list