OSDN Git Service

init: Fix sensors never detected when not available at first boot
[android-x86/device-generic-common.git] / init.sh
diff --git a/init.sh b/init.sh
index caec377..3bf7051 100644 (file)
--- a/init.sh
+++ b/init.sh
@@ -236,7 +236,7 @@ function init_hal_sensors()
        elif lsmod | grep -q lis3lv02d_i2c; then
                hal_sensors=hdaps
        fi
-
+       set_property persist.sys.sensors.iio.present 1
        set_property ro.hardware.sensors $hal_sensors
 }