Difference between revisions of "Aligning Zynthian Touchscreens"

From ZynthianWiki
Jump to navigation Jump to search
Line 16: Line 16:
 
This is accessed by the webconf.
 
This is accessed by the webconf.
  
[[File:Screenshot 2020-07-03 17-57-29.png]]
+
[[File:Screenshot 2020-07-03 17-57-29.png|450px|center]]
  
  

Revision as of 16:59, 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.


The First thing you need to sort out is that you have a suitable zynthian display set up that works with the display you have installed on the Pi.

This is accessed by the webconf.

Screenshot 2020-07-03 17-57-29.png



Well 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

 0   1   0
 1   0   0
 0   0   1

for the example above.

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.

But on startup we really don't have too much in there ...

Screenshot 2020-07-03 17-33-23.png


The threads for this built from THe x axis threads