<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jun 11, 2022 at 4:15 PM John Hoyt <<a href="mailto:john.hoyt@gmail.com">john.hoyt@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><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"><br>To prove it's coming from the backend, try: mythbackend --setverbose system:debug<br>
You'll see all system events start and end and return code. Leave off the :debug<br>
to get less. Use system:none to stop the extra logging.<br></blockquote><div><br></div><div>Bill,</div><div><br></div><div>Here's a snippet of the mythbackend log.  I believe it shows two calls to my channel change script:</div><div><br></div>Jun 11 16:09:55 mythtv mythbackend: mythbackend[3537]: I MetadataDownload metadatagrabber.cpp:377 (RunGrabber) Running Grabber: /usr/share/mythtv/metadata/Television/ttvdb4.py -l en -a US -N Chicago Fire Retaliation Hit<br>Jun 11 16:09:55 mythtv mythbackend: mythbackend[3537]: D MetadataDownload mythsystemunix.cpp:808 (Fork) Launching: /usr/share/mythtv/metadata/Television/ttvdb4.py -l en -a US -N Chicago Fire Retaliation Hit<br>Jun 11 16:09:55 mythtv mythbackend: mythbackend[3537]: I MetadataDownload mythsystemunix.cpp:965 (Fork) Managed child (PID: 3623) has started!  command=/usr/share/mythtv/metadata/Television/ttvdb4.py -l en -a US -N Chicago Fire Retaliation Hit, timeout=0<br>Jun 11 16:09:55 mythtv mythbackend: mythbackend[3537]: I SystemManager mythsystemunix.cpp:354 (run) Managed child (PID: 3552) has exited! command=/usr/local/bin/ir_channel_change.bash 510, status=0, result=0<br><b>Jun 11 16:09:59 mythtv mythbackend: mythbackend[3537]: D TVRecEvent mythsystemunix.cpp:808 (Fork) Launching: /usr/local/bin/ir_channel_change.bash 550<br></b>Jun 11 16:09:59 mythtv mythbackend: mythbackend[3537]: I TVRecEvent mythsystemunix.cpp:965 (Fork) Managed child (PID: 3638) has started! *& command=/usr/local/bin/ir_channel_change.bash 550, timeout=0<br><b>Jun 11 16:09:59 mythtv mythbackend: mythbackend[3537]: D TVRecEvent mythsystemunix.cpp:808 (Fork) Launching: /usr/local/bin/ir_channel_change.bash 550<br></b><div>Jun 11 16:09:59 mythtv mythbackend: mythbackend[3537]: I TVRecEvent mythsystemunix.cpp:965 (Fork) Managed child (PID: 3641) has started! *& command=/usr/local/bin/ir_channel_change.bash 550, timeout=0 </div></div></div></blockquote><div><br></div><div>Also, it appears the trap code works:</div>Jun 11 16:09:59 mythtv mythtv: ir_channel_change: lirc attempting to change channels to 550<br>Jun 11 16:09:59 mythtv irsend: lirc_command_run: Sending: SEND_ONCE Motorola_QIP6200-2 KEY_EXIT<br>Jun 11 16:09:59 mythtv lircd-0.10.1[1468]: Notice: accepted new client on /var/run/lirc/lircd<br>Jun 11 16:09:59 mythtv lircd[1468]: lircd-0.10.1[1468]: Notice: accepted new client on /var/run/lirc/lircd<br><b>Jun 11 16:09:59 mythtv mythtv: ir_channel_change lirc channel change lock file exists… exiting<br></b>Jun 11 16:09:59 mythtv irsend: lirc_command_run, state: 0, input: "BEGIN"<br>Jun 11 16:09:59 mythtv irsend: lirc_command_run, state: 1, input: "SEND_ONCE Motorola_QIP6200-2 KEY_EXIT"<br>Jun 11 16:09:59 mythtv lircd[1468]: lircd-0.10.1[1468]: Info: removed client<br>Jun 11 16:09:59 mythtv irsend: lirc_command_run, state: 2, input: "SUCCESS"<br>Jun 11 16:09:59 mythtv irsend: lirc_command_run, state: 3, input: "END"<br><div>Jun 11 16:09:59 mythtv irsend: lirc_command_run: data:END, status:0 </div></div></div>