How to Disable Screen Sleep in Raspberry Pi

If you have been using a Raspberry Pi, you might have encountered that the screen sleeps or turns off after some time when you do not use the mouse or keyboard.

The turning off of the display when there is no activity in Raspberry Pi is called Screen Blanking. By default this is enabled.

Screen Blanking or sleeping is good if you want to save power, but distracting (sometimes annoying) if you are doing something in the Raspberry Pi.

To turn this feature off you do not have to install xscreensaver, you only need to disable it in the Raspberry Pi Configuration.

Follow the steps below to disable screen sleeping of your Raspberry Pi.

Steps to disable Screen Blanking or Sleeping with the Raspberry Pi

Click on the Menu button on the upper right (Raspberry Pi Icon) >> Preferences >> Raspberry Pi Configuration.

In Raspberry Pi Configuration Window, click on Display Tab.

Look for the Screen Blanking row, click Disable.

Then click OK.

A window will open and asks if you like to reboot the Raspberry Pi. Click Yes.

Raspberry Pi will reboot.

Once reboot is finished you will now be able to use the Raspberry Pi without the screen turning off when you are not doing anything.

I hope the above information helped.

5 thoughts on “How to Disable Screen Sleep in Raspberry Pi”

  1. This worked for me:
    Open up /etc/lightdm/lightdm.conf using your favorite text editor (I prefer nano).
    Look for the line #xserver-command=X. Change it to xserver-command=X -s 0 dpms
    Save and reboot.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.