thobach/MMM-Gestures

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

Opened this issue · 0 comments

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