Browse Source

fix: touch to screen map on VGA(DP-2) or DisplayPort(HDIM-1) for Lenovo T440

micha 2 years ago
parent
commit
d90be52867
1 changed files with 14 additions and 1 deletions
  1. 14 1
      input/touchscreen.py

+ 14 - 1
input/touchscreen.py

@@ -592,7 +592,7 @@ if __name__ == "__main__":
 
     touchscreen_count = 0
 
-    #TOUCH 1
+    #TOUCH 1 a
     name = "iSolution multitouch"
     x= touch_filter(name,touch_list)
     print(x)
@@ -605,6 +605,19 @@ if __name__ == "__main__":
         start_new_thread(main,(cmd,"HDMI-1"))
         touchscreen_count +=1
 
+    #TOUCH 1
+    name = "iSolution multitouch"
+    x= touch_filter(name,touch_list)
+    print(x)
+
+    if len(x):
+        disable_xinput_touch(name)
+        #cmd="evtest /dev/input/event24"
+        cmd="evtest {}".format(x[1])
+        start_new_thread(main,(cmd,"DP-2"))
+        #start_new_thread(main,(cmd,"HDMI-1"))
+        touchscreen_count +=1
+
 
 
     #TOUCH 1