Related
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.
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!
App now on the market, thanks for all your help.
great emulation. see my magic/sapphire device specs below...
no sound
very slow response to fire/shoot tap
...other than those issues, nice work.
Hi, great looking and I like the neat touches about adding 10p etc.
Comments - as posted above, no sound and the motion of the base is very slow either by motion detection or using the trackball. Though the trackball seemed to be very intermittent.
I'm running a T-Mobile G2 touch with the latest stock rom. All other background apps, had been disabled too.
Most gracious thanks for your comments. I think I've found the sound bug proper now. I've also found a vast improvement in speed after some GFX tweaks.
The control issues sound odd as both the emulator & my i7500 don't have these problems (but neither have a trackball, the emulator has no sensor), maybe the speed increase will fix things, as the phone was probably getting bogged down with unnecessary drawPixels.
Version 5 is available in the 1st post above, be grateful of any further feedback.
Edit: I've also updated the sensor updated time to maximum to see if that helps.
Great improvemnet.
Sound - now works, firing, explosions, flying saucer. Though the sound of the "invaders" moving is slow, but I am guessing that is as the original?
Movement - The motion sensor works fine now, though the trackball still does not function for left or right movement. If you try the trackball, the app says "motion sensor disabled", but the trackball does not move the player. The fire function works when you depress the ball though.
I love it, takes me back
Daft question but
Could this be used with other arcade roms?
Splather said:
Could this be used with other arcade roms?
Click to expand...
Click to collapse
Yes, a limited few though, those what run on similar 8080 hardware (a few tweaks may be needed).
I will probably add these later.
OK, nearly at the finishing post. I reckon I've sorted the trackball issue, though I don't have a device with a trackball to test it on. I've also added the suggested full screen mode, though it runs a bit slow even after skipping a few frames, but I've left it in for the moment as it will encourage me to further optimize (will probably have a go at h/w acceleration in v2).
Version 6 Now available in the 1st post.
Trackball works fine now, not sure if it's just me but it seems slower than using the tilt method. Nice work.
I prefer the "bordered" view as it reminds me of the actual screen in the cabinet with the border around the black and white screen. Though on some machines they added coloured bands across the screen so that the invaders "appear" to change colour the lower they got. Maybe you could add that in?
"Edited"
Just a thought, not sure if you can do it, but can you override the "back" key functionality, then you could use it as a fire button and the trackball would be movement only. This way it is slightly more authentic in having the left right control and a fire button just like the original.
OMG that's slow!
Uninstalled... sorry
Love the idea, though
beaker656 said:
Trackball works fine now, not sure if it's just me but it seems slower than using the tilt method. Nice work.
Click to expand...
Click to collapse
Seem to have a problem there... read the new control instructions in version & to see if that helps. It's hard to sort until I get a real device.
beaker656 said:
I prefer the "bordered" view as it reminds me of the actual screen in the cabinet with the border around the black and white screen. Though on some machines they added coloured bands across the screen so that the invaders "appear" to change colour the lower they got. Maybe you could add that in?
Click to expand...
Click to collapse
You might be thinking of 'Space Invaders Part II' or 'Space Invaders Deluxe'
beaker656 said:
"Edited"
Just a thought, not sure if you can do it, but can you override the "back" key functionality, then you could use it as a fire button and the trackball would be movement only. This way it is slightly more authentic in having the left right control and a fire button just like the original.
Click to expand...
Click to collapse
You can still used the touch screen when using the trackball.
I don't fancy overriding the back key
Henrikmand said:
OMG that's slow!
Uninstalled... sorry
Love the idea, though
Click to expand...
Click to collapse
I've tried extra hard to speed things up a bit more in version 7.
Might be able to squeeze a bit more???
NEW UPDATE: v7
more speed
vibrator
control tweaks
U seem to just have increased the gamespeed, it still laggs like before.
Very slow and lag in sound.
Looks promising...
Hi guys and gals.
Long story... Gave my code a bit of decent profiling to see what was going on with the trackball. Seems like the cpu emulation core is taking so much time up that there is very little left for the main thread to pick up any events, and when it did, it bogged down the cpu thread. Trackball events have a huge time overhead with keyPressEvents the least, TouchEvents lie some where in the middle.
A nice solution would be to replace my java 8080 cpu source with native code (anyone want to help out here?), but my skills level is probably not up to it.
So, trackball support has now gone completely , replaced with screen buttons. Dpad will still work though, and touching almost anywhere on the screen, other than the left/right buttons will fire too (so your fingers aren't all over the place). Let me know what you's all think.
Found some extra speedups from the cpu core too, but had to butcher a lot of nicely structured code to get the gains.
Updated the first Post with the last version.
Thanks all.
Tidied up the GUI and while I was there...
Deluxe Support.
Catch the APK in the first post.
Could someone give it a final try to see if the controls problem has been fixed???
Thanks very much.
Now on the market. Thanks for all your help.
tonydoc said:
Now on the market. Thanks for all your help.
Click to expand...
Click to collapse
Well thats fine but since you've edited the thread now we don't know the title of this thing anymore
I need some help with options in this phone. First off all I found it annoying that the bottom 4 touch button light turns off in like 5 seconds. I know it saves battery but I want to have the option to keep on longer. I'm pretty sure there isn't a built in option, but is it possible for anyone here to mod this? (I think you can do it because there is a mod to turn them always off).
Next I feel that the lowest screen brightness is still pretty high. Is there anyway that I can reduce it? Possibly through an app? I'm rooted and everything so no problem there. Thanks
Many would like the option to change the time out on the buttons. Unfortunately no fix yet.
As for the brightness, many of the widgets to adjust brightness from the market will allow lower settings
I use extended controls..I don't think it was free but is highly customizable
Hey everyone,
due to the high resolution and comparably large screen estate I would like to use a lower screen density of around 410dpi, instead of the stock 480. :fingers-crossed:
One example:
On my Galaxy Nexus I was used to having a 24dpi high navigation bar at the bottom of the screen.
It was small but still I was able to hit the buttons accurately.
Same goes for the small keys of my keyboard of choice, Swiftkey.
Since I am on the HTC One and I flashed a Custom ROM, which I am running on 410dpi and wanted that stock android navigation bar at the bottom even at 48dpi (which is like 1.7x the height of the one I was using on my Galaxy Nexus) I have trouble hitting the buttons.
This is very disappointing.
It feels like the Touch layer of the HTC One is not that accurate
Is it just me or is this a known problem?
(Couldn't find anything via search, though)
Any ideas what to do about it?
All the best and thanks in advance :good:
I don't see this at 360dpi which is what I have mine at, but I do see it at 240, but everything then is silly in size.
Have you enabled the show touches in dev options and checked where its actually pressing?
Always keep forgetting about that! Thanks!
That is pretty weird...the touch inputs seem to be quite accurate, though. (Debugging Tool)
But it doesn't recognize them in something like "the upper half of the navigation bar" :/
I quickly shot a Video (sorry not the best focus point )
One can clearly see that I am hitting the home button several times, but the input doesn't get recognized.
That is really really weird and unsatisfactory :/
I gave it a shot for you... It seems to work fine on 36dp and above. 30 and 24 exhibit the same behavior as your video.
FYI: I'm running SlimROM at 361dpi. That was the default for me when I went from ARHD 10.2 to Slim b6 and it has stuck with me since then. I tried to get the same look in RootBox but it didn't work the same, so I went back to SlimROM b6.8, and am now on SlimROM b7.
Thanks :good:
I am starting to believe that this is might be caused by the Logo-Button-Hack.
If you peek closely from the side under the tip of your finger touching the button and starting from the very bottom of the glass area there is just no response at all on the logo. It's like the first pixel of the screen are allocated to the logo-button and not the area below the screen.
Maybe an area of lets say 10-15 pixels height is used for that and therefore not any longer available for the nav bar.
Which doesn't really matter if you are hitting the comparably huge app-icons in the drawer otherwise