Force the screen to stay on


sudo nano /etc/lightdm/lightdm.conf

Add the following lines to the [SeatDefaults] section:


# don't sleep the screen
xserver-command=X -s 0 dpms

 

USEFUL?
We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.

Comments

  1. Toro Torres

    3 years ago

    This worked, thanks :)

  2. Eiji Hanso

    7 years ago

    Thank you, my Pi 3 now doesn´t go off when i streaming Games :)

  3. Marco Antonio Migoranca

    7 years ago

    Thanks so much

  4. GMK

    8 years ago

    Perfect.. I appreciate the info!

  5. luis

    8 years ago

    in the chromium os for raspberry how i can make the same?

    1. Yusuf

      9 years ago

      Thanks a a lot. I tried all of things have failed. But, this is working correctly.

    2. Gavin Meeks

      3 years ago

      This was just the fix I needed. Thanks!

    3. Joseph Bacot

      3 years ago

      thanks a lot im running kali linux soo crap needs to stay open this has been very helpful

    4. Tom Bulgin

      3 years ago

      Super helpful for a newbie like me. Dakboard family screen now displaying continuously. Thanks!

    5. David Hannaford

      3 years ago

      I did this and it installed the screensaver but when I click on preferences/ screensaver it just instantly flashes something on the screen for a fraction of a second and then goes away. I’m running Raspbian on pi 4b – Any suggestions?

    6. David Hannaford

      3 years ago

      Have rebooted everything and it is working now – thanks

    7. JJ88

      3 years ago

      Doesn’t work!

  6. Jeff Swenson

    9 years ago

    I know this is old, but this didn’t work for me at first either. Make sure that what you add/edit comes after [SeatDefaults] and I think the correct command is xserver-command=X -s 0 -dpms (notice the ‘-‘ before dpms)

  7. Praba

    3 years ago

    this step use but screen few second go to sleep what to do?

    any one help me pls………..

Leave a Reply to luis Cancel reply

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