Hi all,
I have found the bh1780gli.c driver located in kernel/drivers/input/misc/
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi all,
I have found the bh1780gli.c driver located in kernel/drivers/input/misc/
Yong,
It looks like the driver is trying to register itself multiple times. In the 4AI.1.4-P1 release, INPUT_BH1780 is enabled for MACH_OMAP_4430 in /arch/arm/mach-omap2/Kconfig. This causes the driver in /drivers/input/misc/bh1780gli.c to be built in. Did you add code to initialize this driver anywhere else for your custom platform?
Regards,
Gina
Hi Gina,
Another useful information here:
When I enable the AutoBrightness option, I received this in the logcat
D/Sensors ( 167): LightSensor:Trying to enable //I add this line for debugging purposes in the int LightSensor::enable(int32_t handle, int en)
E/SensorService( 167): Error activating sensor 3 (Operation not permitted)
or
E/lights ( 165): write_int failed to open /sys/class/leds/keyboard-backlight/brightness
I hope you can provide me some directions.
Another thing I do not understand is, I am controlling the LCD's backlight but why it is trying to control keyboard-backlight? Is there something wrong in LightSensor.cpp or sensors.h?
Hi Zhi Yong,
Please apply the attached patch
0407.ambient_light_sensor_patch1.txt .
After applying this patch you dont have to use echo command for fetching light values.
Thanks
Abhijit