lpcmanager

Parents 3428927e744b
Children 3696eccde10a
Fix touch orientation, that ws initially changing QT EVDEV parameter environment variable and now change TSLIB configuration file path environment variable to pick configuration file matching orientation
  • +3 -1
    LPCSVGHMI.py
  • --- a/LPCSVGHMI.py Tue Jul 27 11:57:03 2021 +0200
    +++ b/LPCSVGHMI.py Wed Sep 01 11:56:16 2021 +0200
    @@ -58,7 +58,9 @@
    (True,False): ("180","180"),
    (True,True): ("-90","270")}[(rotate180,portrait)]
    - browser_commandline = 'QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=rotate=' + touch_angle + \
    + # When we were using EVDEV, this was how rotation was done:
    + # 'QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=rotate=' + touch_angle + \
    + browser_commandline = 'TSLIB_CONFFILE=/etc/ts_' + touch_angle + ".conf" \
    ' QT_QPA_EGLFS_ROTATION=' + eglfs_angle + \
    ' qt_webenginewidgets_minimal' + \
    ' --js-flags="--max_old_space_size=16 --gc_interval=100 --optimize_for_size"' + \