Read the statement by Michael Teeuw here.
Screen rotation switching back as soon as MM is started
-
Hi community!
I have a problem with screen rotation in my MagicMirror.
I need to rotate it to portrait mode, therefore I applied
@xrandr --output HDMI-1 --rotate right
Note:
- this basically works for the Desktop
- I did it this way, because the option “display_hdmi_rotate=1” in /boot/config.txt doesn’t work on Raspberry > 3
However, now when starting MM with Electron (npm run start), I can see for 1 second or so, that it display correctly in portrait mode, but then immediately switches back to landscape mode!?
And even when stopping MM then again, also the Desktop is switched back to landscape mode.Does anyone have an idea what I’m doing wrong?
Please help!
Thanks in advance!
Best regards, Chris -
got it working - MMM-PIR-Sensor-Lite has a “rotation” option…
-
@Fantasmic78 try setting it via pi menu -> preferences -> screen configuration instead. It’s what is intended for modern.
-
@BKeyport this is what I did even before playing around with config.txt and xrandr options (sorry, didn’t mention that in my post).
So, means: portrait mode basically works fine for the whole desktop. But when starting MM with Electron, then it changes back.
Meanwhile, I deactivated all modules and started to enable them again one after the other (because I already had the impression that the problem might be caused by one of the modules, as the MM started with correct orientation, but immediately switched back right after loading) - AND: I found the problematic module: MMM-PIR-Sensor-Lite
Need to check for detailed configuration options there… let’s see if I can get it working or not
-
got it working - MMM-PIR-Sensor-Lite has a “rotation” option…