May 25, 2018 updates: Privacy Policy

Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

device-generic-common: Commit

device/generic/common


Commit MetaInfo

Revision27b64c8819e0d2152c3a2b63058336bdfa15bf2a (tree)
Time2018-02-14 16:12:54
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

init.sh: reverse the default orientation of accelerometer

More people reported the orientation of accelerometer is reversed.
Let's change the default orientation.

Change Summary

Incremental Difference

--- a/init.sh
+++ b/init.sh
@@ -257,21 +257,18 @@ function init_hal_sensors()
257257 hal_sensors=hdaps
258258 ;;
259259 *i7Stylus*)
260- set_property ro.iio.accel.y.opt_scale -1
261- set_property ro.iio.accel.z.opt_scale -1
260+ set_property ro.iio.accel.x.opt_scale -1
262261 ;;
263262 *ONDATablet*)
264263 set_property ro.iio.accel.order 102
264+ set_property ro.iio.accel.x.opt_scale -1
265+ set_property ro.iio.accel.y.opt_scale -1
265266 ;;
266267 *ST70416-6*)
267268 set_property ro.iio.accel.order 102
268- ;&
269- *HPEliteBook*|*Surface*3*|*svnOEMB*|*T305CA*|*Venue11Pro5130*|*20FQ*|*20FR*)
270- set_property ro.iio.accel.y.opt_scale -1
271- ;&
269+ ;;
272270 *T10*TA*)
273- set_property ro.iio.accel.x.opt_scale -1
274- set_property ro.iio.accel.z.opt_scale -1
271+ set_property ro.iio.accel.y.opt_scale -1
275272 ;;
276273 *)
277274 has_sensors=false
Show on old repository browser