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?
1 Like
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, or at least something very similar. Please let me know if this is incorrect (and provide a link to the correct one, if possible!)
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:
- Select the Raspberry Pi logo in the top-left, and select Preferences and then Screen Configuration
- 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!
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.
1 Like
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 should give you the necessary info to be able to do so
Errr,
Yeah, thanks, but that is dated 2013.
From that link:
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
So as promising as it sounds… doesn’t work.
Sorry.
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 from the Raspberry Pi forums, and it looks like the problem is related to Xinput. See post below from 6by9 (Official RPi Engineer).
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!
1 Like
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.
1 Like