On Thursday, 19 October 2017 22:19:17 +10 Erasmus Tatang wrote:
> How I suppose to change surface flinger rotation?
> Am I need to recompile the source to achieve it?
>
Hi,
Just install the system in read-write mode and add a few lines
like in the following example:
diff -Naur system.orig/etc/init.sh system/etc/init.sh
--- system.orig/etc/init.sh
+++ system/etc/init.sh
@@ -246,6 +246,12 @@
*ONDATablet*)
set_property hal.sensors.iio.accel.matrix 0,1,0,1,0,0,0,0,-1
;;
+ *DEXPOEM*)
+ set_property hal.sensors.iio.accel.matrix 0,1,0,1,0,0,0,0,-1
+ ;;
+ *"bvr5.6.5:bd10/20/2014"*)
+ set_property hal.sensors.iio.accel.matrix 1,0,0,0,-1,0,0,0,-1
+ ;;
*)
#has_sensors=false
;;
Run
cat /sys/class/dmi/id/uevent
to see what strung shall be written between two **
or simply put the matrix after the last *)
I guess 0,1,0,1,0,0,0,0,-1 will do the job.