How to Prevent Raspberry Pi Zero from Blanking or Sleeping

I was setting up a Raspberry Pi Zero in an office to use for displaying a slide show of pictures on a TV in the waiting room and dismayed to learn it would constantly go to sleep after a few minutes. I researched and tried setting the consoleblank=0 in config.txt with no luck along many other solutions, but learned none of them worked for the Raspberry Pi Zero.

I finally figured out one fix that worked that’s easy to use. Open Terminal and run the following command:

I’m not sure why, but I got an error that some dependencies were not installed. If that happens to you as well, run this command in terminal:

and then run the install for xscreensaver again

Now under Preferences, you’ll see a new option for screen saver.

On the Display Modes tab, you’ll see a drop down for Mode. Choose “Disable Screen Saver”

Your raspberry pi zero will now no longer go to sleep.


There are no comments.

Leave a Reply