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?