Read the statement by Michael Teeuw here.
How do I now Rotate display ?
-
@Knapoc said in How do I now Rotate display ?:
so just create the folder…
mkdir -p /home/pi/.config/lxsession/LXDE-pi
Thanks, I entered as you suggested, and then entered the lines from above… nano ~/.config/lxsession/LXDE-pi/autostart and to then insert @xrandr --output HDMI-1 --rotate right… then did a reboot, but display is still normal, and have now lost PM2 as it just goes straight to desktop now.
PM2 Start procures - [pm2] [ERROR] File ecosystem.config.js not found
MM worked perfect and PM2 worked as it booted into the MM… until I did as stated above and it has now done something?
EDIT - PM2 has worked again.
Still need to figuire out how to rotate the screen though.
-
@johnnyboy said in How do I now Rotate display ?:
Still need to figuire out how to rotate the screen though.
What GL driver are you using? I’m currently having rotation issues with the fkms (fake) one, which is usually done by editing
/boot/config.txt
.Now I switched to the full kms one and the solution you just tried works… You can change the driver via
/boot/config.txt
:dtoverlay=vc4-kms-v3d
or by choosing it in
sudo raspi-config
.The wiki-page also states, that the default location for autostart file changed:
To do so, edit the autostart file: (autostart file has been moved in the latest version of Raspbian Stretch, Version: April 2019, Release Date: 2019-04-08 Kernel: 4.14 to /etc/xdg/lxsession/LXDE-pi/autostart
Even though I have a fresh stretch install (last week), I cannot confirm that the location changed - I set the rotation config as mentioned in my previous post.
-
This topic discusses an alternative way to rotate the screen:
It worked for me.
-
@Knapoc said in How do I now Rotate display ?:
@johnnyboy said in How do I now Rotate display ?:
Still need to figuire out how to rotate the screen though.
What GL driver are you using?
G1 GL (Full KMS) OpenGL desktop driver with full KMS
Now I switched to the full kms one and the solution you just tried works…
Tried everything above again, but… Still will not rotate, and again lost PM2?.. All very strange… Maybe needs a bug fix of sorts? ( display_rotate=1 in sudo nano /boot/config.txt was soooooo perfect )
Will now try the Custom CSS approach and see if that will be any better?
-
@evroom said in How do I now Rotate display ?:
This topic discusses an alternative way to rotate the screen:
It worked for me.
Thanks… will play around with that and see if that helps… Strange why doing what I did above shuts down PM2 though?
-
@evroom said in How do I now Rotate display ?:
This topic discusses an alternative way to rotate the screen:
It worked for me.
Thanks… ^^^ This worked for me too now.
Appreciate all the help on this guys. -
to add to my latest post:
so if you add an autostart file under
~/.config/lxsession/LXDE-pi/
the default file located under/etc/xdg/lxsession/LXDE-pi/autostart
is overridden for the user. Since I had a user-config the changes applied in the default file had no effect. See this post for reference.To summarise the following configuration works in my case.
~/.config/lxsession/LXDE-pi/autostart
:# hide mouse pointer when idle @unclutter -display :0 -idle 3 -root -noevents # rotate display by 90 degrees @xrandr --output HDMI-1 --rotate right
(I opted for this way, since I don’t want to load the desktop ui)
/boot/config.txt
(snippet):# MagicMirror configuration disable_splash=1 avoid_warnings=1 dtoverlay=vc4-kms-v3d gpu_mem=128
Make sure that there’s no
dtoverlay=vc4-fkms-v3d
entry or comment it. -
Just tried this. It seems the fkms + display_rotate no longer works. There are some comments about in the rpi forums too, like this one:
https://www.raspberrypi.org/forums/viewtopic.php?t=246146Using the kms driver plus the edits to the autostart file worked for me. Is there a way to get an official update to the documentation?