MagicMirror² v2.14.0 is available! For more information about this release, check out this topic.

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).

    ![0_1608621663607_Monitor3.gif](Uploading 100%)

    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!



  • Hi!
    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.

    0000211_tp-link-smart-plug_550.jpeg



  • @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.


  • Project Sponsor

    @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.js file from backup, do a whole bunch of git clone commands 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.


  • Project Sponsor

    @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.



  • @mumblebaj Yes, there are many techniques to do this. If you also want to shutdown the Raspberry Pi then you can schedule it and using hardware plug like @adrian-k mentioned power on the Pi again.


Log in to reply