<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, May 23, 2014 at 5:08 PM, Craig Huff <span dir="ltr">&lt;<a href="mailto:huffcslists@gmail.com" target="_blank">huffcslists@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sat, May 17, 2014 at 1:32 AM,  &lt;<a href="mailto:f-myth-users@media.mit.edu">f-myth-users@media.mit.edu</a>&gt; wrote:<br>

snip...<br>
&gt;<br>
&gt; Try replacing the calls to the scripts with calls to a script<br>
&gt; consisting of some or all of<br>
&gt;<br>
&gt;   #!/bin/bash<br>
&gt;   id &gt;&gt; /tmp/DEBUG<br>
&gt;   groups &gt;&gt; /tmp/DEBUG<br>
&gt;   set &gt;&gt; /tmp/DEBUG<br>
&gt;   printenv &gt;&gt; /tmp/DEBUG<br>
&gt;<br>
&gt; and see if you get the same results when you call it as you, as the<br>
&gt; mythtv user, and as when myth itself tries to change channels.  If you<br>
&gt; don&#39;t, try either changing the scripts&#39; environments to match the<br>
&gt; by-hand calls and see if they work, or try changing the by-hand<br>
&gt; calling environment to match the mythtv environment and see if it<br>
&gt; fails.<br>
&gt;<br>
&gt; This will also tell you if your script is getting called at all when<br>
&gt; mythtv tries to change channels, of course; maybe myth isn&#39;t even<br>
&gt; trying.<br>
&gt;<br>
<br>
I took your suggestion and created the wrapper scripts.  Manual<br>
testing worked fine, but it appears they don&#39;t even get called by<br>
myth.  I verified that the fully-specified paths to the channel<br>
changing scripts are correct (no typos!), but nothing is getting added<br>
to the /tmp/DEBUG file when myth is supposed to be changing a channel!<br>
 I re-verified that the scripts have world read-execute permissions,<br>
as do the scripts that really do the work.  All the scripts write<br>
things that should end up in the log file, so they&#39;re never getting<br>
called.<br>
<br>
I did notice that mythmetadatalookup is being called when I&#39;m trying<br>
to change the channel in live-tv mode.  Is it possible that something<br>
else is getting stuck before the channel-changing script gets called?<br>
<br>
When I change the channel, I often (but not always) get a message<br>
about framebuffering failed too many times and then myth goes back to<br>
the main frontend screen. There is information in the screen info<br>
panel to the effect that the video signal level dropped out and/or the<br>
system couldn&#39;t lock on to the video signal.  Since it never called<br>
the routine to change the channel, I don&#39;t understand this at all.<br>
<br>
I tracked the contents of several myth***.log files while I made an<br>
attempt to change the channel while in live-tv mode and noted these<br>
things:<br>
  * mythpreviewgen complained that /home/mythtv/.mythtv/config.xml<br>
could not be opened for writing, but it seemed to succeed at grabbing<br>
a preview anyway.<br>
  * while it shouldn&#39;t be relevant, for full disclosure&#39;s sake, I also<br>
have a configuration problem with the audio controls and mythfrontend<br>
reported that ALSA couldn&#39;t register device /dev/mixer.<br>
  * mythfrontend reported numerous messages about waiting for video<br>
buffers that all end with 32 &quot;A&quot;s in a row followed by a &quot;P&quot;.<br>
<br>
Your ideas were great, but no Eureka! ensued.  I really hate grasping<br>
at straws, but I&#39;ve completely run out of ideas on this one.<br>
<br></blockquote><div><br></div><div>After the initial run as &quot;user&quot;, the DEBUG file already existed.  The mythtv user probably cannot write to it.  Delete /tmp/DEBUG and try it again.  Or /tmp is not writeble by mythtv maybe? </div>
</div></div></div>