I already have plenty of logs (thanks to
@poluyan_stas). I think dmesg is more appropriate for this, but it doesn't show anything useful. I had to add debug lines by myself, but still I couldn't find anything. All I know is that the backlight is automatically turned on whenever something wakes the phone through
/sys/power/state. You can't avoid these wakeups since they are necessary.
I identified the cause of the blacklight issue time ago. Not exactly the cause, but it's what preventing it in stock ROMs.
Not so much ago I even posted about it
here. Dhiru is aware of it, so there's no need to spam him.
If you normally have the blacklight issue, try this command
Code:
su
echo 0 > /debug/pm_debug/enable_off_mode
The issue should reappear. I'm sure it happens if you don't enable the off mode on boot.
In my opinion it's weird that some of you need the off mode enabled to keep the backlight off and that's why I've been looking for an alternative solution, but I couldn't find anything. The problem with the off mode is that it makes the kernel 3.0 unusable, unless you keep the device awake all the time.
We are not ignoring the problem, it's just very difficult for us. It took me a while to understand that the problem was the off mode.
If you don't want to miss calls because of the insensitive touchscreen: Settings > Accessibility > Home button answers call.
EDIT2: obviously, we will try to fix this issue as well, there's no need to report it over and over.
As for the battery issue, I verified what
@Adriian44 was saying about the discharge (not about the backlight setting), found the problem and it's now fixed. Wait for the next release.
Auto brightness seems to be working strangely.
If tested it off plug and in preview mode, it never gives the lower and the upper limit readings.
I.e.: in a totally dark room, at night, the lower value given is around 145-148 lux.
In full daylight, the upper value is around 640-650 lux.
Don't know Anything about light, lighting and illumination, but is sounds weird to me, given that the system setting range from 7 (or is it 9? Anyway...) to 2200+ lux.
Sensitivity is good enough, though. Maybe some conversion miscalculation is undergoing here, but I do not consider this as an awful problem.
You are totally right about this and I'm trying to understand what's wrong. I got the sensor working properly, but I need to connect the USB cable and then turn the sensor on
If anyone is interested, I ported the new GP2A driver to my 2.6.35 kernel to see if the driver is working as "good" as the old driver. With my changes, the sensor reports the same values of the old driver and there's no need to connect the USB cable.
The changes are
here.
EDIT: I'm not sure I tried the exact changes. You have to add vaux1 and vaux2 to the board code in order to use these changes. See the platform code of the old kernel.