Cyngn, OnePlus, Micromax – The Legal Battle

Recently, a battle has been waging in India over the rights to distribute the commercial … more

Lean Mean Battery Power Saving App Review

We talk a lot about battery topics here at XDA TV. We talk about everything from Power Banks to USB … more

Android 5.1 Possibly Coming February 2015

Google released Android 5.0 just over a month ago, and since then Lollipop has been trying to … more

Double Tap to Wake on the Nexus 6 Without Root

A few weeks ago, we featured an app which allowed the Nexus 6 to regain the double tap to wake … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[TWEAK] Automatic Brightness levels!

OP sfjuocekr

17th September 2010, 09:00 PM   |  #1  
OP Senior Member
Thanks Meter: 72
 
608 posts
Join Date:Joined: Jun 2008
Donate to Me
More
Issue: http://code.google.com/p/cyanogenmod...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 by sfjuocekr; 1st March 2011 at 03:49 PM. Reason: Failed the copy paste from the post I premade, some old numbers and settings ><
The Following 6 Users Say Thank You to sfjuocekr For This Useful Post: [ View ]
17th September 2010, 10:15 PM   |  #2  
OP Senior Member
Thanks Meter: 72
 
608 posts
Join Date:Joined: Jun 2008
Donate to Me
More
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 by sfjuocekr; 17th September 2010 at 10:20 PM. Reason: typo
18th September 2010, 03:24 AM   |  #3  
Member
Flag London
Thanks Meter: 1
 
49 posts
Join Date:Joined: Dec 2008
More
Cool 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.
18th September 2010, 04:05 AM   |  #4  
OP Senior Member
Thanks Meter: 72
 
608 posts
Join Date:Joined: Jun 2008
Donate to Me
More
Quote:
Originally Posted by shazan

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?
18th September 2010, 03:14 PM   |  #5  
OP Senior Member
Thanks Meter: 72
 
608 posts
Join Date:Joined: Jun 2008
Donate to Me
More
Call me crazy, but I am ><

I put the whole table into the automatic backlight custom levels: http://www.linux-box.nl/~sjoer/1to255/1to255.php

And it works really well with light changes, it should work even better if reset threshold can be lower (200 or maybe 100) as it will respond to bright light <> no light much better.
22nd September 2010, 12:25 PM   |  #6  
pa.pn2's Avatar
Senior Member
Düsseldorf
Thanks Meter: 551
 
2,838 posts
Join Date:Joined: Jul 2010
More
how did you did that?
without typing lol
22nd September 2010, 12:29 PM   |  #7  
Junior Member
Flag Constanta
Thanks Meter: 1
 
22 posts
Join Date:Joined: Aug 2009
More
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.
22nd September 2010, 12:59 PM   |  #8  
Member
Thanks Meter: 8
 
57 posts
Join Date:Joined: Jul 2010
Im sorry but....HOW do I apply this ? O.o
22nd September 2010, 01:24 PM   |  #9  
Senior Member
Flag York, UK
Thanks Meter: 32
 
378 posts
Join Date:Joined: Dec 2006
More
Can this be applied to other roms?

I am using Pinky desire and would love to do this.

Phil
22nd September 2010, 02:36 PM   |  #10  
Senior Member
Thanks Meter: 220
 
845 posts
Join Date:Joined: Aug 2010
Quote:
Originally Posted by philje123

Can this be applied to other roms?

I am using Pinky desire and would love to do this.

Phil

yes and for stock roms please

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes