[Q] How to read ambient light level sensor - XPERIA X10 Q&A, Help & Troubleshooting

Ok Ive drawn a blank.
I want to measure the ambient light level; it seems that SE must have used a non-standard (surprised?) implementation, as various apps that can read the sensor on other phones cant read the light level on the X10.
I can find no help in the XDA forums or through google.
I have searched through /sys/devices for anything looking hopeful but no luck. I was hoping a file would hold the sensor value, just as http://forum.xda-developers.com/showthread.php?t=1284938 shows how to measure charging current by reading a file deep in /sys/devices.
I want ideally to use light readings with Tasker to control the phone, but also it would be great if Juicedefender could control screen brightness for us as the screen is my main battery drain.
Pointers, hints or even the answer all welcome!
Thanks in advance
Chris

Related

x10 screen brightens and dims randomly

for a while now my screen on the x10 goes brighter and darker while browsing , not by a lot but its noticable and kind of annoying . Im curious if anyone else has this on their phone , i got nothing installed to control brightness its just stock 2.1 os. And its not because of battery since it does it when plugged in.
It's cos of the auto brightness adjustment function. =D
If you need to access it/ turn it off you have to do it through the 'Power Control' Widget
Thanx for the replies ill check out the power control widget. Im just wondering if the random change from dim to bright waste more battery ?
xperia_x10 said:
Thanx for the replies ill check out the power control widget. Im just wondering if the random change from dim to bright waste more battery ?
Click to expand...
Click to collapse
There is a light sensor on the front of the phone that turns the brightness up if there is a lot of light in the room, if there isn't a lot of light in the room the brightness decreases. As mentioned above you can control this auto-brightness function from the Power Control widget.
I wouldn't say it has any noticeable effect on your battery life, unless you always are in very bright environments that would make the sensor turn the display brightness all the way up.

[Q] Is there an app for setting your own Auto brightness levels?

Quick question -
I have a rooted HTC DesireHD & sometimes I'd like to use the 'Auto brightness' feature - especially if moving indoors/outdoors quite regularly.
However I've noticed that the screen brightness seems a little 'too' bright compared to how I usually have it (indoors I usually have it ~12%, outdoors ~90%) - In 'auto mode' the 'indoors' seem to be about 20-25%
I pretty sure that there is a way to telling the Android system the level to have the screen depending on how much light the light sensor picks up - but I think that involves editing certain files & 'ADB' command etc (which I'm not totally confident I could do)
Does any1 know of an App (preferably free) that shows the current light level picked up by the phone & the brightness level that's been currently used, which also allows you to alter (& save) a lower value for that light level (perhaps with a slider or value box ??)
Thanks in advance
Well despite 130 views - seems like no-one has any suggestions
Anyway, I persevered with Google play search & it seems I may've found a couple possibilities (Avaliable as 'free' and 'paid for') so I thought I'll post them here in case any1 else wants them
There's Custom Auto Brightness (free) here
AND
Lux Auto Brightness here (Lux has paid version that allows even darker levels of screen display)
I've tried out 'Custom Auto Level' but either I was doing something wrong, but on occasions it would'nt dim the screen in bright light (I tested by shining a torch onto the sensor), however I'm currently trying out the LUX [Free] version to see if it'll do the job
(Took a while to actually figure out that you had to use the 'Link' option to actually SET the brightness of screen to Level of light detected )

light sensor

hi all, I noticed that light sensor doesnt work properly, when I go from dark to light area, the brightness increases but when I go from light to dark area the brightness wont decrease, on honeycomb it worked properly, anybody else experiences this problem?
Same here, it goes bright but does not decrease.
I use the app https://play.google.com/store/apps/details?id=rubberbigpepper.DisplayBrightness&feature=search_result#?t=W251bGwsMSwxLDEsInJ1YmJlcmJpZ3BlcHBlci5EaXNwbGF5QnJpZ2h0bmVzcyJd
make an invisible slider on the edge of screen to adjust brightness.
is there any way to make it work properly?
Don't think so. Its pretty much unusable now.
Sent from my HUAWEI MediaPad using Tapatalk 2
There are lots of negative comments about light sensor, but i have to say it works well to me on ICS. Could be possibly massive amount of defected devices.
Lightsensor doesn't work for me either - too bad, hope it will be corrected.
Perhaps it's because I'm running ICS "General Channel".
HUAWEI MediaPad FIRMWARE(S7-301u,android4.0,C232B002,General Channel)
Do the sensor dim the light in the same session for you?
Here it turns up the light but not down again.
Sent from my U8800 using Tapatalk 2
Same here, adjusting upwards works fine, but it doesn't adjust downwards in low light conditions.
I have tried two apps that turns the light down again, custom auto brightness and lux auto brightness.
One small problem. The pad will crash on pattern unlock after sleep. I Also the light sensor will not work s after wake up sometimes.
Sent from my HUAWEI MediaPad using Tapatalk 2
mangoman said:
I have tried two apps that turns the light down again, custom auto brightness and lux auto brightness.
One small problem. The pad will crash on pattern unlock after sleep. I Also the light sensor will not work s after wake up sometimes.
Sent from my HUAWEI MediaPad using Tapatalk 2
Click to expand...
Click to collapse
I'm guessing no one has had any luck with this issue but I figure I'd necro the thread anyways. My light sensor sucks also. I used 'Android Sensor Box' to get the values coming out of the sensor. It only displays either 40 lux or 280 lux which is obviously not right. This is on Cyanogen 9, stock t-mobile ICS and the rooted international gingerbread(can't remember which one exactly).
So I was wondering if anyone who owns one of these has ever gotten a sensor value that makes any sense.
thanks
nope,
I use instead display brightness https://play.google.com/store/apps/details?id=rubberbigpepper.DisplayBrightness&hl=no
create an invisible brightness slider on theedge of the screen.
Try using custom auto brightness with the auto brightness on (there's a setting in that app that disabled the system auto brightness at screen on. Turn it off).
The original kernel only recognized 3 light levels. If you use bart's kernel it will recognize 6 levels.
Yes, I think there's a software problem because both app (lux and cua) crash hard in HMP, but I don't think fixing it is a priority.
Sent from my HTC Glacier using Tapatalk 2
How to use custom auto brightness without crashing the tablet.
There are 2 options that should be followed, other settings can be adjusted to your liking.
1. In preferences, Check Use pulsed sensor mode. Basically this option will make the app read the sensor itself instead of listening the sensor value given from the system.
2. In advanced preferences, set the sensor update speed to either half sec or 1 sec. I tried normal, but the app won't read the sensor value, so probably the slow normal maximum setting only works if you get the sensor value from the system.
You can set disable system auto brightness. I recommend it before because the setting was a "hack" which was making the system read the brightness value thus the app can get that value. Right now it's recommended that you check the disable system auto brightness.

Spoofing sensor values

Hi guys,
I'm looking for a way to spoof android sensor's values, especially the light sensor's readings.
I'm trying to do that in order to trick samsungs to enable their ultra bright screen mode by setting the brightness reading high enough.
Any input on how to do that is helpful.
Thanks.

Android 6.0 Adaptive Brightness Spiking and Dropping

I'm using a stock BLU R1 HD running Android 6.0 and within the last month, give or take, my phones brightness has randomly been spiking or plummeting before evening out into something legible. I also use Twilight(With pro unlock) and I have for years. I have disabled Backlight Control in the app. I have tried to go into my settings and disable Adaptive Brightness, but it will not stay disabled and turns itself back on as soon as I leave Settings. I've recently installed Lux but the problem persists. I've been googling it and all the responses I find are from 2015, give or take, and most apps regarding brightness have also not updated since around that time.
The frustrating part is that most of the time when it changes I'm not even moving and the light around me is not changing. The problem actually occurs more in normal, indoor lighting than it does in darkness or bright sunlight, and I've been careful not to cover the front camera, where I think the light sensor is, just in case I was the problem.
Does anyone know what I can do? How I can either fix Adaptive Brightness to stop randomly changing my brightness for sometimes 10 to 15 seconds before going back to where it should be, or how to disable Adaptive Brightness so it will stop turning itself back on?
I'd prefer not to root my phone, so please don't suggest it unless there really is no other option. I've ruined several phones that way in various ways and have concluded that rooting is just not for me.

Categories

Resources