Page 1 of 1

How do you automatically switch between HDMI and composite resolution

Posted: Thu Jul 06, 2017 6:26 am
by tinkerBOY
Is there a way to automatically switch to an hdmi resolution when i plug an hdmi tv/monitor and also switch back automatically to a composite resolution (320x240) when hdmi is off or unplugged?

Re: How do you automatically switch between HDMI and composite resolution

Posted: Thu Jul 06, 2017 7:31 am
by moosepr
by default, if you start the pi with a TV on the HDMI, it will connect to that.

no HDMI connected it will revert to composite connection.

i am not aware of a way to switch it while you are up and running, but a quick reboot to switch it either way isnt too bad

Re: How do you automatically switch between HDMI and composite resolution

Posted: Thu Jul 06, 2017 8:27 am
by tinkerBOY
moosepr wrote:
Thu Jul 06, 2017 7:31 am
by default, if you start the pi with a TV on the HDMI, it will connect to that.

no HDMI connected it will revert to composite connection.

i am not aware of a way to switch it while you are up and running, but a quick reboot to switch it either way isnt too bad
Yes i already know this. This wil work if you do not set a specific composite resolution. But if you set a 320x240 resolution in config.txt it will also be your HDMI resolution.

Re: How do you automatically switch between HDMI and composite resolution

Posted: Thu Jul 06, 2017 9:29 am
by moosepr
yeah thats the only downside :(

you could leave the config.txt as it was, that way the HDMI will be able to do whatever it likes. If your theme has large enough font, you should be ok on the tft :P

Re: How do you automatically switch between HDMI and composite resolution

Posted: Fri Jul 07, 2017 3:41 am
by tinkerBOY
moosepr wrote:
Thu Jul 06, 2017 9:29 am
yeah thats the only downside :(

you could leave the config.txt as it was, that way the HDMI will be able to do whatever it likes. If your theme has large enough font, you should be ok on the tft :P
The only reason i need a fixed resolution on the composite side is for the command line texts to be readable.

I think i found the solution at https://www.raspberrypi.org/documentati ... itional.md

Re: How do you automatically switch between HDMI and composite resolution

Posted: Fri Jul 07, 2017 6:53 am
by moosepr
zeroboy wrote:
Fri Jul 07, 2017 3:41 am
moosepr wrote:
Thu Jul 06, 2017 9:29 am
yeah thats the only downside :(

you could leave the config.txt as it was, that way the HDMI will be able to do whatever it likes. If your theme has large enough font, you should be ok on the tft :P
The only reason i need a fixed resolution on the composite side is for the command line texts to be readable.

I think i found the solution at https://www.raspberrypi.org/documentati ... itional.md
ah now that IS clever!!! setting monitor based configs is genius!!