Author Topic: ts_calibrate  (Read 3827 times)

Offline arashabi

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
« on: January 11, 2016, 03:15:13 pm »
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
cd tslib
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.

Offline @lex

  • Full Member
  • ***
  • Posts: 157
  • Karma: +4/-0
    • View Profile
Re: ts_calibrate
« Reply #1 on: January 18, 2016, 05:43:44 pm »
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.