Here is an update...<br><br>&nbsp; If I remove all my &quot;customizations&quot;, the backend starts up.&nbsp; I followed your advice Mario and added mythtv to the dialout group.&nbsp; That got rid of one problem.&nbsp; However, when I removed the other two lines (to set the input and channel), the backend started but *did not* set the correct video source.&nbsp; I don't understand why.&nbsp; I reran mythtv-setup and I specified &quot;Tuner 1&quot; on my PVR-150 and I specified that it should preset the tuner to channel three and use an external channel changing command.&nbsp; The external channel changer is working fine so it &quot;absorbed&quot; that bit but it does not seem to be getting the inputs setup right.
<br><br>&nbsp; So there are two mysteries here.&nbsp; Why can't the backend get the PVR-150 in the right mode itself and why does running the ivtv utilities cause the startup script to bomb out?!?&nbsp; I tried redirecting the output from the commands to standard out.&nbsp; It appears that the ivtvctl --set-input 0 fails to run when run from a startup script?!?&nbsp; Perhaps the same thing is keeping ivtvctl and the mythbackend from setting this...but what could it be?&nbsp; Do you think I need to load a kernel module prior to this or something?!?!?!?!?
<br><br>&nbsp; Thanks for all the help so far.<br><br>--<br>Mike<br><br><div><span class="gmail_quote">On 11/9/06, <b class="gmail_sendername">Mario Limonciello</b> &lt;<a href="mailto:mario.mailing@gmail.com">mario.mailing@gmail.com
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Michael,<br><br>I think I mis-interpreted your first post.&nbsp; 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&nbsp; scripts by default.&nbsp; (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 &quot;dialout&quot; group.&nbsp; I will notate this to be added to the guide under serial control.&nbsp; 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?&nbsp; 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.
<div><span class="e" id="q_10ece163b37be518_1"><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> &lt;<a href="mailto:michael.tiller@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
michael.tiller@gmail.com</a>&gt; 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>&nbsp; Thanks for the response.&nbsp; I did not use mythtv as my first user.&nbsp; 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>&nbsp; Note that I have no trouble starting it manually (via sudo).&nbsp; I have added three lines which I've highlighted in red.&nbsp; 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>&nbsp; I dont know what the lines:<br><div style="margin-left: 80px;"># Default-Start:&nbsp;&nbsp;&nbsp;&nbsp; 24<br>
# Default-Stop:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S<br></div>...mean but I'm assuming they are fine as configured.<br><br>&nbsp; Note that everything in red is a hack so I'm working on trying to eliminate the need for them.&nbsp; 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.&nbsp; The other two things Myth should do for me but does not seem to?!?
<br><br>&nbsp; Thanks for any ideas.<br><br>--<br>Mike<br><br>#! /bin/sh<br>### BEGIN INIT INFO<br># Provides:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mythtv-backend<br># Required-Start:&nbsp;&nbsp;&nbsp; $local_fs<br># Required-Stop:&nbsp;&nbsp;&nbsp;&nbsp; $local_fs<br># Default-Start:&nbsp;&nbsp;&nbsp;&nbsp; 24
<br># Default-Stop:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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=&quot;mythbackend&quot;
<br>DESC=&quot;MythTV server&quot;<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=&quot;--daemon --logfile /var/log/mythtv/mythbackend.log --pidfile $RUNDIR/$NAME<br>.pid&quot;<br>EXTRA_ARGS=&quot;&quot;<br>NICE=0<br><br>if [ -f /etc/default/mythtv-backend ]; then<br>


&nbsp; . /etc/default/mythtv-backend<br>fi<br><br>ARGS=&quot;$ARGS $EXTRA_ARGS&quot;<br><br>mkdir -p $RUNDIR<br>chown -R $USER $RUNDIR<br><br><br>case &quot;$1&quot; in<br>&nbsp; start)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if test -e $RUNDIR/$NAME.pid ; then
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo &quot;mythbackend already running, use restart instead.&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo -n &quot;Starting $DESC: $NAME&quot;<br><span style="color: rgb(255, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ivtvctl --set-input 0
</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ivtv-tune -c 3</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; start-stop-daemon --start --pidfile $RUNDIR/$NAME.pid \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --chuid $USER --nicelevel $NICE --exec $DAEMON -- $ARGS
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo &quot;.&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fi<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;<div><span><br><br><br><br><br><div><span class="gmail_quote">On 11/9/06, <b class="gmail_sendername">Mario Limonciello
</b> &lt;<a href="mailto:mario.mailing@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
mario.mailing@gmail.com</a>&gt; 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.&nbsp; I'm trying to find something common between them but have yet to.&nbsp; 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 &quot;first&quot; user - did you use <span style="font-style: italic;">mythtv</span>?&nbsp; Your not supposed to as this user is created when you install myth and is used for myth.&nbsp; 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.&nbsp; What guide did you follow for installation?&nbsp; Did you follow a guide?&nbsp; <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> &lt;<a href="mailto:michael.tiller@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">michael.tiller@gmail.com
</a>&gt; 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.&nbsp; 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.&nbsp; There is a script in /etc/init.d called &quot;mythtv-backend&quot; that was installed when I installed MythTV from the repositories.&nbsp; However, it does not appear to get run?!?&nbsp; If I remove /var/log/mythbackend.log and then touch it and chown it to get it to a &quot;0 size&quot; state and then reboot it remains empty.&nbsp; Any idea what is going on there?&nbsp; 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?&nbsp; I assume so.&nbsp; 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.&nbsp; 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.&nbsp; 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 &quot;WatchTV&quot; it just comes back to the menu after showing a blank screen for a few seconds.&nbsp; The second time I go to watch TV, it works (and from then on).&nbsp; Any ideas?&nbsp; 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 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>