Need help on monitor power
Very exited about my first MagicMirror!
I have a question about powering my monitor … tried searching the Forum but was not able to find any similar question:
My monitor have a power button, and if monitor is unplugged I need to turn it on using that button or TV remote. I wanted to find out if it is possible to turn monitor on once it is plugged in (without using the On/Off switch - see picture below).
I am planning to add a power strip with 2 outlets inside and add a switch on the outside of the mirror to turn on both Monitor and RaspberryPi together - so the switch on the monitor will not be needed.
Any helpful links with the similar problem would be welcome.
Thanks in advance for your help!
I have used a multiple outlet power strip that is hidden inside my mirror. Im also using a TP-link smartplug to control the power strip, so its automatically turns on my RP4 and monitor.
This works fantastic, as I am only using my monitor in the morning and in the evening after work. I have made a schedule to turn on/off the mirror for each day in the app.
@shalumov Powering off the raspberry pi directly from power strip is not recommended as it might corrupt the SD card. Your monitor is not switching on after powering on but stays in stand by can be solved using Raspberry pi itself. check Remote-control or other modules/scripts in this forum who supports it. If you monitor support CEC or other standard then it is doable with raspberry pi and you do not need to use Monitor/TV remote or button.
@ashishtank - It has been my experience that shutting off the power without shutting down the Pi will corrupt the SD card after about 18 months of daily hard shutoffs. Rebuilding the SD card with a backup config is about a 45 minute process by this point, most of it just waiting for the npm install routine to finish.
I have a lot of Pi laying about due to work, so I usually have 3-6 unconfigured Buster installations on SD cards on my desk. Run the installation script, copy the
config.jsfile from backup, do a whole bunch of
git clonecommands and I’m off & running again. SD cards are cheap. Easy enough to have a spare card for the mirror ready to go.
(If you were really paranoid, you could have the spare SD card taped to the inside of your mirror. Corrupted card? Shutdown, swap, boot. Rebuild corrupted card during your spare time)
@bhepler Thanks for sharing your experience, I also did sometimes pulled the plug but I prefer not to do this as later on I might need to correct the things like you said. Also being a programmer if I can automate something then won’t do it manually so I prefer to schedule a shutdown/Restart by software or hardware Which will also save power and SD card and manual efforts.
@ashishtank I use MMM-Networkscanner and control my screen via that. If it does not detect my device residents then it powers the monitor off and when the device is detected on the network then it powers the monitor on. That way when I go out it powers the monitor off automatically and powers it on when I am back home.