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

 

Comments

  1. Toro Torres

    5 years ago

    This worked, thanks :)

  2. Eiji Hanso

    9 years ago

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

  3. Marco Antonio Migoranca

    9 years ago

    Thanks so much

  4. GMK

    10 years ago

    Perfect.. I appreciate the info!

  5. luis

    10 years ago

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

    1. Yusuf

      11 years ago

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

    2. Gavin Meeks

      5 years ago

      This was just the fix I needed. Thanks!

    3. Joseph Bacot

      5 years ago

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

    4. Tom Bulgin

      5 years ago

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

    5. David Hannaford

      5 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

      5 years ago

      Have rebooted everything and it is working now – thanks

    7. JJ88

      5 years ago

      Doesn’t work!

  6. Jeff Swenson

    12 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

    5 years ago

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

    any one help me pls………..