Fix the Backlight when in AutoAdjust - Touch Diamond, MDA Compact IV General

As you could see, when using the "Auto adjust brightness" option to use the light sensor, the LCD uses only 30% to 70% of the available range.
When using the diamond as GPS, by night, this one is too bright.
So, with the LightSensorSDK, I wrote this program which changes the brightness of the LCD, according to the ambient light, from 0% to 70% (in order to save the battery power)...
Don't forget to uncheck the Auto adjust function...
To use it :
Install the cab,
Uncheck the Auto adjust backlight option,
SoftReset your Diamond...

Program is constantly using high amount of cpu (~50 %) I think querying the sensor via the sdk is very computation-intensive. Uninstalled it now, but I like the idea, please continue to work on.
regards,
Daniel

Also, can we get one that uses %0-%100, sometimes 70 just doesnt cut it in direct sunlight...but the concept is really really good!

What are you using to monitor your CPU ?
Attached is a newer version (at 0% only if very dark), I have set via Advanced Config to 1000 the Light Sensor Interval...
This interval is used to know when to change the slider position...
In HKLM\NikisLight, you can set Maximum (10 is max) and Minimum (1 is min).

ngaillet said:
What are you using to monitor your CPU ?
Click to expand...
Click to collapse
HomeScreen ++ (formerly known as batterystatus), after uninstalling the cab the usage went back to normal.
regards,
Daniel

The second Cab file is better... Try this one...

ngaillet said:
The second Cab file is better... Try this one...
Click to expand...
Click to collapse
I'll do so, and let you know my findings.
regards,
Daniel

very cool
if we could figure out how to do these changes in the OS rather then using a thirdy party app it would be amazing. I have been looking into this my self though and cannot find how to yet.

Now it's working fine on my device, no more high cpu utilization.
What I see now is that it's a little bit too dark in normal rooms, may i "pitch" up the lowest treshold a little bit through any seeting?
Thanks for the most precious helpfull app since a long time ;-)
regards,
Daniel

Thanks for your great application. However, after install the program, the backlight become flicker once per second (even I cover the light sensor). Is it possible to lower the sampling period or have any solutions.

ngaillet said:
The second Cab file is better... Try this one...
Click to expand...
Click to collapse
Thanks, the application is uninstallable?
Ciao, Andrea

any chance this app can be reworked to use the kaiser's keyboard ambient light sensor? i'm sure lots of us would appreciate the functionality.
cheers.

great application!!
i always found 70% is not bright enough under direct sunlight

Great one ... also found that in dar the screen was way too bright and little lesser would be nice.
Thanks, and hope this suits and works well.
Can you please make one from 10(15)% -to- 70%, as at 0% the pics seem very dark .... thank you and much appreciated.

helpme said:
great application!!
i always found 70% is not bright enough under direct sunlight
Click to expand...
Click to collapse
Is it possible to have a 0% to 100% version?
Many thanks.
Ciao, Andrea

can we uninstall it like other cab file?

Nice app, nice idea. I installed it on my CDMA Sprint Diamond, and I'm not sure that it has any effect. I have two of the same devices and compared them side-by-side and the app seems to not make a difference.
Thanks!

I have install it on the diamond, but it change the light like crazy. Under the sun, it goes to the minimum. I have change the backlight interval with advanvce config, from 300ms to 1000, and back again, but the problem is the same.
Is there any chance to make it better?

Genius2000 said:
Is it possible to have a 0% to 100% version?
Many thanks.
Ciao, Andrea
Click to expand...
Click to collapse
Any update?
Many thanks.
Ciao, Andrea

You can change it yourself

Related

Lightsensor, controlling backlight. Change to lower setting.

Hi All.
I have wondered why the software that controls the backlight, with the light sensor, doesn’t adjust the backlight to the lowest setting, when the phone is in total darkness.
I use my phone in complete darkness almost every night, but I think the backlight is way to bright. I know I can adjust it manual, but why not automatic?
Do any of you bright heads, know a reg value to change or another solution, so I can "allow" the backlight to go to the lowest setting, automatically?
I find this anoying also. Any help would be great.
Anyone? I have looked in the registry but cant find anything... :-/
as far as i know there is no software\tweak that can change backlite to min
Same here. In my case, I'd like the backlight to be a bit brighter in brighter conditions, especially when in the car on a sunny day and I'm using iGo. Manually, I can set the backlight higher. I had a sony ericsson phone with a similar light sensor, but you could adjust its maximum threshold and the general brightness. Surely there's a software solution here somewhere!
I searched a little and quickly found some things:
1. The Diamond seems to have an in-built process to adjust brightness according to light sensor. Don't know if it works, though.
2. The registry keys are found at "HKEY_CURRENT_USER\BackLight\". You can modify brightness there, and it will affect the control panel BUT not change your current brightness. There is an Event you must trigger to update brightness. In many devices, this is the BacklightChangeEvent, in some others, this is SDKBacklightChangeEvent, and some others something different. Depends on the device and the manufacturer.
I wrote an app to change the registry value and trigger both SDKBacklightChangeEvent and BacklightChangeEvent. I can see on the control panel the value has changed, but the visible Brightness won't change. Seems HTC decided to make their own DLL to manage that, instead of standard windows mobile events.
So, I searched a bit further and I found that into "HKEY_LOCAL_MACHINE\Drivers\BuiltIn" there is a key called "Frontlight" which is apparently defining a value which points to Backlight.dll. This must be HTC's implementation of the Backlight manager. I was like "yay this will be my first windows mobile dll reverse engineering" BUT, I didn't find this file anywhere on the device, unfortunately.
If anyone could find it on the Diamond, please pass me the info !
Scotchy49 said:
I searched a little and quickly found some things:
1. The Diamond seems to have an in-built process to adjust brightness according to light sensor. Don't know if it works, though.
2. The registry keys are found at "HKEY_CURRENT_USER\BackLight\". You can modify brightness there, and it will affect the control panel BUT not change your current brightness. There is an Event you must trigger to update brightness. In many devices, this is the BacklightChangeEvent, in some others, this is SDKBacklightChangeEvent, and some others something different. Depends on the device and the manufacturer.
I wrote an app to change the registry value and trigger both SDKBacklightChangeEvent and BacklightChangeEvent. I can see on the control panel the value has changed, but the visible Brightness won't change. Seems HTC decided to make their own DLL to manage that, instead of standard windows mobile events.
So, I searched a bit further and I found that into "HKEY_LOCAL_MACHINE\Drivers\BuiltIn" there is a key called "Frontlight" which is apparently defining a value which points to Backlight.dll. This must be HTC's implementation of the Backlight manager. I was like "yay this will be my first windows mobile dll reverse engineering" BUT, I didn't find this file anywhere on the device, unfortunately.
If anyone could find it on the Diamond, please pass me the info !
Click to expand...
Click to collapse
Thank you. Its a lot of attention you have given this topic. For that I thank you. - Just too bad you cant find that dll. :-/ Hope some other helps.
backlight.dll found in Windows folder
axelpix said:
backlight.dll found in Windows folder
Click to expand...
Click to collapse
Thanks, for reference, there are the functions:
Code:
BKL_Close
BKL_Deinit
BKL_Init
BKL_IOControl
BKL_Open
BKL_PowerDown
BKL_PowerUp
BKL_Read
BKL_Seek
BKL_Write
inside the Backlight.dll
This has to be a lot easier.
I found some reg settings in HKCU\ControlPanel\BackLight, one of them called "AutoBklOffset". Actually this is exactly what we're searching for here: When I enter a value >0 here, the backlight instantly goes brighter, and the automatic backlight setting is still active and works.
so, what we have to do is figure out how to enter a negative value here.
Ideas?
Hmm, I don't think we can get anything only with the registry, but we don't lose anything to try, do we ?
I'll check again the registry.
Ok. Actually AutoBklOffset is linked to "Auto backlight adjust". This means that if auto backlight adjust isn't ativated, AutoBklOffset won't do anything.
Ok, all this search was fun. But I told myself: what if I just go ahead and try if the already built-in app works ?
And yea, it already works. Meaning if you put the device in front of the sun, it will go bright, and dim if you're in a dark place.
So I guess this is a configuration specific issue and don't need a new app. I'm out of tha place !
P.S.: It would have been actually quite stupid to include a Light sensor but not using it.
Scotchy49 said:
Ok, all this search was fun. But I told myself: what if I just go ahead and try if the already built-in app works ?
And yea, it already works. Meaning if you put the device in front of the sun, it will go bright, and dim if you're in a dark place.
So I guess this is a configuration specific issue and don't need a new app. I'm out of tha place !
P.S.: It would have been actually quite stupid to include a Light sensor but not using it.
Click to expand...
Click to collapse
my works fine
u can test it on bright light...u will see the change when u cover uper part oh the phone....it will dimm and u will se almost nothing...
microlomaniac said:
This has to be a lot easier.
I found some reg settings in HKCU\ControlPanel\BackLight, one of them called "AutoBklOffset". Actually this is exactly what we're searching for here: When I enter a value >0 here, the backlight instantly goes brighter, and the automatic backlight setting is still active and works.
so, what we have to do is figure out how to enter a negative value here.
Ideas?
Click to expand...
Click to collapse
This tweak still dosnt make the phone use the whole scale. From dimmest to brightest. :-/
Scotchy49 said:
Ok, all this search was fun. But I told myself: what if I just go ahead and try if the already built-in app works ?
And yea, it already works. Meaning if you put the device in front of the sun, it will go bright, and dim if you're in a dark place.
So I guess this is a configuration specific issue and don't need a new app. I'm out of tha place !
P.S.: It would have been actually quite stupid to include a Light sensor but not using it.
Click to expand...
Click to collapse
You misunderstand the issue.
With the backlight set to auto try using your phone in a completely dark room - the light sensor will detect this and the phone dims. Okay, now remove the auto setting and you will find that you can make the phone even dimmer than this using the slider. The lowest auto setting is equivalent to level 3 on the manual scale - what the guys here want to do is make this equal to level 1, or lower (or in the case of one poster make the maximum auto setting equal to the maximum manual setting, or perhaps even higher if possible).
The issue is therefore not whether or not the light sensor works (it does), or whether the phone can automatically dim/brighten the display in response to the ambient light level (it can), but whether it is possible to make the full scale range in automatic mode equal to that which the device offers in manual mode.
Mathew
Spot on!
Hi friends.
I have the problem using TomTom at car. When Diamond receive direct sun light it increases backlight until 70%, but not 100%; when I drive at night Diamond decreases backlight until 30%.
I would like adjust some values to 100% and 10% but I have no idea about registry or dlls.
aidrabmol said:
When Diamond receive direct sun light it increases backlight until 70%, but not 100%; when I drive at night Diamond decreases backlight until 30%.
I would like adjust some values to 100% and 10% but I have no idea about registry or dlls.
Click to expand...
Click to collapse
Nice summary
This exactly was the original topic of this thread.
Scotchy49 said:
Ok, all this search was fun. But I told myself: what if I just go ahead and try if the already built-in app works ?
And yea, it already works. Meaning if you put the device in front of the sun, it will go bright, and dim if you're in a dark place.
So I guess this is a configuration specific issue and don't need a new app. I'm out of tha place !
P.S.: It would have been actually quite stupid to include a Light sensor but not using it.
Click to expand...
Click to collapse
Did you come any further with the app?
I too would like to see a solution for the narrow range of light sensor adjustment. The screen stays too bright when ambient is dark.
In my Sprint CDMA Diamond, I see these registry entries:
HKEY_CURRENT_USER\ControlPanel\BackLight
LSensorReduceBKLDelay
LSensorAvegQuene
I wonder what they do. There must be some way to change the range of adjustment or the bias of the light sensor.

what i really miss on my g1 is..

a lightsensor .. why the hell does it miss this 0,02$ piece of crap? )=
Dimm screen in darkness, brighten screen in sunlight <.<
May some1 write a little application which works as a Shortcut for 2(or more) brightness settings ?
so i can place this on my homescreen and
1. click 20%brightness
2. click 75%
3. click 20%
4. click 75%
(Working on Cupcake! Android 1.5!)
Haha true. Even my damn Sidekick had a sensor.
bassbox said:
a lightsensor .. why the hell does it miss this 0,02$ piece of crap? )=
Dimm screen in darkness, brighten screen in sunlight <.<
May some1 write a little application which works as a Shortcut for 2(or more) brightness settings ?
so i can place this on my homescreen and
1. click 20%brightness
2. click 75%
3. click 20%
4. click 75%
(Working on Cupcake! Android 1.5!)
Click to expand...
Click to collapse
There is a market app called "Backlight" that does this. I don't know if it works in the Cupcake builds though...
Well, i had this idea a while ago but i thought it would eat to much battery
but it works like a charm!
http://www.cyrket.com/package/org.pbxes.light gogo get it, works fine on 1.5 !
cant this be done withe the camera and a little app. i mean i-p-tel has an app which named "helligkeitssensor" in the german market. i think its a brightness sensor which uses the camera to get information about environment brightness and then change the display brightness with this information?? like this one: Ambient Light Sensor
know what i mean??
Murx123 said:
cant this be done withe the camera and a little app. i mean i-p-tel has an app which named "helligkeitssensor" in the german market. i think its a brightness sensor which uses the camera to get information about environment brightness and then change the display brightness with this information?? like this one: Ambient Light Sensor
know what i mean??
Click to expand...
Click to collapse
Yes that can be done, there are several apps that do it, but a simple 2c light sensor would be much more efficient, ie less cpu, less battery wasted etc.
to the OP, have you seen this widget?
http://www.cyrket.com/package/com.roundedlabs.widgets.Brightness
Obviously you'll need cuppycake for it to work.

[REQ] Screen Brightness Control Program???

First off, I apologize to anyone who looks at this thread thinking that I am posting another screen brightness program. On the contrary I am LOOKING for a program that will allow us to control the brightness level of the phone in small increments.
Before the Fuze I had the HTC Touch which on the homescreen had the option of pressing the brightness shortcut and it would jump the brightness up a notch and then reset down to the lowest value once it got to the highest. Anyone that had this phone or a similar HTC phone that ran..... HTC Home knows what I am talking about.
While using the fuze I have always wondered why I couldn't find anything like this for newer phones. Searching for the longest times on a number of different forums left me with nothing. The automatic screen brightness control of the touch pro is less then desirable. There's times when my phones plugged in but I'm reading news in bed and I want to be able to have the brightness set to low without having to go through the settings and bugger around with it all.
That said, does anyone know of something that will do this? Or is it possible for one of the awesome program developers here to create something like this?
Here's a screen shot just for referance. By pressing the lightbulb it would change the screen brightness of the phone.
Here's the app you're looking for:
http://forum.xda-developers.com/showthread.php?t=485141
BTW, when you post an app request add "[REQ]" in topic...
you Might also want to try Lumos: http://forum.xda-developers.com/showthread.php?t=450318&highlight=lumos
this automatically adjusts your backlight depending on your light meter. It has a very quick and easy setup wizard and works wonders on your battery as well!
warri said:
you Might also want to try Lumos: http://forum.xda-developers.com/showthread.php?t=450318&highlight=lumos
this automatically adjusts your backlight depending on your light meter. It has a very quick and easy setup wizard and works wonders on your battery as well!
Click to expand...
Click to collapse
I have that installed.. does a good job but I'd still like the option of just being able to manually change it as well. Thanks!
the_ozyrys said:
Here's the app you're looking for:
http://forum.xda-developers.com/showthread.php?t=485141
BTW, when you post an app request add "[REQ]" in topic...
Click to expand...
Click to collapse
Thanks for the link and I've changed the subject title. I can't believe I didnt put that in there... That's a Newb mistake
edit Mylight. my lord I remember seeing this post AGES ago when all it was was a graphic "idea" and didnt actually do anything. Glad it got off the ground!

[REGISTRY] Boost Battery Life!!!

Go to this key: [HKEY_LOCAL_MACHINE\Software\OEM\KeyState]
Then add this value: "application_btn_vibrate3"=dword:1
to add the value, go to settings in registry editor in the described directory and choose "new value"
valuename: application_btn_vibrate3
value data: 1
value type: Dword
This will disable the vibration for the three touch keys ( back,home,search) and increase the battery life significantly.... If u want the vibration back then just change the value to 0
known long ago....
Thanks for the info!! I did not know long time ago!!! I'll have to give it a try and see if it helps me out.
it definitely does....im testing this and a few other reg tweaks and seeing how long my battery will last...ill post the results with some screenshots soon
Thanks vor this tweak. I'm glad to get ride of this anoying vibration. If this saves measurable power that would be perfect
Sent from my HD7 T9292
Im using custom Intrinsic ROM now....will post the battery life pics in some time.....
Searching for other tweaks too
Using Intrinsic rom apply it. Switch off and on my Hd7 thought my understanding the 3 button deactivated but it still vibrate.
Edit: delete it and apply new ones(dword)string b4. And now it work.
i have this tweak applied in my custom evolution 7 rom
u will see a battery life increase in standby time
Thanks...will try...
Is there a reg tweak to make the automatic brightness levels range from
0-10.
The HD7 is considerably bright even in a pitch dark room. But if you change the brightness from Auto to Low. Its significantly low.
Can anyone please look into this. Thanks.
backlashsid said:
Thanks...will try...
Is there a reg tweak to make the automatic brightness levels range from
0-10.
The HD7 is considerably bright even in a pitch dark room. But if you change the brightness from Auto to Low. Its significantly low.
Can anyone please look into this. Thanks.
Click to expand...
Click to collapse
i guess the auto brightness doesn't work :/
Been searching for that tweak since so long.....even the SMS Led notification....so far no success.....i cant even find where the LED registry's are.....
sirajgoku said:
i guess the auto brightness doesn't work :/
Been searching for that tweak since so long.....even the SMS Led notification....so far no success.....i cant even find where the LED registry's are.....
Click to expand...
Click to collapse
well it sucks for the auto brightness to not work then..my old Hd2 with Windows Mobile 6.5 did a better job at it..there has to be a way !!
sirajgoku said:
i guess the auto brightness doesn't work :/
Been searching for that tweak since so long.....even the SMS Led notification....so far no success.....i cant even find where the LED registry's are.....
Click to expand...
Click to collapse
the HD7 auto brightness needs a complete overhaul. it does get brighter dynamically but does not lower down the same way.
the samsung omnia 7 auto brightness works correctly
Magpir said:
the HD7 auto brightness needs a complete overhaul. it does get brighter dynamically but does not lower down the same way.
the samsung omnia 7 auto brightness works correctly
Click to expand...
Click to collapse
PLEASE!!!! someone find a way....to make it work !! Its a big battery life killer !
backlashsid said:
PLEASE!!!! someone find a way....to make it work !! Its a big battery life killer !
Click to expand...
Click to collapse
basically the HD7 can up the brightness under direct sunlight. but when come into the shade , the brightness does not go down.
need to press and awake the phone for the sensor to adjust to the shade
Magpir said:
basically the HD7 can up the brightness under direct sunlight. but when come into the shade , the brightness does not go down.
need to press and awake the phone for the sensor to adjust to the shade
Click to expand...
Click to collapse
wait !! how is that ??
how can it up the brightness but not lower it down..
the hd7 was almost build on the same hardware as the hd2...and hd2 could do it..i know the OS was different...but still...i assume it works well on other phones !!! and how is it smart..if its not auto...
Yup that's the major defect!!
You can see the display when outdoors cuz the brightness automatically adjusts itself...but when u come back indoors the screen still remains bright....
I looked into the brightness registries and I didn't find anything to change to make it work properly :/
I guess that's it with brightness of hd7 :/
IF HD2 can do it , why not HD7 which is newer?
Maybe someone can find something in the registry to modify auto brightness to work like HD2 ?
---------- Post added at 07:41 AM ---------- Previous post was at 07:39 AM ----------
sirajgoku said:
Yup that's the major defect!!
You can see the display when outdoors cuz the brightness automatically adjusts itself...but when u come back indoors the screen still remains bright....
I looked into the brightness registries and I didn't find anything to change to make it work properly :/
I guess that's it with brightness of hd7 :/
Click to expand...
Click to collapse
yes, when it adjusts itself to the ourdoot brightness, it does it quite well too, like 2-3 step increment ( u can see the brightness going up 2 steps depending on the ambient sunlight). THis means the sensor is on and running all the time when u have the screen turned on
but go back to indoors, it doesnt adjust down.
still pondering how is that they make it this way? Does not make sense
Ya even was searching for the LED for the SMS notification....no success!!
Magpir said:
IF HD2 can do it , why not HD7 which is newer?
Maybe someone can find something in the registry to modify auto brightness to work like HD2 ?
---------- Post added at 07:41 AM ---------- Previous post was at 07:39 AM ----------
yes, when it adjusts itself to the ourdoot brightness, it does it quite well too, like 2-3 step increment ( u can see the brightness going up 2 steps depending on the ambient sunlight). THis means the sensor is on and running all the time when u have the screen turned on
but go back to indoors, it doesnt adjust down.
still pondering how is that they make it this way? Does not make sense
Click to expand...
Click to collapse
+1 !!!
sirajgoku said:
Go to this key: [HKEY_LOCAL_MACHINE\Software\OEM\KeyState]
Then add this value: "application_btn_vibrate3"=dword:1
to add the value, go to settings in registry editor in the described directory and choose "new value"
valuename: application_btn_vibrate3
value data: 1
value type: Dword
This will disable the vibration for the three touch keys ( back,home,search) and increase the battery life significantly.... If u want the vibration back then just change the value to 0
Click to expand...
Click to collapse
How can i access registry files of hd7

Brightness problem

How do you guys set your slider ? For me its bit uncomfort, i set him on lowest and then tick auto brigt. but when i get out from home, brigtness is low, it makes move and little more brighter. I installed Lux lite and app is working perfect.
Why here on this subforum no one reply, i don't get it.
Dude, sometimes it takes some hours up to days until someone answers you, so keep calm.
To topic:
I've noticed this too, I think the slider is for setting how the general brightness is. Mine is set to medium with auto brightness - indoors it is not too bright, and outdoors it is most the time bright enough.
Thank you man
Robi959 said:
Thank you man
Click to expand...
Click to collapse
You're welcome
Robi959 said:
I installed Lux lite and app is working perfect.
Click to expand...
Click to collapse
I did it as well and it works ok now - screen getting darker when it's dark inside and brighter when it's bright outside - it shall work this way in standard...
BR,
MCC
mcc666 said:
I did it as well and it works ok now - screen getting darker when it's dark inside and brighter when it's bright outside - it shall work this way in standard...
BR,
MCC
Click to expand...
Click to collapse
Yes, this is much better solution.

Categories

Resources