Changes

Jump to: navigation, search

Accessing hardware peripherals (SDVX)

1,644 bytes added, 08:33, 15 October 2018
Touchscreen
</pre>
==== ts_lib ====
For testing the touchscreen behaviour, the <code>ts_lib</code> utilities can be used:
^Csignal 2 caught
root@sdv03-lite:~#
</pre>
 
==== X11 ====
 
For touchscreen calibration under the <code>X11</code> framework, the touchscreen should be calibrated using the <code>xinput_calibrator</code> utility:
 
<pre class="workstation-terminal">
root@sdv03-lite:~# export DISPLAY=:0
root@sdv03-lite:~# xinput_calibrator
Setting calibration data: 0, 799, 0, 479
Calibrating EVDEV driver for "TSC2007 Touchscreen" id=6
current calibration values (from XInput): min_x=0, max_x=799 and min_y=0, max_y=479
 
Doing dynamic recalibration:
Setting calibration data: 31, 763, 19, 474
--> Making the calibration permanent <--
copy the snippet below into '/etc/X11/xorg.conf.d/99-calibration.conf'
Section "InputClass"
Identifier "calibration"
MatchProduct "TSC2007 Touchscreen"
Option "Calibration" "31 763 19 474"
Option "SwapAxes" "0"
EndSection
root@sdv03-lite:~#
</pre>
 
then copy the calibration data into the configuration file:
 
<pre class="workstation-terminal">
root@sdv03-lite:~# cat /etc/X11/xorg.conf
Section "Device"
Identifier "i.MX Accelerated Framebuffer Device"
Driver "vivante"
Option "fbdev" "/dev/fb0"
Option "vivante_fbdev" "/dev/fb0"
Option "HWcursor" "false"
EndSection
 
Section "ServerFlags"
Option "BlankTime" "0"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
EndSection
 
Section "InputClass"
Identifier "calibration"
MatchProduct "TSC2007 Touchscreen"
Option "Calibration" "31 763 19 474"
Option "SwapAxes" "0"
EndSection
</pre>
8,157
edits

Navigation menu