<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 6, 2020 at 12:07 PM Allen Edwards <<a href="mailto:allen.p.edwards@gmail.com">allen.p.edwards@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>Success!  Thanks so much for the help. There is no way I could have done this on my own.</div><div><br></div><div>I put the whoami > wai.txt at the beginning of the script and found that wai.txt said 'dad' and there was a popup asking for my password. Then only half the script ran, which was disturbing. After adding dad to the sudoers.d file as suggested, and adding sudo to the key instruction I now find that pressing the button works and both halves of the script run.</div><div><br></div><div>I have programmed a key on my remote to execute the script and have vdpau back for playback. Now I just have to wait a month or so for mythfrontend to lock up and really test this script. My only fear is that the underlying problem is that the video card is locking up and that it is not an OS problem and that this will not clear it. I will let you all know.</div><div><br></div><div>Thanks again for your help.</div><div><br></div><div>Just for the record, here is what I did. Note, I added mythtv in the sudoers.d/killgui file as part of my troubleshooting. I doubt it is necessary</div><div><b>dad@NewMyth:/usr/local/bin$ more killgui.sh<br>#!/bin/bash<br>        whoami > /home/dad/whi.txt<br>         while [  true  ]; do<br>                systemctl isolate multi-user.target<br>                if [ $? -eq 0 ]; then<br>                     systemctl isolate graphical.target<br>                     exit 0<br>                fi<br>                sleep 1<br>         done</b><br><br><b>dad@NewMyth:/usr/local/bin$ ls -l killgui.sh<br>-r-xr-x--- 1 root mythtv 246 Mar  6 11:10 killgui.sh</b><br><br><br><b>dad@NewMyth:/etc/sudoers.d$ more killgui<br>dad ALL=NOPASSWD:/usr/local/bin/killgui.sh<br>mythtv ALL=NOPASSWD:/usr/local/bin/killgui.sh</b><br><br><br><b>dad@NewMyth:/etc/sudoers.d$ ls -l killgui<br>-r--r----- 1 root mythtv 90 Mar  6 11:13 killgui</b><br><br><br>Modification of /home/dad/.mythtv/lircrc<br><br><b>begin<br>    remote = N2QAHB000012<br>    prog = irexec<br>    button = Play+<br>    config =  sudo /usr/local/bin/killgui.sh &<br>    repeat = 0<br>    delay = 0<br>end</b><br></div><div><br></div><div>Allen</div></div></blockquote><div><br></div><div>Interesting that I said I would have to wait a month for the system to lock up and test this script and it has been exactly a month. In any event, the script worked and cleared the lock up in a very reasonable time certainly under a minute. It has now been battle tested. All I had to do was remember where I put the "kill" button on the remote but it was in an obvious place and it worked. </div><div><br></div><div>Thanks once again to everyone who helped me get this working.</div><div><br></div><div>Allen </div></div></div>