Read the statement by Michael Teeuw here.
Rotate screen problem when MM starts
-
Hi everybody
i need help about rotate screen when MM starts. I use a screen on vertical position for my MM.
When i start my raspberry (pi3 b+ on bulleye and i used @sdetweil link to install MM) the boot logo is on horizontal position and when the graphical interface is shown, it’s on vertical position. (everything is ok, i used preference rotation to rotate the screen on right).
After that, i start my MM with PM2 and MM starts vertically. But after 2 sec, the screen rotate on horizontal position and when i quit MM with Ctrl + Q, the graphical interface is also on horizontal position.Have you an idea ? (CSS on MM is blank)
thx for next answers
-
@MisterT which is version is this?
lsb_release -a
will tell
if u pm2 stop all, and then sudo reboot
the system should come up without mm and that will be the orientation.
as for the slash screen, the image has to beadenin that orientation.we only supply horizontal image
-
@sdetweil thx for your fast answer
release isNo LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseyeimage below is my orientation screen. how i turn the black slash screen ?
![alt text]https://ibb.co/bK1s7Gc(image url)
-
@MisterT u have to edit the image and rotate it
-
@sdetweil if i turn on left right or inverted, when i start MM screen rotate on normal position
-
@MisterT makes no sense.
do
pm2 stop all
pm2 delete 0
pm2 savethen boot to rotated
pm2 start installers/pm2_MagicMirror.json
should be vertical
then ctrl-m
pm2 savethen sudo reboot
-
@sdetweil thx for your support. i found the guilty module after 2 hours. it’s MMM-PIR-Sensor-Lite. There is an hidden rotate parameter and the default parameter is normal rotate. that’s why when MM starts there was a rotate screen on normal position.
So for people with rotate problem when MM Starts and if you have MMM-PIR-Sensor-Lite, add this parameter in your config.js:
rotation Direction of content rotation.
Possible values: ‘normal’, ‘left’, ‘right’ or ‘inverted’
Default value: ‘normal’ -
@MisterT ah, the xrandr under the covers…
glad u found it. thanks for the feedback
-
I don’t know about the Pi3, but on the Pi4 you just go to display settings and tell it to go vertical… easier than all this programming that I never got to work with my MM