OSDN Git Service

init.sh: support the accelerometer of HP laptops
authorSuici Doga <suiciwd@gmail.com>
Tue, 7 Jun 2016 12:08:24 +0000 (20:08 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 7 Jun 2016 12:08:24 +0000 (20:08 +0800)
init.sh

diff --git a/init.sh b/init.sh
index afc347f..2a2dc3d 100644 (file)
--- a/init.sh
+++ b/init.sh
@@ -228,6 +228,9 @@ function init_hal_sensors()
                        modprobe hdaps
                        hal_sensors=hdaps
                        ;;
+               *HPPaviliong*)
+                       hal_sensors=hdaps
+                       ;;
                *i7Stylus*)
                        set_property hal.sensors.iio.accel.matrix 1,0,0,0,-1,0,0,0,-1
                        ;;