Hello all,
This is a big post, you may skip if you have already checked this on Electronics Club google group.
I have an issue with one of the touch screen(elantech) driver on Aakash tablet(GNU/Linux side).
The driver works well on Android.
Ok, let me brief you first.
We have received 100k Aakash devices with 3 different touchscreen hardwares. Almost all based on Allwinner A13 SoC. Out of 3 we have
tweaked 2 drivers(ft5x_ts[aka focaltouch], gt811_ts[aka goodix touch] successfully, and they work with Ubuntu 12.10 with Xorg 1.13.
The third driver is elan_ts, which is officially unavailable in
linux-sunxi kernel fork, we luckily get hold of similar elan touch driver source from this
blog.
The patch from the blog goes well with our 3.0.76+ kernel. We can confirm touch event by doing cat to /dev/input/event0, which spits random garbage on every touch event on the terminal.
After confirming driver is alive, we force load 'evdev' xorg driver(which is responsible for input) by changing the following line :
''MatchIsTouchscreen "on"'
to
''MatchIsTouchscreen "off"'
in /usr/share/X11/xorg.conf.d/10-evdev.conf file.
This loads 'evdev', but detects the hardware as mouse, but for ft5x and gt811 it detects as touchscreen.
Now the weird stuff, the complete X-server crash as soon as we touch on screen.
Full details of /var/log/Xorg.0.log is available in this
pastebin link. Look at the bottom of the page for ektf2k at line 412 and find corresponding
XINPUT at line 422. It says:
[ 12.187] (II) XINPUT: Adding extended input device "ektf2k" (type: MOUSE, id 7)
This seg fault could be due to following reasons(or any other reason):
1) As the Xorg evdev driver is loaded forcibly and hence some parameters which should be passed to it by elan kernel driver(ektf2k) are missing.
2) The kernel driver itself is faulty, and needs more tweaking to adapt with xorg.
Beyond the obvious google serach we have also tried the following :
1) Tried on linaro 13.06 image(based on ubuntu 13.04), which contained updated Xorg and better support for touch(claimed). [FAILED]
2) Contacted author of that blog and also discussed this issue on
sunxi-google-group. [ no success so far ]
3) Trying to use latest kernel(3.10.2) and patch the touch driver [ no success so far ]
4) Tried tslib Xorg driver and also utouch module [ FAILED ]
We need your help in porting this touch driver to GNU/Linux. You can forward this post to concerned person. I will be glad to answer any query.
This is important, as this could help more than 80k students who have these tablets with such alien driver.
Thanks :-)
Srikant
R.A, FOSSEE Project
Aerospace dept