p*******m 发帖数: 20761 | 1 from verygreen
Ok, so regarding touchscreen, I uncovered this manual, that does not seem to
be 100% matching wrt defaults, but otherwise seems to be pretty much spot
on: http://newhavendisplay.com/app_notes/FT5x06.pdf
Now people that have issues can experiment with values and report their
findings and we might devise new defaults from it.
Registers are accessible from userspace too. The first table is controlled
by:
/sys/bus/i2c/drivers/ft5x06/3-0038/wmreg and /sys/bus/i2c/drivers/ft5x06/3-
0038/wmval
so in adb shell do echo 0xXX >/sys/bus/i2c/drivers/ft5x06/3-0038/wmreg (
replace XX with register number) to set register you are interested in
then you can do cat /sys/bus/i2c/drivers/ft5x06/3-0038/wmval to inspect the
value, or echo 0xXX >/sys/bus/i2c/drivers/ft5x06/3-0038/wmval to set the new
value.
cat /sys/bus/i2c/drivers/ft5x06/3-0038/tpreset seems to mostly reset
controller, but not to 100% default state.
If you screwed up, just press the power button twice (so suspend/resume) and
the thing will reset into the default state.
When experimenting with all of this, make sure your screen is actually on
too.
There's some sort of autocalibration that you can perform by doing cat /sys/
bus/i2c/drivers/ft5x06/3-0038/storecalibrateflash but I do not see any
change after it.
Anyway, what I found so far:
the 0x80 register controls touch sensitivity in a way, the smaller the value
, the higher the sensitivity. default 0x11, at 0x50 I can no longer register
any input, at 0x40 input is very sporadic. So people that complain about
oversensitivity might want to give this one a try.
There are registers for temperature compensation, water on the surface
compensation and such that I cannot seem to see make any difference, but it
might for others?
register 0xA0 for autocalibration, if you enable that - touchscreen goes
crazy with tons of phantom events, dong cat on tpreset stops it, but the ts
is still somewhat in weird state as you will be able to see if you decide to
try it.
Anyway, the documentation is very lightweight so there's a lot of
experimenting to be done by interested parties, please share your results! |
|