Raspberry Pi 5 — Boot Straight Into Portrait Mode?

Unison

Well-known member
VIP

Raspberry Pi 5 — Boot Straight Into Portrait Mode?​

Does anyone know the best way to make a Raspberry Pi 5 boot directly into the correct portrait orientation under Wayland?

My Dell monitor is mounted in portrait, but occasionally the Pi boots with the orientation wrong. At the moment I correct it with:

wlr-randr --output HDMI-A-2 --transform 270

That works perfectly and also gets the mouse coordinates lined up correctly.

What I'm wondering is whether there's a proper way to set the 270° rotation permanently at boot, preferably at the display/Wayland configuration level rather than running wlr-randr afterwards.

I'm using a Pi 5 with a Wayland desktop and the display is HDMI-A-2.

Has anyone set something similar up, and if so, what's the recommended way of doing it?
 
Just confirmed this with another full reboot after removing the wlr-randr command from my kiosk startup script.


The Pi 5 now boots directly into the correct portrait orientation using the Kanshi config, and the mouse mapping is correct as well.


So that's solved. 👍


Nice to finally have the portrait orientation handled properly at startup rather than using a command after boot.salute1
 
Back
Top