@sdetweil awesome. It works again. Thank you very much. greatly appreciated!
I have done my updates like this before and seem to have forgotten it this time.
@sdetweil awesome. It works again. Thank you very much. greatly appreciated!
I have done my updates like this before and seem to have forgotten it this time.
@sdetweil awesome. It works again. Thank you very much. greatly appreciated!
I have done my updates like this before and seem to have forgotten it this time.
@sdetweil thanks for your help.
The MagicMirror was running well on git commit f14e956 from Feb, 7th 2023.
When I upgraded via git pull
within the ~/MagicMirror folder, the miror would not start anymore.
Hence I tried to reverse the git pull via git reset --hard f14e956
which unfortunately did not help either.
Besides this, I previously ran the standard apt update && upgrade -y
. However, the mirror worked fine when restarting after this via pm2 restart mm
. S o I do not think it was based of this.
For reference, I run MM on a Raspberry Pi 4.
Hi there,
my MM unfortunately does not load anymore.
I already installed envsub via npm which did not help.
Is there anyone who has an idea what this could be?
Thank you very much, greatly appreciated!
The logs state the following:
0|mm | App threw an error during load
0|mm | Error: Cannot find module 'envsub'
0|mm | Require stack:
0|mm | - /home/user/MagicMirror/js/app.js
0|mm | - /home/user/MagicMirror/js/electron.js
0|mm | - /home/user/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
0|mm | -
0|mm | at Module._resolveFilename (node:internal/modules/cjs/loader:963:15)
0|mm | at n._resolveFilename (node:electron/js2c/browser_init:2:109416)
0|mm | at Module._resolveFilename (/home/user/MagicMirror/node_modules/module-alias/index.js:49:29)
0|mm | at Module._load (node:internal/modules/cjs/loader:811:27)
0|mm | at f._load (node:electron/js2c/asar_bundle:2:13328)
0|mm | at Module.require (node:internal/modules/cjs/loader:1035:19)
0|mm | at require (node:internal/modules/cjs/helpers:102:18)
0|mm | at Object.<anonymous> (/home/user/MagicMirror/js/app.js:13:16)
0|mm | at Module._compile (node:internal/modules/cjs/loader:1141:14)
0|mm | at Module._extensions..js (node:internal/modules/cjs/loader:1196:10)
0|mm | A JavaScript error occurred in the main process
0|mm | Uncaught Exception:
0|mm | Error: Cannot find module 'envsub'
0|mm | Require stack:
0|mm | - /home/user/MagicMirror/js/app.js
0|mm | - /home/user/MagicMirror/js/electron.js
0|mm | - /home/user/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
0|mm | -
0|mm | at Module._resolveFilename (node:internal/modules/cjs/loader:963:15)
0|mm | at n._resolveFilename (node:electron/js2c/browser_init:2:109416)
0|mm | at Module._resolveFilename (/home/user/MagicMirror/node_modules/module-alias/index.js:49:29)
0|mm | at Module._load (node:internal/modules/cjs/loader:811:27)
0|mm | at f._load (node:electron/js2c/asar_bundle:2:13328)
0|mm | at Module.require (node:internal/modules/cjs/loader:1035:19)
0|mm | at require (node:internal/modules/cjs/helpers:102:18)
0|mm | at Object.<anonymous> (/home/user/MagicMirror/js/app.js:13:16)
0|mm | at Module._compile (node:internal/modules/cjs/loader:1141:14)
0|mm | at Module._extensions..js (node:internal/modules/cjs/loader:1196:10)
0|mm | MESA-LOADER: failed to retrieve device information
0|mm | MESA-LOADER: failed to retrieve device information
0|mm | MESA-LOADER: failed to retrieve device information
0|mm | MESA-LOADER: failed to open kms_swrast (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
0|mm | failed to load driver: kms_swrast
0|mm | MESA-LOADER: failed to open swrast (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
0|mm | failed to load swrast driver
Hi @ferby09,
I just had a look at it, but don’t really know how to figure it out. It seems the board setup is very different from what I have researched back then.
Also, before I forget: On my TV, all backligt LEDs have been connected in series and therefore the LED driver board supplied a pretty high DC-Voltage. So be careful!
Did you try all the black and white cables that are connected to the mainboard via the CN201 connector?
As these cables are connected with the metal casing of the panel, I guess that these provide power to the BLU and therefore turn it on.
What happens if you disconnect these cables? In case the screen turns black and turns off or shows a failure mode, I guess you have the same issue than I had and it is not possible with your screen.
Also, where is the motion sensor connected to?
Can you check whether it is a digital or analogous sensor?
If it is digital, you could just disconnect it and provide the power to the signal cable via the relais.
Best
asd
Hi @ferby09,
first of all: Wow that’s a cool feature for a monitor. I didn’t know monitors with built-in PIR sensors existed, so I just googled it. Fancy!
Usually a TV/ Monitor has the following boards:
Power Board incl. /excl. LED driver board
If separated from power board: LED driver board
Main board
T-connector board
Maybe additional ones like satellite, …
I actually built my mirror in the meantime and it is working now. However, I had to go for another TV after realizing that it wouldn’t work with my Samsung since disconnecting the backlight power cable would just send it to a failure mode.
So I used a Grundig TV instead. The big difference here was, that the LED driver board was separated from the power board. A cable labeled as “BLU on/off” (BLU = BackLight Unit) was set to 3.x V to turn the BLU on or it was connected to ground to switch it off. I guess, @MrH had the same setup in the forum entry I referred in the original post in this topic.
From my research back then I would guess that Samsung TVs generally do not have a separate LED driver board.
Looking at your pictures, it seems you are showing the T-connector board which is controlling the display panel, i.e., the pixels rather than the backlight unit. Usually they are separated. Can you post a picture of the entire back of the monitor and close-ups of all boards on there?
What do you mean with “plugging the power cable”? Is it the 230V power cable connected with the wall outlet or are you speaking of a cable connected to the PIR sensor?
My suggestion:
The PIR sensor should have three connections (+, -, signal). You can make sure to trigger the PIR sensor and measure the voltage of the signal. By disconnecting/ unsoldering the pir sensor and applying the same relais-/ rpi-controlled voltage as the pir sensor, you should be able to get the same functionality.
Hi,
I am new to the MagicMirror Forum but have some first experience with MM². So, first of all thank you for contributing to this very helpful forum! It’s great.
Goal:
To save energy, I try to utilize a PIR sensor to turn on the backlight of my MM whenever someone walks by. The LCD panel however will always be on and emitting the HDMI-signal from my RaspberryPi. This solution should allow me to have a MM that’s instantly on and does neither need to boot nor show the TV logo nor show the input source.
My TV:
Samsung UE32D5000
Related issues:
This problem has already been discussed but does not really help me to much since my hardware setup is different.
https://forum.magicmirror.builders/topic/503/pir-sensor-to-cut-backlight-power/
What I did so far:
My screen has an integrated LED driver on the power board (BN44-00460A). I tried the following:
Where I need help:
Does someone know another way of maybe tricking the software of my board to think the LED’s are on without them being on? I thought of utilizing a resistor but this does not really save me energy.
Any other ideas?
Worst case, I need a new used TV: Does someone know which TV (32" or bigger) has a separate LED driver or allows the backlight to be manually switched on or off. I could do this using a relay or via a 5V pin as proposed in the related issue described above.
Thanks a lot in advance, I greatly appreciate it!