Read the statement by Michael Teeuw here.
MMM-Loxone
-
I just experienced a similar issue, but It appears not to be caused by
MMM-Loxone
. I am Invastigating it… -
@idoodler
I found this passage in your code:_togglePresence: function _togglePresence(isPresent) { if (isPresent) { // Check if hdmi output is already on exec("/opt/vc/bin/tvservice -s").stdout.on('data', function(data) { if (data.indexOf("0x120002") !== -1) exec("/opt/vc/bin/tvservice --preferred && chvt 6 && chvt 7", null); }); } else { exec("/opt/vc/bin/tvservice -o", null); } }
So you are using “tvserice -o” which seems not to work for me.
would this be an alternative? LinkExecuting the commands vom @E3V3A here Link brings the Monitor Signal back, but only 1 time.
Any idea?
-
Hi, using this command brings back the Monitor signal:
xset -display :0 -dpms
-
I just implemented
vcgencmd
it looks like it is a bit quicker. I will check it out the next few days and will push it if everything works. -
@idoodler said in MMM-Loxone:
I just implemented
vcgencmd
it looks like it is a bit quicker. I will check it out the next few days and will push it if everything works.Yeah, but that only work with Rapsberry Piss , so if you want it to work on other devices, you need to use
xset
, and if you want to use xset on the Pi, you now also need to tell it that the blank screen should be black, withxsetroot -display :0 -solid black
. -
@e3v3a I think
xset
just blanks the screen without powering off the HDMI signal? -
@bobbythemoh Can you please post your
pm2
log. You can optain it by executingpm2 log MagicMirror
if you are usingpm2
.I just detected some unhandled rejections which may cause the black screen.
-
pi@MagicMirror:~ $ pm2 log MagicMirror [TAILING] Tailing last 15 lines for [MagicMirror] process (change the value with --lines option) /home/pi/.pm2/logs/MagicMirror-error-0.log last 15 lines: 0|MagicMir | [865:0515/052002.614227:FATAL:bus.cc(1197)] D-Bus connection was disconnected. Aborting. 0|MagicMir | #0 0x0000007fd980 <unknown> 0|MagicMir | #1 0x000000841db2 <unknown> 0|MagicMir | #2 0x0000012700d2 <unknown> 0|MagicMir | 0|MagicMir | npm ERR! code ELIFECYCLE 0|MagicMir | npm ERR! errno 1 0|MagicMir | npm ERR! magicmirror@2.3.1 start: `sh run-start.sh` 0|MagicMir | npm ERR! Exit status 1 0|MagicMir | npm ERR! 0|MagicMir | npm ERR! Failed at the magicmirror@2.3.1 start script. 0|MagicMir | npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 0|MagicMir | 0|MagicMir | npm ERR! A complete log of this run can be found in: 0|MagicMir | npm ERR! /home/pi/.npm/_logs/2018-05-15T05_31_52_606Z-debug.log /home/pi/.pm2/logs/MagicMirror-out-0.log last 15 lines: 0|MagicMir | MMM-Loxone Search LightControls and LightV2Controls in room 0|MagicMir | MMM-Loxone Found LightControl (Lichtsteuerung) in room OG Bad 0|MagicMir | MMM-Loxone NotificationUuid: 0ea3ebd1-008d-029d-ffff390cde3b9b45 0|MagicMir | MMM-Loxone Enabling statusupdates 0|MagicMir | MMM-Loxone Successfully executed 'dev/sps/enablebinstatusupdate' with code 200 and value 1 0|MagicMir | MMM-Loxone Got lightMood change [1] 0|MagicMir | MMM-Loxone Got room temperature: 21.8 0|MagicMir | MMM-Loxone Got lightMood change [777] 0|MagicMir | MMM-Loxone Got lightMood change [778] 0|MagicMir | MMM-Loxone Got lightMood change [1] 0|MagicMir | MMM-Loxone Got lightMood change [777] 0|MagicMir | MMM-Loxone Got lightMood change [1] 0|MagicMir | MMM-Loxone Got lightMood change [777] 0|MagicMir | MMM-Loxone Got lightMood change [778] 0|MagicMir | MMM-Loxone Got lightMood change [1]
-
@bobbythemoh Ok, thanks. No unhandled rejections.
-
@idoodler , did “vcgencmd” solve the issue?