• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 9.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 Sep 27, 2016, 8:59 PM Sep 23, 2016, 12:28 PM

    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 Sep 23, 2016, 5:51 PM Reply Quote 0
    • C Offline
      chengstark @tjop
      last edited by Sep 23, 2016, 5:51 PM

      @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 Sep 27, 2016, 8:59 PM Sep 23, 2016, 5:54 PM

        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 Sep 23, 2016, 10:20 PM Reply Quote 0
        • T Offline
          tjop @chengstark
          last edited by Sep 23, 2016, 10:20 PM

          @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
          • C Offline
            cowboysdude Module Developer
            last edited by cowboysdude Sep 24, 2016, 3:25 PM Sep 24, 2016, 3:24 PM

            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
            • 1 / 1
            1 / 1
            • First post
              2/5
              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