Hi André,
I've updated the sensor.hsb to be compatible with
the kernel 3.18 iio abi.
Please sync and test it:
repo sync hardware/intel/libsensors
and build it with kernel 3.18 (details in another mail thread already)
I also suggest remove the modprobe hid-sensor-*
in the init.sh. The new kernel seems automatically detect
the sensor hub and load the drivers correctly.
diff --git a/init.sh b/init.sh
index 7941a1e..2c0d605 100644
--- a/init.sh
+++ b/init.sh
@@ -142,16 +141,7 @@ function init_hal_power()
function init_hal_sensors()
{
case "$(cat $DMIPATH/uevent)" in
- *T*00LA*)
- modprobe kfifo-buf
- modprobe industrialio-triggered-buffer
- modprobe hid-sensor-hub
- modprobe hid-sensor-iio-common
- modprobe hid-sensor-trigger
- modprobe hid-sensor-accel-3d
- modprobe hid-sensor-gyro-3d
- modprobe hid-sensor-als
- modprobe hid-sensor-magn-3d
+ *T*00LA*|*Zmax*B10T*)
sleep 1; busybox chown -R 1000.1000
/sys/bus/iio/devices/iio:device?/
set_property hal.sensors hsb
;;
Let me know if it works for you.
If not, please show me the result of
cat /sys/bus/iio/devices/iio:device?/in_accel_scale
--
Chih-Wei
Android-x86 project
http://www.android-x86.org