<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Oct 13, 2017 at 6:24 PM, Rob <span dir="ltr"><<a href="mailto:bertaboy@gmail.com" target="_blank">bertaboy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div><div class="gmail-h5"><div><div class="gmail_extra"><div class="gmail_quote">On Oct 12, 2017 11:08 PM, "Stephen Worthington" <<a href="mailto:stephen_agent@jsw.gen.nz" target="_blank">stephen_agent@jsw.gen.nz</a>> wrote:<br type="attribution"><blockquote class="gmail-m_7780413919419824019quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail-m_7780413919419824019elided-text">On Thu, 12 Oct 2017 22:36:03 -0400, you wrote:<br>
<br>
>On Sat, Aug 5, 2017 at 10:21 PM, Rob <<a href="mailto:bertaboy@gmail.com" target="_blank">bertaboy@gmail.com</a>> wrote:<br>
><br>
>> On Mon, Jul 17, 2017 at 11:47 AM, Per Hatlevik <<a href="mailto:jakeisawake@gmail.com" target="_blank">jakeisawake@gmail.com</a>><br>
>> wrote:<br>
>><br>
>>><br>
>>>>><br>
>>>> I'm not normally one to self-bump, but is anyone actively using the<br>
>>>> mythgame plug-in?<br>
>>>><br>
>>><br>
>>> I haven't used mythgame in a long time....try retropie! It is easy to<br>
>>> start from the myth menu and is designed for the pi specifically! Also very<br>
>>> easy to configure game pads for many systems!<br>
>>><br>
>><br>
>> Mind if you give me a pointer for launching EmulationStation from within<br>
>> Myth?  I've added the following to a menu config, but I can't see responses<br>
>> on screen or anything registered in a log file:<br>
>><br>
>>      <button><br>
>>        <type>GAME</type><br>
>>        <text>Emulation Station</text><br>
>>        <action>EXEC /usr/bin/emulationstation</act<wbr>ion><br>
>>     </button><br>
>><br>
>> I'm able to execute emulationstation manually from the terminal, but no<br>
>> dice when trying through Myth....<br>
>><br>
><br>
>Not to beat a dead horse here, but is anyone able to share / point me to a<br>
>working script that shuts down lightdm and launches ES?  Also, how did you<br>
>work out getting ES to restart lightdm when you exit it?  I don't mean to<br>
>sound like an idiot, but I'm still not that familiar with Debian-based<br>
>systems.  I've tried lifting a script from some KODI work, but that just<br>
>seems to restart X....<br>
><br>
>Thank you,<br>
>Rob<br>
<br>
</div>Since Debian is using systemd now, I would think that shutting down<br>
lightdm would be the same as on Ubuntu:<br>
<br>
systemctl stop lightdm<br>
<br>
and restarting it would be:<br>
<br>
systemctl start lightdm<br>
<br>
After starting lightdm, if you are not set up to be automatically<br>
logged in, you will get the login screen.  Shutting down lightdm will<br>
shut down X and all programs running under it.<br></blockquote></div></div></div><div dir="auto"><br></div></div></div><div dir="auto">Right, I've had no problems getting ES to start when I should into the pi, but I haven't been able to figure out a script that I can get working correctly from Myth's menus. As a point of context, the only input devices taking directly to the pi are flirc (with av receiver's remote controller) and dualshock 3 controllers (either through Bluetooth or USB). The pi is in a separate room from the tv and stored away in a cabinet with the rest of my av gear and the only ways I interact with it are through these 2 input decides or ssh. </div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail-m_7780413919419824019quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote></div> I've been getting by with executing emulationstarion via ssh, but it's not as convenient as I'd like and fails the WAF</div></div></div>
</blockquote></div><br></div><div class="gmail_extra">I've finally cracked this nut, courtesy of this article <a href="http://www.aoakley.com/articles/2016-12-29-raspberry-pi-retropie-pixel-desktop.php">http://www.aoakley.com/articles/2016-12-29-raspberry-pi-retropie-pixel-desktop.php</a></div><div class="gmail_extra"><br></div><div class="gmail_extra">In a nutshell:</div><div class="gmail_extra"><br></div><div class="gmail_extra">Step 1: install ttyecho</div><div class="gmail_extra"><span style="color:rgb(0,0,0);font-family:monospace;font-size:16px;font-weight:bold;background-color:rgb(224,224,255)">curl -O "<a href="http://aoakley.com/articles/artifacts/retropie-pixel/ttyecho">http://aoakley.com/articles/artifacts/retropie-pixel/ttyecho</a>" && sudo mv ttyecho /usr/local/sbin && sudo chmod 755 /usr/local/sbin/ttyecho && sudo chown root.root /usr/local/sbin/ttyecho</span><br></div><div class="gmail_extra">Step 2: modify the theme (in my case, <span style="color:rgb(0,0,0)">.mythtv/themes/defaultmenu/library.xml ) with the following:</span><span style="color:rgb(0,0,0);font-family:monospace;font-size:16px;font-weight:bold;background-color:rgb(224,224,255)"><br></span></div><div class="gmail_extra"> <button><br>        <type>GAME</type><br>        <text>Emulation Station</text><br>        <action>EXEC <span style="color:rgb(0,0,0)">`sudo su -c "systemctl stop lightdm ; ttyecho -n /dev/tty1 \"emulationstation ; sudo systemctl start lightdm\""`</span></act<wbr>ion><br>     </button><span style="color:rgb(0,0,0)"><br></span></div><div class="gmail_extra"><br></div><div class="gmail_extra">Now my wife can play Donkey Kong 2 and satisfy her Diddy Kong cravings!</div></div>