Posts: 16
Joined: Tue Dec 08, 2020 3:05 am

Touch is "flipped" when using KMS

Sat Jan 09, 2021 2:57 pm

I'm using the KMS to run the display:

Code: Select all

and when the system boots up, I run

Code: Select all

sudo dtoverlay edt-ft5406

I noticed that the touch is flipped, i.e. if I touch top left of screen, the mouse pointer is bottom right. How do I go about fixing this?

Im running a Raspberry Pi 3b+, 5.10 kernel

Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 10276
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Touch is "flipped" when using KMS

Sun Jan 10, 2021 3:38 pm

Read the README entry for edt-ft5406

Code: Select all

Name:   edt-ft5406
Info:   Overlay for the EDT FT5406 touchscreen on the CSI/DSI I2C interface.
        This works with the Raspberry Pi 7" touchscreen when not being polled
        by the firmware.
        You MUST use either "disable_touchscreen=1" or "ignore_lcd=1" in
        config.txt to stop the firmware polling the touchscreen.
Load:   dtoverlay=edt-ft5406,<param>=<val>
Params: sizex                   Touchscreen size x (default 800)
        sizey                   Touchscreen size y (default 480)
        invx                    Touchscreen inverted x axis
        invy                    Touchscreen inverted y axis
        swapxy                  Touchscreen swapped x y axis

Code: Select all

sudo dtoverlay edt-ft5406 invx=1 invy=1
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

Return to “Official Foundation Display”