FORUMS
Remove All Ads from XDA

[Module] | X8 only | AX8MT v005 | Dual touch for Cypress touchpad

195 posts
Thanks Meter: 457
 
By AnDyX, Senior Member on 22nd June 2011, 08:18 PM
Post Reply Email Thread
This is module that enables dual touch in Cypress touchpad.
Currently there is nothing new to implement unless there will be some breakthrough e.g: datasheet for Cypress chip. I know that FroyoBread people have problems I couldn't solve it without help.

Prerequisites:
- cypress based touchpad,
- X8,
- Baseband x15

Known issues:
- on FroyoBread - you can't accept or reject the incoming call - works if added in hw_config.sh - thanks der_mart
- cypress chip don't report second touch if distance between fingers is lower then about 110 pixels (by AnDyX)
- if you slide one finger to second - chip reports one finger and geometric center will be in the middle of two fingers (by AnDyX)
- sometimes doesn't report second touch if you quickly press both fingers alltogether (by AnDyX)
- on FroyoBread sliding position of touch from first finger to second if you release first and quicly press second finger in another position - could you check both v003 versions guys ?

How to check which chip our X8 has:
- if you already have X8Gesture module from doixanh and it works on your X8 - you have synaptic - so from now stop yelling, screaming and complaining - for me this is disrespect his work !
- run following command in shell (via adb or Terminal Emulator):

Code:
dmesg | grep cyttsp-i2c
If you have something like this, that means your X8 is using Cypress chip otherwise your X8 has Synaptic chip (so look at note above):

Code:
cyttsp_i2c_probe: Successful registration cyttsp-i2c
if you have "permission denied" you must first enter this in the terminal

Code:
su
and then you can enter the above commands.



Manual installation:
- push ax8mt.ko to /system/lib/modules
- run the following command

Code:
insmod /system/lib/modules/ax8mt.ko
- run dmesg in shell, must contains following lines:
Code:
ax8mt: module v005 loaded
input: cyttsp-spi as /devices/platform/i2c-adapter/i2c-0/0-0024/input/input3
cyttsp-i2c 0-0024: ax8mt_cyttsp_setup_input_dev: Registered input device cyttsp-spi
ax8mt: Enjoy dual touch now :)
ax8mt_init: Mode set to: andyx
Thats all - dual touch should works now.

If system reboot happens, get last kernel messages (get it using adb command:
Code:
adb pull /proc/last_kmsg
) and share


Check in Multitouch Visualiser - if it works correctly.

Until you're sure that it works with your hardware, don't install it to hw_config.sh.

Release history
v005:
- now there are four modes in driver (can be switched on the fly) each differently reports touches to OS:
* 'original' - uses code from driver - don't send tracking id that chip reports - so OS must do tracking fingers it by itself,
* original_tid' - uses code from driver - send tracking id from chip - in Multitouch Visualiser/Tester - there are additional id number,
* 'andyx' - default mode - send tracking id to OS - but only reports track id set to 1 or 2 - so there is no additional id number in Multitouch Visualiser,
* 'desire' - don't send tracking id that chip reports - so OS must do tracking fingers it by itself; reports touches similar to driver in HTC Desire.

In XGin - all version works - so by default 'andyx' mode is set, IMHO - don't forces OS to track touches by itself and up to 2 tracking id ( two fingers ), so should be fastest.

How to change mode:

In dmesg output there will be line:

Code:
ax8mt: module v005 loaded
input: cyttsp-spi as /devices/platform/i2c-adapter/i2c-0/0-0024/input/input3
Use device name from second line without two last slashes at the end and add '/sys/ at the beginning:

Code:
echo "andyx" > /sys/devices/platform/i2c-adapter/i2c-0/0-0024/mode
Dmesg command output should contain:

Code:
attr_driver_mode: Mode switched to: andyx
v004:
- driver reports smaller constant touch area,
- this is version that not send tracking id sent to OS,
- added sending the same information from driver to OS like in Synaptic driver - maybe it helps FroyoBread people.

v003:
- removed all hacks - module is initialised in init section,
- two versions with and without tracking id sent to OS.

v002:
- code cleaning,
- module is removable using rmmod command,
- driver send track id to OS - visible in Multitouch Visualiser.

v001:
- just initial version

I should mention that der_mart published his version at nearly the same time: DT

Cypress product info:
I found this on cypress page:

Quote:

Availability
The CY8CTMA340-XXX-03 (two-finger support) and CY8CTMA340-XXX-11 (four-finger support) device families are both available today from Cypress. Qualified customers can contact Cypress for more information and to obtain samples.

So everything depends which version of chip is in our X8.

Note:
It uses code to hijacking methods from doixanh X8Overclock module.

Disclaimer
I'm not responsible if this module damages your lovely phone. Use it at your own risk!
Attached Files
File Type: zip ax8mt_v003_notrkid.zip - [Click for QR Code] (1.9 KB, 12538 views)
File Type: zip ax8mt_v003.zip - [Click for QR Code] (1.9 KB, 3663 views)
File Type: zip ax8mt_v002.zip - [Click for QR Code] (2.5 KB, 1650 views)
File Type: zip ax8mt_v001.zip - [Click for QR Code] (2.5 KB, 1804 views)
File Type: zip ax8mt_v004.zip - [Click for QR Code] (8.7 KB, 5319 views)
File Type: zip ax8mt_v005.zip - [Click for QR Code] (4.0 KB, 36329 views)
The Following 87 Users Say Thank You to AnDyX For This Useful Post: [ View ] Gift AnDyX Ad-Free
 
 
22nd June 2011, 08:26 PM |#2  
Inactive Recognized Developer
Thanks Meter: 4,771
 
Donate to Me
More
Nice work. At least there's someone with Cypress device

Gratz!
The Following 15 Users Say Thank You to doixanh For This Useful Post: [ View ] Gift doixanh Ad-Free
22nd June 2011, 08:33 PM |#3  
proadi96's Avatar
Senior Member
Flag Enniscorthy (Ireland,Wexford)
Thanks Meter: 107
 
More
Can i try it out on my synaptics x8 ?

Sent from my X8 using Tapatalk
22nd June 2011, 08:40 PM |#4  
biscoitu's Avatar
Senior Member
Thanks Meter: 147
 
More
I hope that soon cypress owners get this module stable enough to enable auto load on boot and have fun. Nice work mate.

Sent from my X8 using XDA App
22nd June 2011, 08:59 PM |#5  
Junior Member
Flag Roma
Thanks Meter: 1
 
More
when i copy

insmod /system/lib/modules/ax8mt.ko

in terminal emulator it says "failed (operation not permitted)"
what i have to do?
The Following User Says Thank You to cosworth1988 For This Useful Post: [ View ] Gift cosworth1988 Ad-Free
22nd June 2011, 09:02 PM |#6  
D4rKn3sSyS's Avatar
Inactive Recognized Developer
Flag Monteria
Thanks Meter: 16,015
 
Donate to Me
More
You need to write first
Code:
su
and press allow

Congratulations Guys
Cheers,
d4.
The Following 2 Users Say Thank You to D4rKn3sSyS For This Useful Post: [ View ] Gift D4rKn3sSyS Ad-Free
22nd June 2011, 09:10 PM |#7  
AnDyX's Avatar
OP Senior Member
Flag Ruda Śląska
Thanks Meter: 457
 
More
Quote:
Originally Posted by proadi96

Can i try it out on my synaptics x8 ?

Sent from my X8 using Tapatalk

Nothing really happened, for synaptic you must use X8Gesture module from doixanh
The Following 4 Users Say Thank You to AnDyX For This Useful Post: [ View ] Gift AnDyX Ad-Free
22nd June 2011, 09:12 PM |#8  
Member
Flag Slupsk
Thanks Meter: 5
 
More
it works for me thanks a lot
22nd June 2011, 09:18 PM |#9  
Asycid's Avatar
Senior Member
Thanks Meter: 157
 
More
Tried it twice yet (I rebooted the phone after the first success), no kernel panic, it works. As I wrote in the generic MT topic: "When you make 2 touch simultaenously it's ok, but when you lift one of your finger it won't recognise the second touch until you move your finger that left off on your screen."

Don't be offended, it is just a bug report, and I know this is the first DT module for us, and yet, it is now far better than the Fake MT that synaptics can do. We are really lucky that you're here and do this. Thanks a lot!

Now I'll try to make a kernel panic reboot. I'll report back how many tries it needs to fail the loading.
(on ROM FroyoBread v12- from doixanh <-- great man too )
22nd June 2011, 09:19 PM |#10  
skyboyextreme's Avatar
Senior Member
Flag Cairo
Thanks Meter: 153
 
More
Quote:
Originally Posted by skowrone

it works for me thanks a lot

how did it work you mean you got real dual touch now on your x8!
22nd June 2011, 09:22 PM |#11  
Junior Member
Flag Roma
Thanks Meter: 1
 
More
it woooooorks
thank you!!
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes