TVheadend htsp Client "no hardware present"
#1
Hi, maybe somebody has an idea how I can fit that problem? I run Ubuntu 11.04 on the htpc. The backend is TVheadend and frontend xbmc Dharma pvr. When i stop the htpc during the night and restart than the following message appears " TVheadend htsp Client "no hardware present", is anybody out there same experience like me? How to solve that problem, I guess that the loading of the driver from TVheadend is to late after xbmc is already running?

Any ideas what to do?

best regards
Alf
Reply
#2
You using a USB TV Tuner?

I have the same problem. When I turn off my TVheadend server and restart the next day I get that message too.

The solution for me was to move the 2 USB TV Tuner I use to a USB port that remained powered, even when the system was shutdown, but with the power still on at the wall socket.


Strange problem..... Eek
Reply
#3
I use 2 DVB-cards both are running on PCI and PCIe tools. How can I fix this scenario, it's really the worse case scenario for me.
What I learned in the meantime by different search machines, are that maybe I have to create a start-up script which loads the driver of tvheadend before xbmc starts automatically. But I can't I have no sense for that kind of programming. Did somebody already such an script?

br
Alf
Reply
#4
Having the same problem, can't start a recording or anything.

Strange as managed to do a full scan and map all services fine.
Reply
#5
Doh NM Smile
Reply
#6
Couple of restarts seemed to fix this.

If using a USB adapter really go and make sure the stick is making good contact!

Also make sure the module is loaded.
Reply
#7
I know this thread is a bit old but just in case some out there is still having the problem and comes across this thread as I did, I think I found a solution...

If I'm right, this problem only occurs when there is more than one adapter installed the mount order changed for some reason resulting in the cards having changed references after a reboot. The re sequenced adapters look like new adapters to tvheadend which adds them to its' file system creating duplicates. Tvheadend subsequently tries to open a card using the old references and fails.

In my case the back end has one DVB-S and one DVB-T card installed.


dmesg shows the adapter allocation.


Quote:$ dmesg |grep adapter
[ 11.504041] DVB: registering new adapter (saa7133[0])
[ 11.504047] DVB: registering adapter 0 frontend 0 (Philips TDA10046H DVB-T)...
[ 50.531169] DVB: registering new adapter (cx88[0])
[ 50.531172] DVB: registering adapter 1 frontend 0 (Montage Technology DS3000/TS2020)...

i.e. the DVB-T card (Philips TDA10046H DVB-T is loaded as 'adapter 0'
and the DVB-S card (Montage Technology DS3000/TS2020) is loaded as 'adapter 1'




Tvheadend constructs a directory and file system to store required data

Quote:$ sudo ls -la /home/hts/.hts/tvheadend/

total 48
drwxr-xr-x 11 hts hts 4096 2012-02-29 18:49 .
drwxr-xr-x 3 hts hts 4096 2012-02-29 17:18 ..
drwx------ 2 hts video 4096 2012-02-29 23:25 accesscontrol
drwx------ 2 hts video 4096 2012-02-29 18:49 channels
drwx------ 2 hts video 4096 2012-02-29 18:49 channeltags
drwx------ 2 hts video 4096 2012-03-01 00:36 dvbadapters
drwx------ 4 hts video 4096 2012-02-29 17:34 dvbmuxes
drwx------ 4 hts video 4096 2012-02-29 22:59 dvbsatconf
drwx------ 3 hts video 4096 2012-02-29 17:25 dvbtransports
drwx------ 2 hts video 4096 2012-02-29 18:08 dvr
-rw------- 1 hts hts 56 2012-02-29 17:21 superuser
drwx------ 3 hts video 4096 2012-02-29 18:10 xmltv


Looking closely at the dvbadapters directory, two spurious cards (4 cards instead of 2) have been set up.

Quote:$ sudo ls -la /home/hts/.hts/tvheadend/dvbadapters

total 24
drwx------ 2 hts video 4096 2012-02-29 23:21 .
drwxr-xr-x 11 hts hts 4096 2012-02-29 18:49 ..
-rwx------ 1 hts video 176 2012-02-29 18:06 _dev_dvb_adapter0_Montage_Technology_DS3000_TS2020 # old
-rwx------ 1 hts video 167 2012-02-29 18:11 _dev_dvb_adapter1_Philips_TDA10046H_DVB_T # old
-rwx------ 1 hts video 169 2012-02-29 23:21 _dev_dvb_adapter0_Philips_TDA10046H_DVB_T
-rwx------ 1 hts video 178 2012-02-29 23:21 _dev_dvb_adapter1_Montage_Technology_DS3000_TS2020


It looks like tvheadend detected the two adapters with new names (registered in reverse order after an update and reboot) then added them as new cards. The reversed order is probably because the driver software was changed which altered the load times for each card and affected the adapter registration sequence - so this could happen again.

Using rm and rmdir I removed all files and directories that reference the old configurations
i.e. in my case '...adapter0_Montage...' and '...adapter1_Philips...' in the dvb directories

dvbadapters/...
dvbmuxes/...
dvbsatconf/...
dvbtransports/...


e.g. of files removed in dvbadapters

Quote:$ sudo rm /home/hts/.hts/tvheadend/dvbadapters/_dev_dvb_adapter0_Montage_Technology_DS3000_TS2020
$ sudo rm /home/hts/.hts/tvheadend/dvbadapters/_dev_dvb_adapter1_Philips_TDA10046H_DVB_T


e.g. where dvbsatconf file structure references two DVB-S adapters when there is only one installed

Quote:$ sudo ls -la /home/hts/.hts/tvheadend/dvbsatconf
total 16
drwx------ 4 hts video 4096 2012-02-29 22:59 .
drwxr-xr-x 11 hts hts 4096 2012-02-29 18:49 ..
drwx------ 2 hts video 4096 2012-02-29 17:18 _dev_dvb_adapter0_Montage_Technology_DS3000_TS2020 # old
drwx------ 2 hts video 4096 2012-02-29 22:59 _dev_dvb_adapter1_Montage_Technology_DS3000_TS2020

e.g. of files under spurious directories

Quote:$ sudo ls -la /home/hts/.hts/tvheadend/dvbsatconf/_dev_dvb_adapter0_Montage_Technology_DS3000_TS2020
total 12
drwx------ 2 hts video 4096 2012-02-29 17:18 .
drwx------ 4 hts video 4096 2012-02-29 22:59 ..
-rwx------ 1 hts video 129 2012-02-29 17:18 1 # old



I inadvertently deleted some good files so decided to run a reconfigure after the clean up.

Quote:$ sudo dpkg-reconfigure hts-tvheadend

The duplicate adapter entries were gone from the webui and
XBMC frontend (on seperate machine) is working again i.e. no longer failing with 'no hardware detected'
Reply
#8
poe101 Wrote:It looks like tvheadend detected the two adapters with new names (registered in reverse order after an update and reboot) then added them as new cards. The reversed order is probably because the driver software was changed which altered the load times for each card and affected the adapter registration sequence - so this could happen again.

I think it's not a tvheadend fault. When the kernel linux loads the proper module for each dvb card, you can specify the correct adpater number for each module that manage your dvb card. So under /etc/modprobe.d/options.conf you can specify your adapter_nr for each module. An example of options.conf with two DVB cards could be:

Code:
# DVB-S card
options budget_ci adapter_nr=0

# DVB-T dual tuner
options dvb_usb_dib0700 adapter_nr=1,2
Reply
#9
Thanks for response joethefox - forcing the order of card load would be great. I thought that setting the order of the cards was possible but had no idea where to start.

Backend Server (and Frontend machine ) are running ubuntu oneiric.

There is no /etc/modules/options.conf
but there is /etc/modules (where 'modules' is a file) - see below

On foot of your post I have checked a few threads that highlight several ways of forcing adapter sequence but not sure if they are current and not all were ubuntu specific. I need to understand module and adapter references more fully and which is best for oneiric. If you (or anyone) has a view I would welcome it.


Quote:$ uname -a
Linux ubuntuloft 3.0.0-16-server #28-Ubuntu SMP Fri Jan 27 18:03:45 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Quote:$ cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

loop
lp
rtc
Reply
#10
I'm sorry. Sometimes my memory do tricks on me. The correct path is /etc/modprobe.d/options.conf (if the file doesn't exists you can create a new one). Anyway I've kernerl 2.6, I will see if there's a better/different approach for kernel 3.0.
Reply

Logout Mark Read Team Forum Stats Members Help
TVheadend htsp Client "no hardware present"0