-
Notifications
You must be signed in to change notification settings - Fork 150
Description
Hi @ezeholz many thanks for this great module and for your support.
You probably already know that in the new version (2.2.2) the MONITORTOGGLE command cannot turn on the monitor (but can turn it off).
I can switch the monitor on and off with MONITORON and MONITOROFF commands.
The MONITORSTATUS command always indicates the monitor is on even if it is off: {"success":true,"monitor":"on"}
http://mm_ip:8080/api/monitor/on: {"success":true,"monitor":"on"}
http://mm_ip:8080/api/monitor/off: {"success":true,"monitor":"off"}
http://mm_ip:8080/api/monitor/status: {"success":true,"monitor":"on"}
- It's always on
http://mm_ip:8080/api/monitor/toggle: {"success":true,"monitor":"off"}
- It's always off
I run the tvservice status when the monitor is off and on:
pi@raspberryMM:~/MagicMirror $ tvservice -s
state 0x2 [TV is off]
pi@raspberryMM:~/MagicMirror $ tvservice -s
state 0xa [HDMI DMT (28) RGB full 16:10], 1280x800 @ 60.00Hz, progressive
I notice only that in tvservice output [TV is off]
the 'off' word is all lowercase but in line 635 of node_helper.js the 'o' is uppercase:
let offArr = ["false","TV is Off","standby"];
I think the problem is correctly recognizing the monitor status but I don't know how to fix.