Developers, can you develop backlight app? - Windows Mobile Development and Hacking General

I just want to request all developers if you can make a program that dims the backlight set by the user. Like Nokia phones, its backlight changes when ur not hitting the keypad for several seconds and then back again when you press a button. It (I think) saves more battery. But if your using a program, like watching movies, the backlight don't dim.
Thanks for reading anyway!
hehe!

Not sure, but I think that's already the case natively in WM6... At least, on my PPC the backlight dims after a few seconds when not touching it...

if i could have a little starting-pushup..maybe i could..but it can be done using Mortscript

wait, doesn't windows mobile natively do that, as Mollusk said? Just go into Settings>System>Backlight
and
Settings>System>Power
Set the Backlight timout to be lower than the "Turn off Device if not used for:" timer in the Power settings.
Applications will have to have inbuilt functionality to keep the backlight alive while the application is active; one such example I know of is TCPMP/Coreplayer. Somewhere in the settings for those two apps, there's a "Backlight keepalive" setting. You'll have to look for a similar setting in other applications.
I think what you're saying, though, is to develop a program that essentially acts as if every single application had a "Backlight Keepalive" setting... That'd be pretty handy. +1 to that idea

No thats not what he mented to say..If you have ever used a NOKIA handset you will notice that when you lock the keypad or leave the phone like this (when not locked )..the light DIMS off slightly...just like in N 6630

ather90 said:
No thats not what he mented to say..If you have ever used a NOKIA handset you will notice that when you lock the keypad or leave the phone like this (when not locked )..the light DIMS off slightly...just like in N 6630
Click to expand...
Click to collapse
yes... That's what I meant.
I really just don't know if other PPC do that natively, but in Hima, there's no settings for dimming backlight.

nesty24 said:
yes... That's what I meant.
I really just don't know if other PPC do that natively, but in Hima, there's no settings for dimming backlight.
Click to expand...
Click to collapse
I made a similar program that fades the screen out when you press the power button, and fades back in when your resume your PPC.
It's in a very unstable testing phase for now, tho ... and I don't know how to bind it to the power button!
find it at http://forum.xda-developers.com/showthread.php?t=384543

Related

Turn Off Phone but Keep Music Playing

With some WM6 ROMs, one can turn the phone off and keep WMP playing. The DOPOD ROM acts this way but the BA WM6 and the Sprint WM6 Titan shut off WMP when the phone is turned off.
Does anywone know a hack or have a .cab to keep the music playing when the phone's turned off?
Thanks
in the forums there was devicelock cab which can just lock the device and turn off the screen which prevents the working programs of closing
rambo6 said:
With some WM6 ROMs, one can turn the phone off and keep WMP playing. The DOPOD ROM acts this way but the BA WM6 and the Sprint WM6 Titan shut off WMP when the phone is turned off.
Does anywone know a hack or have a .cab to keep the music playing when the phone's turned off?
Thanks
Click to expand...
Click to collapse
Just a small trick for you guy, without having to install any new software or cabs, but using your current WMP:
1. Turn on your WMP,
2. Go to Menu / Options
3. Chose tab Buttons (at the end to the right)
4. Scroll down to the bottom and you will see "Toggle Screen"
5. Select "Toggle Screen" and click Assign button.
6. Press any arrow button (up or down, as right and left are assigned to Previous and Next already) to assign to this function (I chose "up").
7. OK and done.
Now when you play WMP, you just need to press that button and the screen is totally off.
Enjoy listening! Cheer!
There is a little trick to it
Just keep your WMP playing and do not minimize or toggle back to Today Screen or anywhere else. Jus keep WMP your active program and then press I/O button jus once, your PPC will get off, but you should know thats only the backlight thats getting off. Yep if you want more than your backlight to get off, proceed with the tweak as someone is hinting here. But why tweak your PPC?
Install GS Player and make a hot key for "display off & lock".
put slide to unlock and set it turn off with backlight.
minimize wmp.
wait backlight to off or run s2u.
it turn off ur screen without pausing the wmp and also lock the device so u can put it in cover or pocket.
WMP Playback in Standby
ever tried to use this regkeys:
[HKEY_LOCAL_MACHINE\Software\Microsoft\MediaPlayer\Preferences]
"UnattendedPlayback"=dword:1
"FastCacheReserve"=dword:800000
"LocalCacheReserve"=dword:800000
it means turn off screen, not phone. there r so many software can turn off screen: pbar, pocketplus...
Thanks guys. I'll try some of these out. My BA is working great with WM6.
petervbeck said:
ever tried to use this regkeys:
[HKEY_LOCAL_MACHINE\Software\Microsoft\MediaPlayer\Preferences]
"UnattendedPlayback"=dword:1
"FastCacheReserve"=dword:800000
"LocalCacheReserve"=dword:800000
Click to expand...
Click to collapse
I tried this but it didn't work. Thanks anyway. Any other ideas? I notice that on my hermes, there are similar registry settings. It works on the Hermes. But not on the BA or Kaiser
Instead of WMP...
You should try PocketMusic... it's much better than WMP... aside from what you want to happen...
it has a graphic equalizer... a Bass booster... an alarm option... and i think a better playlisting...

Screen Off = Pause Everything?

I've read posts from people saying that they're able to do things like listen to mp3s, stream radio, etc. with the screen off, so I think there must be something wrong with my phone, because I can't do any of that. When the screen goes off, regardless of whether it's from me pushing the top button or from the phone sitting idle for a certain length of time, all sound stops. It happens both with or without headphones connected.
I think I've searched through every possible setting in the "control panel" area. Is there some registry setting I have to change to make the phone allow programs to run after the screen turns off?
Certain programs will cause the screen to remain on indefinitely. It'll dim after a certain length of time, but it won't turn off. This allows the programs to continue running, but I'd like to get the screen to turn completely off. Is that possible?
I've got a Sprint Touch with the latest official Sprint WM 6.1 ROM and am using Slide2Unlock. Could S2U be causing this?
Thanks for any help.
Brent212 said:
I've read posts from people saying that they're able to do things like listen to mp3s, stream radio, etc. with the screen off, so I think there must be something wrong with my phone, because I can't do any of that. When the screen goes off, regardless of whether it's from me pushing the top button or from the phone sitting idle for a certain length of time, all sound stops. It happens both with or without headphones connected.
I think I've searched through every possible setting in the "control panel" area. Is there some registry setting I have to change to make the phone allow programs to run after the screen turns off?
Certain programs will cause the screen to remain on indefinitely. It'll dim after a certain length of time, but it won't turn off. This allows the programs to continue running, but I'd like to get the screen to turn completely off. Is that possible?
I've got a Sprint Touch with the latest official Sprint WM 6.1 ROM and am using Slide2Unlock. Could S2U be causing this?
Thanks for any help.
Click to expand...
Click to collapse
No, you need to do a registry edit on some ROMs.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MediaPlayer\ Preferences]
Then see if there is a value called "UnattendedPlayback". If not create a new dword entry and name it "UnattendedPlayback" and set it's value to 1. WMP should now play when in suspended mode.
That seems like it'd only work for WMP. However, I think I found the answer I was looking for.
Changing
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power\State\Unattended\WAV1:
to "0" seems to have done the trick. It was originally set to "4".
Now when I use Pandora (which was what I mainly wanted this for), I can turn off the screen and it'll continue playing.
hmm, even after changing both of those registry keys, mine still doesn't work. It pauses for a second when I turn the screen off, comes back for a few seconds, then stops again and continually stops/starts until I turn the screen back on. Any ideas? Thanks
That's what I was experiencing before I changed that registry key.
here's a cab for the second mentioned registry fix.
It's on me and my friend's premium account
so it should stay available for a while.
**Just tested on my phone!!**
*Not sure if it works with other phones besides HTC Touch,
but feel free to try at own risk*
http://rapidshare.com/files/220308931/SHK_Customs_Keep_Music_Playing_Registry_Fix.cab
Easiest solution is to use psShutXP. It will add a shortcut to turn off the display. If you use WisBar you'll get the same option. psShutXP is light, free, and easy to use.
This works for the T-Mobile Wing. It's the second registry edit made into a cab by codybear.
It works for the Pandora app perfectly. BTW, you can get the Pandora app for the Wing and possibly other phones HERE
Registry edit cab attached below for ease of access.
TheChampJT said:
Easiest solution is to use psShutXP. It will add a shortcut to turn off the display. If you use WisBar you'll get the same option. psShutXP is light, free, and easy to use.
Click to expand...
Click to collapse
no sense in using another app when you can just change a registry.

HW Keyboard Backlight OFF when it's not needed (WORKING SOLUTION pls)

Hi All,
Xperia's hardware keyboard is very good, and the backlight is really of help when the ambient goes dark or even darker.
The HW keyboard is also quite cool in the daylight, the buttons' surface letters are very clear and crisp.
But here we have, an especial feature: needless automatic backlight, in spite of bright (or not so) day light? The letters become blurry not to say hardly visible. Not to mention this is wasting battery, too.
Is there a way to turn off the HW keyboard backlight, when it's not needed?
XDA gurus, help our batteries live longer and us users type faster! Please...
I hear you!
Yeah i've noticed the same problem, so ive started making a program to set the brightness etc, ive interrogated the registry for the backlight and have a small app working now whare all the brighness levels and timmings etc can be modified.
I was going to add a menu on the progam to changes the settings based on time of day / profile used on the phone, the rogram would need to be ran in the backgroud all the time but im sure it would not drain the battery much to do this as its a lightweight process that will wait for the profile to change.
I can put up what ive done, its very simple and you can suggest improvments / whatever.
Main functions would be:
allow user to change settings based on their currently selected sound profile (on, vibrate, off) and they have individual settings.
Allow the user to change all backlight related values (I have 11 of them editable in my program currently.
I would like this to have the keyboard light off during the day really as the keyboard light coming on makes it hard to see keys during the day.
awshanks said:
Yeah i've noticed the same problem, so ive started making a program to set the brightness etc, ive interrogated the registry for the backlight and have a small app working now whare all the brighness levels and timmings etc can be modified.
I was going to add a menu on the progam to changes the settings based on time of day / profile used on the phone, the rogram would need to be ran in the backgroud all the time but im sure it would not drain the battery much to do this as its a lightweight process that will wait for the profile to change.
I can put up what ive done, its very simple and you can suggest improvments / whatever.
Main functions would be:
allow user to change settings based on their currently selected sound profile (on, vibrate, off) and they have individual settings.
Allow the user to change all backlight related values (I have 11 of them editable in my program currently.
I would like this to have the keyboard light off during the day really as the keyboard light coming on makes it hard to see keys during the day.
Click to expand...
Click to collapse
Sounds promising! Can you post your app? I would like to try it out.
Here you go...
It just modifies timers and sensors on/off at the minute, but its a start. I made it to give better control over the backlight for myself, happy to help others!
Thanks Andrew! Longlive Ireland!
awshanks said:
It just modifies timers and sensors on/off at the minute, but its a start. I made it to give better control over the backlight for myself, happy to help others!
Click to expand...
Click to collapse
Thanks, bud!
So Features
What do you want it to do?
look better? YES , lol!
i was going to use tab screen to seperate out the info, there are some more values to add that can be changed, i need to group them together (eg ac and battery ones) and have a proper explanation on them (input value limit etc.)
So let me know what are the features you would like (in order of priority) and i will get cracking, lets see if we can make a good little app here.
By now I only wanted the app to turn off keyboard completely. Hope the author will succeed in that. Though I'm afraid the HW keyboard backlight settings are hardware related issue solely, nothing to do with registry/driver routine.
All the other settings are quite handy to play with the backlight of the device. Perhaps a bit more detailed instructions and explanations will be just fine.
Yet the 'About' and 'Copyright' options, maybe some easter eggs - without it the prog is a no-go
Have you tried adding the key HKCU\Software\SonyEricsson\Illumination\QWERTYBrightness ? I found this one when digging into the illumination application.
This will override the automatic brightness values for the keyboard, setting it to a fixed brightness when the light sensor turns it on.
I've set mine to 50, which works fine even if the light goes on at daylight.
Thanks bro, this is very useful hint!
I noticed also, that with '50' (it's not 'key' actually, but a 'value', I input this as a REG_SZ value), light sensor works with HW keyboard much better, more adequate - no backlight when in sunlight or electric lamps at home or in office, slightly dimmer backlight when in the dark. That must save battery life too!
on8a said:
Have you tried adding the key HKCU\Software\SonyEricsson\Illumination\QWERTYBrightness ? I found this one when digging into the illumination application.
This will override the automatic brightness values for the keyboard, setting it to a fixed brightness when the light sensor turns it on.
I've set mine to 50, which works fine even if the light goes on at daylight.
Click to expand...
Click to collapse
Odeon said:
Thanks bro, this is very useful hint!
I noticed also, that with '50' (it's not 'key' actually, but a 'value', I input this as a REG_SZ value), light sensor works with HW keyboard much better, more adequate - no backlight when in sunlight or electric lamps at home or in office, slightly dimmer backlight when in the dark. That must save battery life too!
Click to expand...
Click to collapse
That's may seems silly but i cant find "HKCU\Software\SonyEricsson\Illumination\QWERTYBrightness"
I found only patters and default....
Could please help?
you shall create this parameter if it isn't available.
Odeon said:
you shall create this parameter if it isn't available.
Click to expand...
Click to collapse
I did and it worked! thanks
But still, isnt there anyway to turn it off?

App Request : Enable keypad backlight while screen is on

For any devs out there...
Would it or is it possible to develop an app that will keep the backlight on for the keypad ? i.e. On while the screen is on and go off when the screen goes off ?
In the dark its very annoying when using the Hero and having to fumble for the right key to press - Home, Back, Search etc.
i second that
well erm just press any key and the light will go on dude, you dont need an app for this
So you fumble and hit Home or even power off (to sleep) the screen when you only wanted to hit search or back.
Flicking the scroll wheel is the only way to light up the keys and not press the wrong one by mistake, but that tends to highlight a button, link etc... and sometimes if you hit the ball too hard, you select a screen element.
Still a pain and TBH not like any handset I used before. Backlight time out was always linked to screen time out.
You dont need to hit any key, just move the scroll wheel even slightly and lights come up. And it does need decent amount of pressure to press the scroll button, you wont accidentally press it.
er, yer, I know... but I don't want too
lets just say "even if it doesnt make sense to some people, WE want it!"
btw, there is one app "dark keys" that keeps the backlights of the keypads off all the time. this was made for the white G1. maybe it can simply be rewritten to make the reverse happen?
joemax said:
For any devs out there...
Would it or is it possible to develop an app that will keep the backlight on for the keypad ? i.e. On while the screen is on and go off when the screen goes off ?
In the dark its very annoying when using the Hero and having to fumble for the right key to press - Home, Back, Search etc.
Click to expand...
Click to collapse
+1
i'm beeing annoyed by the keys not being lit as well ...
Glad I'm not the only one
Yeah, I want it too. Thanks for bringing this up!
I think it's good idea, btw it looks cool at night. I want it too
Good idea. +1
So which dev is gong to earn a couple of $$, ££, €€ by writing this for each copy sold then ??
From what I can tell of the API docs (http://developer.android.com/reference/android/os/PowerManager.html, the SDK only allows for the keyboard backlight to be on in FULL_WAKE_LOCK state, meaning the screen will have to be full brightness.
So I don't think this request can be achieved by a pure SDK app.
How come it lights up at any screen brightness on the Hero ?
Surely its also a hardware call and not just an OS call ? These would be independent of Android and particular to each manufactures handset, else they would all be the same.
Not questioning you, but it would seem strange that its not addressable separately to the screen ???
joemax said:
How come it lights up at any screen brightness on the Hero ?
Surely its also a hardware call and not just an OS call ? These would be independent of Android and particular to each manufactures handset, else they would all be the same.
Not questioning you, but it would seem strange that its not addressable separately to the screen ???
Click to expand...
Click to collapse
I'm by no means an Android SDK expert, just posting what I found in a quick search round the docs. Happy to be proven wrong!
Lee
Of course - wasn't criticising at all
Might be able to dabble in the /sys/class/leds/ folder.
I'll take a look when I get in.
Not a dev though. Lol.
soulehmoo said:
Might be able to dabble in the /sys/class/leds/ folder.
I'll take a look when I get in.
Not a dev though. Lol.
Click to expand...
Click to collapse
Correct.
echoing a value to:
/sys/devices/platform/i2c-adapter/i2c-0/0-0066/leds/button-backlight/brightness
through adb shell turns on the backlight.
I think an SDK app could be created as a service with a broadcast receiver listening for the power state changing that just writes a positive value to the file above.
Loads of similar examples here: http://forum.xda-developers.com/showthread.php?t=565015
I'll take this on, just about got it working.
Wicked thx
You are stars (especially fullerlee)
Don't make it too expensive though

Backlight control per app?

Are there any tweaks/apps that allow you to tailor the backlight's behaviour depending on what app you are using and set it up to suit each one?
I can't find anything like that but the reason I'm asking is as follows.
I want the backlight to stay on indefinitely when I have adobe reader open, but I don't want it to stay on indefinitely for anything else.
I read ebooks in adobe reader and it has no setting for this, so you either have to change the overall backlight settings to stay on then change them afterwards or just put up with constantly having to touch the screen to get the backlight on again.
What I'd like ideally is something almost like the Changescreen app (for rotation) where you can choose the apps you want and set how the backlight behaves when each app is in use.
Is there anything that does this? Or have I overlooked some really basic way of doing it?
Cheers
You can try Lumos: http://forum.xda-developers.com/showthread.php?t=450318
Thanks mate - that could be just the ticket.
Bah - tried to install it and as soon as I click it I get a "Installation Unsuccessful" error.
I'm on a custom rom but I forget which...
Bugger - looks like it could have been perfect.
Hmmm, I've installed Glight now to try that out but I can't get it to work for some reason.
It's enabled.
The phone's own auto backlight control is disabled.
I've added adobereaderle.exe as an exception and set it so it keeps the backlight on permanently.
I've done soft reset.
But it still switches off after a minute or two. I am talking about the backlight also, not the phone's standby. Ie with an acrobat doc open the light turns off after a minute or two then the phone goes into standby shortly afterwards. I guess ideally an app that deals with this would also be able to prevent standby for specific apps too.
Have I got the correct filename for Adobe reader or is there something else I've messed up? That's what I saw it as on the phone somewhere (I forget where but that's definitely what was written).
It will be nice obviously if I can make this work but I have to be honest and say that using Glight is a horrible user experience. It's a case of tapping the screen and waiting a few seconds for every single response. When you're trying to position the cursor in the exact right spot (ie to edit text or a typo etc) on the capacitive touchscreen with your finger this can take many screen taps, and it's pretty frustrating! But better that than nothing obviously!
I'm interested in this too. I tried Lumos and it works as for setting the backlight for certain apps (like max. brightness for Adobe Reader etc.), however it still doesn't prevent the phone going into standby, which is the main problem when trying to read something.
check this out:
http://forum.xda-developers.com/showthread.php?t=661472

Categories

Resources