HDMI Script will not run at boot??
-
@sli4 try copying every thing from the roms on it to the pc then format the sd crad and download the last version and try on another sd card if you can
-
I'm not sure i understand your reply. The pi boots, seemingly fine. I can access my roms and use emulationstation/retroarch.
the question is about the script i have which should run at boot and decide whether to use hdmi or the dsi lcd. It doesnt seem to run the script and I'm trying to figure out how to get it to run.
-
@sli4 the
/etc/rc.local
f ile is the simplest way to run one-shot scripts on boot. -
@mitu I tried placing it in the rc.local file but perhaps i'm doing it wrong?
I'm pretty new to this so it's very possible I'm not including the right information into the etc/rc.local file.The only thing written in the file was something about IP addresses. So i wrote "/opt/initDisplay/initDisplay.sh" above the ip stuff and added sleep 5 under that (as i saw on another post/forum. is there anything else i'd need to do?
-
@sli4 Post the contents of the file here, between code blocks (
````
). One thing to remember is that the script you run in/etc/rc.local
has to either run fast and exit or you have to instruct it to run in the background, otherwise it will block the normal boot sequence. -
@mitu said in HDMI Script will not run at boot??:
@sli4 Post the contents of the file here, between code blocks ( ````)
at the top of this post is a reference to the original post "hdmi not working on tv..." I copied the script from there. It's at the bottom of the post written by @slajerek. That post will give you a better idea of what I was trying to do :/
-
@sli4 I see, so the script just changes the
config.txt
file and reboots. Does the script work if you execute it manually from the terminal ? Have you performed all the other steps in the post (create the 2 txt files in the boot partition, make the script executable) ? -
@mitu I have done all the other steps in the post. I actually started with the initial script then later rewrote it to match the "updated" post that @slajerek made. The other two files to be copied have been made and i used chmod 777 to make it executable as they mention.
I have not tried to execute it manually - I'm not sure how to do this as I've been doing everything through the Pi and not through my computer's terminal. (so the files don't exist on my computer)
-
Do you have a keyboard attached ? Press F4 to exit Emulationstation and you'll have a command line where you can run your script. If you don't have a keyboard, use SSH to connect to the RetroPie system and run the command from the command prompt.
-
@mitu that had interesting results! (though im not sure what is needed to fix it.
also - if this was attempting to run at boot shouldn't I see these errors at boot before emulation station/retropie splash screens? -
Any ideas?
-
@sli4 It looks like the
tvservice
program arguments are not correct or an update to it changed them. You'll have to find the line where the program is called and make sure it uses the correct parameters. Run that command from your terminal to check that you get no error.
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.