Lightsensor, controlling backlight. Change to lower setting. - Touch Diamond, MDA Compact IV General

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.

Related

Auto adjust backlight...can we tweak?

Peoples....has anyone found a way to "tweak" the auto adjust backlight setting?? Would be nice to be able to set the light sensor to a pre-determined value so that it is always that value greater than the ambiant light...
Why??...well, I would like to continue using the same auto setting (saves battery, etc) but have it just a little bit brighter than what it is doing automatically at the moment.
I'm sure there is a way....would be great to have this in Shaps AC or Diamond Tweak....hmmm, perhaps post there to....
Thanks all
Not sure if this helps, but if you untick the box for auto brightness then you can slide the brightness control up and down to set the base setting then re tick the auto box. Let me know if this is what you are wanting. If not just ignore me
johnboywilson said:
Not sure if this helps, but if you untick the box for auto brightness then you can slide the brightness control up and down to set the base setting then re tick the auto box. Let me know if this is what you are wanting. If not just ignore me
Click to expand...
Click to collapse
Nice one, but unfortunetely does not have the desired effect (just checked)....
HOWEVER, this would be a great why to build it into the system i.e. manually set the level thats works best for you in the abient lighting of the moment....then set auto adjust to keep that differential...hmmm...
I would love to find a way to calibrate that. The backlight in darkness is too high for my eyes. When I set it manually I can decrease the brightness to a comfortable degree, but as soon as I turn automatic mode back on, it gets higher.
Agree
aydc said:
I would love to find a way to calibrate that. The backlight in darkness is too high for my eyes. When I set it manually I can decrease the brightness to a comfortable degree, but as soon as I turn automatic mode back on, it gets higher.
Click to expand...
Click to collapse
Same here.
Is there any reg key to set up the minimum value for bl when in darkness..?
Anybody knows ?
Thanks
advanced config v 3
try with it,i ran into few tweaks for light sensor,hope it'll help you
Nope, Advanced Config's light sensor tweaks are only for the new Phone app.
aydc said:
Nope, Advanced Config's light sensor tweaks are only for the new Phone app.
Click to expand...
Click to collapse
yeah you are right ...polling and stuff,i remember now
...quick look....no joy...
Nothing easy to recognise in the Registry...I think this might need a "power" developer...
....er, thats definately NOT me
i found this:
http://gadgetmix.com/index/?p=1109

Fix the Backlight when in AutoAdjust

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

[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!

[Q] disable hardware buttons backlight

hi
is there any way to disable the led of the hardware buttons. i know where the buttons are. i dont need a light to find them. and it looks ugly when they light up. after i used them i always wait to touch the screen until they are off.
I think neldar knows the most about this since he has done the backlight notifications mod. It would be super to have an option in the recovery to disable backlight in the buttons. They are annoying at night when using Screen filter to dim the screen, buttons are very bright in contrast to the screen.
Agreed. I would love to be able to switch them off.
Yes this is true and really anoying!
At night they are much to bright. Would love a "disable" option, too.
Is it maybe possible to dimm the buttons, too?? This would really be awesome
ok, i'm not the only one who wants that leds switched off. but isn't there anyone who has an idea how to do that
Anyone figured this out yet?
i found an app in the market called“ leds hack“. it supports samsung vibrant, but it dont works on my phone. isnt it the us-name for the sgs? maybe the rom is the problem. i'm on darkys 9.3
i tryed to find the script that controls the backlight. here: stackoverflow.com/questions/4152053/android-turn-off-key-lights i found this info:
A: The keyboard backlight can be controlled via /sys/class/leds/ keyboard-backlight/brightness. It appears that it's a simple on-off control (echoing '0' turns it off, echoing '1' or higher turns it on). For some reason, the default system backlight control stuff seems to set this to "83", but I don't know why. I can't seem to see any difference between 83 and any other number. The file is readable by anyone, but only writable by root, so you'll need root access to the phone to manipulate it this way.
can anyone tell me where i can find the file on my phone...
Has anyone found the answer?
This is honestly something that I would even pay for if a dev wanted to create a little app or mod that could do this quickly and easily for those that are not confident to make these changes on their own.
No one? :/
magooo said:
/sys/class/leds/ keyboard-backlight/brightness
Click to expand...
Click to collapse
this doesnt exist on our android.
There is is /sys/devices/virtual/misc/melfas_touchkey/brightness
you can do
echo '1' > /sys/devices/virtual/misc/melfas_touchkey/brightness
to turn it on, but i have not found a way to turn it off permanently
Can some one bind this to light sensor? So that we can have it disabled during day and have it enabled at night??
how can i edit this files? i cant find an editor or something like that. i'd like to play around with this script?
joseph.carty said:
This is honestly something that I would even pay for if a dev wanted to create a little app or mod that could do this quickly and easily for those that are not confident to make these changes on their own.
Click to expand...
Click to collapse
I'd pay too
Please, It have to be so easy
magooo said:
A: The keyboard backlight can be controlled via /sys/class/leds/ keyboard-backlight/brightness
Click to expand...
Click to collapse
I don't have the folder /leds. What version of android do you have?
I found this. As a new user, I can't send links to the forum, I paste the important part:
Samsung GT-I9000
s3c-keypad
- scancode = 26 (confirmed with keylayout/s3c-keypad.kl)
/sys/class/backlight/s5p_bl/brightness
drivers/input/keyboard/s3c-keypad.c
drivers/video/backlight/backlight.c
- brightness and actual_brightness 's get/set method. (actual_brightness is read only)
drivers/video/samsung/s3cfb_tl2796.c
- Samsung's implementation. MIN_BL = 30. Lower than this == black out.
Could it be useful?
Thanks

[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

Categories

Resources