Просмотр исходного кода

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 неделя назад
Родитель
Сommit
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:
                 print(f"🖥️ Screen timeout reached! Idle for {idle_time:.0f}s (timeout: {self._screen_timeout}s)")
                 self._turn_screen_off()
+                # DISABLED FOR TESTING - verify touch monitoring causes 100% CPU
                 # 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
     
     def _start_touch_monitoring(self):