attract mode to emulation station autostart.sh
-
@mitu said in attract mode to emulation station autostart.sh:
You can't switch on the fly between front-ends, you have to exit one to start the other, there's no switching mechanism implemented.
If you want to be able to choose from them at startup, you can modify
autostart.sh
and add your own script to choose between them (perhaps something done withdialog
would be enough).Sorry not been clear i think. When your in retropie, i had the script to get the option attract mode to switch front end. The first time it work, rebooting in attract mode.
In attract mode i got the option to reboot in emulation station and there's the bug. It's just reboot to attract mode. if i mode the autostart.sh (emulationstation #auto) then it's gonna work
and reboot to ES. As soon that i go back to attrack mode via the option in retropie it modify the autostart.sh to (attract #auto) and then impossible to get back to ES whitout mode the autostart.sh file or go in console mode to type emulation station. -
Looks like you're using a custom script, not something included in RetroPie. Maybe post the script you're using and how you set it up would help diagnosing the issue ?
-
@mitu your right, im using a script from my other rpi 3 in my bartop. It works in there so why not in this one ?? The other script are working (reboot, shutdown,reteoarch) are the one i try so far.
Maybe my best option is to re-do my script from scratch.
-
@masterstef said in attract mode to emulation station autostart.sh:
It works in there so why not in this one ??
Can't say without looking at the script - why don't you post it ?
-
@mitu will do it wen i get back from work
-
@mitu said in attract mode to emulation station autostart.sh:
@masterstef said in attract mode to emulation station autostart.sh:
It works in there so why not in this one ??
Can't say without looking at the script - why don't you post it ?
Ok here is the script i use to restart emulation station from attract mode.
#!/usr/bin/env bash
echo ""
echo "Switching default boot system to emulationstation and rebooting"
echo ""
sleep 5
cp /opt/retropie/configs/all/ES-Start.sh /opt/retropie/configs/all/autostart.sh
sudo reboot
#ps -fuwhoami
|grep attract |grep -v xinit |grep -v grep |grep -v xterm| awk '{print $2}' | xargs kill -9 -
The script looks ok.
Does the file/opt/retropie/configs/all/ES-Start.sh
exist ? Otherwise I don't see why the script would fail. -
@mitu oh ho ? No i dont see that file. Is there anyway to create it? Is the a way to do it in the retropie DOC page ??
-
@masterstef said in attract mode to emulation station autostart.sh:
Is the a way to do it in the retropie DOC page ??
It's not in the documentation, since it's not part of RetroPie.
But, since this is your system, didn't you create this file/script on the other system ? Why not transfer both files to the new installed Pi4 ? -
@mitu your right i can do that. Sometimes it’s better to go the easy way. Thank you.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.