ソースを参照

test(touch): disable touch monitoring to verify 100% CPU hypothesis

Temporarily disable touch monitoring on screen timeout to confirm
that evtest subprocess is the root cause of 100% CPU usage.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
tuanchris 1 週間 前
コミット
7ccd34a908
1 ファイル変更2 行追加1 行削除
  1. 2 1
      dune-weaver-touch/backend.py

+ 2 - 1
dune-weaver-touch/backend.py

@@ -1157,8 +1157,9 @@ class Backend(QObject):
             if idle_time > self._screen_timeout:
             if idle_time > self._screen_timeout:
                 print(f"🖥️ Screen timeout reached! Idle for {idle_time:.0f}s (timeout: {self._screen_timeout}s)")
                 print(f"🖥️ Screen timeout reached! Idle for {idle_time:.0f}s (timeout: {self._screen_timeout}s)")
                 self._turn_screen_off()
                 self._turn_screen_off()
+                # DISABLED FOR TESTING - verify touch monitoring causes 100% CPU
                 # Add delay before starting touch monitoring to avoid catching residual events
                 # Add delay before starting touch monitoring to avoid catching residual events
-                QTimer.singleShot(1000, self._start_touch_monitoring)  # 1 second delay
+                # QTimer.singleShot(1000, self._start_touch_monitoring)  # 1 second delay
         # If timeout is 0 (Never), screen stays on indefinitely
         # If timeout is 0 (Never), screen stays on indefinitely
     
     
     def _start_touch_monitoring(self):
     def _start_touch_monitoring(self):