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.

    HDMI turns on without movement

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    5 Posts 4 Posters 189 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.
    • H Offline
      Hobbes 0
      last edited by

      Hi All,

      I needed to re-setup my MagicMirror, now it runs on Raspi 4 and Debian Trixie 64-bit.

      Everything works nicely as before, PIR is on PIN 22 and I use:
      {
      module: “MMM-Universal-Pir”,
      position: “top_left”,
      config: {
      gpioCommand: “/usr/bin/gpiomon -e rising -c 0 22”,
      //onCommand: “WAYLAND_DISPLAY=‘wayland-1’ wlr-randr --output HDMI-A-1 --on”,
      //offCommand: “WAYLAND_DISPLAY=‘wayland-1’ wlr-randr --output HDMI-A-1 --off”,
      onCommand: “wlr-randr --output HDMI-A-1 --on”,
      offCommand: “wlr-randr --output HDMI-A-1 --off”,
      deactivateDelay: 20 * 1000,
      }
      },
      As you can see I experimented already with the commands, now it works fine with “wlr-randr --output HDMI-A-1 --on”, and the monitor turns off after 20 seconds if no movement, and turns back on when moving.

      Now comes the trick: when turned off, after ca. 1 minute the monitor goes back on and the MM shows “0 sec”. I.e., the HDMI activation did not come from the MM.

      I tested the offCommand directly in the Terminal, the monitor goes off, and again after a minute or so goes back on. So this does not come from the MM.

      I looked in the settings of the NT68676.2A Controller Board if there is an AutoDetect for HDMI or so, but did not find an entry.

      Any idea what I can do? Thanks for your help!

      Hobbes

      R S 2 Replies Last reply Reply Quote 0
      • R Offline
        rkorell @Hobbes 0
        last edited by

        @Hobbes-0 I would invest in direction of GPIO…
        As I’ve experienced GPIO in bookworm was strongly different as in earlier version - may this applies to Trixie as well?
        If monitor “awakes” suddenly this seem not to be a problem of HDMI-commands ?

        Sorry cannot advice more concrete - I#m still on bookwork, not Trixie.

        Good luck!

        Ralf

        1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @Hobbes 0
          last edited by

          @karsten13 have you had a chance to test universal pir on Trixie yet?

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          karsten13K 1 Reply Last reply Reply Quote 0
          • karsten13K Offline
            karsten13 @sdetweil
            last edited by karsten13

            @sdetweil said in HDMI turns on without movement:

            @karsten13 have you had a chance to test universal pir on Trixie yet?

            I’m on it …

            @Hobbes-0 said in HDMI turns on without movement:

            I tested the offCommand directly in the Terminal, the monitor goes off, and again after a minute or so goes back on. So this does not come from the MM.

            @sdetweil so this problem is not related to universal pir or mm

            I tested universal pir on mmos, which is on trixie but uses the os lite version, mm and labwc/wayland are started as containers.

            I cannot reproduce the unexpected activation there.

            (I found another permission problem which I will fix later) fixed

            Other difference between trixie and bookworm is a breaking version change of gpiomon so you have to use different commands:

            bookworm: gpiomon -r -b gpiochip0 23
            trixie: gpiomon -e rising -c 0 23

            S 1 Reply Last reply Reply Quote 2
            • S Do not disturb
              sdetweil @karsten13
              last edited by

              @karsten13 dang I hate breaking changes for no obvious value

              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