User manual

6 OnRISC Hardware API
6.10. Change Screen Resolution (Alekto 2 Only)
Alekto 2 supports tree resolutions:
640x480
800x600
1024x768 (default)
The resolution will be configured via kernel command line parameter video. Following values are
accepted:
640x480@60
800x600@60
1024x768@60
This parameter will be configured in uEnv.txt located on the first partition. Example:
bootargs=video=da8xx_lcdc:1024x768@60
6.11. Built-in Touchscreen Calibration (VS-860 Only)
You can choose between two calibration methods:
tslib
56
- suitable for Qt Embedded applications
X11 evdev driver - as the name says suitable for X11
Tslib package provides ts_calibrate utility, to calibrate the touchscreen. New calibration values
will be written to /etc/pointercal. Tslib requires following environment variables to use the
touchscreen:
TSLIB_CALIBFILE=/etc/pointercal
TSLIB_CONFFILE=/etc/ts.conf
TSLIB_TSDEVICE=/dev/input/event1
Hwtest-qt utility provides special Python script (scripts/input_dev.py), that reads /proc/bus/in-
put/devices and configures TSLIB_TSDEVICE together with Qt Embedded related environment vari-
ables.
X11 evdev driver will be calibrated via xinput_calibrator (must be started from X11 session). The
calibration values will be stored in /usr/share/X11/xorg.conf.d/10-evdev.conf. Example:
Section "InputClass"
Identifier "evdev touchscreen catchall"
MatchIsTouchscreen "on"
MatchDevicePath "/dev/input/event*"
Option "Calibration" "28 999 988 41"
Driver "evdev"
EndSection
56
https://github.com/kergoth/tslib
May 2014 OnRISC User Manual 49