@cyperghost , I have installed your multi_switch.sh script on my setup but it's not working. I've set it up for onoffshim as I'm using a Pimoroni PicadeX hat. If I run the script from the command line, it works as expected, but if I press the power button to shutdown, it doesn't save hi-scores etc. I have just double checked everything and now the Pi has went into a loop of shutting down straight after it executes the script in the first line of autostart.sh. I must be making a mistake somewhere, just darned if I know what I've done wrong!
I've used another SD card to boot up and get access to my setup. Here is my autostart.sh file. I load the script, then use Runcommand to run my chosen emulator and ROM, then finally if I quit out of the emulator, it loads emulationstation.
sudo /home/pi/RetroPie/scripts/multi_switch.sh --onoffshim &
/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ "arcade" "/home/pi/RetroPie/roms/arcade/starwars.zip"
wait $1
emulationstation --no-splash #auto
I've removed the sudo command from the first line and I can get back in again. Any ideas on what's going wrong?