1
0
tuanchris 4 сар өмнө
parent
commit
7711fd69fe

+ 22 - 0
dune-weaver-touch/test_egl_info.py

@@ -0,0 +1,22 @@
+#!/usr/bin/env python3
+import sys
+import os
+
+# Set kiosk environment
+os.environ['QT_QPA_PLATFORM'] = 'eglfs'
+os.environ['QT_DEBUG_PLUGINS'] = '1'
+os.environ['QT_LOGGING_RULES'] = 'qt.qpa.*=true'
+
+from PySide6.QtGui import QGuiApplication
+
+app = QGuiApplication(sys.argv)
+print("✅ Qt app created successfully")
+print(f"Platform: {app.platformName()}")
+
+# Try to get screen info
+screens = app.screens()
+print(f"Number of screens: {len(screens)}")
+for i, screen in enumerate(screens):
+    print(f"Screen {i}: {screen.size().width()}x{screen.size().height()}")
+    
+sys.exit(0)

+ 4 - 4
dune-weaver-touch/test_qt_minimal.py

@@ -16,10 +16,10 @@ def main():
 
     if kiosk_mode:
         # Set Qt platform for fullscreen framebuffer mode
-        os.environ['QT_QPA_PLATFORM'] = 'eglfs'
-        os.environ['QT_QPA_EGLFS_WIDTH'] = '800'
-        os.environ['QT_QPA_EGLFS_HEIGHT'] = '480'
-        print("🖥️  Running in KIOSK MODE (fullscreen 800x480)")
+        # Try linuxfb instead of eglfs (software rendering, no GPU)
+        os.environ['QT_QPA_PLATFORM'] = 'linuxfb'
+        os.environ['QT_QPA_FB_DRM'] = '0'  # Disable DRM
+        print("🖥️  Running in KIOSK MODE (linuxfb - software rendering)")
     else:
         print("🪟 Running in WINDOWED MODE (development)")
         print("   Use --kiosk flag or set KIOSK_MODE=1 for fullscreen")