Hi Folks!
I’m running TVHeadend on a Raspberry Pi – generally works great. The problem is randomly the tuner will turn off: might run fine for a week, might turn off and need to be rebooted several times in an hour. (I’m rebooting the tuner, not the Pi.)
Hardware/software Details:
Raspberry Pi: RPi 5, 8 GB, Trixie
Wall wart is ‘official’, plugged into a UPS
Running TVHeadend ( 4.3-2631g7c4011de1 ) in a Docker
Tuner is a Hauppauge HVR-955Q
As I mentioned, randomly the tuner will turn off – the green LED (think it’s green: I’m colourblind – the LED towards the bottom/USB end). lsusb says it’s still connected. I haven’t found anything in software detection which indicates it is ‘missing’ – would be nice as then could do something to automatically reset. (Probably some magical command line check I’ve missed)
For now what I’m doing is whenever I see the LED is off run this script:
#!/bin/sh
#
# Reset the Hauppauge HVR-955Q Tuner (when LEDs off)
#
# Create date variables
DATE0=$(date +"%Y-%m-%d")
echo "Today is $DATE0!!"
echo " "
# docker stop tvheadend && sudo usbreset 2040:b123 && docker start tvheadend
MSG="Shutting down TVHeadend."
echo "\n $MSG" | gxmessage -ontop -timeout 3 -fn 'sans 15' -bg red -fg black -file -
docker stop tvheadend &&
MSG="Resetting the Hauppauge HVR-9950 Tuner."
echo "\n $MSG" | gxmessage -ontop -timeout 3 -fn 'sans 15' -bg yellow -fg black -file -
sudo usbreset 2040:b123 &&
MSG="Restarting TVHeadend."
echo "\n $MSG" | gxmessage -ontop -timeout 3 -fn 'sans 15' -bg green -fg white -file -
docker start tvheadend # works -- tying to get logging auto-start
MSG=" Should be good to go!"
echo "\n $MSG" | gxmessage -ontop -timeout 3 -fn 'sans 15' -bg white -fg blue -file -
It may not be the best script but it gets the job done! - And of course I don’t do the reboot when PlutoTV is recording. As I said, I’m not sure what is causing the tuner to turn off. Would signal fluctuations possibly cause (the same propagation issues as causes pixelation)? There seems to be some correlation but again not always.
Thanks for the assistance!
Barry