• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Want to turn off my monitor

Scheduled Pinned Locked Moved Troubleshooting
monitorpower-saving
27 Posts 9 Posters 22.3k Views 7 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    cruunnerr
    last edited by cruunnerr Jan 16, 2018, 12:27 PM Jan 16, 2018, 12:26 PM

    Easiest way is to use the MMM-Remote-Control module. With that, u were able to turn off and on the monitor with your phone or every other network device.

    Other options are a PIR-Sensor or a button on your mirror. There are many threads about that. Just give the search function a try ;)

    1 Reply Last reply Reply Quote 1
    • D Offline
      doubleT Module Developer
      last edited by Jan 16, 2018, 1:49 PM

      Don’t forget, you can also hook up the monitor to a PIR switch directly (check wattage allowed for the PIR switch!) or to a light/power switch or even a combination.

      I didn’t want the monitor to be in standby when I’m not home for a week, so the PIR directly controls power to the monitor to completely switch it off instead of it going to standby. And the PIR is behind a switch, too.

      1 Reply Last reply Reply Quote 0
      • R Offline
        robmcc83
        last edited by Jan 16, 2018, 10:47 PM

        Cheers for the replies everyone all is noted :)
        For now think I’ll keep searching the net for a way to have the monitor on during the day and sleep at night.
        I have found one site that shows how to do it but want to make a backup image first incase I break anything lol.
        I do like the idea of a pir. Are they easy to setup if I cannot get on with the way I’m currently looking for.
        Cheers

        1 Reply Last reply Reply Quote 0
        • R Offline
          randomnoise
          last edited by Jan 16, 2018, 11:02 PM

          For simple time based screen on & off check https://github.com/ianperrin/MMM-ModuleScheduler

          R 1 Reply Last reply Jan 16, 2018, 11:04 PM Reply Quote 0
          • R Offline
            randomnoise @randomnoise
            last edited by Jan 16, 2018, 11:04 PM

            Sorry, should say you combine with the remote control module to send screen off notifications.

            1 Reply Last reply Reply Quote 0
            • R Offline
              robmcc83
              last edited by Jan 16, 2018, 11:45 PM

              So I’ve been looking through the net and have found I can use vcgencmd display_power 0 to turn off my monitor and the same again to power 1 to turn it back on, it also explains it can be run as a cron job but I’ve never done one of them so not to sure.
              Would it all be possible to hook up a push button switch to the gpio and have them commands somehow turn the display off and on.
              Thanks

              1 Reply Last reply Reply Quote 1
              • D Offline
                doubleT Module Developer
                last edited by doubleT Jan 17, 2018, 6:57 AM Jan 17, 2018, 6:56 AM

                Don’t forget that the monitor will still be on, it’s just in standby, still consuming power. The Pi can’t switch the power of the monitor itself off.

                1 Reply Last reply Reply Quote 0
                • R Offline
                  robmcc83
                  last edited by Jan 17, 2018, 9:37 AM

                  Yeah cheers I’m aware of that, it’s just monitor uses 37w whilst on and 2w in standby so I really don’t mind it being in standby at night.
                  I think I’m going to look into mmm-remote as trying the other method using vgenmcd power makes my screensaver come back to life even though it’s Been disabled for the last 8 months.
                  Is there any tutorials anywhere in setting up mmm-schedule and mmm-remote.
                  Cheers all

                  1 Reply Last reply Reply Quote 0
                  • R Offline
                    robmcc83
                    last edited by Jan 20, 2018, 11:27 AM

                    Ok so after trying various ways to get my monitor to turn off I have still been unsuccessful.
                    What I am trying now is with a webcam.
                    I found in my box of computer bits a Microsoft lifecam hd 3000.
                    After a little Google research I can confirm the webcam works with the pi using motion software.
                    I also found a site explaining how I can add a start and and event on detection so I set vgencmd display_power 1 as start event and vgencmd display_power 0 as end event but still no luck it just keeps display on but if I enter the command in terminal my display turns on/off as it should.
                    Am I going about this in the most awkward way or is there a simple way to get the monitor to sleep using the usb webcam.
                    Thanks in advance

                    M 1 Reply Last reply Jan 20, 2018, 2:26 PM Reply Quote 0
                    • M Offline
                      Mykle1 Project Sponsor Module Developer @robmcc83
                      last edited by Mykle1 Jan 20, 2018, 2:29 PM Jan 20, 2018, 2:26 PM

                      @robmcc83

                      You could try this for ON

                      if (something) {
                      exec("/opt/vc/bin/tvservice -o", null); }

                      And this for OFF

                      { exec("/opt/vc/bin/tvservice --preferred && sudo chvt 6 && sudo chvt 7", null); }

                      Or

                      { exec('xset dpms force on', null); }
                      { exec('xset dpms force off', null); }

                      Create a working config
                      How to add modules

                      M 1 Reply Last reply Jan 21, 2018, 1:03 AM Reply Quote 2
                      • 1
                      • 2
                      • 3
                      • 1 / 3
                      1 / 3
                      • First post
                        8/27
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy