MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. Hobbes 0
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    H
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 5
    • Groups 0

    Hobbes 0

    @Hobbes 0

    0
    Reputation
    3
    Profile views
    5
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    Hobbes 0 Unfollow Follow

    Latest posts made by Hobbes 0

    • RE: HDMI turns on without movement

      Hi Ralf and Karsten,

      Thanks for your support. I tried, but did not work unfortunately. Still the monitor goes on for no reason.

      So I switched now to X11, and updated the config file, AND finally it works. Here my command:

      {
                        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”,
                              //onCommand: “echo on | sudo tee /sys/class/drm/card0-HDMI-A-1/status”,
                              //offCommand: “echo off | sudo tee /sys/class/drm/card0-HDMI-A-1/status”,
                              //onCommand: “/usr/local/bin/hdmi-on.sh”,
                              //offCommand: “/usr/local/bin/hdmi-off.sh”,

      //X11:
                              onCommand: “xrandr --output HDMI-1 --mode 1920x1080 --rate 60”,
                              offCommand: “xrandr --output HDMI-1 --off”,
                              //onCommand: “xrandr --output HDMI-1 --on”,
                              //offCommand: “xrandr --output HDMI-1 --off”,
                              //onCommand: “vcgencmd display_power 1”,
                              //offCommand: “vcgencmd display_power 0”,
                              //onCommand: “wlr-randr --output HDMI-1 --on”,
                              //offCommand: “wlr-randr --output HDMI-1 --off”,

      deactivateDelay: 40 * 1000,
                        }
                  },
      My assumption is that the auto-switch to On of the monitor comes from raspi-connect. With VNC this is not the case. But this is not thoroughly tested, just gut feel.

      Maybe a last question you might help me with: with the now working offCommand my VNC window on the PC shrinks to tiny. Any suggestion how to avoid?

      Best,

      Hobbes aka Dirk

      posted in Troubleshooting
      H
      Hobbes 0
    • RE: HDMI turns on without movement

      Thanks for the analysis so far. Anything I can test?

      posted in Troubleshooting
      H
      Hobbes 0
    • HDMI turns on without movement

      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

      posted in Troubleshooting
      H
      Hobbes 0
    • RE: MMM-COVID19-AMPEL (focus on Germany)

      @sdetweil
      That was actually missing. Thanks for the hint. It works now.

      posted in Health
      H
      Hobbes 0
    • RE: MMM-COVID19-AMPEL (focus on Germany)

      @sandy2503
      Same here. I have cloned the files today, and the mirror is black. Any chance I can get the backup, or do you know what changed? I have opened an issue in github as well: MM is black

      posted in Health
      H
      Hobbes 0