Solved Turning HDMI off (sleep mode)
-
Hello, first of all thank you for the fantastic module. I previously used MMM-PIR-Sensor on an older MagicMirror. It worked well and turned my monitor into sleep mode when the PIR was not active. I’m trying to replicate the same functionality with your modules; EXT-screen and EXT-PIR. The modules have been great but they only blank the screen and the monitor stays on and never goes into sleep mode.
Here’s my config - am I missing something for the system to turn the monitor to sleep.
{
module: ‘EXT-Screen’,
position: ‘top_left’,
config: {
debug: false,
animateBody: true,
delay: 2 * 60 * 100,
turnOffDisplay: true,
mode: 4,
displayLastPresence: true,
lastPresenceTimeFormat: “LL H:mm”,
gpio: 17,
}
},{
module: ‘EXT-Pir’,
config: {
debug: false,
gpio: 17,
reverseValue: false
}
},Thank you in advance!
-
FYI - I tried adding the below to the boot/config.txt file and removing what was previously there but still no luck with the monitor going into sleep/standby when there’s no movement. I just get a blank screen.
dtoverlay=vc4-fkms-v3d
-
@dooby Hello. First check if your hdmi cable support CEC utility for turning on/off the monitor. I had the same problem with the shutdown recipe and it fixed by changing the hdmi cable.
-
@dooby said in Turning HDMI off (sleep mode):
FYI - I tried adding the below to the boot/config.txt file and removing what was previously there but still no luck with the monitor going into sleep/standby when there’s no movement. I just get a blank screen.
dtoverlay=vc4-fkms-v3d
related with this
Note: EXT-Pir issue is only for PIR Sensor problem and not screen turn off/on
in this case it’s EXT-Screen
I will move to proper section -
bugsounet
-
bugsounet
-
-
@bugsounet thank you so much that worked! I also had to change the mode = 1 in my config.js file. Even though everything is working I’m getting the below errors in my log when the Screen times out and goes black and then turn the monitor into standby/sleep mode. Do you know why I’m getting these errors and how I can fix them?
[1818:1010/181654.834737:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[1818:1010/181719.982075:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!Here’s the full log of the Mirror starting and the last two lines are the errors when it goes into standby when the PIR doesn’t detect movement.
pi@raspberrypi:~/MagicMirror $ npm start
magicmirror@2.21.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js[10.10.2022 18:16.06.859] [LOG] Starting MagicMirror: v2.21.0
[10.10.2022 18:16.06.866] [LOG] Loading config …
[10.10.2022 18:16.06.873] [LOG] Loading module helpers …
[10.10.2022 18:16.06.876] [LOG] No helper found for module: alert.
[10.10.2022 18:16.06.892] [LOG] Initializing new module helper …
[10.10.2022 18:16.06.894] [LOG] Module helper loaded: updatenotification
[10.10.2022 18:16.06.897] [LOG] No helper found for module: clock.
[10.10.2022 18:16.07.120] [LOG] Initializing new module helper …
[10.10.2022 18:16.07.121] [LOG] Module helper loaded: calendar
[10.10.2022 18:16.07.123] [LOG] No helper found for module: compliments.
[10.10.2022 18:16.07.125] [LOG] No helper found for module: weather.
[10.10.2022 18:16.07.157] [LOG] Initializing new module helper …
[10.10.2022 18:16.07.158] [LOG] Module helper loaded: newsfeed
[10.10.2022 18:16.07.183] [LOG] Initializing new module helper …
[10.10.2022 18:16.07.184] [LOG] Module helper loaded: EXT-Screen
[10.10.2022 18:16.07.186] [LOG] Initializing new module helper …
[10.10.2022 18:16.07.187] [LOG] Module helper loaded: EXT-Pir
[10.10.2022 18:16.07.187] [LOG] All module helpers loaded.
[10.10.2022 18:16.07.294] [LOG] Starting server on port 8080 …
[10.10.2022 18:16.07.310] [LOG] Server started …
[10.10.2022 18:16.07.312] [LOG] Connecting socket for: updatenotification
[10.10.2022 18:16.07.312] [LOG] Starting module helper: updatenotification
[10.10.2022 18:16.07.313] [LOG] Connecting socket for: calendar
[10.10.2022 18:16.07.314] [LOG] Starting node helper for: calendar
[10.10.2022 18:16.07.314] [LOG] Connecting socket for: newsfeed
[10.10.2022 18:16.07.315] [LOG] Starting node helper for: newsfeed
[10.10.2022 18:16.07.316] [LOG] Connecting socket for: EXT-Screen
[10.10.2022 18:16.07.316] [LOG] Connecting socket for: EXT-Pir
[10.10.2022 18:16.07.317] [LOG] Sockets connected & modules started …
[10.10.2022 18:16.07.544] [LOG] Launching application.
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
failed to load swrast driver
[10.10.2022 18:16.10.598] [LOG] Create new calendarfetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000
[10.10.2022 18:16.10.698] [LOG] Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
[10.10.2022 18:16.10.739] [LOG] [SCREEN] EXT-Screen Version: 1.1.4 rev: 220811
[10.10.2022 18:16.10.742] [LOG] [SCREEN] Mode 1: vcgencmd
[10.10.2022 18:16.10.773] [LOG] [SCREEN] Initialized
[10.10.2022 18:16.10.775] [INFO] Checking git for module: EXT-Screen
[10.10.2022 18:16.10.800] [LOG] [PIR] Initialize…
[10.10.2022 18:16.10.834] [LOG] [PIR] All needed @bugsounet library loaded !
[10.10.2022 18:16.10.836] [LOG] [PIR] PIR Library v1.1.0 Initialized…
[10.10.2022 18:16.10.843] [LOG] [PIR] Initialize Complete Version: 1.0.1 rev: 220403
[10.10.2022 18:16.10.851] [INFO] Checking git for module: EXT-Pir
[10.10.2022 18:16.10.880] [INFO] Checking git for module: default
[10.10.2022 18:16.11.170] [INFO] Newsfeed-Fetcher: Broadcasting 33 items.
[10.10.2022 18:16.11.579] [INFO] Calendar-Fetcher: Broadcasting 4 events.[1818:1010/181654.834737:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[1818:1010/181719.982075:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!Thank you again for your help!!
-
It’s some OS/Firmware error, don’t worry about this
-
Ok thank you!
-