[TWEAK] Automatic Brightness levels!

Search This thread

sfjuocekr

Senior Member
Jun 14, 2008
650
85
Issue: http://code.google.com/p/cyanogenmod/issues/detail?id=2298

After toying around with the automatic brightness I'm now here to share my settings ...


I use the following settings:

Light sensor filter enabled.
Window length 10 seconds.
Reset threshold 400 lux.
Sample interval to 0.5s.

Light levels use custom checked.
Screen dim level, not sure what it is for but I have it on 1 instead of 20. ((edit: I found what it is for, it's the step size the filter takes? Or not? :s))
Edit other levels...

Number of levels: 18

0 1
10 1
117 17
225 33
272 49
320 65
480 80
640 96
960 112
1280 128
1940 144
2600 160
4200 175
5800 192
6900 207
8000 223
9120 239
10240 255

Allow light decrease checked.
Decrease hysteresis to 10%.


I hope people like my light settings, if you don't please tell me why :)
 
Last edited:

sfjuocekr

Senior Member
Jun 14, 2008
650
85
Reasons why some settings should be altered:

Reset threshold, should be able to set to 100 and 200 lux. At the moment if you walk into light it takes the filter some time to go up, so 100 or 200 lux would trigger a reset faster. Also the sensor starts at 225 lux so why 400 as a minimum in the first place?

Window length, as for the above, if you walk into light a smaller window length would help put brightness up much quicker in combination with a smaller reset threshold.

If the above two settings could be added in CMParts/ODParts that be great as the filter would be much more responsive to short period light changes. For example if you go from outside to inside or visa versa.


And maybe it would even be a better idea to remove the whole custom light levels and add a linear function to it to go with the filter (configurable) and just have 254 steps (1-255) over 10-10240?

Adding 254 steps yourself is ... A PAIN ><
 
Last edited:

shazan

Member
Dec 28, 2008
49
1
London
English please

guys i know there is a problem with the light sensor in desire and i have the same case with mine it this is all about it please let me know how to fix it please.
 

sfjuocekr

Senior Member
Jun 14, 2008
650
85
guys i know there is a problem with the light sensor in desire and i have the same case with mine it this is all about it please let me know how to fix it please.

What ROM are you using? CyanogenMod and forks of it (OpenDesire, DeFrost etc) have a custom preferences menu where you can check out the light sensor values. That is when you leave the filter off and goto edit other levels. Hold your phone in line with a TL light and it should jump to 1280.

Do you see the top most number change when light changes?
 

cucoarac

Member
Aug 3, 2009
25
2
Constanta
This is insane..... so much trouble for such a simple task. Automatic Brightness. On winMO i used g-lite wich was satisfacatory. A have the desire for a month now. I searched from a similar soft and i didn't find. But i'm not gooing to try this much trouble for something that should be easy. Thank you.
 

mi3x

Senior Member
Aug 16, 2010
408
33
Bucharest
The screen minimum value is 10-255, so how can I set "1" to the first 2 levels? :confused:

I set 10, and I like the settings overall. :D
 

ChaosR

Senior Member
Sep 26, 2008
55
2
I hope people like my light settings, if you don't please tell me why :)

First off, "10 1" is redundant as you already cover that from 0 to 9. So 17 levels should be enough. Second, on the last line "10240 225" you probably meant "10240 255". Testing your settings with these modifications now. I find you have a lot of levels, probably can do with less to reduce flickering, but as I said, testing these first.
 

snudel

Senior Member
Jan 17, 2006
480
8
Berlin
ignore.it
so useless guys.
setup max brightness and enjoy the brilliant screen.

it takes less battery than this tool to constantly check your ambient brightness.
 

System of a pWne!^

Senior Member
Aug 3, 2010
189
12
www.daggeringcats.com
Can someone please make a post about how to use this (and especially on Sense Roms)? So far it only shows us "which sensor-level should be what brightness" but it doesn't provide any information on how to apply it.
I assume CM either has an app for this installed (if so, please tell us WHICH so we can use it too) or a shell-script in background (if so, tell us WHICH) adjusting the settings.
 

Nitrius

Senior Member
Feb 15, 2009
292
3
Could anyone post a how-to use these settings?


Edit: Nvm, it's under: Cyanogen Settings.
Btw under "Edit other levels" you should only change the boxes that's under "Lower"? You shouldn't touch "Screen" and "Button"?
 
Last edited:

Latty

Senior Member
Jun 28, 2007
741
102
Trying this out, and will see how it goes. Only have 5 levels on my current setup, so this should be a lot smoother
 

ourfear

Senior Member
Jan 20, 2009
496
8
any more improvements?

and how can i backup this setting?

i wont to input it again when i flash a new rom :-(
 

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    Issue: http://code.google.com/p/cyanogenmod/issues/detail?id=2298

    After toying around with the automatic brightness I'm now here to share my settings ...


    I use the following settings:

    Light sensor filter enabled.
    Window length 10 seconds.
    Reset threshold 400 lux.
    Sample interval to 0.5s.

    Light levels use custom checked.
    Screen dim level, not sure what it is for but I have it on 1 instead of 20. ((edit: I found what it is for, it's the step size the filter takes? Or not? :s))
    Edit other levels...

    Number of levels: 18

    0 1
    10 1
    117 17
    225 33
    272 49
    320 65
    480 80
    640 96
    960 112
    1280 128
    1940 144
    2600 160
    4200 175
    5800 192
    6900 207
    8000 223
    9120 239
    10240 255

    Allow light decrease checked.
    Decrease hysteresis to 10%.


    I hope people like my light settings, if you don't please tell me why :)