OSDN Git Service

init.sh: fix the Cube i7 Stylus tablet sensor orientation
authorChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 3 Jun 2016 04:25:41 +0000 (12:25 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 3 Jun 2016 04:25:41 +0000 (12:25 +0800)
init.sh

diff --git a/init.sh b/init.sh
index 20161d6..9ed35ab 100644 (file)
--- a/init.sh
+++ b/init.sh
@@ -218,6 +218,9 @@ function init_hal_sensors()
                        modprobe hdaps
                        hal_sensors=hdaps
                        ;;
+               *i7Stylus*)
+                       set_property hal.sensors.iio.accel.matrix 1,0,0,0,-1,0,0,0,-1
+                       ;;
                *)
                        ;;
        esac