Android OS Forum banner
1 - 20 of 71 Posts

·
Developer
Joined
·
718 Posts
This is for the DROID X

Hey guys, this isn't anything new, a lot of people have mentioned it here and there but I thought starting a thread about it would help some people. I'm on MIUI so i'll be talking from that perspective, but I think CM people will be in the same boat.

Basics of the Light Sensor:
So the light sensor works by detecting the brightness of the environment and changing the screen brightness based on that. You're able to edit these values and tell the phone what brightness to set the screen when it detects an environmental brightness within a certain range. Obviously, its a lot more complicated than that, but I will try to make it simple.

So MIUI has set some default values for us:

-From 0 - 19 environmental, it sets the screen to 16. Buttons have backlight on.
-From 20 - 99 environmental, it sets the screen to 50. Buttons have backlight on.
-From 100 - 1499 environmental, it sets the screen to 70. Buttons have backlight off.
-From 1500 - Infinity environmental, it sets the screen to 240. By the way, 255 is max screen brightness. Buttons have backlight off.

Why these values aren't the best for the Droid X:
Here's the issue.... the Droid X only has the ability to detect 4 different environmental values: 10, 100, 3600, and 8600. So the screen will essentially never go to 50. It will start at 16 and then jump to 70, and then it'll go to 240 for both 3600 and 8600. You'll want to go in and change this so that you can make use of all 4 of our detected values.

Optimizing these values for the Droid X:
Here's how to set these values: Go to Settings > Display Settings > make sure Auto Brightness is turned on > click Advanced Mode. This is where you see all the confusing options. I'm going to make it simple for you.

Light Sensor Filter:
Light sensor filter is used to detect an "average environmental brightness". This is pretty much useless to us, since our phone can only detect 4 values, so why would we need to take the average value of 100+100+100+100+100 etc. Having Light Sensor Filter turned on is only going to waste battery, processing time, and make it take longer for the phone to change brightness. Just turn it off.

Some people have pointed out that technically, since light sensor takes an average, having it on will allow you to hit values other than 10/100/3600/8600. Here's why you shouldn't bother:
-A reset threshold of anything other than "disabled" is going to make all of your extra levels (those not including 10, 100, 3600, or 8600) useless except for the ones between 10 and 100. Why? Think about it, if you go from 100 to 3600, the change is too great, and your reset threshhold (which has a minimum allowed value of 400lux) is going to reset your filter, meaning you won't average in those 100 readings.
-Your extra levels are only going to be active for a maximum of your window length. They don't have the ability to be persistent because of the huge deviation between the Droid X's discrete detected values. Your filtered level is also going to drop drastically to a plateau in the first few seconds of the window length.
-You're going to change brightness much more slowly, and I don't even mean because of the extra brightness levels in between, I mean because the extra CPU usage will cause your phone to adjust slower.
-If you move to a different environment, you're going to be using a screen brightness based partially on where you were rather than entirely on where you are for a period of time equal to your window length.
-You're going to drain more battery and use up processor allotment in real-time, meaning 100% of the time your screen is active.

Light Levels:
-Use custom: ON. We'll set these custom values in a sec.
-Light level to dim: 2. If you have your screen set to turn off after a certain amount of time (i.e. a minute) of not using it, this is the value that the screen dims to a few moments before turning off.
-Edit Other Levels: Skip it for now.
-Allow lights to decrease: ON. Of course, if we're going from a bright room to a dark room we'll want the screen to get darker as well right?
-Decrease hysteresis: 0%. This is useless unless you want option 2 (below).

Now go back to the one we skipped.

Edit Other Levels:
Here's what I was talking about before with the redundant default values. Now click the boxes and edit them to look like this:

Lower::::Upper:::::Screen:::Buttons
0............99............8............255
100........3599.......23..........255
3600......8599.......50..........0
8600......infinity.....255........0

Explanation:

0-99: This is just the brightness at an environment of 10, since like we mentioned, 10 is the only value our phone can detect within a range of 0-99. It's going to be what you're seeing when you're laying in bed, using your phone in a dimly lit restaurant or bar, or outside at night. Since web browsers often have white backgrounds, you'll want to use a brightness that doesn't strain your eyes from this. So I set my screen to 8, feel free to change it to your liking. Buttons is simple, if it's 0, then the backlight for your bottom 4 buttons is off. If it's anything else (i.e., anything from 1 to 255), then they're turned on. They have no brightness levels (none which we can adjust here anyway), just on or off.

100-3599: The brightness you set for 100 is probably going to be your most common screen brightness.

3600-8599: The brightness you set for 3600 will be what you get in a bright room or outside on nice days.

8600-Infinity: The brightness you set for 8600 will be what you get when you're standing outside on a really sunny day, at the beach, etc.

P.S., here's a cool trick I just found by accident... If you press settings + vol up, it will set your brightness to max. I guess this is a quick way to get there if you are in a bright area and dont want to wait for your phone to auto adjust.

I hope that helps. Good luck.

8/18/2011 --New Comparison:
I was asked to do a comparison to some previously suggested settings for CM people. Here is a thread that some have relied on for their settings: http://rootzwiki.com/showthread.php?t=913

These are the settings they suggest:

Lower::::Upper:::::Screen:::Buttons
0............10............2............0
11..........14...........25..........255
15..........49...........25..........255
65..........100.........50..........255
101........2999.......96..........0
3000......5999.......208........0
6000......7999.......246........0
8000......infinity.....255........0

And a few noticeable differences: the thread says set reset threshold to 1000lux, which also means to have filter turned on, and it wants you to set "Decrease hysteresis: 70%".

Analysis:
1) Ok, if you read and understood my little tutorial above, then you should already be able to spot a problem here. You've got reset threshold set to 1000lux, so it is now literally impossible to even hit the 5th or 7th levels. To explain - for level 5, if the sensor is going from (10 or 100) to (3600 or 8600) or vice versa, it would detect that the difference is greater than 1000lux, and would then reset the filter. For level 7, if the sensor is going from (10 or 100 or 3600) to (8600) or vice versa, it would again detect a difference greater than 1000lux and reset the filter. If the filter is reset, it wouldn't be averaging in the values from where you just were, and therefore you will not be able to hit a number within either of the two ranges in levels 5 or 7.

2) The rest of the levels that do not contain either 10, 100, 3600, or 8600 can be achieved BRIEFLY (for a time period equal to or less than your window length) by having light filter turned on, but having light filter on has many poor side affects (see above).

3) Buttons are turned off at an environmental level of 10, when it is darkest. In my opinion, this is when I want the those lights to be on the most. However, I'm going to assume that he has them off for this reason - they're even brighter than the screen at 2, and therefore can be distracting. I can't blame him here, I guess that is just up to preference.

4) He does something kind of cool with the "Decrease hysteresis: 70%" option. It can be hard to find a screen brightness for an environment of 10, since you may find yourself straining with too bright a screen in a dark room but wanting the screen brighter in a dimly lit room, both of which would probably be detecting an environment of 10. The thread's author suggests turning Decrese hyseresis to 70%. This allows the following: If you're at a screen brightness associated with your 100 level settings, you might find you prefer this setting in a dimly lit room where the phone would have otherwise set the brightness to the level associated with 10 environmental. Then if the environment gets darker and you want it to readjust to a lower brightness, you can simply turn off and back on the screen and it will set itself to that lower brightness corresponding to 10 environmental. This seems to also be the reason he has two levels with the same screen brightness, to make this solution functional. In my opinion, this is only good in rare conditions, but it is a cool concept that you might find you prefer.

Update 8/22/2011 -- Option 2

I thought a bit more about the above comparison, and the cool trick the guy did with decrease hysteresis, and I optimized it and labeled it "Option 2". Option 2 differs in this way: If you turn on your screen, your brightness levels will be 2/23/50/255 for environments of 10/100/3600/8600 respectively. As soon as your phone detects an environment of 100 or more, your brightness levels will become 8/23/50/255, meaning you will have the exact same settings as I suggested above. It will stay this way until your screen turns back off.

This is good for anyone who thinks that a brightness of 8 is too much for them in a pitch black room, but who doen't want to decrease it at risk of having it be too low for a dimly lit room. However, the option also has a distinct disadvantage: if you want your brightness level to be 8 in a dimly lit room, your phone must first detect an environment of 100 or higher, otherwise you will get a brightness level of 2 in that room. Put simply, if you turn on your screen in a dimly lit room, you'll get a brightness of 2, which is too dim. You'll have to go into an environment of 100 or higher, then back to the dimly lit room to get a brightness of 8. Additionally, if you travel into a pitch black room from an environment of 100 or higher, you will not get a brightness of 2 (it'll be at 8) unless you turn the screen off and then back on again.

If this sounds like what you want, then make "Decrease Hysteresis: 10%" and set your levels to look like this:

Lower::::Upper:::::Screen:::Buttons
0............10............2............255
11..........99............8............255
100........3599.......23..........255
3600......8599.......50..........0
8600......infinity.....255........0

Let me know if you have questions.
 

·
Android Lover
Joined
·
125 Posts
How did you find that the X only has 4 slots for adjustments?
At the bottom of the setup, there is an option to select the number of slots, I am using 8. Are you saying that they are not all being used?
I never looked but I will tomorrow when its light out. Speaking of direct sunlight, I was setting the brightness up outside one day and in direct sunlight, while aiming the phone at the sun, the reading was only 3680, if that is correct then with your settings the phone would never reach full brightness with the the high setting being 8600.
 

·
Average Android
Joined
·
312 Posts
Yes, set number of levels to 4. I always wondered about using 8 levels. I didn't think I was actually seeing the benefits.

Thanks for the write up. I'll verify it works more efficiently tomorrow.

Liquid v2.6 DX via RootzWiki App
 

·
Developer
Joined
·
718 Posts
Discussion Starter · #4 ·
DRTMI said:
How did you find that the X only has 4 slots for adjustments?
At the bottom of the setup, there is an option to select the number of slots, I am using 8. Are you saying that they are not all being used?
I never looked but I will tomorrow when its light out. Speaking of direct sunlight, I was setting the brightness up outside one day and in direct sunlight, while aiming the phone at the sun, the reading was only 3680, if that is correct then with your settings the phone would never reach full brightness with the the high setting being 8600.
You can edit the number of slots, but that won't change the fact that the droid x's light sensor only reports 4 different readings. So you can have as many slots and as many ranges as you want, but only the ranges that contain 10, 100, 3600, and 8600 will be used.

It is impossible for your phone to read 3680 RAW sensor value. However, it can read 3680 FILTERED sensor value from a combination of 8600 and 3600 readings if you have light sensor filter turned on, but this is a waste of cpu and battery and is a farse since you would be in an area with mostly 3600 environmental light.

Try this. Find a lamp in your house stick the phone right near it, and see what the raw sensor data reads. It should be 8600.
 

·
Android Lover
Joined
·
125 Posts
OK, checked with a lamp and it does read 8600 raw. When I was seeing those other numbers from my last post it was indeed filtered from having the average on. Did not realize that, thank you. Will try this out tomorrow as I'm going in and out.
 

·
Average Android
Joined
·
279 Posts
Excellent write up here. I've been messing with brightness since cm7 was first released on the x and this has helped a ton. Thanks!
 

·
Android Enthusiast
Joined
·
268 Posts
Thanks for posting this. I haven't been satisfied with how the Auto brightness settings have worked on MIUI so hopefully this will help.
 

·
Android Lover
Joined
·
397 Posts
1) you didn't answer the question - how did you find out the DX can only detect 4 levels?
2) you say that the hard buttons have no brightness level, only on and off. I know for a fact, that when we got .596 the hard buttons (when turned on) where so bright they bled through the cracks between buttons.
going back to something like froyo (cm7,miui) sets them back to "stock" where they don't bleed through.
can you explain that? perhaps they do have levels, just nothing that can be used? idk. just curious.
3) thanks for the write up!
 

·
Developer
Joined
·
718 Posts
dvader said:
1) you didn't answer the question - how did you find out the DX can only detect 4 levels?
2) you say that the hard buttons have no brightness level, only on and off. I know for a fact, that when we got .596 the hard buttons (when turned on) where so bright they bled through the cracks between buttons.
going back to something like froyo (cm7,miui) sets them back to "stock" where they don't bleed through.
can you explain that? perhaps they do have levels, just nothing that can be used? idk. just curious.
3) thanks for the write up!
Hey sorry you're right I didn't explain how you can see that it only detects 4 levels. You can test it yourself if you get different levels of light around your house, or bring the phone closer to and further from a lamp. Do this while on the "edit other levels" screen, and look at the number on the top, particularly the RAW sensor number. It will only ever be one of four values - 10, 100, 3600, or 8600. This has also been reported by others, these are called "discrete values" as they are the only ones available.

Regarding the button brightness. It is possible that there is a fixed brightness value set somewhere else in the phone, however, I know that in these menus here, setting a value of 0 will turn the buttons off, and setting any value between 1 and 255 will turn the buttons on to what may be this fixed brightness value somewhere else in the phone. I'll have to look more into that.

Again, you can verify for yourself that the buttons will not change brightness using these menus. Set the buttons to 1. Then set them to 255. You'll see no difference.
 

·
Android Beginner
Joined
·
9 Posts
I'm running CM4DX and have been a little scared of this screen. So many options and I haven't seen much explanation on what everything does. That was an awesome informative post. After following the steps I can see what everything is designed to do. Now I've customized it a bit. Looking forward for some better battery life. I felt like my screen was always on blast mode! Also, turning off the filtering probably will help some too. A big thanks!
 

·
Android Lover
Joined
·
397 Posts
droidxchat said:
Hey sorry you're right I didn't explain how you can see that it only detects 4 levels. You can test it yourself if you get different levels of light around your house, or bring the phone closer to and further from a lamp. Do this while on the "edit other levels" screen, and look at the number on the top, particularly the RAW sensor number. It will only ever be one of four values - 10, 100, 3600, or 8600. This has also been reported by others, these are called "discrete values" as they are the only ones available.

Regarding the button brightness. It is possible that there is a fixed brightness value set somewhere else in the phone, however, I know that in these menus here, setting a value of 0 will turn the buttons off, and setting any value between 1 and 255 will turn the buttons on to what may be this fixed brightness value somewhere else in the phone. I'll have to look more into that.

Again, you can verify for yourself that the buttons will not change brightness using these menus. Set the buttons to 1. Then set them to 255. You'll see no difference.
thanks for the answers
I dont want my buttons so bright they bleed through im just saying i know they go brighter :)
 

·
Sorry, I must be new here
Joined
·
1,187 Posts
Great info
Maybe a side-by-side analysis would help the community see the pros/cons of using these settings as opposed to what they have currently.

Edit: Just realized you did a side-by-side to stock MIUI
Would you mind doing a comparison to the cm7 auto-brightness settings found in the old thread.

I'll link when I find it
 

·
Android Apprentice
Joined
·
38 Posts
"salem said:
I'm using miui. There isn't an option to change the upper values; ie. no "box" around the numbers.
When you change a lower value, it automatically adjusts the upper value on the line above it.
 

·
Android Beginner
Joined
·
9 Posts
Is there a location that describes what each of these settings under light levels accomplishes?

I'm getting a weird issue where my screen goes between different levels at odd times. Tough to explain, but when I unlock it the screen starts out dim then gets brighter. Don't remember it doing that before. I would like to make some educated edits to those values.
 

·
Average Android
Joined
·
559 Posts
I have to disagree about you saying that the screen will never get set to 50. When the filtered sensor reading is between 20 and 99 the screen will be set to 50. Of course, it's only transitioning between two different raw sensor readings when in that range, but you can make the changes in brightness progress more smoothly by having those extra intervals. That's why I feel it's useful to have my eight intervals.
 

·
Developer
Joined
·
718 Posts
Discussion Starter · #19 ·
If your screen changes brightness when youre in a area with constant light, try turning "decrease hysteresis" up.

When you turn your screen on, the first sensor value is 10 since it just started looking. This will cause the screen to use your lowest brightness setting and adjust itself after a moment. Its just the way the phone works and not anything we can change, but if you prefer, you can make your 10 brightness match your 100 brightness so there will be no noticeable change.
 

·
Average Android
Joined
·
98 Posts
Just curious if you never have auto brightness on then these settings mean nothing right? I just use my power widget to turn brightness up when I need it but mostly I have it defaulted to the dim setting

Sent from my DROIDX
 
1 - 20 of 71 Posts
Top