<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>