Re: Making VDR run under Systemd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mon, Oct 18, 2021 at 11:44:32PM +0300, glenvt18 wrote:
What is the output of

   lsof | grep frontend

when VDR is in the "idle" state?

I produced some output from /proc/$(pgrep vdr)/fd which I think might be more helpful. The last-but-one "ls" output was "too soon" after I started and paused the recording, so VDR was still in normal mode.

In case you wonder, the connection between lircd and vdr did not work last time I tried, and probably also not this time. That is why I used telnet to the SVDRP port.

The last "ls" command was when VDR was expected to be idle (after 1-minute timeout, instead of the 15-minute timeout of your patch). I ran the command once more after a while, and the output remained identical.

Note that this USB DVB-T stick has two frontends for the same aerial connector. I think that one is for DVB-T and another for DVB-T2. You can see that "frontend1" was replaced with "frontend0" in the not-quite-idle mode.

I am happy to try a revised patch, and I can also use GDB ("thread apply all backtrace" and such) if that is needed.

This was the latest commit 0d50ec57f50375c8fda92d117e348dd8fd5a77a9 ("Version 2.5.6") from http://git.tvdr.de/vdr.git with only your patch on top (and the 15-minute timeout changed to 1 minute).

Best regards,

	Marko

pi@raspberrypi:~ $ sudo service lircd start
pi@raspberrypi:~ $ pgrep lircd
3811
pi@raspberrypi:~ $ sudo ls -l /proc/3811/fd
yhteensä 0
lr-x------ 1 root root 64 loka  20 21:37 0 -> /dev/null
lrwx------ 1 root root 64 loka  20 21:37 1 -> socket:[47310]
lrwx------ 1 root root 64 loka  20 21:37 2 -> socket:[47310]
lrwx------ 1 root root 64 loka  20 21:37 3 -> socket:[49360]
lrwx------ 1 root root 64 loka  20 21:37 4 -> socket:[47311]
lrwx------ 1 root root 64 loka  20 21:37 5 -> /run/lirc/lircd.pid
lr-x------ 1 root root 64 loka  20 21:37 6 -> /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/rc/rc0/protocols
lr-x------ 1 root root 64 loka  20 21:37 7 -> /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/rc/rc0/protocols
pi@raspberrypi:~ $ sudo service vdr start
pi@raspberrypi:~ $ sudo lsof /dev/dvb/adapter0/*
COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF  NODE NAME
vdr     3878  vdr    7u   CHR  212,3      0t0 42703 /dev/dvb/adapter0/frontend0
pi@raspberrypi:~ $ sudo ls -l /proc/3878/fd
yhteensä 0
lr-x------ 1 root root 64 loka  20 21:37 0 -> /dev/null
lrwx------ 1 root root 64 loka  20 21:37 1 -> socket:[48975]
lrwx------ 1 root root 64 loka  20 21:37 10 -> socket:[49006]
lrwx------ 1 root root 64 loka  20 21:37 11 -> /dev/dvb/adapter0/demux0
lrwx------ 1 root root 64 loka  20 21:37 12 -> /dev/dvb/adapter0/demux0
lrwx------ 1 root root 64 loka  20 21:37 13 -> /dev/dvb/adapter0/demux0
lrwx------ 1 root root 64 loka  20 21:37 14 -> /dev/dvb/adapter0/demux0
lrwx------ 1 root root 64 loka  20 21:37 15 -> /dev/dvb/adapter0/demux0
lrwx------ 1 root root 64 loka  20 21:37 16 -> /dev/dvb/adapter0/demux0
lrwx------ 1 root root 64 loka  20 21:37 17 -> /dev/dvb/adapter0/demux0
lrwx------ 1 root root 64 loka  20 21:37 18 -> /dev/dvb/adapter0/demux0
lrwx------ 1 root root 64 loka  20 21:37 2 -> socket:[48975]
lrwx------ 1 root root 64 loka  20 21:37 3 -> socket:[48980]
lrwx------ 1 root root 64 loka  20 21:37 4 -> /dev/dvb/adapter0/frontend1
lrwx------ 1 root root 64 loka  20 21:37 5 -> /dev/vchiq
lrwx------ 1 root root 64 loka  20 21:37 6 -> socket:[49005]
lrwx------ 1 root root 64 loka  20 21:37 7 -> /dev/dvb/adapter0/demux0
lrwx------ 1 root root 64 loka  20 21:37 8 -> /dev/dvb/adapter0/demux0
lr-x------ 1 root root 64 loka  20 21:37 9 -> /dev/dvb/adapter0/dvr0
pi@raspberrypi:~ $ telnet localhost 6419
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 raspberrypi SVDRP VideoDiskRecorder 2.5.6; Wed Oct 20 21:40:00 2021; UTF-8
hitk menu
250 Key "menu" accepted
hitk 4
250 Key "4" accepted
hitk red
250 Key "red" accepted
hitk pause
250 Key "pause" accepted
quit
221 raspberrypi closing connection
Connection closed by foreign host.
pi@raspberrypi:~ $ date
ke 20.10.2021 21.40.45 +0300
pi@raspberrypi:~ $ sudo ls -l /proc/3878/fd
yhteensä 0
lr-x------ 1 root root 64 loka  20 21:37 0 -> /dev/null
lrwx------ 1 root root 64 loka  20 21:37 1 -> socket:[48975]
lrwx------ 1 root root 64 loka  20 21:37 10 -> socket:[49006]
lrwx------ 1 root root 64 loka  20 21:37 13 -> /dev/dvb/adapter0/demux0
lrwx------ 1 root root 64 loka  20 21:37 14 -> /dev/dvb/adapter0/demux0
lrwx------ 1 root root 64 loka  20 21:37 15 -> /dev/dvb/adapter0/demux0
lrwx------ 1 root root 64 loka  20 21:37 16 -> /dev/dvb/adapter0/demux0
lrwx------ 1 root root 64 loka  20 21:37 17 -> /dev/dvb/adapter0/demux0
lrwx------ 1 root root 64 loka  20 21:37 2 -> socket:[48975]
lrwx------ 1 root root 64 loka  20 21:37 3 -> socket:[48980]
lrwx------ 1 root root 64 loka  20 21:37 4 -> /dev/dvb/adapter0/frontend1
lrwx------ 1 root root 64 loka  20 21:37 5 -> /dev/vchiq
lrwx------ 1 root root 64 loka  20 21:37 6 -> socket:[49005]
lr-x------ 1 root root 64 loka  20 21:37 7 -> /var/lib/video/XXX/2019-01-05.19.07.19-0.rec/00001.ts
pi@raspberrypi:~ $ date
ke 20.10.2021 21.41.17 +0300
pi@raspberrypi:~ $ sudo ls -l /proc/3878/fd
yhteensä 0
lr-x------ 1 root root 64 loka  20 21:37 0 -> /dev/null
lrwx------ 1 root root 64 loka  20 21:37 1 -> socket:[48975]
lrwx------ 1 root root 64 loka  20 21:37 10 -> socket:[49006]
lrwx------ 1 root root 64 loka  20 21:37 11 -> /dev/dvb/adapter0/demux0
lrwx------ 1 root root 64 loka  20 21:37 12 -> /dev/dvb/adapter0/demux0
lrwx------ 1 root root 64 loka  20 21:37 13 -> /dev/dvb/adapter0/demux0
lrwx------ 1 root root 64 loka  20 21:37 2 -> socket:[48975]
lrwx------ 1 root root 64 loka  20 21:37 3 -> socket:[48980]
lrwx------ 1 root root 64 loka  20 21:37 4 -> /dev/dvb/adapter0/frontend0
lrwx------ 1 root root 64 loka  20 21:37 5 -> /dev/vchiq
lrwx------ 1 root root 64 loka  20 21:37 6 -> socket:[49005]
lr-x------ 1 root root 64 loka  20 21:37 7 -> /var/lib/video/XXX/2019-01-05.19.07.19-0.rec/00001.ts
lrwx------ 1 root root 64 loka  20 21:37 8 -> /dev/dvb/adapter0/demux0
lrwx------ 1 root root 64 loka  20 21:37 9 -> /dev/dvb/adapter0/demux0

_______________________________________________
vdr mailing list
vdr@xxxxxxxxxxx
https://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr




[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux