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

MM current version on Raspberry Pi 5 cannot turn off monitor

Scheduled Pinned Locked Moved Solved Troubleshooting
53 Posts 9 Posters 24.0k Views 9 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.
  • J Offline
    JohnGalt
    last edited by Jan 2, 2024, 11:45 PM

    I’m having the same issues… I recently built a new MagicMirror instance using the latest Raspbian OS, and the commands I have used in prior instances don’t work in the new OS.

    None of the commands listed above work for me. I have also tried the following in the crontab. While it DOES turn off the monitor display, the display turns itself back on in about 10 seconds…

    display_off >/dev/null 2>&1
    

    Any help will be greatly appreciated, as the MagicMirror is in a location where running the display all night is disrupting people’s sleep, and having to manually turn it on and off is very inconvenient.

    J 2 Replies Last reply Jan 3, 2024, 4:51 AM Reply Quote 0
    • J Offline
      jbat66 @JohnGalt
      last edited by Jan 3, 2024, 4:51 AM

      @JohnGalt I have a Pi 4, but have the latest OS, and I never have found a way to turn off the monitor. I have the same problem of the screen being too bright, so what I did was write a bash script, to turn off the background slide show, and to dim all the modules via the api into MMM-remote. I also have in my script just a hide all, and the screen goes blank, even tho the monitor is still on.

      Here is how you can hide all modules
      curl -X GET “$API_URL/api/module/all/hide” -H “accept: application/json”
      the $API_URL, is your IP address. I use “http://localhost:8080”

      I also wrote a script that will get the sunrise sunset times for the day and shut off my screen by hiding or diming all the modules at sunset, and then reverse that at sunrise.

      let me know if you are interested. I need to put some of my stuff up on github. I’m just getting familiar with github, and have fixed a couple of modules for folks in the last week.

      J 1 Reply Last reply Jan 9, 2024, 10:02 PM Reply Quote 0
      • J Offline
        jbat66 @JohnGalt
        last edited by Jan 3, 2024, 4:53 AM

        @JohnGalt Side note, I will buy someone a pizza, if I can get working commands to actually turn off and turn on my HDMI display. I think I have tried everything on the internet with no luck. I’m serious about the pizza!
        :-)

        S 1 Reply Last reply Jan 3, 2024, 5:22 AM Reply Quote 0
        • S Away
          sdetweil @jbat66
          last edited by sdetweil Jan 3, 2024, 5:27 AM Jan 3, 2024, 5:22 AM

          @jbat66 you have to use the CEC client and have a CEC enabled display/monitor/tv.

          the energy star standard forces the big blue screen when u turn off the HDMI port output.

          all of the monitors since 2016 support the energy star std

          I can turn off my TV, but it won’t turn on. so the CEC support is broken.

          I hide all the modules. I use a web cam for motion detection

          I consider the glow to be the nightlight

          my pi3 doesn’t support using CEC client. nor odroid, Jetson nano, or my amd desktop or my Mac mini , or Chromebox running ubuntu

          pi 4 and 5 do
          haven’t tried on pi0w2

          HDMI port has to be bidirectional

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          B J 2 Replies Last reply Jan 3, 2024, 7:26 AM Reply Quote 0
          • B Offline
            BKeyport Module Developer @sdetweil
            last edited by Jan 3, 2024, 7:26 AM

            By the way - I do this with my monitors (One CEC, one not using bookworm):

            Off:

            pm2 stop all
            DISPLAY=:0 xrandr --output HDMI-1 --off
            DISPLAY=:0 xrandr --output HDMI-2 --off
            echo 'standby 0' | cec-client -s -d 1
            

            On:

            echo 'on 0' | cec-client -s -d 1 
            sleep 20
            DISPLAY=:0 xrandr --output HDMI-1 --auto
            sleep 1
            DISPLAY=:0 xrandr --output HDMI-2 --auto --right-of HDMI-1
            sleep 1
            pm2 restart all
            

            I have to stop and start the mirror(s) because if I don’t, they’ll move on top of each other.

            The "E" in "Javascript" stands for "Easy"

            J 1 Reply Last reply Jan 3, 2024, 3:21 PM Reply Quote 0
            • J Offline
              jbat66 @sdetweil
              last edited by Jan 3, 2024, 3:18 PM

              @sdetweil I’m just dimming all my modules and doing with the ‘nightlight’ effect. lol
              The Vilros Magic Mirror is using hdmi, but looks like CEC doesn’t work.
              https://www.amazon.com/gp/product/B0BJXD68JV

              S 1 Reply Last reply Jan 3, 2024, 3:23 PM Reply Quote 0
              • J Offline
                jbat66 @BKeyport
                last edited by Jan 3, 2024, 3:21 PM

                @BKeyport Thanks. I tried these on my Vilros Magic Mirror, and nothing happened, just errors. I tried them on my Raspberry PI 4 running older rasbian, and it work on there. except my monitor just went to flashing blue white pink. I guess that is the default no input screen. lol

                I think turning off the monitors have more to do with the version of rasbian, than with the hardware. IMHO

                S B 2 Replies Last reply Jan 3, 2024, 3:23 PM Reply Quote 0
                • S Away
                  sdetweil @jbat66
                  last edited by Jan 3, 2024, 3:23 PM

                  @jbat66 yeh, probably the monitor they use behind the glass doesn’t support CEC

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • S Away
                    sdetweil @jbat66
                    last edited by Jan 3, 2024, 3:23 PM

                    @jbat66 said in MM current version on Raspberry Pi 5 cannot turn off monitor:

                    I guess that is the default no input screen. lol

                    just unlug the hdmi cable, then u should see the default no input screen

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      BKeyport Module Developer @jbat66
                      last edited by Jan 3, 2024, 5:51 PM

                      @jbat66 Oh, Wait, I just realized - I switched bookworm into X11 mode rather than Wayland - you may need to do that as well (I couldn’t get some operations I wanted to do to work in Wayland, yet - setting in raspi-config/advanced if you’re using RasOS)

                      If you don’t mind the monitor running but just want a blank screen, turn off the background picture, set the color to black, and remove the taskbar, then turn off MM and let it be. Might still get a mouse cursor, but there’s tools for that (Unclutter?)

                      The "E" in "Javascript" stands for "Easy"

                      J 1 Reply Last reply Jan 4, 2024, 12:40 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 2 / 6
                      2 / 6
                      • First post
                        12/53
                        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