[Solved] MythTV 30 HDHomerun capture card missing

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

edmcguirk
Newcomer
Posts: 14
Joined: Mon May 14, 2018 5:52 pm
United States of America

[Solved] MythTV 30 HDHomerun capture card missing

Post 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?
Last edited by edmcguirk on Wed Jun 05, 2019 7:11 pm, edited 1 time in total.
User avatar
bill6502
Developer
Posts: 2307
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: MythTV 30 HDHomerun capture card missing

Post 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.
edmcguirk
Newcomer
Posts: 14
Joined: Mon May 14, 2018 5:52 pm
United States of America

Re: MythTV 30 HDHomerun capture card missing

Post 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.
Last edited by edmcguirk on Tue Jun 04, 2019 11:47 pm, edited 2 times in total.
User avatar
bill6502
Developer
Posts: 2307
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: MythTV 30 HDHomerun capture card missing

Post 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.
edmcguirk
Newcomer
Posts: 14
Joined: Mon May 14, 2018 5:52 pm
United States of America

Re: MythTV 30 HDHomerun capture card missing

Post 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.
User avatar
bill6502
Developer
Posts: 2307
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: MythTV 30 HDHomerun capture card missing

Post 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.
edmcguirk
Newcomer
Posts: 14
Joined: Mon May 14, 2018 5:52 pm
United States of America

Re: MythTV 30 HDHomerun capture card missing

Post 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.
Last edited by edmcguirk on Tue Jun 04, 2019 11:46 pm, edited 1 time in total.
User avatar
bill6502
Developer
Posts: 2307
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: MythTV 30 HDHomerun capture card missing

Post 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
edmcguirk
Newcomer
Posts: 14
Joined: Mon May 14, 2018 5:52 pm
United States of America

Re: MythTV 30 HDHomerun capture card missing

Post 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
User avatar
bill6502
Developer
Posts: 2307
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: MythTV 30 HDHomerun capture card missing

Post 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
edmcguirk
Newcomer
Posts: 14
Joined: Mon May 14, 2018 5:52 pm
United States of America

Re: MythTV 30 HDHomerun capture card missing

Post 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
edmcguirk
Newcomer
Posts: 14
Joined: Mon May 14, 2018 5:52 pm
United States of America

Re: MythTV 30 HDHomerun capture card missing

Post 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
User avatar
bill6502
Developer
Posts: 2307
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: MythTV 30 HDHomerun capture card missing

Post 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*
edmcguirk
Newcomer
Posts: 14
Joined: Mon May 14, 2018 5:52 pm
United States of America

Re: MythTV 30 HDHomerun capture card missing

Post 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?
User avatar
bill6502
Developer
Posts: 2307
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: MythTV 30 HDHomerun capture card missing

Post 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
Post Reply