Skip to content

Waveshare 7inch_DSI_LCD_(E) Rotation not being set correctly when using x11 or wayland #7050

@omelia-iliffe

Description

@omelia-iliffe

Describe the bug

I am using a Waveshare screen 7inch_DSI_LCD_(E) https://www.waveshare.com/wiki/7inch_DSI_LCD_(E) with a raspberry PI 4 running Raspberry pi OS lite and I am unable to get the rotation set correctly.
I have configured the screen correctly (according to the wiki).
config.txt

dtoverlay=vc4-kms-dsi-waveshare-panel,8_0_inch

and set the rotation in the cmdline.txt

video=DSI-1:1280x800M@60,rotate=270

When the pi boots the console/tty is shown the in correct orientation (270, or whatever I set the rotation), however when I start xorg via startx with an example application (gnome-mastermind) it does not respect the screen rotation. It renders the application in the default landscape orientation. I also tested with cage (wayland) and it has the same behavior. I can correct the x11 rotation using xrandr and changing the touch matrix, but I didn't have to do this when using a different waveshare screen.

I am wondering it this is a bug with the vc4-kms-dsi-waveshare-panel driver? Although I have another waveshare screen (https://www.waveshare.com/wiki/7-DSI-TOUCH-A) which does not have this issue.

Steps to reproduce the behaviour

Use a Waveshare 7inch_DSI_LCD_(E) screen
Specify a rotation in the cmdline.txt

Device (s)

Raspberry Pi 4 Mod. B

System

https://pastebin.com/TXXvw7A8

Logs

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions