Posts: 1
Joined: Wed Nov 26, 2014 9:01 pm

pygame restart after tvservice -o

Wed Nov 26, 2014 9:12 pm


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?

User avatar
Posts: 49
Joined: Mon May 07, 2012 8:48 pm
Location: Settle, in the Yorkshire Dales
Contact: Website

Re: pygame restart after tvservice -o

Tue Feb 21, 2017 2:40 pm

Did you ever find an answer for this one John?

Return to “Python”