Bladeren bron

fix touch

tuanchris 3 maanden geleden
bovenliggende
commit
41e424ddb4
3 gewijzigde bestanden met toevoegingen van 9 en 11 verwijderingen
  1. 2 2
      dune-weaver-touch/main.py
  2. 4 5
      dune-weaver-touch/run.sh
  3. 3 4
      dune-weaver-touch/start-with-fb-check.sh

+ 2 - 2
dune-weaver-touch/main.py

@@ -90,8 +90,8 @@ def main():
         # Only use linuxfb on Linux systems (Raspberry Pi)
         # On macOS, let Qt use the native cocoa platform
         if sys.platform.startswith('linux'):
-            # Default linuxfb with 180° rotation for Freenove display
-            os.environ['QT_QPA_PLATFORM'] = 'linuxfb:fb=/dev/fb0:rotation=180'
+            # Default linuxfb (rotation handled by QML transform in main.qml)
+            os.environ['QT_QPA_PLATFORM'] = 'linuxfb:fb=/dev/fb0'
             os.environ['QT_QPA_FONTDIR'] = '/usr/share/fonts'
 
             # Enable virtual keyboard on Linux kiosk

+ 4 - 5
dune-weaver-touch/run.sh

@@ -51,12 +51,11 @@ echo ""
 
 cd "$SCRIPT_DIR"
 
-# Set Qt platform to linuxfb for Raspberry Pi compatibility with 180° rotation
-# LinuxFB with FKMS: use Qt's rotation parameter
-export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb0:rotation=180
+# Set Qt platform to linuxfb for Raspberry Pi compatibility
+export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb0
 export QT_QPA_FONTDIR=/usr/share/fonts
 
-# Configure touch screen rotation (180 degrees)
-export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event0:rotate=180
+# Touch rotation is now handled by QML transform - don't rotate evdev input
+# (Rotation happens in main.qml via transform: Rotation)
 
 exec ./venv/bin/python main.py

+ 3 - 4
dune-weaver-touch/start-with-fb-check.sh

@@ -46,11 +46,10 @@ echo "🚀 Starting Dune Weaver Touch..."
 cd "$SCRIPT_DIR"
 
 # Configure Qt platform environment variables
-# LinuxFB with FKMS: use Qt's rotation parameter since FKMS doesn't rotate the raw framebuffer
-export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb0:rotation=180
+export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb0
 export QT_QPA_FONTDIR=/usr/share/fonts
 
-# Configure touch screen rotation (180 degrees)
-export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event0:rotate=180
+# Touch rotation is now handled by QML transform - don't rotate evdev input
+# (Rotation happens in main.qml via transform: Rotation)
 
 exec ./venv/bin/python main.py