03/13/2009 12:01 PM
Re: RE: Photon and GF default video mode settings
I finally understand the situation you are requiring. You observations are quite correct.
1) Photon's io-graphics process does not cause a mode switch at all, it just relies on io-display's settings.
2) io-display reads the configuration file when first started, and stores that value.
3) If your GF application changes the display mode, io-display will stay at those settings until changed further.
The reason #3 is a valid behaviour, is because applications making GF API calls must be run as a root process, and
therefore any API calls they make are premitted, and trusted. Of course, one could argue about this particular
behaviour either way, but it is consistent with the initial design requirements.
In short, gf_display_set_mode() does not write to the configuration file, but io-display retains the setting.
My suggestions is for your GF application to query the display for the settings at the beginning, and when the GF
application terminates, it can reset the display settings.