[mythtv-users] HDHomeRun issues following OS upgrade to Ubuntu 18.04 from 16.04

Stephen Worthington stephen_agent at jsw.gen.nz
Fri Aug 28 10:05:02 UTC 2020


On Fri, 28 Aug 2020 11:33:06 +0200, you wrote:

>Hi.
>
>I have just upgraded the operating system on my backend machine to
>Ubuntu 18.04 from 16.04. The MythTV version before and after the OS
>upgrade is the same: 0.29 from the Mythbuntu PPA.
>
>Once I fixed the LIRC problem (by running Stephen Worthington's script
>and also changing the LIRC driver to default instead of devinput) I
>could record and channel-change from my PVRUSB2 tuners.
>
>My HDHR tuners are another matter: when I open Live TV and change input
>to one of the HDHR tuners I get a picture, but when I try and change to
>another channel I get a timeout after 20 seconds. I change channels from
>an event script thusly, and this worked fine before the upgrade:
>
>#!/bin/bash
>
># Call as event script with parameters %CARDID% and %CHANID%
>
># Parameters
>OURSOURCEID=4
>OURDVBCMOD=a8qam256-6875
>OURHDHRDEVICE=1420577E
>
>/usr/bin/logger $0: $*
>if [ "$1" == "%CARDID%" ] ; then
>   exit 0
>fi
>
>SOURCEID=`/usr/bin/mysql -umythtv -pmythtv -s -N -e "SELECT sourceid
>FROM capturecard WHERE cardid=$1;" mythconverg`
>
>if [ "$SOURCEID" != "$OURSOURCEID" ] ; then
>  exit 0
>fi
>
>MPLEXID=`/usr/bin/mysql -umythtv -pmythtv -s -N -e "SELECT mplexid FROM
>channel WHERE chanid=$2 AND sourceid=$SOURCEID;" mythconverg`
>
>FREQ=`/usr/bin/mysql -umythtv -pmythtv -s -N -e "SELECT frequency FROM
>dtv_multiplex WHERE mplexid=$MPLEXID;" mythconverg`
>
>TUNER=`/usr/bin/mysql -umythtv -pmythtv -s -N -e "SELECT
>RIGHT(videodevice,1) from capturecard where cardid=$1;" mythconverg`
>
>/usr/bin/logger $0: Issuing command /usr/bin/hdhomerun_config
>$OURHDHRDEVICE set /tuner$TUNER/channel $OURDVBCMOD:$FREQ
>/usr/bin/hdhomerun_config $OURHDHRDEVICE set /tuner$TUNER/channel
>$OURDVBCMOD:$FREQ
>
>I see in the logs that this is indeed being called. Here are a few
>sample entries:
>
>Aug 28 09:46:15 dracor mythtv: /home/mythtv/chch_hdhr: Issuing command
>/usr/bin/hdhomerun_config 1420577E set /tuner0/channel a8qam256-6875:290
>Aug 28 09:46:16 dracor mythtv: /home/mythtv/chch_hdhr: Issuing command
>/usr/bin/hdhomerun_config 1420577E set /tuner0/channel a8qam256-6875:290
>Aug 28 09:46:23 dracor mythtv: /home/mythtv/chch_hdhr: Issuing command
>/usr/bin/hdhomerun_config 1420577E set /tuner0/channel a8qam256-6875:298
>Aug 28 11:02:40 dracor mythtv: /home/mythtv/chch_hdhr: Issuing command
>/usr/bin/hdhomerun_config 1420577E set /tuner0/channel a8qam256-6875:298
>Aug 28 11:02:41 dracor mythtv: /home/mythtv/chch_hdhr: Issuing command
>/usr/bin/hdhomerun_config 1420577E set /tuner0/channel a8qam256-6875:298
>Aug 28 11:02:49 dracor mythtv: /home/mythtv/chch_hdhr: Issuing command
>/usr/bin/hdhomerun_config 1420577E set /tuner0/channel a8qam256-6875:298
>Aug 28 11:02:51 dracor mythtv: /home/mythtv/chch_hdhr: Issuing command
>/usr/bin/hdhomerun_config 1420577E set /tuner0/channel a8qam256-6875:298
>
>Another symptom is that when I enter the Cards menu in mythtv-setup it
>hangs on the "Loading..." screen such that I have to kill it (with
>signal -9).
>
>I would appreciate any guidance anyone might have.
>
>Thanks, Jan

I thought that HDHRs were fully supported by MythTV - mythbackend
should handle channel scanning and channel changing.  There should not
be any need for a channel changing script.

https://www.mythtv.org/wiki/Silicondust_HDHomeRun_Dual

I presume that you have installed one of the fixes that makes
mythbackend wait for the network to be actually available before it is
started.  Ubuntu 18.04 starts up quite a bit faster than 16.04,
especially if it is running from an SSD, and if you do not have a fix
for this race condition, even if you did not need it in 16.04 you
almost certainly will need it in 18.04.


More information about the mythtv-users mailing list