Switching video out on pi 3
-
I have a somewhat odd request. I'd like to switch between analog and HDMI video out as easily as possible-perhaps as a script that could be run from the menu.
My project uses HDMI to go to a built-in screen on the system. That should always be the default. But I also wanted to use the 4-way analog plug to plug into an external tv. The idea being I could hook the system up to a tv and use USB controllers with friends, or use it portable with the built in screen.
Does that make sense? How hard would that be?
-
You need to reboot to change the video output, but this will do what you want automatically depending on HDMI plugged in or not:
https://github.com/superjamie/lazyweb/wiki/Raspberry-Pi-Display-Auto-Switching
-
@suprjami so what about the opposite? Because hdmi drives the built in screen so it will ALWAYs be plugged in. It's the analog that might not be
-
@bfenty You'll need to play around with the
tvservice
command and see what output it gives in each situation, look at what changes you need to make toconfig.txt
to put the output on the display you want, then modify that script to suit. -
@suprjami ok. Thanks that gets me started. If I can get it working I'll post back.
Is there a way to add a shortcut script to the menu in retro pie?
-
@bfenty The script runs automatically on boot, so you just reboot the normal way.
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.