I have a short program in c using SDL to display a test pattern. The idea is that the pi will, either through a delay or gpio push button, cycle through resolutions and display an image each time.
The drama is that if I try an unsupported resolution the screen blacks out and I have to ssh in to restart the pi. I`ve tried different combinations of software or hardware surface, double buffering etc.
I had hoped that listmodes would return the supported resolutions of the TV but it seems not.
Is there a way to catch it if the screen doesnt initialize properly? Or to query the TV what resolutions it will take?
I should point out it runs in console and is only connected via HDMI. Also I can post code if necessary.