[Sony Ericsson XPERIA X10 Mini] CM-PRo:
ORIGINALLY POSTED BY doixanh:

It seems that X8 and X10mini use the same touchscreen controller, so this module may work with X10 mini, too!

I'm working with a kernel module to replace SE touchscreen driver to support dualtouch. However, as I found out, it will mostly not be supported by our hardware, because X8 has only 1 sensor and that sensor supports only 1 finger. I don't know whether we can have dual touch if we flash the screen firmware. I will have a look on that.

A temporary solution now is to make a one finger pinch zoom. The idea is that we make Android to think that the second finger is also pressed, by generating second finger events from the driver.

Because I need to modify hw_config.sh and each ROM has a different hw_config.sh, there will be a specific update.zip for each ROM.

Release history

April 13 v004. Rewrite from scratch. Pinch zoom with one or

two fingers

.

April 03. Source released.

March 26 v003. Specify zoom-in position.

March 25 v002. Zoom-out, rotate. Module size optimization.

March 24 v001. Better finger detection. Reduced zoom-in speed.

March 23 v000. 1 finger pinch zoom-in only

Very Important : How to zoom

For v004

To activate gesture, put your two fingers one-by-one (one finger first, then another after - don't put both at the same time) on the screen, away from each other for at least 1cm. The 2nd finger should have more pressure onto the screen. After putting your 2nd finger on the screen, wait for 0.5s, the gesture will be activated.

After the gesture is activated, you can

- Use your two pressed fingers, or

- Lift up one finger and use the remaining finger

to zoom-in/out/rotate.

I prefer keeping two fingers on the screen, because it's natural for pinch zoom. You can look at the tutorial for v004 here, and practice with MultiTouch Visualizer 2.

For v003 and below

Right now it supports only zoom-in, zoom-out, and rotate. I will improve it over time. For who says it's not working, please read this how-to very carefully:

- To activate gesture : Put two fingers near each other, lift one finger up.

- To zoom-in (make things bigger): Activate gesture near the center of the screen. Move your remaining finger away from the gesture position to zoom-in.

- [new in v003] To zoom-in with specified zoom-in position: Do a normal touch to the zoom-in position (your face in an image, for example), then activate the gesture a little bit away from the zoom-in position shortly after the previous normal touch, then drag to zoom. I know, it's a little bit hard to understand ~.~ I will make a short clip for the tutorial

- To zoom-out (make things smaller): Activate gesture at the corner or the side of the screen. Move your remaining finger toward the screen center to zoom-out.

- To rotate : Activate gesture at the corner or the side of the screen. Move your remaining finger around the screen center to rotate.

Practice your 1 finger pinch zoom with MultiTouch Visualizer 2. Tutorial for zoom in, zoom out, and rotate can be watched here

Requirements

- Rooted

- xRecovery (for update.zip installation)

For people who have previous x8gesture.ko and want to only update to new one without any other changes use the attached x8gesture_v004_update.zip to flash with xRecovery. Then edit hw_config.sh and add following code at top:

#dx: our modded touchscreen driver
insmod /system/lib/modules/x8gesture.ko

[IMG]http://tapa.tk/mu/7560d9ef-d470-2e3d.jpg[/IMG] [IMG]http://tapa.tk/mu/7560d9ef-d484-c533.jpg[/IMG]

Hope it helps.[/U][/B][/SIZE][/COLOR]

[SIZE="4"][COLOR="DarkOrchid"][B][U]Instruction for manual installation:[/U][/B][/COLOR]
- Remount /system as rw
- Copy the attached x8gesture.ko below to /system/lib/modules
- Change hw_config.sh in your /system/etc, add this code at the beginning
Code:
# dx: our modded touchscreen driver
insmod /system/lib/modules/x8gesture.ko
- Push modified hw_config.sh back to your phone, reboot[/SIZE]

[B][U][COLOR="Blue"]Instruction for installation with update.zip:[/COLOR][/U][/B]
- [B][U][SIZE="4"][/SIZE][/U][/B]: These update.zip will disable X8Overclock if it's enabled on your system. It's much better if you do the manual installation above.
- Download update.zip accImportant ording to your current ROM
- Reboot and flash with xRecovery
- Report bugs

[B][COLOR="DarkOrchid"]List of update.zip[/COLOR][/B]

[B][COLOR="DarkOrchid"]v004 releases[/COLOR][/B]

- For Stock SE 2.0.1.A.0.47 : update-2.0.1.A.0.47-2011-04-13-signed.zip (9.69 KB)	[url]http://www.multiupload.com/JQIPMR4FS5[/url]
- For Stock SE 2.1.1.A.0.6 : update-2.1.1.A.0.6-2011-04-13-signed.zip (9.45 KB)	[url]http://www.multiupload.com/EJPLJL0NEY[/url]
- For racht's CM7-J005 HACKDROID : pdate-cm7j005hackdroid-2011-04-13-signed.zip (9.98 KB)	[url]http://www.multiupload.com/EMU5K5ZYNF[/url]
- For jerpelea's CM7-006a : update-cm7j006a-2011-04-13-signed.zip (9.61 KB)	[url]http://www.multiupload.com/4KER24ZCXX[/url]
- For racht's HACKDROID 0.15 : update-floyo15-2011-04-13-signed.zip (9.69 KB)	[url]http://www.multiupload.com/PS9UPCX46B[/url]
- For nobodyAtall's MiniCM beta 2 : update-minicm2-2011-04-13-signed.zip (9.44 KB)	[url]http://www.multiupload.com/LHT0RC4F4M[/url]

[B]v003 releases[/B]

- For Stock SE 2.0.1.A.0.47 : update-2.0.1.A.0.47-2011-03-26-rel-signed.zip (9.71 KB)	[url]http://www.multiupload.com/USKMD30N67[/url]
- For Stock SE 2.1.1.A.0.6 : update-2.1.1.A.0.6-2011-03-26-rel-signed.zip (9.47 KB)	[url]http://www.multiupload.com/CL2SH8FJGK[/url]
- For racht's CM7-J005 HACKDROID : update-cm7j005hackdroid-2011-03-26-rel-signed.zip (10 KB)	[url]http://www.multiupload.com/1X0IWZKRN6[/url]
- For jerpelea's CM7-006a : update-cm7j006a-2011-03-26-rel-signed.zip (9.63 KB)	[url]http://www.multiupload.com/6N2HAGE9OC[/url]
- For racht's CM7-1.0 RC1 : update-cm7r1.0rc1-2011-03-26-rel-signed.zip (9.62 KB)	[url]http://www.multiupload.com/PMN0H2LB52[/url]
- For racht's HACKDROID 0.15 : update-floyo15-2011-03-26-rel-signed.zip (9.71 KB)	[url]http://www.multiupload.com/UJK029BLIX[/url]
- For nobodyAtall's MiniCM beta 2 : update-minicm2-2011-03-26-rel-signed.zip (9.47 KB)	[url]http://www.multiupload.com/Z7XKFKP3A5[/url]

For other ROMs, please upload your /system/etc/hw_config.sh so I can customize your ROM's hw_config to load the kernel module

[B][U]Troubleshoot[/U][/B]
Q. Help! It doesn't work!
A. Try this command from your PC shell
[CODE]
adb shell
dmesg | grep X8Gesture

If there is some output, that means the module is loaded. You need to practice first.

Q. Help! I did as above, but nothing was output

A. Check your hw_config.sh or your ramdisk to be sure that it's loaded during boot

Q. Help! dmesg above output something, but it doesn't work!

A. Maybe you're trying to load it in X10 Mini Pro or other devices? It supports only X8 and X10 mini.

Give it a try.

If u like my post, thank me!!