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.

    Turn HDMI on/off problem

    Scheduled Pinned Locked Moved Hardware
    5 Posts 4 Posters 926 Views 4 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.
    • M Offline
      MilkShake
      last edited by

      Hi,
      I know I am going to be flamed for asking this, but here goes…

      I am trying to implement a PIR sensor on a Raspi 4b to turn on the HDMI output when activated. I have read page up and down of this issue and have seen different possible solutions, but nothing that works for me.

      I can use tvservice -o to turn off HDMI just fine. When I use tvservice -p again, the monitor turns on, but remains only with backlight.

      I have read something about adding a resistor on the powercable for the monitor, but have anyone found a solution to this? Is it because I am using a specific monitor or is this a general problem?

      Best regards
      Lars

      1 Reply Last reply Reply Quote 0
      • BKeyportB Offline
        BKeyport Module Developer
        last edited by

        you may have to use one of the other methods - every device is a little odd.

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

        1 Reply Last reply Reply Quote 0
        • M Offline
          MilkShake
          last edited by

          I found a solution for my monitor SAMSUNG S24F354 using:

          DISPLAY=:0 xset dpms force on
          
          DISPLAY=:0 xset dpms force off
          

          This seems to work right now from the shell. Turns the monitor instantly off/on. Last night when trying with the PIR script, it didn’t work however, returning an error when calling shell scripts: the server was lacking dpms. This must be because DPMS was turned off as a part of the MagicMirror configuration.

          I have a fresh install right now and just verified that these commands actually works. Now to get the PIR sensor working with the shell scripts.

          S 1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User
            last edited by

            If someone want to test, il will try to code it in my pir module

            1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @MilkShake
              last edited by

              @MilkShake dpms is off because u asked to turn off screensaver.

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                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