Difference between revisions of "Aligning Zynthian Touchscreens"

From ZynthianWiki
Jump to navigation Jump to search
Line 27: Line 27:
  
 
These are all the files that deal with the X Windows system which is how keyboard, mice, touchscreens, trackballs et al talk to Zynthians and how Zynthians talk back to screens be they great big hdmi one's or tiny touchscreens you need a pin to operate.
 
These are all the files that deal with the X Windows system which is how keyboard, mice, touchscreens, trackballs et al talk to Zynthians and how Zynthians talk back to screens be they great big hdmi one's or tiny touchscreens you need a pin to operate.
 +
 +
What's in these files is defined [https://www.x.org/releases/X11R7.7/doc/man/man5/xorg.conf.5.xhtml] in ALL it's gore...
 +
 +
But we just want to get a touchscreen the right way up.
 +
 +
 +
Well we need something called a transform matrix, there is one in the screen above.. . .
 +
 +
Its a list of 9 numbers, more frequently laid out in a 3 * 3 grid
 +
 +
 +
 +
 +
 +
This is a way of laying out some numbers that is easily processed by the sort of worlds tht worry about rotating, transforming, scaling, shifting, skewing and goodness knows what other forms of distortion one can apply to a flat surface.

Revision as of 16:30, 3 July 2020

IMG 20200208 161425.jpg
IMG 20200208 162744.jpg
IMG 20200209 121602.jpg

So you have your zynthian and the display works . . .

But what if your pointer moves left and your cursor goes up...?


Well hopefully this will act as a repository of knowledge for these sorts of problems.


Well firstly you are going to need to modify files within your zynthian's file system to adjust these things.

predominately files that look like this . . .

805960cd42d4f7288293e0466e02c8f6282d0524.png

The location reveals a little it's within the directory.

/etc/X11/xorg.conf.d/

with this sort of structure....

Screenshot 2020-07-03 17-18-41.png

These are all the files that deal with the X Windows system which is how keyboard, mice, touchscreens, trackballs et al talk to Zynthians and how Zynthians talk back to screens be they great big hdmi one's or tiny touchscreens you need a pin to operate.

What's in these files is defined [1] in ALL it's gore...

But we just want to get a touchscreen the right way up.


Well we need something called a transform matrix, there is one in the screen above.. . .

Its a list of 9 numbers, more frequently laid out in a 3 * 3 grid



This is a way of laying out some numbers that is easily processed by the sort of worlds tht worry about rotating, transforming, scaling, shifting, skewing and goodness knows what other forms of distortion one can apply to a flat surface.