How do you automatically switch between HDMI and composite resolution

General GBZ-related chat goes here. Share ideas, tips and tricks, or ask questions that don't fit into the hardware/software help forums.
Post Reply
User avatar
tinkerBOY
Posts: 702
Joined: Tue May 30, 2017 4:00 am
Has thanked: 294 times
Been thanked: 200 times

How do you automatically switch between HDMI and composite resolution

Post by tinkerBOY » Thu Jul 06, 2017 6:26 am

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?
New! tinkerBOY PowerSwitch v1.0 with Safe Shutdown
Game Boy Zero Controllers available @ tinkerBOY.xyz * Support
tinkerBOY Controller v3.0 - built-in usb controller, usb audio, and usb hub
tinkerBOY Controller v2.0 - GPIO buttons and builtin PWM Audio and Amplifier
tinkerBOY Controller v1.1 - simple pcb button
* DPI Adapter - better display for GBZ
* keyboard converters - IBM XT/AT Soarer's Converter | ADB to USB Converter

User avatar
moosepr
Posts: 523
Joined: Wed Jan 25, 2017 6:18 am
Has thanked: 69 times
Been thanked: 241 times
Contact:

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

Post by moosepr » 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
Get a small cheep LCD in your project https://www.sudomod.com/forum/viewtopic.php?f=22&t=2312
Wrap it all round a battery https://www.sudomod.com/forum/viewtopic.php?f=13&t=2292
Or use a custom PCB to make it really small https://www.sudomod.com/forum/viewtopic.php?f=13&t=2512
or make it really really really really tiny!! https://www.sudomod.com/forum/viewtopic.php?f=13&t=2919

User avatar
tinkerBOY
Posts: 702
Joined: Tue May 30, 2017 4:00 am
Has thanked: 294 times
Been thanked: 200 times

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

Post by tinkerBOY » Thu Jul 06, 2017 8:27 am

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.
New! tinkerBOY PowerSwitch v1.0 with Safe Shutdown
Game Boy Zero Controllers available @ tinkerBOY.xyz * Support
tinkerBOY Controller v3.0 - built-in usb controller, usb audio, and usb hub
tinkerBOY Controller v2.0 - GPIO buttons and builtin PWM Audio and Amplifier
tinkerBOY Controller v1.1 - simple pcb button
* DPI Adapter - better display for GBZ
* keyboard converters - IBM XT/AT Soarer's Converter | ADB to USB Converter

User avatar
moosepr
Posts: 523
Joined: Wed Jan 25, 2017 6:18 am
Has thanked: 69 times
Been thanked: 241 times
Contact:

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

Post by moosepr » 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
Get a small cheep LCD in your project https://www.sudomod.com/forum/viewtopic.php?f=22&t=2312
Wrap it all round a battery https://www.sudomod.com/forum/viewtopic.php?f=13&t=2292
Or use a custom PCB to make it really small https://www.sudomod.com/forum/viewtopic.php?f=13&t=2512
or make it really really really really tiny!! https://www.sudomod.com/forum/viewtopic.php?f=13&t=2919

User avatar
tinkerBOY
Posts: 702
Joined: Tue May 30, 2017 4:00 am
Has thanked: 294 times
Been thanked: 200 times

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

Post by tinkerBOY » 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
New! tinkerBOY PowerSwitch v1.0 with Safe Shutdown
Game Boy Zero Controllers available @ tinkerBOY.xyz * Support
tinkerBOY Controller v3.0 - built-in usb controller, usb audio, and usb hub
tinkerBOY Controller v2.0 - GPIO buttons and builtin PWM Audio and Amplifier
tinkerBOY Controller v1.1 - simple pcb button
* DPI Adapter - better display for GBZ
* keyboard converters - IBM XT/AT Soarer's Converter | ADB to USB Converter

User avatar
moosepr
Posts: 523
Joined: Wed Jan 25, 2017 6:18 am
Has thanked: 69 times
Been thanked: 241 times
Contact:

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

Post by moosepr » Fri Jul 07, 2017 6:53 am

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!!
Get a small cheep LCD in your project https://www.sudomod.com/forum/viewtopic.php?f=22&t=2312
Wrap it all round a battery https://www.sudomod.com/forum/viewtopic.php?f=13&t=2292
Or use a custom PCB to make it really small https://www.sudomod.com/forum/viewtopic.php?f=13&t=2512
or make it really really really really tiny!! https://www.sudomod.com/forum/viewtopic.php?f=13&t=2919

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest