<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"><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"><div dir="ltr"><div class="gmail_quote"><span style="font-family:monospace,monospace">I just put those 2 (with some extra checking) eg:</span><br></div></div></blockquote><div><div style="font-family:monospace,monospace"><br></div><div style="font-family:monospace,monospace">#!/bin/bash</div><div style="font-family:monospace,monospace">while true ; do</div><div style="font-family:monospace,monospace">    systemctl isolate multi-user.target</div><div style="font-family:monospace,monospace">    if [ $? -eq 0 ]; then</div><div style="font-family:monospace,monospace">        systemctl isolate graphical.target</div><div style="font-family:monospace,monospace">        exit 0</div><div style="font-family:monospace,monospace">    fi</div><div style="font-family:monospace,monospace">    sleep 1</div><div style="font-family:monospace,monospace">done</div><div style="font-family:monospace,monospace"><br></div><div style="font-family:monospace,monospace">(something along those lines - untested) </div><div style="font-family:monospace,monospace">Put in a script and call the script from irexec</div><br></div><div> </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"><div></div><div>Allen</div></div></div><br>
</blockquote></div></div>
_______________________________________________<br><br></blockquote><div><br></div><div>I tested the script suggested and found two problems. </div><div>1) I need to call my script with sudo. I don't know how to do that but if it works on the next myth lockup I assume I can figure it out or ask for help.</div><div>2) I had to change one line so the script is now </div><div>#!/bin/bash<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<br></div><div><br></div><div>I obviously cannot test it from the local terminal but it works fine from my desktop upstairs. My plan is to try this the next time that myth hangs up so I can confirm that it works under the actual locked conditions. My fear is that it is the video card itself that is hung and that this will not clear it. </div><div><br></div><div>Putting it in a button should be easy but not sure about the permissions part.</div><div><br></div><div>Allen</div></div></div>