PDA

View Full Version : HDHomeRun not found on reboot


ttabbal
January 31st, 2008, 12:16 AM
I have a fresh install of MythBuntu 7.10. When I boot up, mythbackend can't find my HDHR tuners. If I do a "/etc/init.d/mythtv-backend restart" from an SSH login, it comes up and finds the HDHR just fine and I can record, watch live TV, etc.. Is there some way to get myth to retry the connection automatically? I tried changing to static IP as I saw a message about the network not being available. That made the unavailable message go away, now it just doesn't find the HDHR. I also tried giving myth the device ID of the HDHR tuner instead of using FFFFFFFFFF, but it still doesn't work properly.

Any hints? Otherwise, Mythbuntu has been great to set up. I just did a pretty basic install and updated the packages using the software update tool. There were some updates to Myth in there. The updater says I'm up to date now.

It would be nice if the control panel application offered to setup the HDHR for lirc. I used the HDHR website and a thread I found on the forum here to set it up manually editing the config files. I don't mind doing that, but it would be nice to have the tool help out. Great config tool overall though, it really helped me remember all the setup steps to get things going.

ttabbal
January 31st, 2008, 06:42 PM
I found some code on the HDHomerun forums that seems to get the job done. I added this in the start section of the myth-backend statup script. I also had to change the shell from /bin/sh to /bin/bash for the "let" command to work.

It just forces mythbackend to wait until the hdhomerun_config utility can see the HDHR on the network before it starts up. It seems to get the job done on my machine, though it wouldn't make any sense for users using other capture devices.



let n=1
while [ "$(hdhomerun_config discover)" = "no devices found" -a $n -lt 30 ]
do
echo "hdhomerun not found, retry $n"
let n=n+1
sleep 1
done

superm1
January 31st, 2008, 06:59 PM
I found some code on the HDHomerun forums that seems to get the job done. I added this in the start section of the myth-backend statup script. I also had to change the shell from /bin/sh to /bin/bash for the "let" command to work.

It just forces mythbackend to wait until the hdhomerun_config utility can see the HDHR on the network before it starts up. It seems to get the job done on my machine, though it wouldn't make any sense for users using other capture devices.




let n=1
while [ "$(hdhomerun_config discover)" = "no devices found" -a $n -lt 30 ]
do
echo "hdhomerun not found, retry $n"
let n=n+1
sleep 1
done

This should be fixed in 8.04, mythbackend is supposed to start a lot later. Additionally you should be able to get around it by using /etc/network/interfaces rather than network-manager in 7.10.

ttabbal
January 31st, 2008, 07:13 PM
Thanks for the update. I'm not ready to run 8.04 yet, I'm going to wait for the official release. This gets me by for now. I remember looking in /etc/network/interfaces, I thought I had the config in there the normal way. Perhaps I'm remembering the wrong file.

superm1
January 31st, 2008, 07:19 PM
Thanks for the update. I'm not ready to run 8.04 yet, I'm going to wait for the official release. This gets me by for now. I remember looking in /etc/network/interfaces, I thought I had the config in there the normal way. Perhaps I'm remembering the wrong file.
If you open up network-admin in 7.10, you can configure it to "not use roaming" and then that will configure it using /etc/network/interfaces.