Changes

Jump to: navigation, search

Accessing hardware peripherals (SDVX)

976 bytes added, 10:35, 17 October 2018
ts_lib
^Csignal 2 caught
root@sdv03-lite:~#
</pre>
 
===== tslib and X11 =====
For using tslib under X11 framework, it is required to configure X-Windows to use the touchscreen driver.
This is possible by adding an ''InputDevice'' section to <code>/etc/X11/xorg.conf</code>:
 
<pre>
root@sdv03:~# 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 "InputDevice"
Identifier "tslib"
Driver "tslib"
Option "Device" "/dev/input/event0"
Option "ScreenNumber" "0"
Option "Width" "800"
Option "Height" "480"
Option "Rotate" "NONE"
Option "TslibDevice" "/dev/input/event0"
Option "CorePointer"
EndSection
 
root@sdv03:~#
</pre>
8,154
edits

Navigation menu