As discussed with reddit user u/ben_theredonit, the pi4 fails to utilize the emulationstation.sh at the time of posting when shutting down. So editing emulationstation.sh, will not work to play a video before shut down. I solved the problem through a roundabout solution. I found a shutdown button that can be added via the carousel, developed by Steve Smith. Below is his video and in his YouTube description, his files:
The user Lampros in the youtube comments has a guide to install, if you find yourself getting the permission denied error, as many people in the comments have, I fixed mine by simply typing "sudo" in front of the "chmod +x" command
From there, I simply changed the 'rom' shutdown script adding the "sudo omxplayer RetroPie/roms/shutdown/shutdown.mp4" code and it worked.
Big thanks to reddit user u/ben_theredonit, who offered their help.
I hope this helps anyone that was lost as I was when trying to add a shutdown video.
so the thing to note here is lr-mame is in the 'experimental' section of the retropie package manager. experiments fail :P
It wouldn't be an experiment if we knew what was going to happen :)
lr-mame2003-plus seems very reliable for me, with helpful features over lr-mame2003. Is there a list of remaining issues, or a process for that to go through before it becomes a regular optional or main package?
@ramco That's weird, I never saw a TV/Remote who shuts down Kodi or the Raspberry, the power button is never assigned to o CEC button, it should only turn off the TV.
Probably it is your TV brand, never heard about that one. Each TV brand as it's own CEC implementation and name, yours might be one of the weakest.
You said you are running Kodi 18.2, Kodi is currently in version 18.8, update it and check, although I doubt it will fix your problem.
@zefolhadela Nintendo 64 is hit and miss on a Pi 3. A proper power supply might help somewhat, but really picking the right emulators for each game will be the way forward if you want to increase performance.