This driver is based on wacom-serial-iv and elo.c.
There is a file named "touchdump", it is a dump of the touchscreen, where I press in the following order : the top left corner, the top right corner, the bottom left corner, and then the bottom right corner.
You can check out scanfrule.c
to see how the touchscreen packets should be handled, using sscanf()
.
cd /tmp
sudo apt-get install git build-essential linux-headers-$(uname -r)
git clone https://github.com/tibounise/im310-touchscreen
cd im310-touchscreen
make
Now you can load the driver :
sudo insmod im310_touchscreen.ko
./inputattach -im310 /dev/ttyS3
Don't worry if the X or Y axis is inverted.
Finally, install xinput_calibrator, and use it to calibrate the touchscreen.