Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
nik3r
Old
(Last edited by nik3r; 26th November 2008 at 10:27 AM.)
#11  
nik3r's Avatar
Senior Member - OP
Thanks Meter 1106
Posts: 1,341
Join Date: Feb 2008
Well I have an idea, I wonder if .NET CF 3.5 supports external scripting as the PC version does. Basically that might allow you to replace the backlight algoritm without compiling the program yourself. You could quite easily make exceptions binded to really low lumen values or time of day with just 2-3 lines of code.

EDIT: I fear this is not possible, System.CodeDom.Compiler is awfully stripped down, I would have to make up my own scripting language for this to work and that would be very difficult.

But I think I can add this as a setting to the configuration file.

DIM_TO_MINIMUM_BELOW = 0
- disabled (default)
DIM_TO_MINIMUM_BELOW = 25
- below 25/750 lumens

very simple and I think this would do about what you want
Expect this in the new version.
Device: HTC One X+ (51-1500MHz Smartmax)
ROM: ARHD6.5 - 128MB DataSwap
Kernel: EliteKernel OXP (probably 1337 latest unreleased experimental version)


Android Projects:
OXP-EliteKernel | DZ-EliteMod/Kernel ICS | DZ-EliteMod/Kernel CM7




 
DeepThought
Old
#12  
DeepThought's Avatar
Senior Member
Thanks Meter 0
Posts: 748
Join Date: Jul 2006
Location: Austria, Vienna
Quote:
Originally Posted by nik3r View Post
I'll report back whether this is possible in mobile version...
Thank you mate, I really appreciate it!

----------------------------------------------------------------------------------------------------
History: Wallaby > Himalaya > Blue Angel > Universal > Hermes > Palm Treo 750 > Kaiser > Raphael
My Apps: hTorch v3.2 | using camera LED as flashlight --> Last Updated: 2008-11-20
 
nik3r
Old
#13  
nik3r's Avatar
Senior Member - OP
Thanks Meter 1106
Posts: 1,341
Join Date: Feb 2008
Thanks for your suggestions.
Lumos v02c is out, it contains your 2 desired options (for backlight 1 and 2 separately). You will however be disappointed by the sensitivity of raphael sensor, it reports 0 like all the time.

This change theoretically lets you set lumen values for the 2 lowest values manually and once the sensor reads larger values, the MIN/MAX_BACKLIGHT kicks in. It's possible to have 4-8 auto and dim to 1 or 2 on low light, so you can kinda simulate the behaviour of LevelSight if you want to.

Oh and as the cherry on top I disabled tolerance by default, for more smoothness, the impact on CPU and battery should be minimal < 0.05%

The next version should include a tool to easily restart Lumos to apply settings, it will be needed for the graphical user interface later.

Enjoy
Device: HTC One X+ (51-1500MHz Smartmax)
ROM: ARHD6.5 - 128MB DataSwap
Kernel: EliteKernel OXP (probably 1337 latest unreleased experimental version)


Android Projects:
OXP-EliteKernel | DZ-EliteMod/Kernel ICS | DZ-EliteMod/Kernel CM7




 
nik3r
Old
#14  
nik3r's Avatar
Senior Member - OP
Thanks Meter 1106
Posts: 1,341
Join Date: Feb 2008
Major version released:
Lumos v03
- all bugs connected with dynamic backlight should be fixed now
- changing settings.txt is even safer (program should never crash, just tell you where is problem and use defaults)
- includes LumosKiller.exe that can start/restart/shutdown Lumos easily

In case no bugs are found until friday, I will start building GUI.
Device: HTC One X+ (51-1500MHz Smartmax)
ROM: ARHD6.5 - 128MB DataSwap
Kernel: EliteKernel OXP (probably 1337 latest unreleased experimental version)


Android Projects:
OXP-EliteKernel | DZ-EliteMod/Kernel ICS | DZ-EliteMod/Kernel CM7




 
Chatty
Old
#15  
Senior Member
Thanks Meter 3
Posts: 516
Join Date: Apr 2005
Could you integrate special brightness normally only used when starting the camera? You'd probably need to debug the camera application to find out about the special ICOTLs for that. I did that with my Magician back in the days.
Magician | ROM 3.04.00 WWE | Radio 1.12.00
Hermes .| ROM 3.62.04.DVH .| Radio 1.54.00.00
Diamond | always a new ROM .| Radio 1.17.25.09 along with Android 2.2 Froyo
iPhone .. | iOS 5.0.1 . . . . . .| baseband 05.11.07
 
nik3r
Old
#16  
nik3r's Avatar
Senior Member - OP
Thanks Meter 1106
Posts: 1,341
Join Date: Feb 2008
Program-specific exceptions will be added after the GUI is done, I still need to figure out how to list running windows by name. If you have any experience with this using C# or C++ I'd be happy if you PM me, but I guess uncle google knows how to do this, just refuses to share it with me right now
Device: HTC One X+ (51-1500MHz Smartmax)
ROM: ARHD6.5 - 128MB DataSwap
Kernel: EliteKernel OXP (probably 1337 latest unreleased experimental version)


Android Projects:
OXP-EliteKernel | DZ-EliteMod/Kernel ICS | DZ-EliteMod/Kernel CM7




 
ferus
Old
#17  
ferus's Avatar
Senior Member
Thanks Meter 0
Posts: 192
Join Date: Aug 2008
Uz to testujem, zatial to vali krasne a v pohode ;)

I just wrote that I'm currently testing it, no problems so far.
Thank you and please keep up the good work ;)
 
Magus
Old
#18  
Magus's Avatar
Member
Thanks Meter 0
Posts: 32
Join Date: Feb 2007
Location: San Isidro
Great application Nik3r!!

i like so much, because donīt touch my registry, Itīs light,and also have minimal resources consumption

But, i need your help with the configuration file,
i have htc diamond, and the battery of this device drain fast

how can set the settings to obtain best battery duration?

Thanks a lot!!
 
nik3r
Old
(Last edited by nik3r; 26th November 2008 at 01:53 PM.)
#19  
nik3r's Avatar
Senior Member - OP
Thanks Meter 1106
Posts: 1,341
Join Date: Feb 2008
You can increase the polling interval, enable some tolerance and lower the maximum brightness.
Try to make these changes:

MIN_BACKLIGHT = 1
MAX_BACKLIGHT = 6
POLLING_INTERVAL = 1500
EXTRA_POLLS_BEFORE_SET = 1
BACKLIGHT_TOLERANCE = 1

set minimum backlight to whatever is reasonably visible in shade
.. this will set your polling interval to 1,5s and make your brightness change every 3s instead of 2. The tolerance prevents brightness changess less than 2 units. It's the brightness change that eats most CPU (up to 3% spike) and thus battery and the tolerance makes sure it's not changing until a larger change is required.

And make sure you killed the old v01/02x version or soft reset before using 03 because older versions can't be killed by LumosKiller and two of them running may ruin your battery.

... hmm by the way I wonder why I didn't call it "Nox" instead of LumosKiller (any similarity with HP books is completely unintentional )

Good luck
Device: HTC One X+ (51-1500MHz Smartmax)
ROM: ARHD6.5 - 128MB DataSwap
Kernel: EliteKernel OXP (probably 1337 latest unreleased experimental version)


Android Projects:
OXP-EliteKernel | DZ-EliteMod/Kernel ICS | DZ-EliteMod/Kernel CM7




 
Magus
Old
#20  
Magus's Avatar
Member
Thanks Meter 0
Posts: 32
Join Date: Feb 2007
Location: San Isidro
Thanks for your quick and detailed reply!! i did those changes you suggest,
Iīm really fan of your app!!

 
Post Reply+
Tags
backlight control, backlight settings, battery life, lumos auto backlight, windows mobile
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...