I messed up my settings.
-
@Clyde Yeah, cheers Clyde and stoney. I did wonder if this was a permission thing. Not knowing much about Linux, does this regularly happen, if you copy over files from a Windows PC via WinSCP ?
I like to backup all my configs to my PC, and then mess/tweak the configs to get the best I can from the Pi2Scart, but always have a fallback if things go wrong - the fallback being the backup. Do permissions get lost when files/folders are copied across to a different platform ?
Anyway, off to try Clyde's suggestion.Edit: Here is the result
-rw-r--r-- 1 pi pi 625
-
@John_RM_70 Normally this would not happen, since the file shares are automatically setting the permissions as
pi
user when you copy files over. Maybe you used the command like and accidentally created the file withsudo
(which would make the file ownerroot
). -
@John_RM_70 You can always try changing the permissions see if it works, if not I'd change it back.
chmod 777 /opt/retropie/configs/all/runcommand-onstart.sh
will allow anything for this file (read write and execute). To change it back (pending what you pasted was the correct permissions) it would bechmod 644 /opt/retropie/configs/all/runcommand-onstart.sh
. If setting it to 777 does work, I'd still test some other permissions so its not wide open (maybe 666 the number of the beast or 664)Also PI is the owner of the file so I would think it's ok as is right now plus the file should be readable by anyone and only writeable by the owner (pi in this case). You can also just try
chmod +x /opt/retropie/configs/all/runcommand-onstart.sh
in case the file needs to be executable only. Others here know better than I do though. -
Cheers for all the replies. What I don't understand is, if I just delete the runcommand-onstart.sh, and try without one, I still get the same python error. And it does this on anything I try to launch via ES.
I will try the suggestions by stoney66, thanks for those. If not, I'm beginning to think I will have to go back to my image backup of the whole sdcard. Problem with that is, and it's my own fault, I have done a lot of work inbetween backups - so a new backup was pending.
One last thing. What does ES first look for when you launch a retroarch/normal emulator ?
And, nothing is logged in /dev/shm - so I have nothing to look at, or go by. -
@John_RM_70 Try re-installing the
runcommand
package, that's the command that Emulationstation runs no matter which emulator is used. -
@mitu Good idea, didn't think of that. I'm just waiting for the Pi to boot. Will try that, next.
Edit: Tried all suggestions. Same error.
python: can't open file /opt/retropie/configs/all/runcommand-onstart.sh : [Error no 2] No such file or directory.
Really stumped.
-
That's really weird,
python
is only used in RetroPie for startingjoy2key
(from Runcommand) and for Bluetooth controller pairing.
Can you get the Emulationstation log from/home/pi/.emulationstation/es_log
, after you start the game and get the error, and post it on pastebin.com ? -
@mitu said in I messed up my settings.:
es_log
The log file was in /opt/retropie/configs/all/emulationstation
/opt/retropie/configs/all/emulationstation
lvl2: Attempting to launch game...
lvl2: python /opt/retropie/configs/all/runcommand-onstart.sh /home/pi/RetroPie/roms/arcade/hypsptsp.zip arcade dummy
lvl1: ...launch terminated with nonzero exit code 512!
lvl2: Creating surface...
lvl2: Created window successfully.
lvl2: req sound [detailed.launch]
lvl2: (missing)
lvl2: Attempting to launch game...
lvl2: python /opt/retropie/configs/all/runcommand-onstart.sh /home/pi/RetroPie/roms/arcade/88games.zip arcade dummy
lvl1: ...launch terminated with nonzero exit code 512!
lvl2: Creating surface...
lvl2: Created window successfully.
lvl2: Added/Updated 2 entities in '/home/pi/RetroPie/roms/arcade/gamelist.xml'
lvl2: EmulationStation cleanly shutting down.that is all it says after trying the first entry in "Arcade".
Edit: Wrong log file. Sorry. Uploaded the correct one. I was pasting a log I found online.
-
@John_RM_70 I'm sorry to say it, but your problem is not in RetroPie, it's the script you have used to replace
runcommand
lvl2: python /opt/retropie/configs/all/RGB-Pi/Emu_Launcher.py /home/pi/RetroPie/roms/arcade/88games.zip arcade dummy
Are you using a RetroPie image or a 3rd party image ?
-
My own image. Built from scratch Retropie v4.4
I have been using custom runcommand-onstart.sh settings from many Pi2scart forums. But as soon as I found settings that went out of sync on my TV, I wiped them all and started again.
Ignore the first paste, I was googling the error and found a similar problem on a different forum. Forgot I had that in the clipboard. -
@John_RM_70 And it's still wrong. The command line
lvl2: python /opt/retropie/configs/all/runcommand-onstart.sh /home/pi/RetroPie/roms/arcade/hypsptsp.zip arcade dummy
makes no sense. The
onstart
script is not meant to be executable directly, but rather included by RetroPie's Runcommand script.
And Pythong and Bash are different scripting languages, so you can't execute a shell script with python.Did you modify your
es_systems.cfg
file and replaced the Runcommand with the script line above ? -
@mitu sharp eyes monsieur (or eagle eyes?)
-
@mitu said in I messed up my settings.:
Did you modify your es_systems.cfg file and replaced the Runcommand with the script line above ?
Sharp eyes indeed. I don't believe it but there is no es_systems.cfg, just a master file from the original Retropie install, and no back up. Thankfully, I backed this up to my PC last week. So, I'm going to put the backup file back and see if that does it.
I will get back a bit later, but I think mitu has solved this.Edit:
Ha, that did it, and everything now shows up properly. I didn't have a es_systems.cfg. Copied over a older backup and everything works great. Even my original custom hdmi_timings, the ones I tried before I messed up, now all work. Great.mitu:- Many thanks for your help. I owe you a beer.
-
Good thing that you have a backup, because …
no backup, no pity.
-
Yep, no backup then we only have ourselves to blame.
I'm wondering if the problems started when I have had to pull the power plug on the Pi, after exiting a game and getting a black screen - My TV goes out of sync. So, I'm basically not doing a clean shut down, and doing this for many times.
The custom settings I have wanted are from the Pi Scart hat - the RGB-Pi. It's not a traditional hat, it's a scart cable with a GPIO pins connection with the electronics in the cable. My Pi2Scart can't use it's settings, it uses 24-bit colour depth, and a different dtoverlay.
But, it does use the superb 1600px/1900px tweaks, which is what I'm determined to get working. Such as this"megadrive") # Load Sega Megadrive timings
vcgencmd hdmi_timings 1920 1 48 192 240 240 1 3 3 16 0 0 0 59.92 0 37680000 1
tvservice -e "DMT 87"
fbset -depth 32 && fbset -depth 32 -xres 1920 -yres 240
;;
Those look great, especially scrolling. But I can't get back to ES using runcommand-onend.sh, I just get a black screen. Hence all the illegal shut downs, and wiping it all and starting again.
Anyway, you live and learn, and I've definitely learnt the hard way. Thanks to you all, appreciate it.
-
@John_RM_70 said in I messed up my settings.:
The custom settings I have wanted are from the Pi Scart hat - the RGB-Pi. It's not a traditional hat, it's a scart cable with a GPIO pins connection with the electronics in the cable. My Pi2Scart can't use it's settings, it uses 24-bit colour depth, and a different dtoverlay.
You should just enable SSH and connect to the PI, then try various
tvservice
andvcgencmd
settings to plug into theonend
script. If the screen is blank, you'd still have control and try out things and even shutdown/restart, without having to pull the plug and abruptly shutdown the system. -
mitu, this is my onend script.
vcgencmd hdmi_timings 320 1 6 30 44 240 1 3 3 21 0 0 0 60 0 6400000 1
tvservice -e "DMT 87"
fbset -depth 32 && fbset -depth 32 -xres 320 -yres 240clear
This doesn't work. Not only do I get a blank screen, the Pi isn't responding via SSH. It's like the Pi locks up, but I can't see why.
-
@John_RM_70 Try one command at a time and see which ones locks up the Pi. It's probably
tvservice
, but it could be because of the previous command, whichspecifiesmight specify an invalid mode.
Have you triedtvservice -p
(preferred mode) ?
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.