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
Related
So, after diggin' for long time in registry on Pocket PC 2002 ROMs I've found nice feature - HKLM\System\CurrentControlSet\Control\Power\
(may vary cause this is from 2003 ROM, for now I have but was like this and works on 2002), has value WakeUpPowerOff = 180 (by default).
This value (in seconds) determines, how long device will be on after:
1. power on by "power" button (and no other activity - no taps, no any hardware buttons pressing) - it userful for example to see "what's on
today", time, etc...
2. power on by incoming event like SMS or calendar one.
And after you touch screen\ other button - then as I found starts another, "original" timer, defined in Start->Settings->System->Power.
I've set above WakeUp parameter to WakeUpPowerOff = 12 (smallest that works really at mine device) and what I got? This:
When I need to look into today's or time or missed calls etc - I just press power look at screen and devices turns iself off byself. Not great effort but - heh - longer live for power button
But this is more important: When incomes SMS (I have gate from internet inbox to sms so have a lot of smses) - devices comes on only for 12 secs - for day it increases significantly battery life. (aha - 180sec and 12sec - differs!) (etc...). So we can set auto Off timer for 1 minute and work in normal mode (when we tap or read something, smaller is not so much siutable), but with this WakeUp timer also when we don't use device we get very small time to byself on\off-ing and longer battery life.
But after appearing 2003 in my wallaby and then after bying himalaya I have changed this parameter with no effect.
Now I find solution!
We need to change one more parameter in that registry subdirectory named:
DisableGwesPowerOff=1 by defalut. Simpy set it to 0.
And now on my XDA II (and on XDA I with 2003) this hacks works.
I think this will be userful for our XDA community. Thanks for paying attention for this text.
Hey, that is a very, very cool hack! I have always been annoyed when my XDA2 is in my pocket and I receive an SMS when I can't reply. During the 2 minutes before it switches itself off I find that the screen gets pressed a lot in my pocket with sometimes disastrous results.
This hack seems to have no side-effects at all. The XDA2 stays switched on in the cradle and changing the Power-off-on-battery setting doesn't reset this auto-off timer.
I dare to suggest even that it is perfect! Thank you very much nugged.
Thank you realy love this one :idea:
Works fine with 5sec off on XDAII.
goodluck
2 SiliconS: That's some kind of pleasure to share with info and to help.
2 eme: 5 sec? hmm... Ah! I think I have bigger lag cause I have setted up password protection and maybe it needs some time to initialize after on/before off... You haven't password protection on?
Anyway - it's works.
I've just had a thought: does this hack affect the alarms and appointment notifications? Does the machine turn itself off after 12 seconds and stop the alarm working? That might be a problem for some people if so. I can't test at the moment - my wife is asleep
Edit:
Just tested, quietly . It does affect the alarm. I set a repeating alarm. The machine turned on, sounded the alarm once and then switched off. When I turned it on again a few seconds later it sounded a repeat.
I think this hack is excellent if you don't use your XDA2 for alarms or notifications. Otherwise it might cause problems. :?
@nugged:
every PocketPC turns itself automatically on at midnight, to perform some magic regarding alarms etc. It is a known problem that sometimes it turns off too soon again, before having finished its work. There are even programs to make this time-out longer. Question: does you hack also affect this time-out, or is it something completely unrelated?
Cheers
Daniel
2 tadzio: Mine never do this. What "reorganization"? Mine works fine, don't miss any appointments and haven't midnight magic power-ons ...
2 SiliconS: Yes, so that's maybe who need to have long alarms install additional soft and\or set up time longer, smth like 15 seconds.
As for me - yes, I use mine device lot of time so it often in mine hands and at my eyes so I don't need long alarms.
Lets explore info above (at 1st post) here more deeply maybe someone find solution for short WakeUpPowerOff time and working long alarms if needed.
Put down the pipe!!
What are you guys on, hacking the on time? I must be really confused... what about just using the power settings to turn of backlight after 10 seconds and power off if not used for 1 minute?
That's all I ever do and mine lasts easily through a weekend with a few hours of talk time and checking my e-mail at least 20 times.
2 wayandrs: That's your decision If you satisfied with that standard system - good . Anyway - it's not an order - it's just advice
Look - when you setup to run your backlight off after 10 seconds - try to work normally then .
nugged said:
2 tadzio: Mine never do this.
Click to expand...
Click to collapse
Yes, it does. You just don't see it because it's only a partial power-up: the display does not get switched on.
The OS needs to clean up appointments, and set alarms for the new day. Most of the time it succeeds, but sometimes the device powers off automatically before the OS could finish, resulting in alarms not going off. This is what tools like "Wakeup Tweak" are for - they just extend the time-out until the device powers down again.
Also, zendrui (the PocketZenPhone author) had a lot of... umm... fun with this feature when users configured PocketZenPhone to automatically switch modes at midnight. Ask him, I think he knows a lot more about this than he ever wanted to know.
Cheers
Daniel
I miss the old 2003 future and wish SMS dose not turn IMATE-II on..
hope some body listen there and give a soltion. it was built in before some bodies complain about it.
2 eme: 5 sec? hmm... Ah! I think I have bigger lag cause I have setted up password protection and maybe it needs some time to initialize after on/before off... You haven't password protection on?
Yes, no password protection.
Btw I managed to connect over BT to Linux machine and have acces to local net and web. That 's nothing ok. But managed also to use device cca
100m+ away form my BT acces point. Just put USB dongle on extended
cable and if possible outside of your room. My is on the attic.
Think, PC makes som interference to BT rx for sure. If anybody interesting
on this can write som more..
goodluck
2 eme: after setting this hack do you have some troubles with 'midnight self turning-ONs of device with turned off display and some reogranization' as tadzio has?
2 tadzio: so, device turning itself on withot turning on display? Sounds very interesting. Anyway - we can say so our devices stays on every time even turned off by the key, they only slowing down processor and turning off display and some hardware, cause they need to refresh SDRAM memory, to track and remember appointments to wake up at needed time, etc.
And, anyway, if this 'midnight ONs' are have place, if they are not turning on display - ppc works in another mode and I think this registry value is not related to them. But this - for me - is very strange information.
Please, Daniel, give detailed info/links, if you know this question good or don't bewilder other peoples, who read this topic.
nugged said:
2 eme: after setting this hack do you have some troubles with 'midnight self turning-ONs of device with turned off display and some reogranization' as tadzio has?
I do not have any appointments stored in my device.
Cant wait for Linux to run on it with graphical enviromet.
Than we can all forget this misterious M$ hacks.
Click to expand...
Click to collapse
eme said:
nugged said:
2 eme: after setting this hack do you have some troubles with 'midnight self turning-ONs of device with turned off display and some reogranization' as tadzio has?
Click to expand...
Click to collapse
Oh, I didn't mean to say that I have any problems. In fact, before I apply this hack I wanted to make sure that it will likely not cause any problems, that's why I asked if the author knows about any possible interaction between the midnight wakeup and his hack. I would suspect there is none, but I am not sure.
Cheers
Daniel
Click to expand...
Click to collapse
nugged said:
Please, Daniel, give detailed info/links, if you know this question good or don't bewilder other peoples, who read this topic.
Click to expand...
Click to collapse
Here is more information about this: http://www.mtekk.com.au/browse/page826.html
Cheers
Daniel
problem need help
Alrite i tried with a 12. It works well. As expected, but things happen when my phone rings, with a long rintone i have, it got cut off and then it went back to standby mode, making the call still ringing behind the background, after a while it was turn on again. It annoying when i cannot hear the first part of the ring. I end up not picking up importants calls... Anyway to help this desperado? ow i want to change back but its like the same...
After playing with the BattUserIdle in \\HKLM\System\CurrentControlSet\Control\Power\Timeout and noticing that it seemed to add another power state, I searched and found this post: http://forum.xda-developers.com/vie...stdays=0&postorder=asc&highlight=battuseridle
about the UserIdle power state.
I found the same results that the display and touchscreen would turn completely off in this mode on my Apache (the original post was for the Wizard - which is why I am posting this in the device-neutral group) but the system still seemed to be active in the background and could be woken very quickly by any button press.
There are a whole bunch of parameters that I would love to find out about in the Timeouts Key:
ACResumingSuspendTimeout - There have been numerous posts about using this to improve alarms. In seconds
ACSuspend - in seconds
ACSuspendTimeout - As configured from the Advanced page in the Power Settings. In seconds
ACSystemIdle - in seconds
ACUserIdle - Seems to be another "low power" state which turns off the display but comes to life faster than suspend. In seconds
BatteryPoll - in ms
BattResumingSuspendTimeout - There have been numerous posts about using this to improve alarms. In seconds
BattSuspend - in seconds
BattSuspendTimeout - As configured from the Advanced page in the Power Settings. In seconds
BattSystemIdle - in seconds
BattUserIdle - Seems to be another "low power" state which turns off the display but comes to life faster than suspend. In seconds.
There is limited documentation here: http://msdn.microsoft.com/library/d.../html/wce50conPowerManagerSuspendTimeouts.asp
but it is limited help.
A bit more documentation on the states is here: http://msdn.microsoft.com/library/d...dk5/html/wce50conExampleSystemPowerStates.asp
What would be nice is if we cound develop some documentation which allows us to configure the power states, and identify what devices are on or off.
There is another section \\HKLM\System\CurrentControlSet\Control\Power\State which contains the various states and what power mode the device should enter.
You can add exceptions, which is what is done in this thread:
http://forum.xda-developers.com/vie...days=0&postorder=asc&highlight=wm5+ring+delay
for the wav device (the WM5_Ring_Delay_Patch_PM-v1.2.zip file does this) by simply listing the device, for example wav1: and for the value putting the state that you want it to enter (0 = on, 1 = user idle, 2=system idle, 3=suspend, 4=suspend + NDIS mini ports)
I am playing with the settings now and if I find out more will post an update.
Geoff
Actually, this is really interesting find. Imagine controlling the device's power states, it can help to solve some problems, especially:
- wifi resume (BA)
- bluetooth connection loosing during stand-by (BA)
- push mail via wifi (BA)
I'm going to try to start working on getting to the bottom of the BA bluetooth "wake up" issue. Keep posting back anythink you find on this issue as this could greatly help out. I'm going to read up on all of this and look around to see if there is anything else that could be of help.
Any update or new finds on the BT wake up issue anyone?
Ok, I'm sorted with the BT tray app now from c0rnholio, good bit of kit that does exactly what it says on the tin.
Does anybody know of a tray applet to turn wireless on and off?
I've searched but my search string obviously isn't imaginative enough.
You can try this, and the other one is for bluetooth
Spot on thanks!
bigsmart said:
You can try this, and the other one is for bluetooth
Click to expand...
Click to collapse
http://www.silentservices.de/btIO.html
I think there is a later/newer version of the bluetooth util there.
There is, I've already got the 0.5 version. Thanks for the steer.
wifiIO
Just a warning. I removed wifiIO from my webpage because there is a bug in it which _may_ lead to system freeze. I found that if your device has wireless enabled through wifiIO and after that goes to standby (screen blacks out) this sometimes will result in a 100% cpu usage. So be carefull with this release.
The reason is, that my program directly tells the wlan nic to got to full power without correctly involving the systems power management. I tried to make a power up request to the power management for the wlan nic but it simply does nothing. I will try to fix that in the next release, but don't expect it to be soon.
Cheers
c0rnholio said:
Just a warning. I removed wifiIO from my webpage because there is a bug in it which _may_ lead to system freeze. I found that if your device has wireless enabled through wifiIO and after that goes to standby (screen blacks out) this sometimes will result in a 100% cpu usage. So be carefull with this release.
The reason is, that my program directly tells the wlan nic to got to full power without correctly involving the systems power management. I tried to make a power up request to the power management for the wlan nic but it simply does nothing. I will try to fix that in the next release, but don't expect it to be soon.
Cheers
Click to expand...
Click to collapse
Cornh0lio, I've noticed this and managed to get round it by either turning off wifi before the machine goes into standby or by turning off and turning back on as soon as it comes out of standby. It's still a better 'one-click' solution than going through comm manager.
c0rnholio said:
Just a warning. I removed wifiIO from my webpage because there is a bug in it which _may_ lead to system freeze. I found that if your device has wireless enabled through wifiIO and after that goes to standby (screen blacks out) this sometimes will result in a 100% cpu usage. So be carefull with this release.
The reason is, that my program directly tells the wlan nic to got to full power without correctly involving the systems power management. I tried to make a power up request to the power management for the wlan nic but it simply does nothing. I will try to fix that in the next release, but don't expect it to be soon.
Click to expand...
Click to collapse
Anything new on the WiFi toggle app as yet? Seems like an excellent little program once you get the bug sorted.
Regards,
Ron
Hello! I'm new but I have a big problem. In the enening when I go to bed I often turn off my Experia so I'm not interrupted at night and I can save my baterry. But the problem is that alarm in the morning doesn't want to ring and doesn't want to turn Xperia on back. I found recently the page on the web where somenoe said that it needs to be doen some hidden tweaks so that the WM doesn't try to look how full the baterry is before it sturts up. I can't find that page on the web again so can someone help me with this settings?
Than you.
use flight mode.
x1 cant wake up when off
I don't think any Windows Mobile phone is capable of waking itself up when it's powered down.
you probably use just as much power turning the phone on as you would have used leaving it in stand by..... just sayin'
OK, so I have tried flight mode and it works but anyway does anyone know the hidden settings to change verifiing battery from wm before it turns on again?
Oh, and another problem on my Xperia. I noticed that when I don't use it the screen (backlight) aproximetely every once in 2 minutes turns on again (my power settings are: turn backlight off after 30 sec, standby mode after 1 minute). I think that why battery last only 3 days. Can anyone know how to fix this problem? Thanks.
donci3 said:
OK, so I have tried flight mode and it works but anyway does anyone know the hidden settings to change verifiing battery from wm before it turns on again?
Oh, and another problem on my Xperia. I noticed that when I don't use it the screen (backlight) aproximetely every once in 2 minutes turns on again (my power settings are: turn backlight off after 30 sec, standby mode after 1 minute). I think that why battery last only 3 days. Can anyone know how to fix this problem? Thanks.
Click to expand...
Click to collapse
Change your configuration : Settings / system/ ilumination (check here the items you have enable or disable "enable ilumination".
Well basically, your device is off when you turn turn off the screen.
Not quite. You can always leave a lot of applications running with the screen off.
So what kind of setting to save as much as it can for battery or what kind of app du you recomend?
First, as someone already said, a WM device can not turn itself on when powered down.
To conserve battery... well just make sure no CPU intensive apps are running in the background, wifi, BT, data connection are off and use auto backlight setting.
Most smartphones don't turn themselves on for alarm (WM, UIQ Symbian, S60 Symbians), but i can't tell for all (iPhone does as i've heard, no idea about Android).
PDA is not Mobile Phone.
It has operation system etc.
To run PDA you need about 1 minute for loading all components of OS.
To run Mobile Phone Alarm needs no load components of OS, just display and sound.
In PDA sound can be played with help of driver and so on.
In Mobile Phone just tiny assembler program and clock-chip.
I know my alarm worked before with Touch-It rom. But since I flashed with WM6.5 and my alarm doesn't go off when the screen is off. There's no way around this?
I can't trust the alarm at all, it sometimes works, sometimes doesn't. Same on stock rom and 6.5. G-alarm is much better though..
Are you talking about turning the phone off completely,or turning off to the standby stage ? If you use the standby stage, it works fine, and hardly uses any power in this mode.
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...