Hello there!
It looks like you're enjoying SE-lifestyle forums but haven't created an account yet. Why don't you take a minute to register for your own account now? As a member you get access to all of our files, forums and posts plus the ability to post your own messages, communicate directly with other members and much more. Register now!

Already a member? Login here to stop seeing this message.

All times are UTC + 5:30 hours




Post new topic Reply to topic  [ 1 post ] 
  Print view
[Module] X8 | AX8MT v005 | Dual touch for Cypress touchpad
Author Message
PostPosted: Tue Jul 05, 2011 8:01 pm 
Offline
Most Active 2011 #2
Most Active 2011 #2
User avatar

Joined: Sun Mar 14, 2010 1:53 pm
Posts: 2918
Location: MALAYSIA
Highscores: 1
Phone(s): XPERIA X8, K550@W610
About Me: Maximizing smartphone performance.
FileBase uploads: 345.64 MB in 47 files
Source: http://forum.xda-developers.com/showthr ... ?t=1135965
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.
If the above message doesnt show up, means u got Synaptic Digitizer. Refer > http://forum.xda-developers.com/showthr ... ?t=1004740

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_kmesg

:) 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.
Install in hw_config.sh by adding the command lines to it.
Code:
insmod /system/lib/modules/ax8mt.ko
echo "andyx" > /sys/devices/platform/i2c-adapter/i2c-0/0-0024/mode


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!

Download
X8_AX8MT v005 (Dual touch for Cypress touchpad)
Uploaded by zhuhang
Downloaded 16 times

_________________
SE-L Facebook Group | My Mediafire Folder
XPERIA™ X8 Android v2.3.7 - GingerDX | ICS Look | UnderClock @480MHz | DualTouch | Pinch Zoom | UnderVolt | MDDI Fix | Swype™ |
★[Tips] Android | How to Maximize Battery Life | ★[Guide][CM7] Complete Ice Cream Sandwich Look | 5.12.2011
(!) Click here if you cant register in forum. | Forum Rules And Guidelines


Top
 Profile E-mail  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 5:30 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron