My new solution to this problem is the MEGAPi CASE from RetroFlag:
http://retroflag.com/MEGAPi-CASE-M.html. It only costs $25 with free shipping from Amazon and works great once you have the Safe Shutdown and Safe Reset setup correctly.
To get those Safe Shutdown and Safe Reset features up and running on DreamPi, you need to do the following.
1. SSH into your DreamPi (or connect it up to a monitor with a keyboard and login to the pi account)
2. Follow the directions for RetroPie as documented on their GitHub page:
https://github.com/RetroFlag/retroflag-picase3. Once DreamPi reboots, from the raspi-config, set the [3] Boot Options to [2] automatically login as the pi user to the command line
4. Navigate to /opt/RetroFlag and edit the SafeShutdown.py file
5. change line 19 from
Code: Select all
os.system("sudo killall emulationstation && sleep 5s && sudo shutdown -h now")
to
Code: Select all
os.system("sudo shutdown -h now")
6. change line 23 from
Code: Select all
os.system("sudo killall emulationstation && sleep 5s && sudo reboot")
to
7. remove any extra spaces after any line in the SafeShutdown.py file
For whatever reason, when I left these spaces in, the script would not work and the buttons on my MEGAPi CASE would result in a hard shutdown or reset.8. re-run the Safe Shutdown installation by executing
Code: Select all
wget -O - "https://raw.githubusercontent.com/RetroFlag/retroflag-picase/master/install.sh" | sudo bash
After rebooting, you should find that the pi user is automatically logged in and that once you flip the switch to "Off", the LED on the MEGAPi CASE will start blinking and the shutdown sequence for the DreamPi will start or once you hit the reset button, the reboot sequence for the DreamPi will start.