Read the statement by Michael Teeuw here.
I cannot disable screen blanking with MagicMirrorOS
-
@smegbadger have you turned off screen blanking on the docker host? ubuntu or whatever owns the actual display?
-
Hi
I don’t know where that would be. The RPi boots to a login prompt. Then docker takes over and launches MM in electron. There is no GUI for me to fiddle with
Steve
-
@smegbadger @karsten13 will have to advise
-
the setup is “Raspberry Pi OS Lite” with the normal docker setup and an additional labwc container
I have no idea what is happening. Sounds like the monitor totally cuts the connection to the pi after a while.
Maybe this post contains something helpful.
What is your wlr-randr command for waking up?
-
@smegbadger if you stop mmos does the screen still turn off overnight?
-
@sdetweil I stopped docker at 9:30 last night with
docker compose down
leaving the screen at the magicmirror login prompt. This morning the screen was still showing the login prompt . MM was reinstated perfectly withdocker compose up -d --force-recreate
. @karsten13 I notice there are now four objects that start:[+] Running 4/4 ✔ Network magicmirror_default Created 0.1s ✔ Container mm Started 0.9s ✔ Container init Started 1.0s ✔ Container labwc Started 1.0s
Steve
-
the 4 objects are o.k., one network and 3 containers (
init
is only for setting correct permissions in the mount folders, it runs for a very short time, you can disable it in the.env
file if wanted).Question: When the
failed to connect to display
occurs, how do you get the screen back working? Is adocker rm -f labwc && docker compose up -d
sufficient or adocker compose up -d --force-recreate
? Or do you have do reboot? Or do you switch the monitor off and on?Other idea is to implement a
wlr-randr
call every 30min. in thelabwc
container. -
@karsten13 i have disabled the
init
container as suggested.When the display fails I can get it back with
docker rm -f labwc && docker compose up -d
(docker compose up -d --force-recreate
also works butdocker compose up -d
on it’s own doesn’t). I am running it today with theMMM-Universal-Pir
module disabled as another test (although when sitting at a login prompt it never went off).Note that the display fails after a few hours of no PIR trigger, it doesn’t have to be overnight.
Steve
-
@smegbadger said in I cannot disable screen blanking with MagicMirrorOS:
I can get it back with docker rm -f labwc && docker compose up -d
so restarting only the labwc container solves the problem …
I will try to build a labwc container which executes wlr-randr e.g. every 30min. so we can see if this helps.
-
@karsten13 said in I cannot disable screen blanking with MagicMirrorOS:
I will try to build a labwc container which executes wlr-randr e.g. every 30min. so we can see if this helps.
you can now test with a new labwc container which does the wlr-randr call every 15min. but I’m not sure this helps …
For testing change this line in the
.env
fileLABWC_IMAGE="karsten13/labwc:develop"
and then do a
docker compose pull && docker compose up -d