-
Notifications
You must be signed in to change notification settings - Fork 5.2k
offical 7" touchscreen does not rotate on the Raspberry Pi 5 #6085
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is possibly a stupid question - this is not really my field, and I'm just guessing - but is the DSI-1 designator still correct on Pi 5? With no video= in the cmdline do you still get working video and a touchscreen? |
Yes, I think it was a stupid question - the screen is probably being rotated correctly as a result of that addition. |
Well, I tried without the 'screen' remark in the cmdline.txt, but it does not make a difference. So yes, it works, but no rotate. So you might be on to something, because one thing I just discovered: the touch part is rotated. So it is only the video part that isn't. |
Hmmm.... This works partly: video=DSI-2:800x480M,rotate=180 The framebuffer (console) is now rotated, but as soon as my app starts it's back to normal. Very weird. |
As per README CAM/DISP0 should always be known as DSI-1, and CAM/DISP1 as DSI-2.
|
Ok... So the DSI-2 is conform what to be expected. Right? It still does not explain why on the Pi 4 the application also rotates 'automagically', but not on the Pi 5. Or is this the 'vc4 (Pi0-4) supports H & V flips on planes, but DSI on RP1 (Pi5) doesn't.' part? |
Yes
Correct. |
Thanks @6by9 . So to summarize:
So that means we can close this issue. Correct? |
As this is expected behaviour I'm closing this issue. |
Hello here. I'm glad I found you here. I am currently dealing with something similar with a Raspberry PI 2B, I have listed my searches so far here raysan5/raylib#3958. But I'm starting to understand that I'll probably have to handle everything myself, but I'll ask you here just to be sure. Does this behavior (not a bug) apply to all current Raspberry (1,2,3,4 and 5)? Thank you for the answer, I'm at peace now (: |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Using the KMS driver, the touchscreen does not rotate when given the proper setup (adding
invx,invy
androtate
) in config.txt.So, this works on a Raspberry Pi 4:
config.txt:
cmdline:
video=DSI-1:800x480M,rotate=180
However, on the Pi 5 it results in a working touchscreen, but not a rotated one.
Steps to reproduce the behaviour
Configure the screen for rotation.
Device (s)
Raspberry Pi 5
System
custom built OS, Linux 6.6 (latest build from this repo), latest firmware
Logs
The logs show no difference between a startup with 'normal' orientation vs 'rotated'.
journalctl -b | grep vc4
returns:Additional context
I use a Qt app that directly accesses DRM. So no X or Wayland involved.
The text was updated successfully, but these errors were encountered: