Read the statement by Michael Teeuw here.
Autostart & turning off powersave
-
I had the same troubles. The only thing that worked was:
@chengstark said in Screen keeps going to black after a few minutes.:
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!
the only problem with this is, that you deactivate the GUI. (without commenting out the lines, it didn’t worked in my case…)
EDIT: the @midori-line can be skipped :-)
-
Hi,
I´m thinking about the same Problem yesterday .The “Black screen” Problem. I found several guides to disable the black screen. The guide which was post by @bhepler ,too. On an other Webpage was written you only have to edit /etc/kbd/config. There should written: BLANK_TIME=30. A User explain he had change this to BLANK_TIME=0. That will help. I haven´t test it but maybe it will be help.
Later today I will test it,too
Greets gismo
-
Ok i have checked this fast. I found this part:
"# screen blanking timeout. monitor remains on, but the screen is cleared to
range: 0-60 min (0==never) kernels I’ve looked at default to 10 minutes.
(see linux/drivers/char/console.c)
BLANK_TIME=30"
I think you only have to delete the 30 an post a 0.
Maybe someone can explain me, how I have to post code correctly. :-)
-
Hey all, well, I tried every config file change that is out there, including the ones suggested above, none worked for me (I’m on a Pi 3).
What finally worked is this:
In the terminal window type: “sudo apt-get install xscreensaver” .
It will install a screen saver that you can then access from the menu. Go in and disable the blank screen.
This is the only thing that worked for me and my screen has been on for an hour now.
Hope it helps someone.
Nathan
-
We should gather all the relevant information and combine them in a big tutorial.
For example i also miss some reference to unclutter to hide the mousecursor.
For early beginners it should be as easy as possible… Maybe i will work on that the next weeks. :-) -
@deadherring said in Autostart & turning off powersave:
What finally worked is this:
In the terminal window type: “sudo apt-get install xscreensaver” .It will install a screen saver that you can then access from the menu. Go in and disable the blank screen.
This is the only thing that worked for me and my screen has been on for an hour now.
@deadherring Heh. I tried that. But then the screensaver activated and I got a lovely fiber optic flower on top of my my mirror interface. I’ll look into it again.
Edited to add: Whoops. Never mind. I wasn’t looking in the right place. I tried setting “Blank After X minutes” and it wouldn’t let me set it to zero.
-
Yup, that was the setting that I found too. Did it work for you?
-
@deadherring Give me an hour and I’ll let you know. :-)
-
@bhepler It seems to be working just fine. The mirror has been on all day so far.
-
Nice. I will be out of my home office for the next day or so, so I’ll be able to test if it stays up for the amount of time.
I just opened the wall in my bathroom to install the magic mirror + box/frame in and I want to make sure all is well before doing so.