Michael,<br><br>I think I mis-interpreted your first post. The backend will run from the init script if you run it by sudo like this right?:<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
sudo /etc/init.d/mythtv-backend start<br></blockquote><br>If so, then we need to investigate why it won't run from startup init scripts by default. (You have a different startup problem then what i've noticed on the forums)
<br><br>For controlling /dev/ttyS0, <br>add mythtv to the "dialout" group. I will notate this to be added to the guide under serial control. I'll also try to remember that feisty packages should do this by default.
<br><br>About ivtv control, myth is able to control the devices after these two commands, correct? If so, then try adding to /etc/default/mythtv-backend some verbosity switches (probably video related switches) and starting the backend to see if it tells you when it tries to set the channel and input.
<br><br>Regards,<br><br>Mario<br><br><br><div><span class="gmail_quote">On 11/9/06, <b class="gmail_sendername">Michael Tiller</b> <<a href="mailto:michael.tiller@gmail.com">michael.tiller@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Mario,<br><br> Thanks for the response. I did not use mythtv as my first user. In fact, I used
<a href="https://wiki.ubuntu.com/Install_IVTV_Edgy" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">your guide</a> (which I think is quite good) which is how I knew not to do this. :-)
<br><br> Note that I have no trouble starting it manually (via sudo). I have added three lines which I've highlighted in red. When I get home I'll try taking them out and see if they make a difference but if the script is run as root I can't see why it would make a difference.
<br><br> I dont know what the lines:<br><div style="margin-left: 80px;"># Default-Start: 24<br>
# Default-Stop: S<br></div>...mean but I'm assuming they are fine as configured.<br><br> Note that everything in red is a hack so I'm working on trying to eliminate the need for them. I know that somehow udev is responsible for the permissions on ttyS0 but I have yet to figure out how to specify a rule so it gets the permissions right. The other two things Myth should do for me but does not seem to?!?
<br><br> Thanks for any ideas.<br><br>--<br>Mike<br><br>#! /bin/sh<br>### BEGIN INIT INFO<br># Provides: mythtv-backend<br># Required-Start: $local_fs<br># Required-Stop: $local_fs<br># Default-Start: 24
<br># Default-Stop: S<br># Short-Description: Start/Stop the MythTV server.<br>### END INIT INFO<br><br>PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin<br>DAEMON=/usr/bin/mythbackend<br>NAME="mythbackend"
<br>DESC="MythTV server"<br><br># Add this to make sure we can<br># change channels<br><span style="color: rgb(255, 0, 0);">chmod a+rw /dev/ttyS0</span><br><br>test -x $DAEMON || exit 0<br><br>set -e<br><br>USER=mythtv
<br>RUNDIR=/var/run/mythtv<br>ARGS="--daemon --logfile /var/log/mythtv/mythbackend.log --pidfile $RUNDIR/$NAME<br>.pid"<br>EXTRA_ARGS=""<br>NICE=0<br><br>if [ -f /etc/default/mythtv-backend ]; then<br>
. /etc/default/mythtv-backend<br>fi<br><br>ARGS="$ARGS $EXTRA_ARGS"<br><br>mkdir -p $RUNDIR<br>chown -R $USER $RUNDIR<br><br><br>case "$1" in<br> start)<br> if test -e $RUNDIR/$NAME.pid ; then
<br> echo "mythbackend already running, use restart instead."<br> else<br> echo -n "Starting $DESC: $NAME"<br><span style="color: rgb(255, 0, 0);"> ivtvctl --set-input 0
</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"> ivtv-tune -c 3</span><br> start-stop-daemon --start --pidfile $RUNDIR/$NAME.pid \<br> --chuid $USER --nicelevel $NICE --exec $DAEMON -- $ARGS
<br> echo "."<br> fi<br> ;;<div><span class="e" id="q_10ece0d901ec47a6_1"><br><br><br><br><br><div><span class="gmail_quote">On 11/9/06, <b class="gmail_sendername">Mario Limonciello
</b> <<a href="mailto:mario.mailing@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
mario.mailing@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Mike,<br><br>Recently, I have seen a few posts similar that people can't get the backend to launch from myth init scripts in Ubuntu. I'm trying to find something common between them but have yet to. I personally have 2 ubuntu backends, and haven't come up with any problems with either init script.
<br><br>By some weird chance, when you did your ubuntu install - your "first" user - did you use <span style="font-style: italic;">mythtv</span>? Your not supposed to as this user is created when you install myth and is used for myth. If that is what you did, then I've got some ideas what we can do.
<br><br>If this isn't what you did, then we need to walk through the init script and find where the trouble is. What guide did you follow for installation? Did you follow a guide? <br><br>Regards,<br><br>Mario<br><br>
<div><div><span>
<span class="gmail_quote">On 11/9/06, <b class="gmail_sendername">Michael Tiller</b> <<a href="mailto:michael.tiller@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">michael.tiller@gmail.com
</a>> wrote:</span></span></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><span>
I've nearly got my new Ubuntu based MythTV 0.20 system into a robust state. I've just got two little things left that I'm having trouble with and hopefully somebody here can point me to a solution.<br><br>The first issue is that when I reboot, it does not start the backend. There is a script in /etc/init.d called "mythtv-backend" that was installed when I installed MythTV from the repositories. However, it does not appear to get run?!? If I remove /var/log/mythbackend.log and then touch it and chown it to get it to a "0 size" state and then reboot it remains empty. Any idea what is going on there? Is there anything I have to do to (apart from putting the file in /etc/init.d) that I have to do to get the system to invoke it (I know how this is done in FC but I'm fairly new to Ubuntu, sorry).
<br><br>As a side note, is this script run as root? I assume so. I ask because I need to do a few things as root inside this script to get the system properly set up.<br><br>Actually that leads to another question...I'm having to run ivtvctl and ivtv-tune in /etc/init.d/mythtv-backend. This is because even though I have specified to use the tuner input and what the tuner channel should be set to, the backend doesn't seem to apply these properly. Any ideas on what might be going on?
<br><br>The last issue is that, once I get the backend up and running, the first time I go to "WatchTV" it just comes back to the menu after showing a blank screen for a few seconds. The second time I go to watch TV, it works (and from then on). Any ideas? I suspect a similar thing might happen for the first attempted recording (if nobody has watched TV) which could cause me to miss recordings.
<br><br>Thanks for any pointers.<br><span><br>--<br>Mike<br><br>
</span><br></span></div>_______________________________________________<br>mythtv-users mailing list<br><a href="mailto:mythtv-users@mythtv.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mythtv-users@mythtv.org
</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br><br><br></blockquote></div><br>
<br>_______________________________________________<br>mythtv-users mailing list<br><a href="mailto:mythtv-users@mythtv.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mythtv-users@mythtv.org</a>
<br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br><br><br></blockquote></div><br>
</span></div><br>_______________________________________________<br>mythtv-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a>
<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br><br><br></blockquote>
</div><br>