Read the statement by Michael Teeuw here.
Can´t rotate my display
-
I have just reinstalled my MMM. Everything is fine except the last step.
I am trying to rotate my display 90 degrees clockwise. To do this, I have added
/boot/firmware/config.txt
I commented out the line following line
# dtoverlay=vc4-kms-v3d
and added the line
display_hdmi_rotate=1
underneath
But by commenting the line out, the Raspi no longer starts correctly. Only a black screen appears.
The operating system is already started. I can still access it via SSH. But I can see only a black screen.
As soon as I uncomment the line
dtoverlay=vc4-kms-v3d
again, the Raspi starts correctly. But then the screen is not rotated, even though I have not deleted the line
display_hdmi_rotate=1
It would be great if you could help me again.
Than in advance
Klinge -
@Klinge which version of the OS did you install??
with the Wayland compositor
or the latest with the LabWC compositorthey are different on how to rotate than the old X11
-
@sdetweil I use
Raspberry Pi OS with desktop
Release date: November 19th 2024
System: 64-bit
Kernel version: 6.6
Debian version: 12 (bookworm)and a Raspberry 3 Model b+
-
-
@sdetweil I got the following infos
pi@raspi-mm-bad:~ $ ps -ef | grep labwc pi 645 619 42 16:50 ? 00:35:55 /usr/bin/labwc -m pi 714 645 0 16:50 ? 00:00:00 /usr/bin/ssh-agent /usr/bin/labwc-pi pi 33729 32904 25 18:15 pts/0 00:00:00 grep --color=auto labwc
-
@Klinge if you use the os desktop menu top left, preferences, last entry i think is display configuration, you can rotate there
-
@sdetweil Oh! So simple? It is like at Windows. Only with mouse configuration. I found it under Screen configuration - > orientation
Thank you again for your help. You are my little hero 😉 -
-
@sdetweil Is it still possible to rotate the screen via the command line? Or must it be done using the desktop? (having the same issue, with the same labwc output, so thought best not to start a new topic)
-
@robertybob i do not know
-
@robertybob google search found this
To rotate the display using the command line on a Raspberry Pi with the LabWC compositor, you can use the wlr-randr command, specifying the output and desired rotation (e.g., wlr-randr --output HDMI-A-1 --rotate right). Here's a more detailed breakdown: 1. Identify your output: Determine the name of your display output. You can find this using wlr-randr without any arguments, which will list the available outputs. Example: wlr-randr Look for an output like HDMI-A-1 or DSI-0. 2. Rotate the display: Use the wlr-randr command with the --output and --rotate options. Example (rotate 90 degrees clockwise): wlr-randr --output HDMI-A-1 --rotate right Example (rotate 90 degrees counter-clockwise): wlr-randr --output HDMI-A-1 --rotate left Example (rotate 180 degrees): wlr-randr --output HDMI-A-1 --rotate 180 Example (rotate to normal orientation): wlr-randr --output HDMI-A-1 --rotate normal 3. Make the rotation permanent (optional): You can add the wlr-randr command to an autostart file to make the rotation persistent after a reboot. Find the autostart file: ~/.config/labwc/autostart Add your command: Open the file in a text editor (e.g., nano ~/.config/labwc/autostart) and add the wlr-randr command at the end of the file. Example: @wlr-randr --output HDMI-A-1 --rotate right Note: The @ symbol is important for autostart scripts. 4. Troubleshooting: