MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Screen keeps going to black after a few minutes.

    Scheduled Pinned Locked Moved Troubleshooting
    5 Posts 3 Posters 10.6k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      tjop
      last edited by paviro

      I followed these instructions to set up my magic mirror and turn off the screensaver and screen blanking but the screen is still going to black after a few minutes. Could someone please help me or let me know what I might be missing. Pretty much new to coding, so I am trying to find my way around.

      "Step 3
      Let’s disable the screen saver and screen blanking as well. This needs to be done in two places. First in the autostart configuration:
      sudo nano /etc/xdg/lxsession/LXDE-pi/autostart

      And add the following to the bottom of the file:

      @xset s noblank
      @xset s off
      @xset -dpms
      0_1466022921947_049-configure-rpi-sm.png
      

      Next in the X-windows manager configuration:
      sudo nano /etc/lightdm/lightdm.conf

      Scroll down to the [SeatDefaults] section and look for the xserver-command line below that. Change the line to look like this:
      xserver-command=X -s 0 -dpms (so you’re removing the # on the front, and adding the missing bits at the end.) Again, hit CTRL-X and say Y(es) to saving the file.


      Note from admin: Please use Markdown on code snippets for easier reading!

      C 1 Reply Last reply Reply Quote 0
      • C Offline
        chengstark @tjop
        last edited by

        @tjop true, so disable the sleeping function of the pi should work right?

        1 Reply Last reply Reply Quote 0
        • C Offline
          chengstark
          last edited by paviro

          run
          nano /home/pi/.config/lxsession/LXDE-pi/autostart
          Comment out (put a # in front of) the lines that are already in the file and add these 4 lines.

          @xset s off
          @xset -dpms
          @xset s noblank
          @midori -e Fullscreen -a http://localhost/MagicMirror/index.php
          

          This will disable the screensaver and start the magic mirror on boot and skip loading the LXDE GUI.

          quoted from “https://www.reddit.com/r/raspberry_pi/comments/3oktfu/magic_mirror_how_to/”


          Note from admin: Please use Markdown on code snippets for easier reading!

          T 1 Reply Last reply Reply Quote 0
          • T Offline
            tjop @chengstark
            last edited by

            @chengstark said in Screen keeps going to black after a few minutes.:

            https://www.reddit.com/r/raspberry_pi/comments/3oktfu/magic_mirror_how_to/

            I went ahead and tried what you suggested and it wasn’t successful. I couldn’t get it to auto-start or stop it from going to sleep. I wish I could give more details, but I am completely new to coding.

            1 Reply Last reply Reply Quote 0
            • cowboysdudeC Offline
              cowboysdude Module Developer
              last edited by cowboysdude

              An extreme measure here would be to try this:

              https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=41898&start=25

              xscreensaver can be used right off the menu… you can set/turn on/turn off functions.

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy