How to Configure Your Android Touchscreen Responsiveness?

How to configure your Android touchscreen responsiveness?


Some XDA threads says that adding a line in build.prop file like bellow will improve touch responsiveness:

touch.pressure.scale=0.001


build.prop is contains system properties that will be executed by ROM in every device boot.

But is the "touch.pressure.scale" really a system property? Is the line make sense or just a placebo effect?

Now lets we find the source of the claimed system property by searching these 2 key words:

1) touch.pressure.scale site:source.android.com

2) touch.pressure.scale site:android.googlesource.com

The first result at number 1 is this site: https://source.android.com/devices/input/touch-devices

The site is contains about the configuration property. But where is the configuration file of the property? You can click "Input Device Configuration Files" with blue color at the center of the site.


Now we can see where is the configuration file.


I will click the second site result:

Now by referring those results, we can see that the "touch.pressure.scale" is not a system property, but an "idc" file property stored at /system/usr/idc/<device-name>.idc or /vendor/usr/idc/<device-name>.idc

So what is <device-name>? How we can find the <device-name> in our device specific?

Lets type in terminal emulator:

su
dumpsys input

Find the line of "Calibration:" and what "Device <number>:" that managing it.

For example, in Xiaomi Redmi 4A device (old vendor), we will see that the "Calibration:" line is managed by "Device 5: ft5346" (in newer vendor, it's goodix-ts). So the touchscreen <device-name> is "ft5346". We can configure the touchscreen with /system/usr/idc/ft5346.idc or /vendor/usr/idc/ft5346.idc file. We can fill the touch.pressure.scale=0.001 in the ft5346.idc file. Every devices has different <device-name> that managing their touchscreen.

We can proof that is the ft5346 really the right touchscreen <device-name> or not with this method bellow, type again at terminal emulator:

su
dumpsys input

Then find:

5. ft5436
Classes :
Path :

The "Path:" line shows where's the output process of the touchscreen.

Then type at terminal emulator:

cat /dev/input/event1

After type enter, touch or swipe what ever you want on screen, then the output will show to proof that the ft5346 is the right touchscreen device name input manager. If the result is not showing anything, then the device name is not the manager.

After you create the /system/usr/idc/ft5346.idc or /vendor/usr/idc/ft5346.idc with the standard permission, reboot, then see the result:

Type again in terminal emulator:

su
dumpsys input

Find again the "5: ft5346"
As you can see the idc file config that you created will be stored at "ConfigurationFile :" line.

Find the "Calibration:" line
The touch.pressure.scale=0.001 will be stored under that line.

So, is this make sense now?
Let's find out to other devices!

Tips: Stay always referring to these 2 sites:

          source.android.com
          android.googlesource.com

          before tweaking.


Regards
Rei Ryuki

Komentar

Postingan populer dari blog ini

How to Fix Offline Time/Date not Showing Right After Each Device Boot in Android Custom ROM?