pfaure
Posts: 7
Joined: Sun Mar 12, 2017 12:41 pm

how to stop screen saver while program is running

Tue Oct 10, 2017 1:04 am

I have a Raspberry PI 3, with a 7" display. I am running a python program with Kivy. There are times during the running of my program that the display is un-touched, but the program is still updating the screen with new information. Is there a way to stop the OS from making the screen go blank during those times? I don't want to disable the screen saver, just make it think that there was an input during certain parts of my application.

Thank you

User avatar
topguy
Posts: 3704
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: how to stop screen saver while program is running

Tue Oct 10, 2017 11:08 am

Are you running X-Windows or not ?
Kivy is using the GPU/dispmanx directly if I recall correctly, so its not really touching the standard "console" nor the "X-Windows desktop".

If you run without X and its the 60 second console timeout that triggers you might be able to simulate output on that console by writing text to "/dev/tty1".

So boot normally to console, wait until blank and then log in via SSH and test the command.

Code: Select all

echo "Hello" > /dev/tty1

Return to “Graphics programming”

Who is online

Users browsing this forum: No registered users and 3 guests