Project

General

Profile

Purge duplicate adapters?

Added by Richard McBride over 11 years ago

One of my dual DVB-T tuners shows up as 4 adapters (probably because I moved the USB ports around during installation...) The extra adapters have empty Device Paths and Device Names.

Everything seems to work OK, but it would be nice to get rid of the duplicated entries somehow. Is there any simple way do do this? (I've looked at the existing threads on this subject, and although some solutions are proposed, they don't make much sense to me...) I guess there is a file somewhere that contains the adapters?

I'm running OpenELEC 2.99RC5 and XBMC 12. TVH version is 3.3.491g6990005.

Update: had to power down unit - when I switched back on I had 17 adapters!!

Problem is, TVH sets the phantom adapters to Enabled, but disables the real one, so I have to manually rest all the mux'es..


Replies (7)

RE: Purge duplicate adapters? - Added by Prof Yaffle over 11 years ago

Multiple files, I'm afraid - the adapter name is used as part of the naming convention for a few different things.

It's not hard to get rid of the 'ghosts', though, you just need to (re)move a few directories and restart the tvheadend service. I'm not sure how doable that is on OpenElec - you can certainly stop XBMC and then there must be a way to cycle tvheadend, in which case the whole lot will probably take half-a-dozen commands.

See if the first chunk of this thread helps you at all...

https://www.lonelycoder.com/redmine/boards/14/topics/7826?r=7994#message-7994

... but I don't think I can easily help you convert it to OE, I'm afraid.

RE: Purge duplicate adapters? - Added by Richard McBride over 11 years ago

Thanks Prof Yaffle

Been looking around for the file system for likely directories - found:

/storage/.xbmc/userdata/addon_data/service.multimedia.tvheadend/dvbadapters

Listing this directory shows 18 files, each one corresponding to one of the adapters

If I delete the lot and restart TVH, do you think it will get back to a clean slate?

RE: Purge duplicate adapters? - Added by Prof Yaffle over 11 years ago

Pass, I'm afraid - I don't know what's created those.

A quick Google throws up these links on that path, maybe they're helpful:

https://github.com/OpenELEC/OpenELEC.tv/issues/1202

http://openelec.tv/forum/71-pvr-live-tv/42387-remove-old-tuners-from-tvheadend

The suggestion here is that yes, you can delete something here and see what it does. Worst case, you'll destroy tvh's config and need to remove/reinstall, but that's not the end of the world unless you've spent hours merging and tagging channels.

RE: Purge duplicate adapters? - Added by Richard McBride over 11 years ago

Thanks again for these: guess I need to do some research...

RE: Purge duplicate adapters? - Added by Richard McBride over 11 years ago

OK, thanks to the Prof, I've fixed this, and here's what I did:

1. Backup everything under the TVH Root (storage/.xbmc/userdata/addon_data/service.multimedia.tvheadend/)
2. SSH into the Arctic MC001 as root
3. Stop TvHeadend: tvheadend.stop
4. Delete contents of the following directories only: dvbadapters dvbmuxes dvbtransports
5. Restart Tvheadend: tvheadend.start
6. Check that correct number of adapters shows in TVH web interface
7. Re-configure TvHeadend (enable each adapter in turn, add MUXes, etc)
(I added MUXes manually to the first adapter, then used the "Copy to Other Adapter" facility - much quicker than letting each adapter auto-detect the MUXes)

RE: Purge duplicate adapters? - Added by Prof Yaffle over 11 years ago

Job done. Thanks for posting the answer, that should hopefully help anyone else with the same problem in future.

RE: Purge duplicate adapters? - Added by Tobias Holm over 9 years ago

Thank you for the tip Richard!

On my system (Tvheadend 3.4.28 running on Debian 7) I did the following to resolve the issue:

1. Log in via ssh to the backend
2. sudo /etc/init.d/tvheadend stop
3. mv ~/.hts/tvheadend/dvbmuxes ~/.hts/tvheadend/dvbmuxes.old
mv ~/.hts/tvheadend/dvbadapters ~/.hts/tvheadend/dvbadapters.old
mv ~/.hts/tvheadend/dvbtransports ~/.hts/tvheadend/dvbtransports.old
4. sudo /etc/init.d/tvheadend start
5. Surf in on the web GUI, Configuration / DVB Inputs / TV Adapters, enable the TV-cards you have
6. Configure the multiplexes, services and last press "Map DVB services to channels..." on the General tab. Repeat for all the TV-cards you have

    (1-7/7)