Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8374

Official Display • Re: Pi Touch Screen 2 screen rotation ... PLEASE HELP

$
0
0
I am having this same problem. The screen is in portrait, the case is landscape.

I am using Openbox on Patchbox from Pisound/Blokaslabs. A slightly modified Debian

I can rotate the display using `arandr` but whilst that modifies the display and the mouse works well, the touch interface does not, it has not rotated.

Following the documentation in `/boot/firmware/overlays/README` I put

`dtoverlay=vc4-kms-dsi-ili9881-7inch,rotation=90`

in `/boot/firmware/config.txt`

This rotated the screen during the boot sequence, but when the GUI came up it was back to portrait

Seeing above that DSI0 or DSI1 I checked:

```sh
ls /sys/class/drm/
card0 card0-DSI-1 version
```

Right, I am using DSI1. So reading above I placed:
`dtoverlay=vc4-kms-dsi-ili9881-7inch,rotation=90,dsi1`

And now the PI does not boot at all


Interestingly `https://www.raspberrypi.com/documentati ... rientation` and `/boot/firmware/overlays/README` are in conflict and suggest different ways of rotating the screen. Neither work.

This is surprising, frustrating and depressing all at the same time!
At the kernel level the display and touch devices should both have the same orientation. That is the case with all the overlays if you don't add any overrides.

If using X then associate the touch device with the display, and then all rotations applied via xrandr/arandr will also be applied to the touch co-ordinates too. It'll be something like

Code:

xinput --map-to-output "10-005d Goodix Capacitive TouchScreen" DSI-1
"10-005d" may be "11-0051" and DSI-1 may be DSI-2 depending on which CAM/DISP connector you have connected to.
Memory says that it is a one off mapping, so rerun it after any xrandr change.

(If using labwc, then the relevant configuration goes in ~/.config/labwc/rc.xml)

Statistics: Posted by 6by9 — Mon Dec 22, 2025 12:22 pm



Viewing all articles
Browse latest Browse all 8374

Trending Articles