OSDN Git Service

init.sh: fix virgl support of newer kernel
[android-x86/device-generic-common.git] / init.sh
diff --git a/init.sh b/init.sh
index ab7f50d..f759a1c 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}
@@ -321,6 +321,9 @@ function init_hal_sensors()
                        set_property ro.iio.accel.x.opt_scale -1
                        set_property ro.iio.accel.y.opt_scale -1
                        ;;
+               *SP111-33*)
+                       set_property ro.iio.accel.quirks no-trig
+                       ;&
                *ST70416-6*)
                        set_property ro.iio.accel.order 102
                        ;;