OSDN Git Service

init.sh: invert axes of sensors for Microtech e-tab Pro
authorChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 27 Mar 2019 10:08:19 +0000 (18:08 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 27 Mar 2019 10:08:19 +0000 (18:08 +0800)
With panel-orientation-quirks applied in i915 driver, the display is
rotated 180 degrees. We need to invert the x and y axes of sensors
as well.

init.sh

diff --git a/init.sh b/init.sh
index 2acd918..8d87f0c 100644 (file)
--- a/init.sh
+++ b/init.sh
@@ -270,9 +270,6 @@ function init_hal_sensors()
                        modprobe hdaps
                        hal_sensors=hdaps
                        ;;
-               *e-tabPro*)
-                       set_property ro.iio.accel.quirks no-trig
-                       ;&
                *i7Stylus*|*M80TA*)
                        set_property ro.iio.accel.x.opt_scale -1
                        ;;
@@ -284,7 +281,7 @@ function init_hal_sensors()
                *ST70416-6*)
                        set_property ro.iio.accel.order 102
                        ;;
-               *pnEZpad*)
+               *e-tabPro*|*pnEZpad*)
                        set_property ro.iio.accel.quirks no-trig
                        ;&
                *T*0*TA*)