[SOLVED] Swap from lcd to full size screen (both via hdmi port)
-
@sahelX Without really modifying anything, I think you could write a bash script that copies a saved configA.txt over top of config.txt, then issues a reboot command. Make another that copies configB. Then, drop these scripts into the ROM folder for Ports. They would show up as "Ported" game titles, but you would know they are your scripts. Then, you simply D-pad over to Ports (your menu of scripts, essentially) and select the config you want. It copies, reboots, and you are back in business.
There may be other systems/emulators defined in ES that would allow this, but I think Ports recognizes a .sh file as a "rom" so to speak. Maybe they could also live in the RetroPie menu too. I dunno. The point is, you can leverage the existing menu list functionality, only instead of launching ROMs you are launching your scripts.
-
@caver01 this is genius! Masquerading script as ports would also be good for the simple use I plan. The only problem is that I really never ever programmed anything, not even know how to use bash, so I was asking for someone to do it for me. I would act as a tester with my raspi3/retropie.
-
Ah nice, I've never played around with ports, but it does sound like the right idea if it will execute bash scripts directly from the front-ends.
Thanks for the tip!
-
@Howitzer99 yes if only I could program using bash or so... by the way I used the word "reboot" but in reality it should be more a "shut down and then press the button and power up" because I would like to have enough time to connect the cable...
In any case: thanks for your response guys! At least I don't feel like fighting windmills alone! -
@sahelX In the spirit of transparency, I know just enough command line stuff to get by. Whenever I attempt to write a bash script I need to have google handy.
I would suggest that you research a few things and make an attempt at it. Look up a few commands, like "cp" (copy), how to specify the source and destination paths in that command, how to force an overwrite, etc.. Then, lookup commands for rebooting the Pi and try it at the command line. Then, you will need to write scripts and make your scripts executable. Read about how to properly format a bash script file. It's really just a text file. Some of this detail can be found in Retropie's documentation in Ports, although the examples are more complex because they deal with launching ported games.
I guess my point is, give it a try. You will earn a lot more respect if you make an attempt and then ask questions (and you will learn the skills to improve/enhance your setup later).
-
@caver01 'kay, I will give it a try, worst come to worst, I will just reinstall the image!
-
@sahelX if you make a copy of your /boot/config.txt, about the worst thing you can do is mess up that file, and to fix it, just copy your backup into place.
-
@sahelX Oh, and some commands require permissions, which is why you often see "sudo " at the beginning of the command. This executes the command as the Super User--basically, a temporary admin. Some folders/file may be protected in a way that prevents you from casually issuing a copy command to overwrite. Using sudo where appropriate can overcome this. I only mention it because you may run into this problem before you really get going!
-
Thanks guys, it worked!
-
I got this HDMI detect or LCD working good.. It takes a while before the script kicks in.. Maybe it should go in rc.local instead?
Opinions?What I also need to do is have a LCD profile Start Roms without game frame/boarder . Rather have it expand full LCD and use frame when using HDMI..
Any ideas?Thanks so much
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.