Light sensor and autobrightness?

siskiou

New member
May 23, 2011
3
0
0
Visit site
Could you please help me finding out if this is just a problem with my dinc2, or the same across the board?
Please get the free app "Androsensor" from the market, and see if your phone senses any light values lower than 160 lux in a dark area.

Mine doesn't and it messes up the use of autobrightness and various apps that deal with light values, and after sifting through the source code, I noticed that the lower values are not enabled for this phone.
But not knowing anything much about the android platform, was hoping to get some input from other dinc2 owners, to see if there is a problem with the sensor on on my phone.

(arch/arm/mach-msm/board-vivow.c) I've bolded the missing levels!

static struct lightsensor_smd_platform_data lightsensor_data = {
.levels = { 0x0, 0x0, 0x0, 0x3A3, 0x97B, 0x1873, 0x2B21, 0x3CC8,
0x4E70, 0xFFFF },
.golden_adc = 0x1D98,
.ls_power = capella_cm3602_power,
};

static struct platform_device lightsensor_pdev = {
.name = "lightsensor_smd",
.id = -1,
.dev = {
.platform_data = &lightsensor_data
}