Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4105

Troubleshooting • Re: How to rotate touchscreen when xinput command not found

$
0
0
After a few more hours of searching I found the solution here: https://www.instructables.com/Rotate-Ra ... uchscreen/

to shorten it up I had to do:

Code:

cd /usr/share/X11/xorg.conf.d/
then find the appropriate file in there that had

Code:

Identifier ... touchscreen catchall
then to that section add

Code:

Option "TransformationMatrix" "0 1 0 -1 0 1 0 0 1"
the relevant info incase that web page goes down is this:

Code:

Go to your terminal again and type in "cd /usr/share/X11/xorg.conf.d/", if your touchscreen is at least detecting touches then the configuration file should be in here.Type "ls" to list the current files, your calibration file should be in there, if you don't know which one is yours open each one (Using "nano your_file_name") and find one that has a section that has "Identifier ... touchscreen catchall". Most likely it will either be one that has "evdev" or "libinput" in the title. Once you've found it do "sudo nano your_file_name" to get write access and edit the file.Go to your section and add the correct "Option" the the bottom on the "Section".All are with clockwise perspective:90° = Option "TransformationMatrix" "0 -1 1 1 0 0 0 0 1"180° = Option "TransformationMatrix" "-1 0 1 0 -1 1 0 0 1"270° = Option "TransformationMatrix" "0 1 0 -1 0 1 0 0 1"

Statistics: Posted by Neocold — Sun Dec 15, 2024 11:48 pm



Viewing all articles
Browse latest Browse all 4105

Trending Articles