Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: marcom_to on November 01, 2024, 04:39:28 AM

Title: Screen Resolution change at AM startup
Post by: marcom_to on November 01, 2024, 04:39:28 AM
Hello everyone,

I have this issue whenever I start attract mode from tty: actually my system boots at 1024x576 in console mode (no X), but when I start AM by typing attract the screen resolution changes. Here's the output from the log file:

Created Attract-Mode Window: 1922x1082 @ -1,-1 [OpenGL surface: 1922x1082 bpp=32]
Monitor's Refresh Rate: 60 Hz

My Touchscreen does not hold that resolution, therefore it reboots.
Is there a way to retain my boot resolution at 1024x576@59HZ?
By the way, this does not depend on the layout I am using, since it even happens when configuring AM the first time (setup screen).
My system is Raspberry PI4 8GB, compiled sfml-pi and attract from source.

Thank you, have a good day.
Title: Re: Screen Resolution change at AM startup
Post by: marcom_to on November 03, 2024, 07:52:12 AM
I solved the problem by overriding the hdmi edid. I created a custom edid binary file with the desired resolution (1024x576).
Now when I start AM it grabs the above screenmode and my display does not reboot anymore.
Title: Re: Screen Resolution change at AM startup
Post by: jakabasej8 on December 18, 2024, 02:48:27 AM
I solved the problem by overriding the hdmi edid. https://www.plastikatrcek.si/3d-filamenti/ (https://www.plastikatrcek.si/3d-filamenti/) I created a custom edid binary file with the desired resolution (1024x576).  https://spartan-agency.com/services/advertising (https://spartan-agency.com/services/advertising)
Now when I start AM it grabs the above screenmode and my display does not reboot anymore.
That's great! Overriding the HDMI EDID with a custom binary file is a smart way to force the desired resolution.