<div dir="ltr"><div dir="ltr"><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="text-align:left;direction:ltr"><div>  My 2 cents, do a lockout in the external channel changer script. IE when it starts, check for a flag if the flag is there, just exit.</div><div>CONECPT  code</div><div># start of script</div><div>If exists /tmp/channel_changer_running then exit</div><div>touch /tmp/channel_changer_running</div><div>do your channel changing</div><div># cleanup</div><div>if exists <span style="font-size:18.6667px"> </span><span style="font-size:18.6667px">/tmp/channel_changer_running then rm -f </span><span style="font-size:18.6667px">/tmp/channel_changer_running</span></div><div><span style="font-size:18.6667px">....</span></div><div><span style="font-size:18.6667px">Just a thought..</span></div></div></blockquote><div><br></div><div>Jim, thanks for the suggestion!  I actually implemented this this morning with the following code:</div><div><br></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_quote"># Check is Lock File exists, if not create it and set trap on exit</div><div class="gmail_quote"> if { set -C; 2>/dev/null >~/channelchange.lock; }; then</div><div class="gmail_quote">   trap "rm -f ~/channelchange.lock" EXIT</div><div class="gmail_quote"> else</div><div class="gmail_quote">   logger "ir_channel_change lirc channel change lock file exists… exiting"</div><div class="gmail_quote">   sleep 10</div><div class="gmail_quote">   exit</div><div class="gmail_quote"><div> fi </div><div><br></div></div></blockquote>I've noticed that the double channel change occurs every time I restart the backend.  I think it also semi-randomly occurs when the backend goes days without recording - but this is wild speculation (and could have had some updates via apt-get in between causing a backend restart).<div><br><div>I've actually been seeing the issue for months via wrong channel changes - just hadn't seen it occur nearly as regularly.</div></div></div>