We need to get sensors working and I think that the problem can be in permissions (ramdisk) or we need to write our own libsensors, to compile sensors.salsa
We use isl29018(light, proximity), and smb380 (accelerometer, orientation sensor)
on cm9 sensors works fine
Any logs for these problems?
I am so sorry but my current target cm9 and I only one person who works on this, so basecly I thint that we just need sensors.salsa source, but it impossible, cuz sensor isl29018 very old
Have you look at this?
Here is for accelerometer
drivers in our kernel 2.6.29 works fine I think, cuz im cm9 with this it works
it doesn't work in cm10+ cuz I think we need new sensors.salsa lib
D/SensorService( 385): nuSensorService starting...
E/SensorService( 385): couldn't open device for module sensors (Invalid argument)
Looks like sensors.salsa.lib uses deprecated sensors.h interface:
Here is callstack as it should be for that log you've provided:
haldevice_open <--- here is yamaha hal library.
haldevice_open(const struct hw_module_t* module, const char* name,
struct hw_device_t** device)
methods->open has the same prototype, but in new versions it opens SENSORS_HARDWARE_POLL id, but in old (before GB) it opens SENSORS_HARDWARE_CONTROL or SENSORS_HARDWARE_DATA.
As for CM9 there should be some cruthes to open right things, or there should be wrapper to wrap old interface in new
Here is patch for old sensors, found on github:
sensors now fixed