Changes

Jump to navigation Jump to search
no edit summary
Line 1: Line 1:  +
'''There may be some historic interest here but Zynthian now provides touchscreen calibration from the admin menu so you shouldn't need to read this.
 +
'''
 +
<br clear=all>
 +
    
[[File:IMG 20200208 161425.jpg|150px|center]]
 
[[File:IMG 20200208 161425.jpg|150px|center]]
Line 30: Line 34:     
[[File:Screenshot 2020-07-03 17-33-23.png|660px|center]]
 
[[File:Screenshot 2020-07-03 17-33-23.png|660px|center]]
 +
 +
 +
----
 +
The following is a list of operations to be performed but the actual location of the script seems to vary between different installations.
 +
 +
For instance on my own machine, /usr/share/X11/xorg.conf.d/98-screen-calibration.conf is the location that worked. Othere people have located it successfully in  /etc/X11/xorg.conf.d/99-calibration.conf. So a certain amount of adaption is required...
 +
 +
[[File:Screenshot 2020-07-06 14-56-13.png|660px|center]]
 +
 +
 +
 +
 +
[https://discourse.zynthian.org/t/could-this-be-the-end-of-all-touch-screen-calibration-issues/4167/12?u=wyleu Discussion on a thread...]
 +
 +
 +
----
 +
 +
 +
{| class="wikitable"
 +
! style="text-align:left;"| Step
 +
! Action
 +
! Result
 +
|-
 +
|1.
 +
|SSH into zynthian (root/raspberry)
 +
|Ok
 +
|-
 +
|2.
 +
|> cd /etc/X11/xorg.conf.d
 +
|Ok, files in there … 99-calibration.conf, 99-fbdev.conf
 +
|-
 +
|3.
 +
|> cp 99-calibration.conf 99-calibration.conf.backup
 +
|backup your current config
 +
|-
 +
|4.
 +
|> apt-get install xserver-xorg-input-evdev
 +
|This package provides the driver for input devices using evdev, the Linux kernel’s event delivery mechanism. This driver allows for multiple keyboards and mice to be treated as separate input devices.—I appear to already have this
 +
|-
 +
|5.
 +
|> apt-get install -y xinput-calibrator
 +
|A generic touchscreen calibration program for X.Org —I’ve already got it but I’ve played around a bit
 +
|-
 +
|6.
 +
|> > apt-get install -y bc GNU bc
 +
|3. copy and paste bash script from link above, create this as “calib” script (using vi [grrrr]… nano is a much easier windows like tool for people who have issues with vi . . . :-). Type nano calib, cut and paste the code into it. Cntrl O to write it Cntrl X to exit …)add this as first line on script:
 +
|-
 +
|7.
 +
|add export DISPLAY=:0.0 to script first line
 +
|Easy withing nano . . . :slight_smile:
 +
|-
 +
|8.
 +
|> chmod 755 calib
 +
|make it executable; I agree with @Baggypants
 +
|-
 +
|9.
 +
|> ./calib
 +
|6. calibration will popup on screen, follow instructions and Play tap the dot :smiley:
 +
|-
 +
|10.
 +
|> nano 99-calibration.conf
 +
|7. calibration script will end up with output which should go into /etc/X11/xorg.conf.d/99-calibration.conf [BEWARE! script recommends different file names, IDK if will work then] i already had details for this in the file so I overwrote them
 +
|-
 +
|}
 +
 +
 +
----
 +
     
334

edits

Navigation menu