MMM-Gestures is a head-less 3rd party module for MagicMirror that allows to control the Magic Mirror via gestures of two types of infrared sensors. Use cases include presence awareness to trigger compliments or go into sleep mode and scrolling through news tickers or view news details.
HDMI output A1 = At the RPI4 next to the Type C plug, label HDMI0
HDMI output A2 = At the RPI4 next to the camera plug, label HDMI1
Maybe you have to try different transform values or other options, see WAYLAND_DISPLAY=wayland-1 wlr-randr --help via shell.
The other problem during installation was after typing npm install i get the ERR message no permissions for ../../node_modules/.bin/electron-rebuild
Together with github user @Tom-Hirschberger we found the solution.
chmod +x /home/pi/MagicMirror/node_modules/electron-rebuild/lib/src/cli.js in the MMM-Gestures folder and then npm install
RPI4 due two HDMI Outputs & WAYLAND service the
vcgencmd
command not longer turn ON/OFF the HDMI port.I changed file
node_helper.js
line 61
exec('WAYLAND_DISPLAY=wayland-1 wlr-randr --output HDMI-A-1 --on --transform 270', function(error, stdout, stderr)
line 82exec('WAYLAND_DISPLAY=wayland-1 wlr-randr --output HDMI-A-1 --off', function(error, stdout, stderr) {
HDMI output A1 = At the RPI4 next to the Type C plug, label HDMI0 HDMI output A2 = At the RPI4 next to the camera plug, label HDMI1
Maybe you have to try different transform values or other options, see
WAYLAND_DISPLAY=wayland-1 wlr-randr --help
via shell.The other problem during installation was after typing
npm install
i get the ERR message no permissions for../../node_modules/.bin/electron-rebuild
Together with github user @Tom-Hirschberger we found the solution.
chmod +x /home/pi/MagicMirror/node_modules/electron-rebuild/lib/src/cli.js
in the MMM-Gestures folder and thennpm install