Read the statement by Michael Teeuw here.
Touchscreen works wrong when screen is rotated vertical
-
I want to use my touchscreen vertically, but when I do that, the touch can’t click right. It’s like the mouse won’t turn side to vertical.
I have tried the screen with my PC, works perfect. It’s something between the screen, Rasperry pi and the Magic Mirror. Anybody have an idea about what? I do the rotate with the “screen layoute editor”. Have tried reebot.
-
You need to edit the touch matrix. Full tutorial here https://www.gechic.com/en/raspberry-pi-touch-monitor-rotate-touch-screen-rotate-settings/ but it’s usally done by editing your40-libinput.conf in /etc/xorg.d.
-
@Manino must be a touch screen driver needing to know screen orientation changed.
display support on pi is very private compared to Windows or linux
-
You need to edit the touch matrix. Full tutorial here https://www.gechic.com/en/raspberry-pi-touch-monitor-rotate-touch-screen-rotate-settings/ but it’s usally done by editing your40-libinput.conf in /etc/xorg.d.
-
@Manino You have to do a couple of things. The best explanation is here. Basically, find the name of your monitor, and then do this command in terminal:
xinput set-prop ‘name of your device’ ‘Coordinate Transformation Matrix’ 0 1 0 - 1 0 1 0 0 1
This will rotate the touch controls to the right (depending on which way you turned your monitor, this might have to be adjusted). The only problem is that I haven’t found a way to make it permanent (in Raspbian), so it reverts every so often and you have to run the command again. I’ve written it to etc, but it doesn’t take. If anyone has any suggestions for permanence, I’d love to hear it.
-
@viktorzonix Wow! Thanks for this. In my searching a couple of years ago, this never came up and nothing else ever had the correct info. I had just lived with the fact that I had to keep re-entering it periodically. Woo hoo!
-
@viktorzonix Yes, that’s it. Thank you so much, can’t describe how glad I am for this, I really appreciate you share this for us!
-
@sdetweil Driver was only for Windows. I have buttons on the screen, but could’nt choose to rotate screen. All text was black except the one for rotate that was grey.
Maybe it’s because of this, found in the Dell manuall : NOTE: “Horizontal Position and Vertical Position adjustments
are only available for “VGA” input.”I’m using HDMI. I don’t even know if the VGA would have solved my problem. But no need to know, @viktorzonix solved the problem for us. So glad for u guys helping, I haven’t asked one question at MM forum and not getting helped.
-
@Manino @viktorzonix told you how to tell the driver the orientation changed. I just didn’t know how
-
@sdetweil Ahaaa! Thought you talk about the driver for the monitor.
-
@Manino glad I could help :)