Page 1 of 3

[Solved] MythTV 30 HDHomerun capture card missing

Posted: Mon Jun 03, 2019 9:33 pm
by edmcguirk
Similar to the previous message viewtopic.php?f=36&t=3041 with the same title. The previous solution seems to describe how MythTV will handle the problem in the future but it does not really address how I can fix my problem now.

I just upgraded to Ubuntu 19.4 and my HDHomerun cards stopped working. I arbitrarily decided to delete the tuner cards and rebuild them but the HDHomerun cards are not listed.

Seems about par for the course whenever I upgrade Ubuntu. Oh well...

What do I need to do to be able to rebuild my tuners? Add a repository and upgrade?

Re: MythTV 30 HDHomerun capture card missing

Posted: Mon Jun 03, 2019 10:15 pm
by bill6502
Hi,

For starters, does this command: mythtv-setup --version | grep --color=always using_hdhomerun show
that MythTV was built with HDHR support? It was if you'll see: using_hdhomerun in the output.

If it's there, then see if the library is installed: dpkg -l libhdhomerun4. That's
what my Ubuntu 19.04 uses. Expect:

Code: Select all

ii  libhdhomerun4:amd64 20180817-1   amd64        Library for Silicon Dust HD HomeRun
ldconfig --print-cache |grep libhdhomerun returns:

Code: Select all

libhdhomerun.so.4 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libhdhomerun.so.4
libhdhomerun.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libhdhomerun.so
If the above fail, there's something else going on.

Re: MythTV 30 HDHomerun capture card missing

Posted: Tue Jun 04, 2019 9:08 pm
by edmcguirk
Results:

Code: Select all

mythtv-setup --version | grep --color=always using_hdhomerun
mysql: [Warning] Using a password on the command line interface can be insecure.
/usr/bin/mythtv-setup: 54: /usr/bin/mythtv-setup: gksu: not found
/usr/bin/mythtv-setup: 68: /usr/bin/mythtv-setup: gksu: not found

Code: Select all

dpkg -l libhdhomerun4
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                Version      Architecture Description
+++-===================-============-============-==============================
ii  libhdhomerun4:amd64 20180817-1   amd64        Library for Silicon Dust HD Ho
lines 1-6/6 (END)
Just to repeat, everything was working fine until upgrading from 18.10 to 19.4. All tuners were showing error on the frontend status. I did not look in the logs. I arbitrarily chose to delete the tuner cards and rebuild them. There were no HDHomerun tuner cards to select.

Re: MythTV 30 HDHomerun capture card missing

Posted: Tue Jun 04, 2019 9:51 pm
by bill6502
OK. I understand it was working.

mythtv-setup.real --version | grep --color=always using_hdhomerun is probably what to check.
Just being sure. mythAnyCommand will work, just not wrappers.

I just deleted all cards (not all cards on my host) and restored them. No problem adding them back.
I'm using the Steppes theme, 19.04 and v31-Pre.

Stop the backend manually before trying. sudo systemctl stop mythtv-backend (I'm not sure that's
required for network tuners, but it can't hurt unless you forget to restart it.)

In the 'previous message'/thread, there was no HD HomeRun networked tuner Card type available.
Are you missing that too? viewtopic.php?f=36&t=3041

An old, but popular, issue is a firewall blocking access to the HDHR. Including UFW for Ubuntu.
Make sure you can access the HDHR's web page. I know I didn't need to do anything to my
UFW settings when I upgraded to 19.04 though.

Re: MythTV 30 HDHomerun capture card missing

Posted: Tue Jun 04, 2019 10:34 pm
by edmcguirk
Sorry if I was not clear. Just like the previous message the card type HDHomerun is not listed as an available type of tuner card.

This is NOT a problem where I have selected the card type of HDHomerun but I can't see any of my cards.

Re: MythTV 30 HDHomerun capture card missing

Posted: Tue Jun 04, 2019 11:07 pm
by bill6502
That helps, but I'm back to looking at either a missing library or MythTV was
compiled with the --disable-hdhomerun switch. We'll assume the later isn't
the case since it was working (but the grep would guarantee that just
in case a new load of MythTV got installed.)

Let's see if the expected libraries are there, here's what I get:

Code: Select all

sudo updatedb && locate libhdhomerun | egrep -v '/dpkg/|/doc/|/include/'
/usr/lib/x86_64-linux-gnu/libhdhomerun.so
/usr/lib/x86_64-linux-gnu/libhdhomerun.so.4
/usr/lib/x86_64-linux-gnu/libhdhomerun.so.4.0.0
I'm looking for extra libraries that aren't supposed to be there.

Re: MythTV 30 HDHomerun capture card missing

Posted: Tue Jun 04, 2019 11:16 pm
by edmcguirk
results:

Code: Select all

sudo updatedb && locate libhdhomerun | egrep -v '/dpkg/|/doc/|/include/'
/usr/lib/x86_64-linux-gnu/libhdhomerun.so.4
/usr/lib/x86_64-linux-gnu/libhdhomerun.so.4.0.0


I don't remember what version of MythTV I was running on 18.10. I am assuming the default was 29 and the upgrade to 19.4 also upgraded to MythTV 30.

Re: MythTV 30 HDHomerun capture card missing

Posted: Tue Jun 04, 2019 11:21 pm
by bill6502
Hmmm, missing one. And it's just a link. I'd add that!

Code: Select all

ls -ld $(locate libhdhomerun | egrep -v '/dpkg/|/doc/|/include/')
lrwxrwxrwx 1 root root    21 Aug 21  2018 /usr/lib/x86_64-linux-gnu/libhdhomerun.so -> libhdhomerun.so.4.0.0
lrwxrwxrwx 1 root root    21 Aug 21  2018 /usr/lib/x86_64-linux-gnu/libhdhomerun.so.4 -> libhdhomerun.so.4.0.0
-rw-r--r-- 1 root root 75688 Aug 21  2018 /usr/lib/x86_64-linux-gnu/libhdhomerun.so.4.0.0

Re: MythTV 30 HDHomerun capture card missing

Posted: Tue Jun 04, 2019 11:39 pm
by edmcguirk
Sorry, I don't understand any of these commands. But I did not get the same results:

Code: Select all

ls -ld $(locate libhdhomerun | egrep -v '/dpkg/|/doc/|/include/')
lrwxrwxrwx 1 root root    21 Aug 21  2018 /usr/lib/x86_64-linux-gnu/libhdhomerun.so.4 -> libhdhomerun.so.4.0.0
-rw-r--r-- 1 root root 75688 Aug 21  2018 /usr/lib/x86_64-linux-gnu/libhdhomerun.so.4.0.0

Re: MythTV 30 HDHomerun capture card missing

Posted: Wed Jun 05, 2019 12:00 am
by bill6502
Actually, you never did the ldconfig --print-cache | grep libhdhomerun command in the 2nd post. Let's see that.

Maybe it would be easier to remove the package and reinstall it to see if the missing link gets built.

sudo apt purge libhdhomerun4
sudo apt install libhdhomerun4

Then do the ls -ld $(locate libhdhomerun | egrep -v '/dpkg/|/doc/|/include/')
to see if yours matches mine.

My initial idea was just to create the link by hand, so if apt doesn't help, then do this:
sudo ln -s /usr/lib/x86_64-linux-gnu/libhdhomerun.so.4.0.0 /usr/lib/x86_64-linux-gnu/libhdhomerun.so

Re: MythTV 30 HDHomerun capture card missing

Posted: Wed Jun 05, 2019 12:02 am
by edmcguirk

Code: Select all

ldconfig --print-cache | grep libhdhomerun
	libhdhomerun.so.4 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libhdhomerun.so.4

Re: MythTV 30 HDHomerun capture card missing

Posted: Wed Jun 05, 2019 12:02 am
by edmcguirk

Code: Select all

sudo apt purge libhdhomerun4
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  hdhomerun-config-gui* libhdhomerun4*
0 upgraded, 0 newly installed, 2 to remove and 4 not upgraded.
After this operation, 223 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 166861 files and directories currently installed.)
Removing hdhomerun-config-gui (20161117-0ubuntu3) ...
Removing libhdhomerun4:amd64 (20180817-1) ...
Processing triggers for desktop-file-utils (0.23-4ubuntu1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.32.0-1ubuntu1) ...
Processing triggers for libc-bin (2.29-0ubuntu2) ...
Processing triggers for bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...


sudo apt install libhdhomerun4
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  libhdhomerun4
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 29.1 kB of archives.
After this operation, 92.2 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu disco/universe amd64 libhdhomerun4 amd64 20180817-1 [29.1 kB]
Fetched 29.1 kB in 0s (165 kB/s)         
Selecting previously unselected package libhdhomerun4:amd64.
(Reading database ... 166847 files and directories currently installed.)
Preparing to unpack .../libhdhomerun4_20180817-1_amd64.deb ...
Unpacking libhdhomerun4:amd64 (20180817-1) ...
Setting up libhdhomerun4:amd64 (20180817-1) ...
Processing triggers for libc-bin (2.29-0ubuntu2) ...




ls -ld $(locate libhdhomerun | egrep -v '/dpkg/|/doc/|/include/')
lrwxrwxrwx 1 root root    21 Aug 21  2018 /usr/lib/x86_64-linux-gnu/libhdhomerun.so.4 -> libhdhomerun.so.4.0.0
-rw-r--r-- 1 root root 75688 Aug 21  2018 /usr/lib/x86_64-linux-gnu/libhdhomerun.so.4.0.0


Code: Select all

sudo ln -s /usr/lib/x86_64-linux-gnu/libhdhomerun.so.4.0.0 /usr/lib/x86_64-linux-gnu/libhdhomerun.so

ls -ld $(locate libhdhomerun | egrep -v '/dpkg/|/doc/|/include/')
lrwxrwxrwx 1 root root    21 Aug 21  2018 /usr/lib/x86_64-linux-gnu/libhdhomerun.so.4 -> libhdhomerun.so.4.0.0
-rw-r--r-- 1 root root 75688 Aug 21  2018 /usr/lib/x86_64-linux-gnu/libhdhomerun.so.4.0.0

Re: MythTV 30 HDHomerun capture card missing

Posted: Wed Jun 05, 2019 1:06 am
by bill6502
The locate command depends on a DB of its own, it only gets updated daily, if I recall.

This will work: ls -ld /usr/lib/x86_64-linux-gnu/libhdromerun*

Re: MythTV 30 HDHomerun capture card missing

Posted: Wed Jun 05, 2019 2:10 am
by edmcguirk
I assume you meant libhdhomerun* not libhdromerun*

Code: Select all

ls -ld /usr/lib/x86_64-linux-gnu/libhdhomerun*
lrwxrwxrwx 1 root root    47 Jun  4 20:09 /usr/lib/x86_64-linux-gnu/libhdhomerun.so -> /usr/lib/x86_64-linux-gnu/libhdhomerun.so.4.0.0
lrwxrwxrwx 1 root root    21 Aug 21  2018 /usr/lib/x86_64-linux-gnu/libhdhomerun.so.4 -> libhdhomerun.so.4.0.0
-rw-r--r-- 1 root root 75688 Aug 21  2018 /usr/lib/x86_64-linux-gnu/libhdhomerun.so.4.0.0
That looks good but the HDHomerun tuner cards still do not appear. So I restarted the back end.

sudo systemctl stop mythtv-backend
sudo systemctl start mythtv-backend

Still no HDHomerun tuner cards.

Now what?

Re: MythTV 30 HDHomerun capture card missing

Posted: Wed Jun 05, 2019 2:23 am
by bill6502
I think still mean you can't add the tuners back because the HD HomeRun networked tuner
isn't available.

Can I see the output of this please: mythutil --version | grep --color=always using_hdhomerun