Related
hi,
here's solution for BT/wifi/gprs/AS dissonnect, when device is in 'unattended' system state.
under [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power\Interfaces] there you can see following:
{EB91C7C9-8BF6-4a2d-9AB8-69724EED97D1}=Power-manageable NDIS miniports
now, check what do we have here:
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power\State\Suspend]
do you see it's GUID there?
{98C5250D-C29A-4985-AE5F-AFE5367E5006}
default=4
(Off - see below)
that means, on suspned, those devices are powered down.
try to change it to:
default=0
That means ON
I was also too lazy/busy to make a cab for it... maybe later or DYI. ;o)))
The same stuff can solve those vertical stripes on Himalaya, when the device is suspended.
Here's a description of "Device Power States":
Full on -> D0
State in which the device is on and running. It is receiving full power from the system and is delivering full functionality to the user.
Low on -> D1
State in which the device is fully functional at a lower power or performance state than D0. D1 is applicable when the device is being used, but where peak performance is unnecessary and power is at a premium.
Standby -> D2
State in which the device is partially powered with automatic wakeup on request. A device in state D2 is effectively standing by.
Sleep -> D3
State in which the device is partially powered with device-initiated wakeup if available. A device in state D3 is sleeping but capable of raising the System Power State on its own. It consumes only enough power to be able to do so; which must be less than or equal to the amount of power used in state D2.
Off -> D4
State in which the device has no power. A device in state D4 should not be consuming any significant power. Some peripheral busses require static terminations that intrinsically use non-zero power when a device is physically connected to the bus; a device on such a bus can still support D4.
buzz
Thanks Buzz trying it now, one question though. Wouldnt changing it to 2 work best? Im thinking of the power drain when setting it to 1 or does it not consume that much power? Thanks
efjay said:
Thanks Buzz trying it now, one question though. Wouldnt changing it to 2 work best? Im thinking of the power drain when setting it to 1 or does it now consume that much power? Thanks
Click to expand...
Click to collapse
do whatever you like... )
According to msdn:
"Device Power state definitions are statically predefined."
However:
"OEMs define system power states. They are referred to by OEM-defined names such as On, SystemIdle, OnBattery, InCradle, OutOfCradle, and so on. These names are not predefined, and are not necessarily ordered in a linear way. You define system state names as registry keys in the system configuration. There is no limit on how many system power states you can define."
)))
buzz
Thank you buzz for the tweaks so far
Since u got into the power management tweaks, on our BA's when it's on cradle or charger specifically on WM2003-Se the phone doesn't vibrate when incoming call arrives, but on magneto it vibrates when it's connected to power is there a tweak to disable the vibrator when it's plugged to the cradle/charger ?
wow great buzz, will this fix the BT problem under BA WM5 as well?
Doesnt fix it for me with my BA and a SE HBH-200.
Edit: What i noticed was it didnt seem to affect BT but with wifi setting the entry to 0 would cause wifi to shut off completely if you turned the phone off and back on again. What would normally happen for me is wifi will still be on but would need to be restarted after the phone has come out of suspend.
Buzz is this fix for the BA or just Himalaya?
efjay said:
Doesnt fix it for me with my BA and a SE HBH-200.
Edit: What i noticed was it didnt seem to affect BT but with wifi setting the entry to 0 would cause wifi to shut off completely if you turned the phone off and back on again. What would normally happen for me is wifi will still be on but would need to be restarted after the phone has come out of suspend.
Buzz is this fix for the BA or just Himalaya?
Click to expand...
Click to collapse
well, headset doesn't use network miniport, i'd say...
i've got HS801 here... let me test the headset.
buzz
...later on, i found, that if you press the power button, the device goes into "unattended" mode.
That means, we also need to do the changes there.
There is no NDIS miniport GUID defined, so it takes the default value of 4, which is power down...
The stripes and audio solution is also in there...
to be continued...
buzz
HKLM\\system\\currentcontrolset\control\power\State\ "default" set to "0"
HKLM\\system\\currentcontrolset\control\power\State\Useridle\ "default" set to "0"
HKLM\\system\\currentcontrolset\control\power\State\resuming\ "default" set to "0"
HKLM\\system\\currentcontrolset\control\power\State\resuming\{eb91.... "default" changed to "0"
HKLM\\system\\currentcontrolset\control\power\State\{98c5.... "default" changed to "0"
Well, did the thing above, first there was no change visible, so i resetted my device.
Well my wifi was activated and connected after the reboot.
my device suspended anyway.
but once i activate the device again, the wifi turnded on, but the device is not able to connect to the AP. think i miss some additional registry settings to flush the network config, since the lease on your ip adress is terminated. or something else, i dont know. but had this before with the jasjar wifiautoonn and wifiautooff exe's 8)
But there are mountains of registry things here, so i try more.
let's have some fun with those power settings...
open your regeditor and change
[HKLM/system/currentcontrolset/control/power/state/on]
"bkl1:"=dword:4
and
[HKLM/system/currentcontrolset/control/power/state/backlightoff]
"bkl1:"=dword:0
after changing the regs, press power button to off and on again. that will flush and apply new settings.
ok. the above settings will REVERT backlight's behaviour. I mean, when device is on, backlight is off. after inactivity timeout, light goes on.
well... funny experiment...
that proves, that devices could be powermanaged from here.
if you've had enough fun, revert those settings to normal. ;o)))
now set in:
[HKLM/system/currentcontrolset/control/power/state/unattended]
"bkl1:"=dword:0
that SHOULD turn the backlight on, when you leave the device untouched for a longer time (when the display goes off) or if you press the power button.
so leave it untouched and watch the display to see what's gonna happen on the 'unattended' state.
after approx. 5 minutes (never measure that), just when the display is about to off itself, BACKLIGHT FLASHES for a second and goes OFF.
why? we just said, bkl1:=0 (ON)?
so our settings are overriden. maybe that 'flags' settings?
lets see later, but exactly the same happens with BT connection even if we say ON, it goes off...
This also affects connection power management.
[HKEY_LOCAL_MACHINE\Comm\Parms]
AllowSuspend=dword:1
set to dword:0 and your network connections will not power down.
When my device is craddled and has ActiveSync connection it doesnt disconnect now, when power button is pressed.
more here
buzz
buzz_lightyear said:
This also affects connection power management.
[HKEY_LOCAL_MACHINE\Comm\Parms]
AllowSuspend=dword:1
set to dword:0 and your network connections will not power down.
When my device is craddled and has ActiveSync connection it doesnt disconnect now, when power button is pressed.
buzz
Click to expand...
Click to collapse
It didnt work for my device
any program
any program that can search for an unsecured wifi connection every 2 minutes or so?
that would be really nice..
Can help me
i think that you can help me. My device ia a Ubiquio 401 and this device have issues with GSM signal when it is in sleep mode. How to solve?? Or, thaere are any solution to powe button only turn backlight off, no suspend??
I would really love this to work on my diamond but it doesn't
I set the first value to 0 (in the first post) and
[HKEY_LOCAL_MACHINE\Comm\Parms]
AllowSuspend=dword:0
the wificonnection still searching everythime I get back from suspend mode..
any ideas for diamond users? :S (WM 6.1)
ramram said:
Thank you buzz for the tweaks so far
Since u got into the power management tweaks, on our BA's when it's on cradle or charger specifically on WM2003-Se the phone doesn't vibrate when incoming call arrives, but on magneto it vibrates when it's connected to power is there a tweak to disable the vibrator when it's plugged to the cradle/charger ?
Click to expand...
Click to collapse
Sent from my Freeza MD4 Stock Rooted Galaxy S3
Maybe this shows that I am a noob, but here it goes.
I want to save my battary power when running the GPS, but all the power saveing settings turn the phone onto standby, thus loosing GPS lock (and when I am using my better bluetooth GPS, it locks out the bluetooth and I have to re-boot). Is there some why to just turn of the screen? Is that "an app for that"? I am currently trying out SVM Power Manager, but you can not set it to turn the screen off in 2 minites or whatever. To use it how I need, I would have to turn off the OS's power saver, and always manualy turn off the screen using SVM Power Manager. All the power manager apps I have seen work like that.
Help!
you will probably have to buy an extended battery man. i think even real android phones batteries drain pretty quick from what i hear.
Did some testing. It seems that the battery will last for about 5h with the screen of (using SVM Power Manager to turn it off), and the GPS running (GPSed running it).
Understood that the battery is just under powered, but I was wondering if there was a way to make the screen automaticaly turn off after X amount of time, but not have the phone go into standby.
I also bought one of those battery powered battery chargers (battery extender). But the one I got turned out to have only 500mAh (compared with 1100mAh in the phone battery), so it turned out to only help a bit. Maybe I will try to make one with a voltage regulator and a rechargable 9V battery
I think one of the pmsleepmodes may support this (in default.txt) Try 2 or 3. It seems like one of these didnt do a full power collapse, but did turn the screen off.
katmandu421: I am not familiar with this stuff. Can you give me a bit of a more detailed explination?
Is this a built in windows mobile funciton. Can I access this in the registry?
I love it how most of us would assume he's talking Android. Yes in android, editing your default.txt to sleep mode 0 would turn off the screen, but not sleep the system. 1,2, or 3 would allow the different system board types used in various Vogues to go to sleep.
WinMo however is a different story. The GPS in the Vogue is a low power chip, but from everything I can gather is requires the system to stay fully awake. If you find an app that allows you to turn off your screen, post back but I don't believe there is much hope to that. Windows seems to think that when the lights go out, it's sleepy time.
Also, the radio on the Vogue doesn't sleep, and it's use to wake up the phone i.e. incoming calls. The GPS is part of the radio so if there is a way to keep the system board awake, in theory it should work.
SVM Power Manager will turn off the screen while keeping everything awake, but it is not automatic. I have maped the camera button to this program, so it is not a huge hassle, but I realy would like to have it automatic.
Will consider installing Android.
Titus_Andronicus said:
SVM Power Manager will turn off the screen while keeping everything awake, but it is not automatic. I have maped the camera button to this program, so it is not a huge hassle, but I realy would like to have it automatic.
Will consider installing Android.
Click to expand...
Click to collapse
Did anyone ever figure out how to do this? I'm trying to figure this out as well. After finally getting GPS to work, now I'd like to be able to use some apps that need to run when in standby.
mnations said:
Did anyone ever figure out how to do this? I'm trying to figure this out as well. After finally getting GPS to work, now I'd like to be able to use some apps that need to run when in standby.
Click to expand...
Click to collapse
Check on Dev&Hacking. An app just came out today that does exactly what you are asking for here.
http://forum.xda-developers.com/showthread.php?goto=newpost&t=707458
Enjoy
egzthunder1 said:
Check on Dev&Hacking. An app just came out today that does exactly what you are asking for here.
Enjoy
Click to expand...
Click to collapse
Thanks! That looks like a handy app.
An update (in case anyone hits this thread later)...I made this one change which seemed to clear up all of the problems (found elsewhere but can't post outside link yet.)
[HKEY_LOCAL_MACHINE\Comm\ConnMgr\Providers\{7C4B7A3 8-5FF7-4bc1-80F6-5DA7870BB1AA}\Connections\Phone as Modem]
"Enabled"=dword:00000000"
Now this is in conjunction with QuickGPS and all the other fiddling I've done, so I don't if this alone is responsible.
However, when running Google Maps or other GPS applications I get a lock within 5-15 secs. Also, when coming back from standby it's able to re-lock in the same amount of time. This normally required a soft restart before.
For apps that track your routes, such as SportyPal which I've been using for mapping my bike rides, they can keep a lock even in standby mode. I'm not sure if the app itself is able to hold a lock or if QuickGPS may be helping it. Either way it works.
The turn on wifi automatically feature in the Topaz 6.5 HTC comm manager is a nice thought for saving battery life but it drives me nuts. Most programs, like Opera, will trigger the wifi to kick on when needed. But other programs, like Slingplayer Mobile doesn't kick the wifi on automatically. So, every time I run it I have to manually toggle the wifi to get it going again. Basically, as soon as it's in standby, the wifi goes off and STAYS off until needed. I want it to always come back on after waking device up. I do NOT want a hack for keeping it on in standby.
My Touch HD's comm manager says 'Connect to a Wi-Fi network'. Once I turn it on, it stays on no matter what. As soon as the phone is taken out of standby, wifi instantly reconnects. This is what I want my Topaz to do. But as soon as I wake it from standby, wifi is off until a program needs it. Good idea, not working well enough for me though.
Any help would be greatly appreciated.
i had exactly the same problem... :-((
Try the TD2 Tools.
Hi All,
in the company I work for we use a range of XDA's for our drivers, the current and most popular one is the HD2, however i have noticed that drivers are able to put the XDA to standby, normally this is a requirement, however for the system we are using it causes major issues and provides the driver a way to cheat the system.
What im looking for it a way to disable the hardware buttons when the device is switched on, i imagine there may be a registry edit, but im not sure and need help as this is becoming a pressing issue.
Thanks
M
Your request is very peculiar, and I seriously doubt that you can achieve something like that, after all completely disabling the hardware buttons can impair seriously the functionality of the device and I don't think there is a pre-set method to do that.
Anyway, I've seen a thread that talked about reassigning the shortpress on power button to something else (and I'm talking about shortpress, not longpress), yet this didn't work on the HD2 when I tested it this morning.
Anyway, if your system is debunked by putting the device in standby, it will also troubled by simply removing the battery. In other words, you can put a strong password to forbid a user from turnning off a pc from the start menu, but you cannot forbid this user from pulling the plug off the mains
Anyway, a very feeble solution could be making so that whatever is that's thrown off by the standby, keeps working even in standby; there's a tweak for wifi that allows wifi radio to stay on during standby, and probably forcing the wifi always on, and tweaking it from bsb to be on even during standby, it will also force the CPU of the device to be on even if you lock the phone by press endkey
Dont really want to give too much away, but our application uses gprs/3g and gps constantly, and by going into standby it loses connection with our servers and gps, thus allowing users to go standby in one area and then turn back on somewhere else but system thinks they are in area 1 until they move to antoher area again. this causes a major issue and headache for me, so what i really need is for the app to remain live when in standby and to keep the data and gps connection live
hope that makes sense
Hi,
These threads may help:
http://forum.xda-developers.com/showthread.php?p=6417238
http://forum.xda-developers.com/showthread.php?t=661472
had a look at those links and the second won looked like a winner, but when hit the HW power button the device still goes off, however i noticed that it kept its gprs connection, but it still lost gps which is one of the main factors. Just need some way to stop the device from turning off, apart from removing the case and then removing the buttons
railto said:
had a look at those links and the second won looked like a winner, but when hit the HW power button the device still goes off, however i noticed that it kept its gprs connection, but it still lost gps which is one of the main factors. Just need some way to stop the device from turning off, apart from removing the case and then removing the buttons
Click to expand...
Click to collapse
try this:
Change this with your registery
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contro l\Power\State\Resuming]
"gps0:"=dword:00000001
"gpd0:"=dword:00000001
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contro l\Power\State\Unattended]
"gps0:"=dword:00000001
"gpd0:"=dword:00000001
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contro l\Power\State\Suspend]
"gps0:"=dword:00000001
"gpd0:"=dword:00000001
Normaly the numbers are on "4" - put this on "1" and gps should stay awake even when you put the phone in standby.
It will stay on until a program stops using the gps.
found it here
http://forum.xda-developers.com/showthread.php?t=676267
railto said:
had a look at those links and the second won looked like a winner
Click to expand...
Click to collapse
It's the first one you should try. Works fine for me.
http://forum.xda-developers.com/showpost.php?p=6416870&postcount=6
But frankly if they do it on purpose they will no doubt find other ways to do it - so you should rather build in some protection in your software to detect it, like if 2 consecutive positions are at the same place but with more than a certain amount of time apart, it's that they turned the thing off / cut connection on purpose/...
EDIT: wilcovh beat me to it.
those reg edits have been confirmed not to work... at the time being there is no way to have the GPS stay on while in standby, and that's a pity. I am personally interested in this and have researched in the forums, yet no working method was devised (yet). And I would love to be corrected by someone, but all the solutions I found were app specific (as in, app turns off screen without turning off GPS).
So, unless the drivers should have a personal reason to "cheat" the system by turning off the GPS, just instruct them not to press that button
If they just want to turn off the display, you can make it so that they do just that without actually locking the device, by associating, as I did, longpress on send key, with xdashutdown /lightsout command. That will turn off the screen but the phne won't be locked nor put to standby.
the theory of having gps active while on standby is moot and now useless, i need to stop the device going into standby mode period
to my best knowledge you can't really do that; I mean, you can programmatically disable automatica standby in an app by calling a function to reset the idle timer, yet the power button will put the device into standby.
I'm almost positive neither AEbutton plus can remap the power button short press on the HD2, but giving it a try won't hurt that much
railto said:
the theory of having gps active while on standby is moot and now useless, i need to stop the device going into standby mode period
Click to expand...
Click to collapse
other approach:
app that wakes up the device after a minute or so? the gps only disconnects for short time.
railto said:
the theory of having gps active while on standby is moot and now useless, i need to stop the device going into standby mode period
Click to expand...
Click to collapse
But that's solved already!
The keepAwake app posted earlier, music players keeping playing when pressing the off button, IM clients continue to run and receive messages after pressing the power button (implies both processor running and internet connection active)... in these cases, like any app that does the required system calls to disable standby while it's running, the device won't go to standby.
The only real problem you're facing is that GPS goes off when the power button is pressed, regardless of whether the rest of the device actually goes to standby or not (try running a GPS app while playing music, press power button, music still plays but GPS turns off).
Now we pointed some hints for you - you can try them (the reg edits for GPS apparently work in some cases but not all), but if they don't work then you're alone on that one, no solution is known. And tbh I've never seen any device on which you can disable the power off key, and it's obvious why...
Hi,
some people asked what to do until their DHD arrives. They proposed some games...
I have a better suggestion.
Many people suffer short battery and there are many discussions and tipps like turn your GPS off, disable 3G connection if you don't need it. That's all perfectly right. Do you now that you can perfectly automate this by using an app called tasker. You can configure very very much.
I don't have an android phone at the moment (waiting for my DHD), but I have a vision what to configure when it have arrived. I would like to write and test the scripts beforehand but I can't. See my configuration proposals below. Maybe somebody with an android phone is happy to script it and shorten waiting time. Or somebody with a DHD can do it and report the effect.
Description - Version 1.0
Number 1a:
IF the screen is locked/black screen (I'm not using the phone)
switch to 2g
ELSE (screen is unlocked)
switch to 3g
ENDIF
Alternative Number 1b (Even more powerful):
IF the screen is locked/black screen and I'm not using the phone
switch to 2g and switch off data connection.
every 30 minutes switch on the data connection for 5 minutes for synching (facebook and so on)
ELSE (the screen is unlocked)
switch to 3g + data connection
ENDIF
**Description number 1: It's quiet energy consuming for your the phone to hold the 3g connection, even more in areas with bad connection or during driving/moving. On the other hand you don't need that fast connection if you don't surf or use apps. So if your phone is locked only 2g is used. This is enough in order to sync facebook & co. This first condition is also known as juicedefender mode
Number 2:
IF navigation/maps software is started
switch GPS on
ELSE
Leave GPS off
ENDIF
**Description number 2: GPS is energy consuming as well. So turn it off and let it turn on if the apps x, y, z are launched.
Number 3:
IF I'm in a predefined GPS oder cellular zone (at home)
Turn on WLAN
ELSE
turn off WLAN
ENDIF
(This means if I'm leaving home, WLAN turns off.)
**Description number 3: WLAN is energy consuming as well. So turn it off and let it turn on if you are in an are where you know you have WLAN, e.g. at home, at work, at you daily coffee shop.
Number 4:
IF phone is switches in the car holder
switch GPS on
start the car panel
start mp3 player (Winamp beta)
(some people may ad "turn on bluetooth" here)
ELSEIF the phone is switched off the car holder
turn off GPS
stop car panel
stop MP3
ENDIF
(This means if I'm leaving my car, GPS is turned off)
**Description number 4: Just to make live comfortable.
Click to expand...
Click to collapse
prob not the correct spot to ask, but how battery consuming is tasker? I've tried locale on some of my older android phones and they drained more battery with locale then without due to polling time and position, is tasker any different?
Can Tasker switch 3G to 2G and vice versa? Last time I checked, it cannot do that.
Came from the developer:
http://groups.google.com/group/tasker/browse_thread/thread/acda45a4fac8a651
@arielext: Tasker does not drain a lot of battery. I own and use Tasker, my HTC Desire battery life is still the same compare to before using Tasker.
arielext said:
prob not the correct spot to ask, but how battery consuming is tasker? I've tried locale on some of my older android phones and they drained more battery with locale then without due to polling time and position, is tasker any different?
Click to expand...
Click to collapse
From the examples I see above it seems that Tasker doesn't act on locations but on hard coded rules.
Nevertheless, I wonder if the monitoring of all the conditions I see in the scripts will actually save the battery. Are there any comparissons made?
I am having a problem with the GPS on in Tasker. I try to turn it on when the Car Panel starts (no dock to dected so far), but it seems to ignore tasker command. The task runs ok, as I placed a notification sound for testing, but the GPS just stays off. Anyone experiencing the same problem?
(it did work on Milestone with Locale)