我们在调试rk3308与gt912芯片的触摸屏幕过程中,发现触摸屏两边触摸正常
,触摸屏中间区域无任何反应,往屏幕右侧滑动,发现x点坐标在变低。这个问题已经很久了还是没得到解决,已经到了崩溃额阶段,哪位大神能指点一下可能出现的问题。
linux内核,tslib库
首先在驱动里面加打印。看下上报的点是否正常,如果不正常就是tp里面的软件有问题,可以找供应商去改。如果驱动里面报点打印正常,一般就是因为设置了ro.sf.hwrotation问题,照下面这个改法试下:
diff --git a/services/core/jni/com_android_server_input_InputManagerService.cpp b/services/core/jni/com_android_server_input_InputManagerService.cpp
index b9abb79..e2a260a 100644
--- a/services/core/jni/com_android_server_input_InputManagerService.cpp
+++ b/services/core/jni/com_android_server_input_InputManagerService.cpp
@@ -324,10 +324,10 @@ NativeInputManager::NativeInputManager(jobject contextObj,
mLocked.pointerGesturesEnabled = true;
mLocked.showTouches = false;
mLocked.hardwareRotation = 0;
- char property[PROPERTY_VALUE_MAX];
- if (property_get("ro.sf.hwrotation", property, "0") > 0) {
- mLocked.hardwareRotation = atoi(property) / 90;
- }
+ //char property[PROPERTY_VALUE_MAX];
+ //if (property_get("ro.sf.hwrotation", property, "0") > 0) {
+ // mLocked.hardwareRotation = atoi(property) / 90;
+ //}
}
mInteractive = true;