########################################################################################## MISC-1: RaspBMC keeps trying to run TVHeadend after it's been disabled ########################################################################################## Issue Type: Bug ----------------------------------------------------------------------------------------- Issue Information ==================== Priority: Major Status: Closed Resolution: Fixed (2015-02-06 09:28:45) Project: Miscellaneous (MISC) Reported By: btasker Assigned To: btasker Affected Versions: - RaspBMC - Disabling TVHeadend add-on Targeted for fix in version: - RaspBMC - Disabling TVHeadend add-on Labels: Pi, RaspBMC, TVHeadend, XBMC, Time Estimate: 0 minutes Time Logged: 0 minutes ----------------------------------------------------------------------------------------- Issue Description ================== Using RaspBMC (running XBMC Frodo) it seems to be impossible to disable the TVHeadend functionality once it's been switched on. The built in TVHeadend client was enabled and configured a little while back as part of project PIDVR, but the back-end is no longer on the network. The plugin was disabled in XBMC's settings, but kept trying to connect. Could see regular DNS requests as a result of the Pi trying to get an address for the backend. - Marked the TVHeadend add-on as disabled in XBMC (no effect) - Used the add-ons GUI to uninstall the TVHeadend add-on (no effect, add-on still present) - rm'd the TVHeadend XML settings file The latter stopped the DNS requests, but it looks like it's still trying to run *xbmc.log* -- BEGIN SNIPPET -- 08:20:41 T:2945827904 NOTICE: Thread CAddonStatusHandler:pvr.hts start, auto delete: true 08:20:51 T:2629256256 ERROR: AddOnLog: Tvheadend HTSP Client: OpenSocket - failed to connect to the backend (Connection refused) 08:20:51 T:2629256256 ERROR: ADDON: Dll Tvheadend HTSP Client - Client returned bad status (1) from Create and is not usable 08:20:51 T:2629256256 WARNING: UpdateAndInitialiseClients - failed to create add-on Tvheadend HTSP Client, status = 1 -- END SNIPPET -- Despite not being in use, the Pi is showing a load average of 3.19, so it looks like the attempts to run TVHeadend are using a lot of precious resources. Need to find a way to fully disable the plugin, short of a full re-install of RaspBMC. ----------------------------------------------------------------------------------------- Activity ========== ----------------------------------------------------------------------------------------- 2015-02-06 08:49:40 ----------------------------------------------------------------------------------------- btasker added 'Pi RaspBMC TVHeadend XBMC' to labels ----------------------------------------------------------------------------------------- 2015-02-06 08:49:47 ----------------------------------------------------------------------------------------- btasker added 'RaspBMC - Disabling TVHeadend add-on' to Version ----------------------------------------------------------------------------------------- 2015-02-06 08:49:52 ----------------------------------------------------------------------------------------- btasker added 'RaspBMC - Disabling TVHeadend add-on' to Fix Version ----------------------------------------------------------------------------------------- 2015-02-06 09:01:11 btasker ----------------------------------------------------------------------------------------- *Info* When I originally looked into it, I removed the hostname from the xml settings file ( _userdata/addon_data/pvr.hts/settings.xml_ ) and the result was that the Pi started trying to get an A record for ' '.... That file was later removed which did at least stop the queries. ----------------------------------------------------------------------------------------- 2015-02-06 09:28:24 btasker ----------------------------------------------------------------------------------------- After some prodding, found what I needed to do. I'd previously disabled Live TV, but much like the Headend plugin, it kept re-enabling itself. Changing the addon ID in the Addon's database and then disabling Live TV did the trick -- BEGIN SNIPPET -- pi@raspbmc:~$ sqlite3 .xbmc/userdataDatabase/Addons15.db sqlite> update addon set addonID='btest' where addonID='pvr.hts'; sqlite>.exit pi@raspbmc:~$ reboot -- END SNIPPET -- When the system comes back up, it gives a warning about Live TV being enabled but with no PVR add-ons enabled. Hit OK on the notification, and then back out of the dialog it gives you. Followed by _Settings -> XBMC -> Live TV -> Set Enabled to No_ Reboot for good measure and the addon is no longer filling the logs with crud. Load average when not in use is back down to 0.4 ----------------------------------------------------------------------------------------- 2015-02-06 09:28:46 ----------------------------------------------------------------------------------------- btasker changed status from 'Open' to 'Resolved' ----------------------------------------------------------------------------------------- 2015-02-06 09:28:46 ----------------------------------------------------------------------------------------- btasker added 'Fixed' to resolution ----------------------------------------------------------------------------------------- 2015-02-06 09:28:51 ----------------------------------------------------------------------------------------- btasker changed status from 'Resolved' to 'Closed'