Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,730,261 Members 50,848 Now Online
XDA Developers Android and Mobile Development Forum

[TWEAK] Automatic Brightness levels!

Tip us?
 
sfjuocekr
Old
(Last edited by sfjuocekr; 1st March 2011 at 02:49 PM.) Reason: Failed the copy paste from the post I premade, some old numbers and settings ><
#1  
Senior Member - OP
Thanks Meter 69
Posts: 605
Join Date: Jun 2008

 
DONATE TO ME
Default [TWEAK] Automatic Brightness levels!

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
Phone: Samsung I9300
Recovery: CWM
ROM: CyanogenMod 10 (nightlies)

food or beer!
The Following 6 Users Say Thank You to sfjuocekr For This Useful Post: [ Click to Expand ]
 
sfjuocekr
Old
(Last edited by sfjuocekr; 17th September 2010 at 09:20 PM.) Reason: typo
#2  
Senior Member - OP
Thanks Meter 69
Posts: 605
Join Date: Jun 2008

 
DONATE TO ME
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 ><
Phone: Samsung I9300
Recovery: CWM
ROM: CyanogenMod 10 (nightlies)

food or beer!
 
shazan
Old
#3  
Member
Thanks Meter 1
Posts: 49
Join Date: Dec 2008
Location: London
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.
 
sfjuocekr
Old
#4  
Senior Member - OP
Thanks Meter 69
Posts: 605
Join Date: Jun 2008

 
DONATE TO ME
Quote:
Originally Posted by shazan View Post
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?
Phone: Samsung I9300
Recovery: CWM
ROM: CyanogenMod 10 (nightlies)

food or beer!
 
sfjuocekr
Old
#5  
Senior Member - OP
Thanks Meter 69
Posts: 605
Join Date: Jun 2008

 
DONATE TO ME
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.
Phone: Samsung I9300
Recovery: CWM
ROM: CyanogenMod 10 (nightlies)

food or beer!
 
pa.pn2
Old
#6  
pa.pn2's Avatar
Senior Member
Thanks Meter 488
Posts: 2,656
Join Date: Jul 2010
Location: Düsseldorf
how did you did that?
without typing lol
LG Nexus 5 16gb black
Rom-Velocity
Kernel-Stock
Radio-.23


Samsung Galaxy Nexus 16gb
Rom-Lisio
Kernel-Bsmitty
Radio-XXLJ1


My Dropbox for Wallpaper,Docks, Icons and more:
http://db.tt/RTuSn4E
http://papn2.deviantart.com/gallery/

Click Thanks if I helped you!!
 
cucoarac
Old
#7  
Junior Member
Thanks Meter 0
Posts: 22
Join Date: Aug 2009
Location: 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.
 
RazorHail
Old
#8  
Member
Thanks Meter 8
Posts: 57
Join Date: Jul 2010
Im sorry but....HOW do I apply this ? O.o
 
philje123
Old
#9  
Senior Member
Thanks Meter 32
Posts: 378
Join Date: Dec 2006
Location: York, UK
Can this be applied to other roms?

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

Phil
Xperia Z Black - 32GB class 10 Samsung card - Stock ROM - Rooted
 
ssauger
Old
#10  
Senior Member
Thanks Meter 203
Posts: 788
Join Date: Aug 2010
Quote:
Originally Posted by philje123 View Post
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


TRENDING IN THEMER...