OSDN Git Service

Merge remote-tracking branch 'x86/pie-x86' into q-x86
[android-x86/device-generic-common.git] / init.sh
diff --git a/init.sh b/init.sh
index 8293126..626824f 100644 (file)
--- a/init.sh
+++ b/init.sh
@@ -178,7 +178,7 @@ function init_hal_gralloc()
        [ "$VULKAN" = "1" ] && GRALLOC=gbm
 
        case "$(cat /proc/fb | head -1)" in
-               *virtiodrmfb)
+               *virtiodrmfb|*DRM*emulated)
                        if [ "$HWACCEL" != "0" ]; then
                                set_property ro.hardware.hwcomposer ${HWC:-drm}
                                set_property ro.hardware.gralloc ${GRALLOC:-gbm}
@@ -198,6 +198,7 @@ function init_hal_gralloc()
                        ;;
        esac
 
+       [ -z "$(getprop ro.hardware.gralloc)" ] && set_property ro.hardware.egl swiftshader
        [ -n "$DEBUG" ] && set_property debug.egl.trace error
 }
 
@@ -311,9 +312,13 @@ function init_hal_sensors()
                        hal_sensors=hdaps
                        ;;
                *LINX1010B*)
+                       set_property ro.iio.accel.x.opt_scale -1
                        set_property ro.iio.accel.z.opt_scale -1
+                       ;;
+               *i7-WN*)
+                       set_property ro.iio.accel.quirks no-trig
                        ;&
-               *i7Stylus*|*M80TA*)
+               *i7Stylus*)
                        set_property ro.iio.accel.x.opt_scale -1
                        ;;
                *LenovoMIIX320*|*ONDATablet*)
@@ -330,7 +335,7 @@ function init_hal_sensors()
                *e-tabPro*|*pnEZpad*)
                        set_property ro.iio.accel.quirks no-trig
                        ;&
-               *T*0*TA*)
+               *T*0*TA*|*M80TA*)
                        set_property ro.iio.accel.y.opt_scale -1
                        ;;
                *)