Disable Hardware Buttons - HD2 General

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...

Related

How to set your universal to perform best

Hi all,
I'm having my Universal for the last month, I suffered alot from the low speed of it, I read many threads in the forums, and tried many settings by myself and ended up with the following settings to be made to make your Universal works fast:
1) Un-install the anti virus program.
2) Diactivate the error reporting.
3) Set the power settings as follows: "Start / Settings / System / Power / Advance / Un-check turn off device if not used for ".
4) To avoid ending up with a flat battery do the following settings: " Start / Settings / System / Power / Tap backlight at the bottom of the screen / Check "Turn off backlight if device is not used for 30 seconds."
5)In the same menu "backlight" tap brightness and adjust the brightness to the minimum level .
6) If your device is I-mate tap Settings / Today / use any other theme other than I-mate grass , and I-mate swoosh because their size is too big, if you use any other theme you will save more than 1 MB of memory.
Please note that the change No. (3) is the only way to avoid the freeze happens to the universal in each time you press the light button to turn on your device, if you keep your device always on you will not only avoid this freezing, but also you will allow the voice dial to work properly even if your device is closed and the screen is inside because the device will never be turned off.
In addition to the above changes, you have to get a software which really close the applications such as spb pocket plus 3.0.4 which is compatible with WM 5 , or GSPMagic., or MagicButton , then you can try your device to see the difference.
Please note that if you use spb pocket plus do not include any SD card on your today screen otherwize it will slow down your device again.., and it's much better to reduce your program shortcuts to the minimum, there is no need either for the battery indicatior on the today screen since we have a battery indicator by default on the bottom right side of the screen, and battery line "spb" on the top of the screen.
I made the above changes and my device works fine.
Try it, I hope you all will find a lot of improvement.
Need feedback on this issue please.
Regards,
Hello all,
Will you please give me a feed back after making the suggested changes?
Regards,
Hey,,
Good advice. I've just made the power and screen changes and will see how it goes. I'm hoping that the battery life won't be worse and that I don't get to anoyed having to tap a key to swith the screen back on...
The important thing is that the bluetooth headset carries on working..It's a real bugger when it rings and I can't pick it up on the headset.. Do you think they tested this thing with headsets?
I also assume that when you switch the device off using the button, it never really switches off, just pretends to... I was thinking that there are times, on a long flight, where you'd like it to be really switched off to reserve battery. What think you?
Don't worry about the battery, battery life will not be worse, but as my experience with PDAs, "More than one year experience now" I can tell you that you have to charge your PDA at least once a day "every night".
Regarding the Blue tooth Headset issue, I'm using Jabra BT 800 and it's working like a charm even with voice dial, it never misses a voice tag.
Regarding the Turn off issue, PDAs are not designed to be completely switched off, you can only swich the power off "Pretending to be completely switched off" because if you turn it completely off by removing the battery for example you will lose all data on your PDA.
Still waiting for feedback.
Regards,
I have already turned off error reporting and turned off receive all incoming beams. I am a bit confuesd by Point 3 as my XDA Exec does not freeze at all when i press the backlight button- maybe it is a jasjar issue, like the antivirus? Have you noticedf any difference in battery life by just swtiching the screen off instead of putting the phone into standby?
Fin
Fin,
If you have no freezing issue when you press the light button to turn the phone on, and you don't have any problem in voice dialing while the phone is on standby mode there is no need to set the phone to never switch off.
I'm using Jasjar and I'm facing the above two problems, and I can't avoid them without making these settings.
Regarding the battery issue, there is no much difference between the two modes.
Regards,
carefuly folks, this is not entirely accurate:
- what freeze? Not heard many complaints on this matter
- what voice command issue; mine works perfectly WITH the BT headset fix of course
- battery life WILL & does reduce significantly with "always on"
- spb PP 3.0.4 is latest version, and there are a few alternatives that are just as good. Principle of task closing is right tho.
- There are several other truly useful hacks that would add a lot more value to this issue, incl GPRS always on, Buzz's BT headset fix, selecting working plugins only, etc etc - browse this forum from the start if u r just starting out
Correction
Not to play the devil :twisted: but WM5 devices do NOT hard-reset if (when?!) they run out of power, since internally all programs and data are now stored in Flash memory instead of DRAM.
As a side effect, you should also experience some improvement in battery life, since the smaller amount of DRAM on a WM5 device leads to a significant reduction in power consumption when the device is "doing nothing" - i.e. using very little CPU/Network, but standing by for incoming calls or user input.
craigiecraigie4,
- Regarding the freeze issue, I'm using Jasjar and it does freezes for 6-7 seconds whenever the power button or light button is pressed to switch the power on.
Also whenever I'm using the voice dial, this freezing causes the voice dial to delay and sometimes not responding.
But after setting the device to always on, I'm not experiencing any of those two problems.
- Battery life is not significantly reduced as you think, I tried both settings and any how I have to charge my phone once every day in both cases.
- spb pocket plus 3.0.4 is the latest version, and I did a typing mistake by saying it's 3.1.4..... sorry for that.
-Regarding the BT fix can you please post it here so that I can download it if possible... and can you please let me know what exactly does it fix?
Regards,
Khaled.
Re: Correction
dojohansen said:
Not to play the devil :twisted: but WM5 devices do NOT hard-reset if (when?!) they run out of power, since internally all programs and data are now stored in Flash memory instead of DRAM.
As a side effect, you should also experience some improvement in battery life, since the smaller amount of DRAM on a WM5 device leads to a significant reduction in power consumption when the device is "doing nothing" - i.e. using very little CPU/Network, but standing by for incoming calls or user input.
Click to expand...
Click to collapse
dojohansen,
Thanks for the valuble information, I thought it's the same like PDA2K which I was using till the last month.
I'm so happy to know this information.
Regards,
khaledelfeki said:
Still waiting for feedback.
Regards,
Click to expand...
Click to collapse
I hardly have problems with memory or speed.
I installed Listpro, Ewallet, some GPS software and NR de Luxe .
I use Excel, Word, and IE explorer frequently.
I use Agile in stead of MSN, but I never have problems with performance.
I do not often fully close ( settings/system/memory) programs used.
Can you give an example on which moments your really run into speed/memory problems?
Huib
herpi said:
khaledelfeki said:
Still waiting for feedback.
Regards,
Click to expand...
Click to collapse
I hardly have problems with memory or speed.
I installed Listpro, Ewallet, some GPS software and NR de Luxe .
I use Excel, Word, and IE explorer frequently.
I use Agile in stead of MSN, but I never have problems with performance.
I do not often fully close ( settings/system/memory) programs used.
Can you give an example on which moments your really run into speed/memory problems?
Huib
Click to expand...
Click to collapse
Huib,
I'm using Jasjar, I don't know the differences between Jasjar and the other universal devices, and I'm having problem always when I open the device cover and pressing the power "light" button to turn the device on, it freezes for 6-7 seconds before I can use it for any purpose.
This also affects the voice dialling when the device is on standby mode as it freezes for long time until it recognizes that there is a voice dial and them gives me the beep to start voice dialling and sometimes it does not even gives me the beep.
May be there are some differences between Jasjar and the other Universal devices but these are the problems which I'm facing and this is how I resolved it.
Regards,
khaledelfeki said:
Huib,
I'm using Jasjar, I don't know the differences between Jasjar and the other universal devices, and I'm having problem always when I open the device cover and pressing the power "light" button to turn the device on, it freezes for 6-7 seconds before I can use it for any purpose.
This also affects the voice dialling when the device is on standby mode as it freezes for long time until it recognizes that there is a voice dial and them gives me the beep to start voice dialling and sometimes it does not even gives me the beep.
May be there are some differences between Jasjar and the other Universal devices but these are the problems which I'm facing and this is how I resolved it.
Regards,
Click to expand...
Click to collapse
I have a Jasjar too. ( don't know how to get it into my profile, other then a comment)
You seem much further in know how than where I have arrived till now.
I can't say the machine is without bugs, but speed and memory never have been a problem so far.
Maybe a list of you software would give us a clue?
How big are your Outlook files?
Huib
spb pocket plus
spb diary
Resco Picture Viewer
That's all.
Regards,
khaledelfeki said:
spb pocket plus
spb diary
Resco Picture Viewer
That's all.
Regards,
Click to expand...
Click to collapse
That's not much. Spb pocket plus is suspect?
Huib
khaledelfeki said:
craigiecraigie4,
- Regarding the freeze issue, I'm using Jasjar and it does freezes for 6-7 seconds whenever the power button or light button is pressed to switch the power on.
Also whenever I'm using the voice dial, this freezing causes the voice dial to delay and sometimes not responding.
But after setting the device to always on, I'm not experiencing any of those two problems.
- Battery life is not significantly reduced as you think, I tried both settings and any how I have to charge my phone once every day in both cases.
- spb pocket plus 3.0.4 is the latest version, and I did a typing mistake by saying it's 3.1.4..... sorry for that.
-Regarding the BT fix can you please post it here so that I can download it if possible... and can you please let me know what exactly does it fix?
Regards,
Khaled.
Click to expand...
Click to collapse
Dude, your JJ is F***ed! It should NEVER do this! I've not heard of anyone else complain of such a totally unacceptable delay, and I've not experienced anything like it myself, despite setting my device up from scratch about 10 times now to test various configurations. I stroingly suggest a hard reset, install spbPP (or whatever you prefer), and use for a bit to get used to it. Apply the "BT headset fix" (search for it here, it prevents BT from turning off over night), and "Always on GPRS" if u like that which most of us do, and pocket mechanic (search for "notification queue") to maintain your notifications as per another post I wrote yesterday. You should NOT have this issue at all. 7s would make me throw the JJ away right away! If this does not work for you - take it back. Good luck!
I have the exact same problem of a delay on opening when it has been turned off for a while. Also, a friend of mine has the same problem. Your above mentioned fix of keeping it on appears to have saved the day for us, thanx.
apap,
Thanks for your feedback, It seems it's only me and you who are having this problem, and it's very strange too that I had never faced any problem with blue tooth and I don't need any fix for it.
It seems that not all devices are similar.
Any how, I'm so happy with my device now after making the changes which I suggested on the top of this post, and I'm so happy too that it had solved your problem as well.
All the best.
Regards,
Me too, same problen with freeze, but I newer waited for 6 7 secs, just done a soft reset, and this happends all the time.
Just changed to power of thing, will report back..

device couldn't wake up after turning to sleep mode

I just got AMEO from T mobile which I believe the same as HTC advantage.
despite of being SIM locked by T-mobile, I am experiencing another problem in waking up the device after it goes into sleep mode.
After I left the device idle for few minutes, it turn the whole screen off. (not only the back lit).
I can see the LED for BT/wifi still blinking.
But no matter which button I press, it couldn't be turn on at all.
As final resolve, I have to soft reset the device every time after it sleep!!!
Can some experts here advise me? is it a defective unit? or some other settings are wrong? Do I need to return it to the vendor?
I don't want to keep the device always on by disabling the auto off feature in power setting either.
Does someone have the same problem like me?
Thanks for any advise in advance.
What happens if you put it on the keyboard while "asleep"? Even if it means taking it off there first.
If doing that and pushing the power button fail to turn it on, it's a defective unit.
it's the same problem even i attach it to the keyboard.
a bit funny though, if i press the power button from the side to turn it off. I won't have any problem to turn it on.
but if i leave it to auto off mode, then i can't turn it on until resetting it from the back hole.
can it be improved if I flash to other ROM?
My Ameo does it occasionally - I find that (re)attaching the keyboard tends to bring it out of sleep better than pressing the power button. I get the impression that by pressing the power button, it sometimes gets confused that its still on and tries to turn itself off (even when it is already off). Tends to lead to a reboot every few days though. Waiting (fingers x'd) for WM6 to see if it behaves better.
do you guys have this option
settings>button>lock
try to toggle the checkbox to see if it helps
I'll try it! I found it under Settings/System Tab, 'Key Lock' icon.
I'll report back within the week.
I can confirm that it doesn't help my AMEO.
anyway, thank for your thought.
Digital.Diablo said:
I'll try it! I found it under Settings/System Tab, 'Key Lock' icon.
I'll report back within the week.
Click to expand...
Click to collapse
To digital:
can I ask for a favor from you. could you try to make the device auto power off without sim card in.
and see whether u will have the exact problem i have or more frequent it dead...
due to my unit is locked to T mobile network, i still haven't put any sim card in.
Tried it without simcard in but it still turns on ok after the fix. TBH, sounds like you're getting the issue more than me - mine only does it occasionally (once every couple-3days) and as yet, I've not managed to locate a consistent cause. I'll keep my eye on it though with the fix and let you all know how I get on.
the other thing that i can think of out of at the moment is that you are running some prog from the sd card/microdrive in the background so when you try to switch your device on then it does not get started and hence the problem...
try tweaks2k (you can use the trial version)
it has a bunch of settings for this... (just check that it is compatible with ameo first)
install 'screenoff' and assign to one of the button.
it works fine.
have to make work around like this now. no idea why this problem only happen to my AMEO...
anyway, thanks for all of u!
royalmail said:
Does someone have the same problem like me?
Click to expand...
Click to collapse
I have a similar problem. My device does not wake up in one case from 10 approximately.
Frequency of occurrence of a problem decreases if to close the phone's program compulsorily.
In other branch to me have told, that the problem can be because of the Active Sink's program. Have allowed advice to disconnect automatic start of this program. But I cannot check up because my program all the same is started if to switch off an option of the automatic device. :-(
hard reset can solve the problem completely. ;-)
I'm pleased to say that the 'button' tweak posted here has worked... So far!
Thanks Gents (and lasses if there are any).
That happened to me too yesterday.
I hard reset it and reinstalled everything to microdrive now. (trying to eliminate the possiblity of compaction thread) Removed SPB Pocket plus, which I've come to be quite suspecious by now. Also removed true VGA. So far I have not got a single freeze yet, touch wood. If it runs okay for a few more weeks with no freezing, will put back true VGA and see how it goes again. Will try to isolate the offending software bit by bit.
Hi,
I've had the same problem with my Advantage
After some weeks of test i have found how to solve the problem on my Advantage. perhaps it's only works on mine but you can try.
i have installed "all" progs on memory and not on microdrive. on microdrive i have only a few exe like wififofum or progs not intend to run when i turn my Athena off.
then no more problem waking up my athena.
I think the problem could be that microdrive cause a time out or thing like this when we wake up the PDA then athena freeze waiting about datas from microdrive.
then for me now it's programs like browsers, sscontact, traylaunchers etc .. => memory
programs like painting tool, etc ... => microdrive and close (kill process) them before sleep mode.
and all is ok now for me. The only freeze in 1 week was Pocket IE freezing (but the reason is pocket IE sucks)
There was actually another point that I forgot to mention concerning the freezing. I found out that the free miniSD card came with the bonus pack was actually faulty. With the pocket mechanic professional benchmark, I managed to see only less than 200kb/s read and write! I did a hard reset, and installed everything on microdrive, and touch wood, I have not got a single reset or freezing yet these two days. I install nothing into memory, as we all know that it takes up to 2 seconds to write a block of data into NOR ROM, which is why we should always shift our directory of IE cookies/history/cache away from the main memory. Since the main memory (NOR ROM) is good for executing program in place but terrible in writing, Microsoft's MikeCal thinks we should not keep any data there. (See this thread: http://blogs.msdn.com/windowsmobile/archive/2006/03/16/552996.aspx ). I try to keep the memory as free as possible to minimise compaction thread kikcing in. Will see how it goes in the next couple of weeks and take on from there.
I'm happy to confirm that, after a weeks testing, the button 'fix' seems to have resolved the issue! Thanks all.
I have been experiencing similar problems.
After being left on standby for a period of time (>10mins), the unit sometimes goes into "autistic" mode.
i.e:
Power button does not function. Unit GSM light flashes, but will not resume from sleep.
I've tried the following:
Attaching USB cable. No change.
Attaching keyboard. No change.
Calling phone. No change.
Soft reset. Starts ok.​
I have now tried:
Settings/System/Key Lock
- set to 'Do not lock buttons'​
However, I suspect ActiveSync.
The unit was attempting to Sync every 5 minutes, while connected with a USB cable. I therefore followed advise (read elsewhere) to create a dummy server to allow an ActiveSync schedule to be created, then deleted.
http://www.modaco.com/index.php?showtopic=246522
This is coincident with the start of the problem.
Regards
Devany said:
I have been experiencing similar problems.
After being left on standby for a period of time (>10mins), the unit sometimes goes into "autistic" mode.
i.e:
Power button does not function. Unit GSM light flashes, but will not resume from sleep.
I've tried the following:
I have now tried:
Settings/System/Key Lock
- set to 'Do not lock buttons'​
Click to expand...
Click to collapse
I had same problem once I enabled Key Lock function.
However, once I disable key lock, it works fine again.

Power control of the Vogue

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.

Problem with GPS and unattended mode

Hi
I'm developing a GPS application (http://www.marathon-mobile.net/Download/DownloadLatestVersion), its working fine on most phone but I'm having some problems with HTC HD2.
The problem is that the GPS doesn't seem work when the phone is locked.
I have set the following:
PowerPolicyNotify(CoreDll.PPN_UNATTENDEDMODE, true)
SetPowerRequirement("gpd0:", CedevicePowerStateState.D0, POWER_NAME | POWER_FORCE, null, 0);
I'm also calling SystemIdleTimerReset(); every 100 ms.
This seems to work for all other devices (I havent received any complaints about them), but no the HTC HD2. Have anyone else experienced problems with HD2, do I have to set any other Power Policies for this device?
//Johan
I think another app got the same problem as well. I run the wmTorrent on my HD2 and when the screen's locked the WiFi shows reconnection when I unlock it. It seems to be some sort of power saving feature that's cutting off everything when it's idle (including GPS). I take it you're requesting GPS data via Windows API.
Nice app by the way, saw it on the marketplace and was gonna place an order. I'll wait till it's fully supported on HD. Let us know pls.
I see.. Thats maybe why I can not get TrackMe to work..
Sounds to me like some kind of power saving design. After all the HD2 haven't exactly got the biggest battery in the world.
Sorry guys, that comment doesn't really help solve you problem I know.
But it would be interesting to know if this is a Microsoft / HTC design 'feature'...Maybe it's worth checking with Acer Neotouch / Omnia II user?
Or does this issue exist on any other WM6.5 handset?
I have installed OziExplorerCE GPS Mapping and Real Time Tracking Software, and it has an option to turn the display off whilst leaving the GPS functioning, pressing the <end> button will turn the display back on as per normal.
This is definitely different to pressing the <end> button to suspend the device as if I do this then Ozi also wakes up with a reconnecting to GPS message.
I have tried this with both TomTom and Oziexplorer running, and as long as I use Ozi's own display off option, both programs keep running and tracking movements.
So it seems that it is possible to do what you wish.
abucas said:
I have installed OziExplorerCE GPS Mapping and Real Time Tracking Software, and it has an option to turn the display off whilst leaving the GPS functioning, pressing the <end> button will turn the display back on as per normal.
This is definitely different to pressing the <end> button to suspend the device as if I do this then Ozi also wakes up with a reconnecting to GPS message.
I have tried this with both TomTom and Oziexplorer running, and as long as I use Ozi's own display off option, both programs keep running and tracking movements.
So it seems that it is possible to do what you wish.
Click to expand...
Click to collapse
Sounds like they use SetSystemPowerState(null, POWER_STATE_IDLE, POWER_FORCE); in combination with multiple calls to SystemIdleTimerReset(); This could be a solution. Unfortunately it keeps the entire device in on, so it'll consume more power than just keeping the GPS on. I've currently sent a version to a tester with this enabled, so we'll see if it works.
I'm still interested in a solution using unattended mode if its possible. It could be as easy as setting another power requirement, if so we just need to find it.
Thanks for all the replies .
Good to find that, I will need that for SciLor's GrooveMobile

Lock the screen but leave the GPS module running?

I don't know if this is really just a "screen lock with disabled bits" or if this is some full-blown idle mode, but I was wondering...
I don't have any car-accessories, but I'd still like to use TomTom. Now, TT offers some nice voice guidance, which is more than enough for just getting around (if I ever get really lost, I can pull over and pick the thing out of my pocket).
However, leaving TT running in my pocket means that the screen is on, the display changes and thus battery will be drained considerably faster than if the thing would be locked... not to mention an accidental press of a button (it's in my pocket, after all).
However, locking the phone turns the GPS off, so even if I leave TT running in the background it does me no good.
Is there anything I could try out in such a case?
So... this is impossible? :/
Nothing specially made for that has been released that I know of.
But from info I could gather around, RunGPS has the capability to be set to turn off the display leaving the GPS running.
So you could just install rungps as well, set it to turn off the display with GPS on, and at the same time also run your fav GPS app, tomtom in this case.
What should happen is that the screen will go off with the GPS still working (thanks to rungps) and tomtom will run in background being now able to access the gps device (still thanks to rungps).
Still worse for battery than having only the useful app running (as rungps will take some cpu cycles for itself and will cause more load on the device) but should still be better than leaving the display on at all times.
Let us know your results.
hey what do you know, 900th post
Hmmm... strange... Last I've noticed my GPS kept runnung while the device was locked. I used NaviComputer to track a walk I did with a friend and had my HD2 locked in my pocket most of the time.
ThoroSOE said:
Hmmm... strange... Last I've noticed my GPS kept runnung while the device was locked. I used NaviComputer to track a walk I did with a friend and had my HD2 locked in my pocket most of the time.
Click to expand...
Click to collapse
uhm, don't let that fool you.
First times I used navicomputer just for fun, I thought gps was running in background, but only later I realized that the GPS signal was restored right after turning on the display, and navicomputer was showing a straight line going from my latest positiotn before turning off the display, to the first positiotn it got after wakeup... and I'm sure of that since I double checked several times
In case you check and you DO have your GPS on at all times with device in standby using navicomputer, please let me know the list of installed programs you have (I doubt it tho)
jan-willem3 said:
Change this with your registery
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power\State\Resuming]
"gps0:"=dword:00000001
"gpd0:"=dword:00000001
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power\State\Unattended]
"gps0:"=dword:00000001
"gpd0:"=dword:00000001
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\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.
Click to expand...
Click to collapse
Bib_x said:
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contro l\Power\State\Unattended]
"gps0:"=dword:00000001
This was already "0". I changed it to "1", too.
Click to expand...
Click to collapse
Try this. It works on my HD2. I use Run.GPS to log my tracks while jogging or mountain biking.
Other way to keep gps-fix while screen is off - you have to do only a "screen off", not "standby". I did it with AEButtons+ (e.g. screen off on long-press green call-button) - but with this reg-changes it works better for me.
Or you can only lock your phone and let it go to standby on its own. Then gps-fix will still keep alive. GPS-fix only gets lost if you press hardware-power-button (red end call button) - and registry not changed like above.
Bib_x said:
Try this. It works on my HD2. I use Run.GPS to log my tracks while jogging or mountain biking.
Other way to keep gps-fix while screen is off - you have to do only a "screen off", not "standby". I did it with AEButtons+ (e.g. screen off on long-press green call-button) - but with this reg-changes it works better for me.
Or you can only lock your phone and let it go to standby on its own. Then gps-fix will still keep alive. GPS-fix only gets lost if you press hardware-power-button (red end call button) - and registry not changed like above.
Click to expand...
Click to collapse
Awesome, thanks!
I'll try it out tomorrow. A bit too late to go for a walk now.
Bib_x said:
Try this. It works on my HD2. I use Run.GPS to log my tracks while jogging or mountain biking.
Other way to keep gps-fix while screen is off - you have to do only a "screen off", not "standby". I did it with AEButtons+ (e.g. screen off on long-press green call-button) - but with this reg-changes it works better for me.
Or you can only lock your phone and let it go to standby on its own. Then gps-fix will still keep alive. GPS-fix only gets lost if you press hardware-power-button (red end call button) - and registry not changed like above.
Click to expand...
Click to collapse
as far as I know rungps is able to use the gps during screenoff as a feature.
I tried locking the device without pressing endbutton, but navicomputer loses the fix no matter what.
I also noticed thos reg patchesin some other thread but I also read there that other users tried them with no avail; did you test those registry fixes with software other than rungps by any chance?
Without these reg-changes i tested RunGPS and when i press hardware-power-button - GPS-fix was getting lost.
If i only did a screen off - then GPS-fix was still there.
Now with these reg-changes i can press hardware-power-button during running RunGPS and GPS-fix is still there.
I did only test with RunGPS because that is the only GPS-app i want to use while screen is off/device in standby.
If i use a navigation software (iGo8), then i want to have screen always on- so i didn´t test this scenario.
Bib_x said:
I did only test with RunGPS because that is the only GPS-app i want to use while screen is off/device in standby.
If i use a navigation software (iGo8), then i want to have screen always on- so i didn´t test this scenario.
Click to expand...
Click to collapse
I see, thank you, let's wait for the OP to test this himself.
Since I already knew rungps has a feature to turn off screen without losing gps signal, I don't think it's the reg settings, but rather it's rungps itself that allows you to do that; since you couldn't test different apps we don't even have a verification
I may try to get at it tomorrow, no guarantee I'll have the time tho
I´ve installed sportypal, too. Maybe i can make some tests this weekend.
Bib_x said:
I´ve installed sportypal, too. Maybe i can make some tests this weekend.
Click to expand...
Click to collapse
us wants tests with navicomputer
No really, navicomputer is cool anyway, so install that too since you're at it
All right! I'm back with some results. Now, a quick note: I switched to MapaMap, a Polish map application, as it has a lot better maps for Poland.
I performed two tests: firstly, I started a route around the street and used the softftware lock to lock the screen. Result? MM application kept running and kept talking to me. Nice. However, this is still vulnerable to the physical button being pressed and locking the phone; when that happens, MM looses GPS and, in fact, I think the system somehow pauses this applicaiton altogether (more on that in the next bit).
So, since the physical button is still possibly a problem (after all, during driving the phone is in my pocket, and it's not really difficult for that button to be pressed), I tweaked the registry as Bib_x suggested. However, it seems that even IF the GPS module was still running, the MM application enters this weird suspended state, and whenever I resumed it, it would always greet me with a "searching for GPS signal" message. Granted, it would find the signal very quickly, but it still didn't work while the screen was off.
The odd thing is that mode the application went into. Normally, when it's minimised, I can pick it from the task-switcher and bingo! It's instantly back up. But when I press the hardware lock button and then unlock the phone, I get the Windows "please wait, I'm working" wheel in the centre for a while, before the app is restored.
I can check with TT again to see if the problem is restricted to only MM, but something tells me it's not an isolated case. So now I'd need to figure out a way to keep MM working when the phone is locked; kind of like the music player.
EDIT: TomTom resumes a lot faster, but it still looses GPS; right after resuming it says "no GPS device", and that's with the registry changes applied and after restarting the phone.
Shaamaan said:
EDIT: TomTom resumes a lot faster, but it still looses GPS; right after resuming it says "no GPS device", and that's with the registry changes applied and after restarting the phone.
Click to expand...
Click to collapse
exactly my experience with any other gps software.
Didn't even try the reg tweaks as I didn't trust them that much.
Just try installing rungps as per my suggestion and using that at the same time with your fav navigation software, maybe the fact that rungps keeps the gps subsystem working while screen is off makes also the other app do its job.
After some more fooling around, I've made it, albeit I fear this method might be limited to MapaMap only.
When installing MM there are two options: either installing onto the HD2 or directly onto the MicroSD card. The former option will always install something called "wake up plugin" (might be worded differently in English) which doesn't show up in the "remove applications" menu, so it's more of an integral part of MM and probably can't be removed in this case. In the latter option, this plugin won't be installed, and in fact, is unavailable.
Initially, I've installed the app directly onto the phone, so that plugin was included automatically. My guess is that THIS was the bit responsible for putting the app into some sort of "sleep" state. However, when I installed the app onto the SD card without the plugin, I could lock the phone using the end-call button and the app wouldn't shut itself down like that; it even kept talking to me during the ride, so everything worked. Once more, I can confirm: THE SYSTEM KEPT ON WORKING DESPITE BEING LOCKED - I drove quite a distance and took some different turns, and the phone kept nicely informing me of the new distance and of upcoming turns.
This was all done using the registry settings suggested in this thread! Without them, the app will loose GPS data when the phone is locked, and if I set it to record my movements, it'll create a straight line between the start and end point, with a "no GPS signal" in the middle
EDIT: Do the registry values 1 and 4 mean "always on" and "always off"? What about values 2 and 3? I'm assuming there's no way to make the GPS module "smart", so that it's turned on only when needed? Or is it possible to add a manual switch for the GPS module to the Comm Manager?
GPS will only be on if a program sends this comand. And if you end the program, then this program sends a kill-comand to gps.
Have you tried with Pocketshield screen lock?
There is a setting at Locking > "Except when...", there you add exceptions to applications which will be allowed to continue running with the screen turned off.
The reg edits work for me with GPS Tuner and google maps, not with iGO8. I had actually tried that myself, but only the ones in "unattended" and set to 0 instead of 1 (as that's the fix that's used to keep music playing in Coreplayer and that works), but apparently it wasn't enough for the GPS. Good news

Categories

Resources