February 24, 2020, 11:05:18 am


Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/


Started by arashabi, January 11, 2016, 03:15:13 pm

Previous topic - Next topic


Hello guys,
these days i am going to connect the resistant touch to the cubie2 and i did it every things is ok :as follow
apt-get install make automake
git clone https://github.com/kergoth/tslib.git
cd tslib
wget https://raw.github.com/webconn/OLINUXINO/master/SOFTWARE/A13/TOUCHSCREEN/tslib.patch
patch -p0 < tslib.patch
autoreconf -vi
./configure --prefix=/usr
make install
modprobe sun4i-ts
dmesg | grep sun4i-ts
echo sun4i-ts >> /etc/modules
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/input/event4
export TSLIB_CALIBFILE=/usr/etc/pointercal
export TSLIB_CONFFILE=/usr/etc/ts.conf
export TSLIB_PLUGINDIR=/usr/lib/tsg

but when i am going to calibrate and test it i will face with this message:
$ sudo ts_calibrate
tslib: Selected device is not a touchscreen (must support ABS and KEY event types)

???? how can i solve this problem ?
thank you.


You have not applied the patch with success.
Check if input-raw.c has:
   if ((ioctl(ts->fd, EVIOCGBIT(EV_ABS, sizeof(absbit)), absbit)) < 0 ||
      !(absbit[BIT_WORD(ABS_X)] & BIT_MASK(ABS_X)) ||
      !(absbit[BIT_WORD(ABS_Y)] & BIT_MASK(ABS_Y))) {
      /*fprintf(stderr, "tslib: Selected device is not a touchscreen (must support ABS_X and ABS_Y events)\n");
      return -1;*/

if not, edit the file and comment the lines.