On Friday, November 29, 2013 6:29:11 PM UTC+5:30, Alexander Chapkin wrote: > > Hi, all. > > I have custom board with the 4.1.2 Android and the 3M touch screen. > It works, but its active area much smaller than the screen: it's about > 800x480 and the resolution of the display is 1280x800 > > I tryed to edit the *.idc file but that didn't change the situation at > all. I also put /system/etc/pointercal file with some meaningless numbers > and it's also makes no sense on the touch screen behavior. > > Please, advice me, how can expand active area of the touch screen? >
Have you read the touchscreen driver documentation about touchscreen? http://s.android.com/devices/tech/input/touch-devices.html#touch-device-driver-requirements You need to correctly return the min/max values for x and y axes from the touch driver. Android framework then scales the touch coordinates based on this. You can refer to the BeagleBoard kernel from rowboat project for an example of this: a) Provide the min/max values as platform data to touch driver: https://gitorious.org/rowboat/kernel/source/03f2a1e9ea7f8b11ff6809f5a75b614011f8adb6:arch/arm/mach-omap2/board-am335xevm.c#L295 b) Have the touch driver report this up to android in touch init: https://gitorious.org/rowboat/kernel/source/03f2a1e9ea7f8b11ff6809f5a75b614011f8adb6:drivers/input/touchscreen/ti_tsc.c#L392 The TI wiki has the process to get the min/max values you need to set. http://processors.wiki.ti.com/index.php/TI-Android-JB-PortingGuide#Touch_Calibration -Vishveshwar -- -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting --- You received this message because you are subscribed to the Google Groups "android-porting" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
