# The 7inch ras pi touch screen HELP

**URL:** <https://forum.core-electronics.com.au/t/the-7inch-ras-pi-touch-screen-help/22459>\
**Category:** Product Questions\
**Created:** [13 May 2025 21:55 UTC](https://forum.core-electronics.com.au/t/the-7inch-ras-pi-touch-screen-help/22459 "2025-05-13T21:55:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew41918](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@Andrew41918](https://forum.core-electronics.com.au/u/Andrew41918)\
**Post date:** [13 May 2025 21:55 UTC](https://forum.core-electronics.com.au/t/the-7inch-ras-pi-touch-screen-help/22459/1 "2025-05-13T21:55:55Z")

</div>

I bought it from you - has your name on the box even - a LONG time ago.

I put it on a RasPi and it works, but that was an OLD O/S and I have recently upgraded/updated from Stretch to Bookworm. (BIG LEAP)

The “Case” in which it goes has 2 (well, 4 if you want it portrait mode) ways to stand.  
A “shallow” angle (off horizontal) and a “steep” angle.

The steep one is better as the power cable is on/coming out of the top of the Pi and it is clear of the ground.  
Suffice to say the shallow angle the cable is coming out of the bottom and touches the floor/surface the thing is on. Possible damage to power cable/plug.

PROBLEM:  
The screen is orientated for the shallow angle. ☹

I’d prefer the steep one.  
I can flip the display but NOT the touch sensor part.

I’ve tried a few links and done what they say but it doesn’t seem to work.

Someone here able to help me please?

---

<div class="post-metadata">

**Author:** ![Zach](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/zach/32/10899_2.png) [@Zach](https://forum.core-electronics.com.au/u/Zach)\
**Post date:** [14 May 2025 05:04 UTC](https://forum.core-electronics.com.au/t/the-7inch-ras-pi-touch-screen-help/22459/2 "2025-05-14T05:04:10Z")

</div>

Hey there @Andrew41918,

I’m not 100% sure which product you’re referring to, but I figure, given your description, that it’s the [Raspberry Pi 7" Touchscreen Display Case from Pimoroni](https://core-electronics.com.au/pimoroni-raspberry-pi-7-touchscreen-display-case-noir.html), or at least something very similar. Please let me know if this is incorrect (and provide a link to the correct one, if possible!)

> [@Andrew41918](#):
>
> I can flip the display but NOT the touch sensor part.

The touch sensor and display output are typically handled separately within PiOS. You’ll need to flip the touch sensor separately via the following steps:

1. Select the Raspberry Pi logo in the top-left, and select **Preferences** and then **Screen Configuration**
2. Navigate to **Layout \> Screens \> DSI-1 \> Orientation** and select **Invert**

Note that it will likely be much easier to do this without using the touch sensor at the same time (given the display will be flipped but not the touchscreen). I would suggest using a mouse.

Let us know how this goes!

---

<div class="post-metadata">

**Author:** ![Andrew41918](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@Andrew41918](https://forum.core-electronics.com.au/u/Andrew41918)\
**Post date:** [14 May 2025 21:47 UTC](https://forum.core-electronics.com.au/t/the-7inch-ras-pi-touch-screen-help/22459/3 "2025-05-14T21:47:48Z")

</div>

Hi Zach,

So close.

I can “flip” the screen. The mouse works ok too.

But if I touch the screen the position is wrong.

So if I tap top right corner, the cursor goes to bottom left.

That’s where I am stuck.

---

<div class="post-metadata">

**Author:** ![Dan](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/dan/32/10815_2.png) [@Dan](https://forum.core-electronics.com.au/u/Dan)\
**Post date:** [15 May 2025 06:23 UTC](https://forum.core-electronics.com.au/t/the-7inch-ras-pi-touch-screen-help/22459/4 "2025-05-15T06:23:32Z")

</div>

Hi @Andrew41918

To be able to flip the touch portion of the screen you’d need something like xinput, this thread on the [Ubuntu forum](https://askubuntu.com/questions/368317/rotate-touch-input-with-touchscreen-and-or-touchpad) should give you the necessary info to be able to do so

---

<div class="post-metadata">

**Author:** ![Andrew41918](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@Andrew41918](https://forum.core-electronics.com.au/u/Andrew41918)\
**Post date:** [15 May 2025 09:14 UTC](https://forum.core-electronics.com.au/t/the-7inch-ras-pi-touch-screen-help/22459/5 "2025-05-15T09:14:30Z")

</div>

Errr,

Yeah, thanks, but that is dated 2013.

From that link:

```auto
In the end, I found out how to do it, although it's a little tricky. Still, if a non-mega-Geek like me can do it, I'm sure most of you can too! :)

Firstly, Go to Terminal, and type this to find the name of your touchscreen, and if you have one, your touchpad (say, if you have a laptop with a touchscreen):

xinput -list

The names should be pretty obvious for each.

Now, make two "shell scripts": these are little text documents that contain several commands, which are joined up in the document to be done together (effectively creating a little program). Make them using gedit, naming them "portrait.sh" and "landscape.sh" respectively. Save them in a new folder: /home/your username/Scripts/

For PORTRAIT, type this:

#!/bin/sh

#portrait (left)

xrandr -o left
xinput set-prop "Your Touchscreen's Name" --type=float "Coordinate Transformation Matrix" 0 -1 1 1 0 0 0 0 1
xinput set-prop "Your Touchpad's name, if applicable" --type=float "Coordinate Transformation Matrix" 0 -1 1 1 0 0 0 0 1

Next, for LANDSCAPE:

#!/bin/sh

#landscape (normal)

xrandr -o normal
xinput set-prop "Your Touchscreen's Name" --type=float "Coordinate Transformation Matrix" 0 0 0 0 0 0 0 0 0
xinput set-prop "Your Touchpad's name, if applicable" --type=float "Coordinate Transformation Matrix" 0 0 0 0 0 0 0 0 0

```

When I try `xinput -list` I get an error:  
`unable to connect to X server`

See screen shot

 ![Screenshot from 2025-05-15 19-13-42](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/6/6c0b7f741ab7b95d81f6c8bb83b54dab0ddffa2a.png)

So as promising as it sounds… doesn’t work.  
Sorry.

---

<div class="post-metadata">

**Author:** ![Zach](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/zach/32/10899_2.png) [@Zach](https://forum.core-electronics.com.au/u/Zach)\
**Post date:** [20 May 2025 04:16 UTC](https://forum.core-electronics.com.au/t/the-7inch-ras-pi-touch-screen-help/22459/6 "2025-05-20T04:16:34Z")

</div>

Hey @Andrew41918,

I had understood your original post, the steps I had outlined _should_ have flipped the touch sensor in addition to the display; looks like something is not working right!

Dan’s old link does have some relevant info, often the fix won’t change much over time.

I’ve been scrubbing through [this post](https://forums.raspberrypi.com/viewtopic.php?t=379649) from the Raspberry Pi forums, and it looks like the problem _is_ related to Xinput. See post below from 6by9 (Official RPi Engineer).

 ![image](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/8/80ad93bd771f0546aaea7653d0699521f5247dbe.png)

Assuming your display is on DSI-1 then the command would be

`xinput --map-to-output "10-005d Goodix Capacitive TouchScreen" DSI-1`

That being said, Xinput seemed to be giving you trouble before, so I don’t have much faith it will work without issue this time.

The other thing I would try is to manually change the config file at `/boot/firmware/config.txt` by adding `dtoverlay=vc4-kms-dsi-ili9881-7inch,swapxy`.

Let us know if this yields any results!

---

<div class="post-metadata">

**Author:** ![Andrew41918](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@Andrew41918](https://forum.core-electronics.com.au/u/Andrew41918)\
**Post date:** [20 May 2025 12:01 UTC](https://forum.core-electronics.com.au/t/the-7inch-ras-pi-touch-screen-help/22459/7 "2025-05-20T12:01:48Z")

</div>

Thanks.

I shall follow up on this ASAP.

Alas - Sod’s law - a lot of other stuff just hit the proverbial.

So sorry it may be a while before I get it tested.

(Not saying it is wrong)  
But I have been through a lot of that sort of stuff.  
THOUGH!  
It probably wasn’t this one - as it does look more matching to what I remember seeing.  
All the ones I tried there were a lot of anomalies between what they said and what I am seeing.
