OSDN Git Service
(root)
/
android-x86
/
device-generic-common.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
init.sh: fix sensors support of Microtech e-tab Pro
[android-x86/device-generic-common.git]
/
init.sh
diff --git
a/init.sh
b/init.sh
index
7b205f9
..
b8e4a88
100644
(file)
--- a/
init.sh
+++ b/
init.sh
@@
-260,6
+260,9
@@
function init_hal_sensors()
modprobe hdaps
hal_sensors=hdaps
;;
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
;;
*i7Stylus*|*M80TA*)
set_property ro.iio.accel.x.opt_scale -1
;;
@@
-271,7
+274,10
@@
function init_hal_sensors()
*ST70416-6*)
set_property ro.iio.accel.order 102
;;
*ST70416-6*)
set_property ro.iio.accel.order 102
;;
- *T*0*TA*|*pnEZpad*)
+ *pnEZpad*)
+ set_property ro.iio.accel.quirks no-trig
+ ;&
+ *T*0*TA*)
set_property ro.iio.accel.y.opt_scale -1
;;
*)
set_property ro.iio.accel.y.opt_scale -1
;;
*)
@@
-421,6
+427,9
@@
function do_bootcomplete()
setkeycodes 0x66 172
setkeycodes 0x6b 127
;;
setkeycodes 0x66 172
setkeycodes 0x6b 127
;;
+ Surface*Go)
+ echo on > /sys/devices/pci0000:00/0000:00:15.1/i2c_designware.1/power/control
+ ;;
*)
;;
esac
*)
;;
esac