Auto brightness code - Android Software Development

Hi Devs
I need some help to set my own auto brightness values. Attached is the framework can someone please help me find the code for auto brightness.
The frame work I am using can be found at the below link:
http://dl.dropbox.com/u/17206474/framework-res.apk
Regards,

lol so many views and no reply
no one know what should I do??? :s

I am also interested in this field.
I would start with a simple cronjob that reads brightness.
Do you know, where to read it?
background:
For the Motorola's there is some magic setting, boosting the backlight.
Would like to set it, if brightness is over a certain threshold and set back if it is below another level. Sounds easy ...

Related

CONTRAST Adjustment

Hi all. Can anyone dir me to anywhere I can download apps for adjusting the screen contrast of xda2 (WM2005)? Thanx in anticipation.
bloggy
http://www.google.dk/search?hl=da&q=CONTRAST+Adjustment+wm2005&btnG=Google-søgning&meta=
?
Hi Rudegar. I had already googled it and seem not to get anything. Thanx for the concern anyway.
bloggy
Built in Contrast adjustment
I know there is a built in Contrast adjustment program in WM5. After doing some some registry tweak testing...basically me changing registry settings without any direction, I must have stumbled on something that activated a Contrast program icon.
When I ran it, there was a slider for screen contrast. I continued some more registry tweaks, but restored an old registry and lost the new Program Icon.
I don't know what registry setting it was that activated this, so if anyone knows how to activate it, please let us know!
Re: Built in Contrast adjustment
our screen driver (or maybe hardware) does not support contrast changing, so this is useless. Only backlight brightness can be changed.
I've discovered a registry key that seems to have _some_ control over not contrast, but gamma. You might be able to use it to get some results. Its located in HKLM/System/GDI/Gamma and it is a DWord called "Gamma Value"
Re: Built in Contrast adjustment
mamaich said:
our screen driver (or maybe hardware) does not support contrast changing
Click to expand...
Click to collapse
There is no hardware contrast support on himalaya, blueangel and universal, only the
brightness control via PWM duty period.
I'm not sure if it works on other devices, but on a Wizard, you can go to HKLM\ControlPanel\Contrast and delete the redirect key (if there is one) and create a new dword value named Group with value 0 and it will put a Contrast icon in Settings that has an adjustable slider....
works...
registry tweak brings contrast setting to control panel but that does nothing (since contrasting is not supported)

Default brightness

Forgive me if this has been discussed before. I searched the forum, but didn't find an answer.
I dim my backlight to level 3 in order to extend battery life. Whenever I have to softreset (which, alas, happens not too rarely), the backlight is back to level 6. Is there a way to permanently set the default value to a different level? I guess this should be feasible by changing some registry values. I tried changing HCKU\ControlPanel\BackLight\DefaultBrightness, but to no avail: Nothing seemed to change after a softreset.
Thanks for your help (BTW this is an outstanding, very helpful forum thanks to many skilled posters!),
Jay

Adjusting Contrast

Hi, I just bought a new set of HTC touch diamond, however as compared to the old one. The contrast of this new set seems really weird.
The black and dark tones are like grey even when i set the brightness of the screen to a much lower level. So i believe it is the contrast of this set that went wrong.
Is there anything I can do about it? or any problem that adjusts the contrast of the screen?
-Update-
After some google and meddling, I realised Windows Mobile actually came with this contrast applet that is hidden by phone manufacturers.
After some research I manage to make the contrast applet appear in the settings.
1) Using Registry Editor, rename Redirect to xRedirect in HKLM/Control Panel/contrast
2) If Redirect is unchange instead there is an added xRedirect. Delete the Redirect
3) Restart your HTC and Contrast should now appear
4) ???? However I am unable to change the contrast as the settings seems to be fix. ??
Does anyone know how i should continue from here? Do i have to modify the default in HKLM/Control Panel/contrast
Hope this prove to be useful for ppl who wish to adjust their contrast as well.
Hope someone can help me out. Thank you
Anyone know how i should continue from here? Do I have to modify
yes you can let the contrast cpl show, however that doesn't work on the diamond.
The contrast settings doesn't affect the screen
From what I have read in your post this isn't a software but an hardware fault
It would be wise to RMA the device.
Regards,
EqX
Thank you for your Reply and clarifications.
So you mean the contrast problem is actually a screen problem?
Do you have any idea what would they do if I send my phone for RMA? Would they simply change the screen or change the entire phone for me?
Btw I live in Singapore. Heard they have really bad HTC care services in over here.
You're not alone... We are many people who want to find a way to increase the contrast on our Diamonds... It would really make our displays great if we could because it's a conrast issue, no doubt.
Been playing aroung with Resco Photo Viewer and slighty increasing the contrast when viewing photos makes them look awesome!!!
I'm afraid the default display contrast is hardcoded and cannot be changed by software but hopefully I'm wrong. Maybe it can be reached by some hidden menu???
owziee said:
Maybe it can be reached by some hidden menu??
Click to expand...
Click to collapse
yes, then we can go search for gold under the forgotten mountain...
it wont be hard-coded, it will be set by some software somewhere, just not apparent to the user.
I have actually got the contrast applet to show in my touch Diamond to show in the settings already. Refer to the first post on how to do it.
The problem now is even with the contrast setting show. I am unable to adjust the contrast sliding the control. It basically does no changes to the diamond..
and beyond that.. It is beyond my knowledge and expertise to do anything else. Thinking about RMAing my Diamond. But wondering how would they go about helping me? Change a new phone.. Doubt so..

[Q] Auto backlight levels - Can i edit the levels?

Is there a way to change the level of the min/max backlight?
i searched all over the internet and didn't find a thing
ITAYSHARONI said:
Is there a way to change the level of the min/max backlight?
i searched all over the internet and didn't find a thing
Click to expand...
Click to collapse
I'm sure you could use root explorer to edit the values
The question remains whats the location of that??? way too many folders and subfolders to look thru
thats why i disable the auto and set it for manual
Maybe some else will know the location

[Q] Backlight setting help

I think this is a problem specific to the HD2 - basically, when i leave the phone on the auto backlight setting, it is too bright and therefore draining the battery. of course, setting it manually is a pain and it needs changing as conditions change etc.
What i am wonder is if there is any way of changing the auto so that it is consistently less bright? I have had a dig through the regedit but not really sure what i am looking for or doing!
I was guessing that there was a value that would be assigned to the brightness above the ambient brightness (from the light sensor) - can anyone enlighten me further?
Many thanks (and also for all those other posts i have used to help me make my phone exactly as i like it... CHT, BsB, Scilor etc!)
try Lumos.
nice. almost does too much! but good bit of software thus far. now to do some benchmarking... if only the sun would shine!
Controlling Backlight Settings
I took a different approach to resolve my problem -- keeping auto backlight turned off, but easily changing the backlight settings when I needed to change them. I created a shortcut called Backlight.lnk (that's a lowercase "L", not an "I" I discovered). I used a text editor and put in this line:
12#Powerexe.exe 2 - backlight tab
I saved it with the name Backlight.lnk and copied it to my Start/Programs folder using File Explorer. I moved the shortcut to the top of the Start menu where I can get to it quickly. I just tap Start and the shortcut icon and I am at the Backlight screen where I can quickly change the backlight level or the timeout settings. This saves a few taps compared with going in through the Settings screen.
I had tried Lumos and another program I found on the MS Marketplace, but both caused other problems for me.
PS: I found the line above in a posting at
http://forum.xda-developers.com/showthread.php?t=645916
It's an excellent tutorial on creating all kinds of shortcuts.
Try MVBKLight.
Very handy popup (plus a usefull torch).
I have both Auto and Manual controls. With links I immediately switch between sensor and the MVBKLight slider.
Try searching for autobacklight toggle. Basically, its an icon which when pressed on main screen enables disables autobacklight. So much better than lumos.

Categories

Resources