Hi,
I'm now the proud owner of 2 HTC TyTN II's. Does anybody know of a way of keeping the GPS powered on even when the device is in standby? We are developing a tracking application which needs to send positions at pre-defined intervals, and if the GPS is off (device in standby) the position fails to be sent.
I received this reply from MS
-----------
"Base on my understanding, you want to keep the GPS hardware on even when the device is in standby. If I have understood you , please let me know.
Device standby status always close some devices , like bluetooth, GPS to save power. It is designed by OEM. you can't keep GPS hardware on while device is in standby. As a workaround, you can use SystemIdleTimerReset method to prevent the device from standby status.
For how to use SystemIdleTimerReset , click the link below:
http://msdn2.microsoft.com/en-us/library/aa930260.aspx"
-----------
Does anybody know enough about the GPS harware calls to be able to give me a pointer in the right direction?
Cheers
Paul
vlad69uk said:
Hi,
I'm now the proud owner of 2 HTC TyTN II's. Does anybody know of a way of keeping the GPS powered on even when the device is in standby? We are developing a tracking application which needs to send positions at pre-defined intervals, and if the GPS is off (device in standby) the position fails to be sent.
I received this reply from MS
-----------
"Base on my understanding, you want to keep the GPS hardware on even when the device is in standby. If I have understood you , please let me know.
Device standby status always close some devices , like bluetooth, GPS to save power. It is designed by OEM. you can't keep GPS hardware on while device is in standby. As a workaround, you can use SystemIdleTimerReset method to prevent the device from standby status.
For how to use SystemIdleTimerReset , click the link below:
http://msdn2.microsoft.com/en-us/library/aa930260.aspx"
-----------
Does anybody know enough about the GPS harware calls to be able to give me a pointer in the right direction?
Cheers
Paul
Click to expand...
Click to collapse
You probably cant do this. Just as the Wifi goes off when in standby. And while I agree it is a PITA, they are right that the battery would drain too fast. And if you are on ext pwr then set the power settings to never goto standby.
Hi
You would need to register a notification event for the time span you need, which will wake the device up, and then you do your processing. This would be in unattended mode so the device still looks of or you could force the device to display.
You would need to build some delay into your program to allow the GPS to get a fix.
I would look at the OpenNETCF framework here: http://www.opennetcf.com/CompactFramework/Products/SmartDeviceFramework/tabid/65/Default.aspx
Look at the OpenNETCF.WindowsCE.Notification.Notify.RunAppAtTime method, this will run a program at a specified time or use the OpenNETCF.WindowsCE.LargeIntervalTimer both will wake the device up if it has gone to sleep in the interval requested.
Regards
Phil
Thanks for the super fast reply. I've tested the device with GPS on permanently, and never going into standby. I get about 30 hours use with moderate calls and moderate push email. I also get the same bettery life out of the Artemis.
I'm sure there's got to be a way to hack the power management code in the OS, just can't seem to find any info on it
Cheers
Paul
Thanks PhilipL, i'll have a look into that and see what i can come up with.
Related
Hi,
yesterday I went to the cinema and therefore turned my phone in the comm-manager off (not the whole pda, just the phone)... battery level was about 60%.
After 1,5 hours I looked at my diamond - battery level was only 20-30% and the back/bottom of the pda was really hot.
I opened the freeware task manager from http://www.dotfred.net to check if tomtom or anything else is running in the background, but I couldn't find any gps related task... (also neither bluetooth nor wifi was activated)
Restarting the PDA solved the problem (battery level was constant now, the temperature became cool)...
Now my questions:
1. How to determine if GPS is running (what is the process name or is there a tool to check if it's running or to manually deactivate it?)
2. Has someone else made this experience
Thanks for your help!
ageye
Well, perhaps you have already found a solution, but incase you haven't - on the home screen / Today screen, at the top, next to the battery Icon - you will see the default task manager.
Tapping on that will show you all the applications that are running.
You can close either one of them by tapping on the X next to them, or you can choose to close all of them by tapping on the X at the top (first Icon from the left)
ageye said:
I opened the freeware task manager from http://www.dotfred.net to check if tomtom or anything else is running in the background, but I couldn't find any gps related task... (also neither bluetooth nor wifi was activated)
Click to expand...
Click to collapse
well, I already checked everything - there was no application running in the background that accesses gps (at least none I know - windows service?)
Maybe it is related to sudden drain issues... see both topics:
(first one starts on page 2, as the first page is only bickering by me )
http://forum.xda-developers.com/showthread.php?t=405383&page=2
http://forum.xda-developers.com/showthread.php?t=405958
I don't think so... my battery lasts pretty long - only in this 1,5 hours it drained like hell...
and due to the fact that its back was really hot I supposed the gps to be running
if it only happens once, why care?
could have been a program that wasn't ended correctly and produced a high cpu load (also happens on desktop computers). Which isn't whown at the task manager. Maybe it was a serviece running in the backgorund that coause that load. That the softrest fixed that issue is an indication for me that i might was such a problem.
there is actually a reason for the massive battery drained.
i have tried several types of gps applications on my diamond and some of them just doesnt close the GPS after exiting the program. thus, this results in major battery drainage.
i am not sure what gps applications do you have on your device. but, what i did is to reset my device everytime after using gps. this is the safest way to make sure that the gps is turn off.
unless, someone is able to provide a small tool to off the gps.
cool, I'm not the only one -
I'm using TomTom and I think at this time I also used run.GPS...
I also hope that someone can provide a small tool to check if GPS is running and to close it (Today plugin?)
I tried searching, honest.
A couple of times a week I would wake up and notice that the Diamond screen is on and of course the power level is low. Something is waking up the device in the middle of the night. Any ideas what it may be?
As far as I know I have no scheduled tasks:
- I don't even have email set up
- ActiveSync is completely manual
- I have klaxxon installed but no alarms set up
- no other alarms
- no scheduled backups
Is there a program that logs events on the PPC so I can see what causes it to wake up?
Hmm
Well maybe it needs to go to the bathroom or sumting?
Did you check if ur Broadcast channels or not on maybe? Under Phone/ Settings/More If its on it will happen if it switches to another reception tower
I have noticed this once or twice on both my Diamond and the girlfriend's Ignito, once I just happend to notice both screens come on at the same time and it was dead on midnight!! I couldn't explain it and to my knowledge it hasn't happened again on my Diamond but the ignito seems to do it once a blue moon!!
Rich
I shall stay up and watch it at midnight to see what happens.
Has anyone used acbtaskman? I read that it has logging capabilities which may shed some light on this.
liakat said:
I shall stay up and watch it at midnight to see what happens.
Has anyone used acbtaskman? I read that it has logging capabilities which may shed some light on this.
Click to expand...
Click to collapse
nice pun there
when got incoming sms, diamond will wake up.
Maybe u had enable this feature.
maybe he wants some milk
i think if your phone loses signal and regains it, the screen will turn on. IF that's the case...why doesn't it turn off? So it might not be that... :/
if not SMS and not task something, maybe phone call by lovely girl every night when she thinking about u, and she close the call fast..
Hey guys,
Well I have just got the new Hyper Dragon rom on my phone and I am looking for a possible hack...
I am going on holiday in a few days skiing in the Alpes and have a GPS tracking tool called SatSKI, its pretty wicked and tracks your days activities.
Problem is, when it goes into standby or the screen is off then the GPS goes off, even though the program is still running. I had this same issue with TomTOM a while ago.
Any help would be great.
Cheers guys
Mike
Look into TrackMe, it has a boatload of features and has a Screen Off feature which keeps the phone on but turns the screen off for battery savings.
You can also try DeltaLock. But you gotta make sure the phone doesn't turn off, so you'll also have to modify the Power settings.
up
in the same boat, would like to run my satski on the kaiser with the screen off, but obviously keep the program and GPS running?
The above 2 programs are no good, as satski has the piste maps, which is what you want to use it for
You can run Trackme in addition to your ski program in the worst case...
Satski and Switching off
mikeseaman3000 said:
Hey guys,
Well I have just got the new Hyper Dragon rom on my phone and I am looking for a possible hack...
I am going on holiday in a few days skiing in the Alpes and have a GPS tracking tool called SatSKI, its pretty wicked and tracks your days activities.
Problem is, when it goes into standby or the screen is off then the GPS goes off, even though the program is still running. I had this same issue with TomTOM a while ago.
Any help would be great.
Cheers guys
Mike
Click to expand...
Click to collapse
Hi the way to keep your phone on is to change the settings on switing off a program after a period of time , in setting programs normally are set to switch off after 30 min if not used . Also be sure to use the Satski Lock screen in the Satski Menue this will also save your battery.
JC
Is it just me or can this phone not do it?
On my iphone if I leave wifi on and turn the screen off, it will connect only when needed using the auto send/receive schedule.
My xperia no matter what i do just wont seem to send receive with auto send/receive set to 5 minutes, wifi enabled, and i turn screen off with power button (or even leave it automatic).
Does it work for anyone else or is this just the way the xperia works? It only sends/receives when it's awake, in which case, pretty stupid,cause i can just do it manually if i'm using it.
I think winmo only sends/receives over a cellular connection while the phone is asleep. Wifi on the other hand is disabled when the phone goes asleep in order to preserve battery life....so no sending or recieving emails over wifi with the device in sleep mode
sonus said:
I think winmo only sends/receives over a cellular connection while the phone is asleep. Wifi on the other hand is disabled when the phone goes asleep in order to preserve battery life....so no sending or recieving emails over wifi with the device in sleep mode
Click to expand...
Click to collapse
That's really disappointing, it's a feature I had come to expect, thinking the device could atleast witch it on long enough to sync my email just like the iphone does before switching it off again.
guess my only option is to buy a data plan.
Try Advance config
Bottom right softkey "Menu" --> More Settings --> Connections --> Enable Wi-fi on standby mode
Ashwm said:
Try Advance config
Bottom right softkey "Menu" --> More Settings --> Connections --> Enable Wi-fi on standby mode
Click to expand...
Click to collapse
Thanks, I have just tried this, but I see that basically what it does is prevent the wifi from sleeping on standby mode, which is going to kill the wifi I presume in a couple of hours.
I guess it's just not possible for it to do what exactly I wanted it to do which is to connect and disconnect when required, to send and receive, while left switched on and the phone is in standby.
I believe that even when the phone is on and wifi is on I think the normal wifi power save (middle slider position) switches itself off after an idle period to save power when not in use, "on" just means available for use, not necessarily powered up.
I need this too, could someone try a mort-script or something to connect to WiFi automatically and then send/receive emails every desired set hours? Think it is possible..
Well
I tried enabling this (and yes, the wifi stays on while asleep) and putting my power save slider all the way to the right, however, after waiting the set time for my auto send/receive (5 minutes) and infact more, it did not send/receive until the moment I woke it, so I don't know if it was just about to do it, or if waking it caused the update.
i will give it another go and see how it goes, if you say that the wifi does infact just sleep itself when idle it shouldn't harm the battery life too much.
Strange
Ok, after further experimentation, I got it to send/receive my email while sleeping with the mode set for standby wifi enabled, however, with the refresh time setto 5 minutes, it took almost 15 minutes to update.
15 minutes is about the time I want, but will it take more power if I leave it on 5 minutes, or will it take even longer still if i set it to 15 minutes?
I'll try leaving my wifi on for a couple of days and see how it goes.
Try the program rk-OSR. It can connect/disconnect wi-fi automatically only for synchronizing e-mail.
Thanks
maedox said:
Try the program rk-OSR. It can connect/disconnect wi-fi automatically only for synchronizing e-mail.
Click to expand...
Click to collapse
Thanks, I'm going to see how it fairs over the next couple of days with the wifi set to work during standby (in terms of battery life) and if that doesn't work out i'll take a look at the app.
I don't know what it is but i just have a phobia of running extra 3rd party software on a phone that can only just about handle itself.
You pretty much have to run 3rd party apps on WinMo. In my opinion it's like using a normal computer with windows without installing any other applications. It's barely usable for anything at all without getting really annoyed.
maedox said:
You pretty much have to run 3rd party apps on WinMo. In my opinion it's like using a normal computer with windows without installing any other applications. It's barely usable for anything at all without getting really annoyed.
Click to expand...
Click to collapse
Yeh, but what annoys me is that my desktop computer is designed with the hardware to run its OS and a hell of a lot more, the hardware in this thing barely runs the naked OS, so I'm reluctant to add any more.
Anyway, after experiments it's been pretty much a total failure with the sleep wifi thing.
Looks like that 3rd party app will be my last resort, lets just hope it's unobtrusive and has litttle battery drain (aside from the obvious).
Failing that, it's either keep lugging around an iphone or get a data plan. Might sell the iphone to fund it.
You can't seriously consider using the iPhone for this. It's a toy.
I'm sure you'll be happy with rk-OSR.
maedox said:
You can't seriously consider using the iPhone for this. It's a toy.
I'm sure you'll be happy with rk-OSR.
Click to expand...
Click to collapse
You;re right, iPhone is a toy, but considering the problems I'm now having downloading email attachments (mp3) and the fact that it doesnt check my mail properly while sleeping, it seems almost worth carrying just to make sure I get my email without having to actively check for it.
I'll take your word though and try rk-OSR and hopefully find a solution to my attachment problem, then I'm a happy happy xperia owner in heaven.
Ok...but.
Ok, got rk-OSR installed and it is working perfectly if I use the "test" button. However, I put the device to sleep, set to sync in a couple of minutes, wait 5 or 6, wake it up myself and nothing. Even the log doesnt have anything after my test attempt. What could be the problem?
still wondering how to get the phone to do this... is it not possible for the phone to check emails while it's in your pocket? such a simple concept yet...
alias_neo and dinan, I found a solution!!! All you have to do is to install GProfile and this program called rk-OSR. You create a time-based profile (in GProfile) and choose a specific time (eg: 1am) to run rk-OSR. You donĀ“t have to select anything else (wifi toggle, etc). Then you select the same time in rk-OSR (1 am) and in this program you select the wifi options. It worked for me.
Hope it helps you
Hi all.
I hope someone here can help me with some answers or at least help me testing.
My problem is, that when I use my phone when running, the training session isn't registered correctly. It always log my routes between 25 and 30 % shorter then they are.
I've tried using different programs like Runkeeper, Endomondo, Cardiotrainer, My Tracks, and others.
They all show the same short route log.
I've tested all the programs with my old HTC Desire, and here the error is always less then 5%
Anyone else seeing the same problem??
Maybe someone could test it on their phone the next time they're going for a run??
My guess is, that there might be some bug in the software of the phone, that makes it report to short distances between every point that it sends to te training software. (maybe something to do with the accuracy of the GPS, and how this is offset is calculated into the positiondata??)
Anybody got a good Idea where to start??
m_primdahl said:
Anybody got a good Idea where to start??
Click to expand...
Click to collapse
Hdsf
Same here, tried a couple of the running apps. Sometimes it helps to restart the phone before running. Google navigation and offline nav apps (Sygic, TomTom, Navigon) seem to show more accurate GPS data. Speed related?
http://forum.xda-developers.com/showthread.php?t=1886999
man up and get over it
this is how its gonna be