thobach / MMM-Gestures

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.
http://blog.thomas-bachmann.com/2016/02/magic-mirror-2-0-mit-gestensteuerung.html
41 stars 12 forks source link

Display control ON/OFF not working RPI4 Bookworm & Problem with postinstall #29

Open SaschaSp opened 9 months ago

SaschaSp commented 9 months ago

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 82 exec('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 then npm install