Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
AnDyX
Old
(Last edited by AnDyX; 24th October 2011 at 06:14 AM.)
#1  
AnDyX's Avatar
Senior Member - OP
Thanks Meter 444
Posts: 180
Join Date: May 2008
Location: Ruda Śląska
Default [Module] | X8 only | AX8MT v005 | Dual touch for Cypress touchpad

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, 11346 views)
File Type: zip ax8mt_v003.zip - [Click for QR Code] (1.9 KB, 3186 views)
File Type: zip ax8mt_v002.zip - [Click for QR Code] (2.5 KB, 1407 views)
File Type: zip ax8mt_v001.zip - [Click for QR Code] (2.5 KB, 1536 views)
File Type: zip ax8mt_v004.zip - [Click for QR Code] (8.7 KB, 4745 views)
File Type: zip ax8mt_v005.zip - [Click for QR Code] (4.0 KB, 30289 views)

|Xperia U on ICS| currently powered by SMARTASS / SIO
GIT
Xperia U | SMARTASS | ONDEMANDAX | PEGASUSQ | LULZACTIVEQ | SIO | VR
Neo V | SMARTASSV2 / ONDEMANDX
X8 | AX8NETFILTER | AX8_SMARTASS | AX8MT | AX8NOALS
The Following 85 Users Say Thank You to AnDyX For This Useful Post: [ Click to Expand ]
 
doixanh
Old
(Last edited by doixanh; 22nd June 2011 at 08:30 PM.)
#2  
Recognized Developer
Thanks Meter 4712
Posts: 1,247
Join Date: Jan 2011

 
DONATE TO ME
Nice work. At least there's someone with Cypress device

Gratz!
IScreamDX v004 | GingerDX v028 | GingerDX v015 for GT-I9000 | LinuxDX v004 | FroyoBread v023b FINAL | X8Gesture v007
X8Overclock v004 | X8Undervolt v001 | X8MDDI v001 | X8Kconfig v001 | X8Netfilter dev | FroyoBeam dev | X10MPMultitouch

shakira/gdx31stock - best experience ever | galaxysmtd/slimbean | p1/cm | anzu/slimbean | maguro/slimbean
The Following 15 Users Say Thank You to doixanh For This Useful Post: [ Click to Expand ]
 
proadi96
Old
#3  
proadi96's Avatar
Senior Member
Thanks Meter 68
Posts: 930
Join Date: Mar 2011
Location: Enniscorthy (Ireland,Wexford)
Can i try it out on my synaptics x8 ?

Sent from my X8 using Tapatalk
HTC Desire + RSK Xperience 4.2.2

XPERIA x8 + Unlocked Bootloader !





 
biscoitu
Old
#4  
biscoitu's Avatar
Senior Member
Thanks Meter 138
Posts: 665
Join Date: Apr 2011
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

"Never tell your problems to anyone...20% don't care and the other 80% are glad you have them."

Lou Holtz
 
cosworth1988
Old
#5  
Junior Member
Thanks Meter 0
Posts: 11
Join Date: Aug 2008
Location: Roma
when i copy

insmod /system/lib/modules/ax8mt.ko

in terminal emulator it says "failed (operation not permitted)"
what i have to do?
 
D4rKn3sSyS
Old
(Last edited by D4rKn3sSyS; 22nd June 2011 at 09:14 PM.)
#6  
D4rKn3sSyS's Avatar
Recognized Developer
Thanks Meter 14729
Posts: 3,730
Join Date: Jan 2011
Location: Monteria

 
DONATE TO ME
You need to write first
Code:
su
and press allow

Congratulations Guys
Cheers,
d4.

People asking for my Paypal E-mail: jedga_95@outlook.com
The Following 2 Users Say Thank You to D4rKn3sSyS For This Useful Post: [ Click to Expand ]
 
AnDyX
Old
#7  
AnDyX's Avatar
Senior Member - OP
Thanks Meter 444
Posts: 180
Join Date: May 2008
Location: Ruda Śląska
Quote:
Originally Posted by proadi96 View Post
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

|Xperia U on ICS| currently powered by SMARTASS / SIO
GIT
Xperia U | SMARTASS | ONDEMANDAX | PEGASUSQ | LULZACTIVEQ | SIO | VR
Neo V | SMARTASSV2 / ONDEMANDX
X8 | AX8NETFILTER | AX8_SMARTASS | AX8MT | AX8NOALS
The Following 4 Users Say Thank You to AnDyX For This Useful Post: [ Click to Expand ]
 
skowrone
Old
#8  
Member
Thanks Meter 5
Posts: 39
Join Date: Mar 2011
Location: Slupsk
it works for me thanks a lot
 
Asycid
Old
#9  
Asycid's Avatar
Senior Member
Thanks Meter 125
Posts: 590
Join Date: Apr 2011
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 )
 
skyboyextreme
Old
#10  
skyboyextreme's Avatar
Senior Member
Thanks Meter 152
Posts: 1,089
Join Date: Feb 2011
Location: Cairo
Quote:
Originally Posted by skowrone View Post
it works for me thanks a lot
how did it work you mean you got real dual touch now on your x8!
Xperia Neo S+

PwnKernel v1.7b + .64 Baseband + S.E 'Super' Tweaked XXX Edition + Rooted + CPU @ 1.6GHz with 1200mV + 420mb User spaced + 16GB-C4 Kingston microSD + Link2SD @ 512MB sd-ext4 + CWM Recovery 5.0.2.7 + DRM Functional

(4000 Antutu-Points)

My name is John, Hi
Now Playing : Shadow Gun - The Left Over, GTA III - 10th Anniversary

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...