Rotating a DSI display to landscape (step-by-step + hardware limitation)

This continues my earlier post about the touchscreen: USB keyboard/mouse stop working after connecting a Media Carrier DSI display

The Waveshare 10.1-DSI-TOUCH-A panel ships in portrait mode by default. I wanted to use it in landscape instead with XFCE — including the login screen. It shouldn't look like this.

Two additional Xorg config files, plus one setting inside XFCE are necessary to set it up correctly.

First, for the screen itself, create the following file with nano:

/etc/X11/xorg.conf.d/90-monitor-rotate.conf

Section "Monitor"
Identifier "DSI-1"
Option "Rotate" "left"
EndSection

Second, for the touchscreen (so touch input matches the rotated screen):

/etc/X11/xorg.conf.d/91-touch-rotate.conf

Section "InputClass"
Identifier "goodix touchscreen rotation"
MatchProduct "Goodix Capacitive TouchScreen"
Option "TransformationMatrix" "0 -1 1 1 0 0 0 0 1"
EndSection

Restart LightDM (sudo systemctl restart lightdm) to apply. This already rotates the login screen correctly.

Third, log into XFCE once and set the same rotation there too: Settings → Display → Rotation → Left. This step matters — XFCE saves its own rotation setting and re-applies it on every login, regardless of what the Xorg config already set up.

I also wanted the raw boot console and the systemd-boot menu — everything shown before LightDM even starts — to be in landscape too. This turned out to be much harder. With help from Claude I tried several things at the kernel level:

  • fbcon=rotate:1 on the kernel cmdline — no effect
  • Adding a rotation property to the display panel's device tree node, then loading the modified device tree via a custom systemd-boot entry — no visible effect, even though the property was confirmed present in the running kernel
  • video=DSI-1:800x1280,rotate=90 on the kernel cmdline — no effect either

None of these worked, even in isolation without any GUI running.

Digging further with modetest and the Linux kernel driver source, it turned out the display controller (Adreno DPU920) in the MPU (QRB2210) simply does not support 90°/270° rotation in hardware — only 0° and 180°. This is confirmed directly in the kernel driver source (dpu_hw_catalog.c), where other Qualcomm chips get an extra "inline rotation" hardware feature flag that this one lacks.

In the end this isn't a big deal — the Xorg-based fix above already covers everything that matters in practice: the login screen and the full desktop session. Only the few seconds of raw portrait boot text before LightDM starts stay portrait, which is a purely cosmetic and permanent limitation of this hardware.

Of course, both .conf files can be combined into a single file:

sudo nano /etc/X11/xorg.conf.d/90-monitor-rotate.conf

Section "Monitor"
  Identifier "DSI-1"
  Option "Rotate" "left"
EndSection

Section "InputClass"
  Identifier "goodix touchscreen rotation"
  MatchProduct "Goodix Capacitive TouchScreen" 
  Option "TransformationMatrix" "0 -1 1 1 0 0 0 0 1"
EndSection

Then you don't need the separate 91-touch-rotate.conf file.