ソースを参照

fix touchscreen mini-dp

micha 2 年 前
コミット
d33ce8bd74
2 ファイル変更4 行追加2 行削除
  1. 1 1
      _LibreLightDesk.py
  2. 3 1
      input/touchscreen.py

+ 1 - 1
_LibreLightDesk.py

@@ -316,7 +316,7 @@ class MC():
                 #val = x[501-1]
                 val = x[141-1]
                 #print("mc val",val)
-                #set_exec_fader(0,val)
+                set_exec_fader(0,val)
                 time.sleep(0.01)
             except Exception as e:
                 print("exc", e)

+ 3 - 1
input/touchscreen.py

@@ -601,7 +601,8 @@ if __name__ == "__main__":
         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,"DP-2"))
+        start_new_thread(main,(cmd,"HDMI-1"))
         touchscreen_count +=1
 
 
@@ -615,6 +616,7 @@ if __name__ == "__main__":
         #cmd="evtest /dev/input/event5"
         cmd="evtest {}".format(x[1])
         start_new_thread(main,(cmd,"eDP-1"))
+        #start_new_thread(main,(cmd,"HDMI-1"))
         touchscreen_count +=1
 
     while 1: