@mitu ok i try to put it before emulationstation runs, basically the script erase an empty file that i use with an if conditional, i make an option that let me pause the music, if i activate it, the if creates an objects and while the file exists the music stop playing and if i push again the if erase the file and the music continues. i want that the raspberry erase that file if we have music paused so the music start on the startup and i can activate pause again in the menus.
Emulstation and kodi should not be services enabled/start by default at boot but rather autostart.sh start the first service by something like:
systmctl --user start kodi.service
if kodi is configured to be the first one.
To go further we can also think about replacing the autostart script by a retropie service which is enabled at boot time. At start, it launches the first configured service. At stop it ensures that emulstation and kodi are stoped.
If the service is run as pi user (which is more secure), the pi user must be lingered to enable autostart of the service at boot even if the user is not logged in.
loginctl enable-linger pi
systemctl --user enable retropie
All the services could be controlled, inspected, logged through the systemd tools
Not need for automatic login
It could be easily extended to any number of services not just 2.
No problem. I literally just figured it out. I just updated everything, used a different BGM script and in raspi-config, I disabled and enabled the text splash screen, followed by using a custom splashscreen using the OFFICIAL script off emulation station. The custom scripts are trash, absolute trash. I have to be careful.
So I have a totally new issue now, non-image related.
I used SD Card Formatter to format my Micro SD to exFat, Windows 10 recognizes it....I used Win32 Diskimager to write my image, and now Windows 10 won't recognize it. Any idea how to fix this? I must fix this because I have to create a backup, now that I fixed it. I'd appreciate the help. Thanks.
So apparently I'm an idiot. Following the guide over at Reddit, I missed one thing. I had the mini-hdmi cable plugged into the second port and not to the port closest to the power supply. Looks like everything is working now.
I removed the #emulationstation #auto line 2 of the autostart.sh, and it worked. I didn't think that line would matter since it doesn't effect mame2003 roms launched the same way. Why does multi lines cause this issue? Is there a way to include multiple lines?
Yes, I did what you said and I succeeded to lower boot time to 11 seconds for libretro emulator but only through autostart.sh.
However, non-libretro emulators still starts about 5 seconds faster through the rc.local script and I dont know what else I could do here.
It seems runcommand is a problem, because for some reason it refuses to start through rc.local properly...