Hello!
I’m trying to get a commodore 64 emulator to autostart when I plug in my pi using dietpi, and then autoshutdown when I exit the emulation.
What I have done so far-
Installed dietpi and updated.
Used the retropie installation script to install the vice emulator (only) from source.
succeeded in making dietpi autologin.
succeeded in starting x64, the vice c64 emulator.
I did the autologin by slightly altering the /etc/inittab file and autostarting the emulator by slightly altering the /etc/rclocal file.
The changes to my /etc/inittab:
#1:2345:respawn:/sbin/getty --noclear 38400 tty1
1:2345:respawn:/bin/login -f root tty1 </dev/tty1 >/dev/tty1 2>&1
The changes to my /etc/rclocal
#/DietPi/dietpi/dietpi-services start
#/DietPi/dietpi/dietpi-banner 0
#echo -e " Default Login:\n Username = root\n Password = dietpi\n"
#exit 0
/opt/retropie/emulators/vice/bin/x64
Never done anything like this before and am learning as I go. So I don’t know if I did this the best way or not, but this has succeeded in my being able to plug the pi in, and not touching it again until it is in emulation.
Now I would like to autoshutdown when the emulator is exited. I think maybe this can be simply done by slightly altering anther file because when I exit the emulator it wants me to log in and the little messages that pop up normally before log in (identifying the root and dietpi password and the options below that in the little list), reappear. But I haven’t found the file that has the lines that do it (the lines I added a # to in the rclocal file to comment them out - I believe these must reappear in another file since I see the same bit again when I exit the emulator).
But maybe a script of some sort would be the way to go? Not having done any of this before, I am uncertain?
Help?
I do have additional goals for this after the autoshutdown on emulation exit and if anyone can offer help with these goals as well it would be much appreciated. These are:
text silent boot and shutdown- all text replaced by splash screens or animation during startup and shutdown.
I need to figure out how to go in and change the config files of the emulator so it points to directories where disk images are stored for the games and maybe map some buttons to my logitech joystick a bit differently- would be nice to have one button do a reset on the emulator and another swap joystick ports and get rid of the thumbstick button that keeps bringing up the menu every time I get excited in a game and press down on the joystick accidentally. LOL
Anyway- any interest or help would be appreciated. If I can figure out the autoshutdown and get some splash screens going then maybe a image of the microsd card could be made available and c64 fans could have a nice little c64 machine for cheap. And then I could apply the stuff to an image for an amiga emulator and then have a nice little amiga machine for cheap.
I don’t see where anyone has done this yet and it seems such an obvious and fun thing to do to end up with a c64 and amiga that can simply be plugged in and the OS is hidden under the emulator the whole time. I would think these would be very popular microsd images.