I have been working on a slide show program in python and pygame. At a certain moment I want to be able to disable the screen to power saving mode (during the night). I did this with tvservice -o. When I use this in combination with a pygame window the the screen will stay black after re enable of the screen. I tried the screen saver code without the pygame window every thing is fine. I use fbset and xrefresh to restore the screen. But as soon as there is a pygame window on the screen the screen stays black and won't refresh. At this moment a reboot is the only option I found to get the screen back.
Any one a tip to solve this?