Want to leave wifi on when G1 sleeps - G1 Android Development

I have a G1 with JF's modded ADP1 image.
Is there any way I can force wifi to stay on even when the G1 sleeps?
It's really irritating that it turns wifi off - the intentions may be good, but it should be possible to choose to let wifi stay on even as the screen blanks out.
Any hacks or commands I can enter as super user to have it my way?
~Christopher

aad4321 said:
Why would you want it to stay on?
Click to expand...
Click to collapse
I want to be able to decide for myself whether I want wifi to stay on or shut off when the G1 sleeps. The battery saving intentions are good, but let me decide and override if I want to - maybe I've bought one of those bulky 2200mAh batteries and have no worries when it comes to battery usage?
But the actual reason is I'm not on an unlimited data plan, so when I'm at work or at home (which accounts for maybe 85% of my time), both places connected to wifi, I want the G1 to continue to sync email, maybe download podcasts, etc. even if it sleeps without worrying that it uses 3G/Edge for these tasks as it will cost me much in terms of data usage.
~Christopher

Related

connectivity idea, curious if it is even possible

I am curious, but the only way I can think of to ask this question is to provide an example or two, so bear with me.
You decide you need directions. Fire up Google maps, click my location and it says you need to enable data...DOH!, back out to the menu (or follow the prompt), enable either GPS or Data, and go back into maps. Get what you need, and then leave Maps. Dont forget to turn the GPS or Data back off!
Wouldnt it be better if when you enter Google Maps, it would fire up the GPS or Data connection automatically? And when you back out or have a period of inactivity, disable it.
Same thing with the internet, I know Locale and others can turn on and off the wifi depending on where you are, but, for example, when I am home I rarely need wifi. However, when I open the internet it would be great if it looked for a friendly wifi signal and tried to connect if possible. That way you are always connecting the fastest possible method for your application and doing the least amount of work. If the disconnect would be an issue (since none of the programs has an exit button) maybe a variable timer could be set, or maybe base it off of inactivity.
Like I said, they are just ideas, and I have never understood why nobody (WM for example) has ever implemented anything like this. It seems like it would help conserve battery power and at the same time greatly simplify things.
When you put the G1 to sleep it shuts off the wifi connection automatically, then when you turn it back on, it reconnects to the network if you're still near it.
I have always wondered why Google Maps doesn't turn on GPS when it needs it. It does on the iPhone as far as I know. I have really wanted this to happen for awhile but I just figured Google would be the ones to add it.
rascal00 said:
I have always wondered why Google Maps doesn't turn on GPS when it needs it. It does on the iPhone as far as I know. I have really wanted this to happen for awhile but I just figured Google would be the ones to add it.
Click to expand...
Click to collapse
Yeah I wonder why also, maybe they were in a rush or some battery issue. also iphone doesn't have gps just the cell location I usually keep that on.

[REQ] A Better Solution for Data Auto-Disconnect... with Peak Time/Push Mail

Hi folks
I've searched around the forums and have seen a couple of solutions out there for automatically terminating data connections (Bandswitch, WMLongLife, the registry tweak) but each seems to lack some of what I need and do a lot that I don't need.
Here's the lowdown:
- I've already tweaked the Comm Manager to add the 3G on/off switch so I don't need something that messes with that
- I use push email for business so I need the data connection to stay on during the "peak times" that I've set in Activesync (for me, that's 8am-11pm)
- Outside of peak times, I've got the phone checking email every hour. Right now, it seems to be leaving the connection on afterward.
- I want to keep the automatic updates for HTC Sense's weather and stock tabs. Not every 5 minutes, of course, but at least a couple of times a day. Also tends to leave the connection going when used outside peak hours.
As I understand it, the registry tweak won't work for the Sense tabs. Bandswitch and WMLongLife mess with the 3G radio and, as far as I can tell, don't let you set a timeframe (re: the latter - I suppose when you've got push mail going it pings the Exchange server regularly so in theory it shouldn't consider the connection idle, but why mess with it?)
So, in short, anyone got a solution that could switch off an idle data connection outside of the peak times set in Activesync?
If you just want to kill connections during certain times (ie, night time) try G-Profile. I have it set to kill data connections during the night, works fine for me although I am using a new beta version which is available from their site.
Looks interesting but reading through the manual it looks as if you can only set a profile to disable the data connection during certain hours. I'd like to leave the data available, just switch on auto-disconnect.
Plus, again, there's a lot of extra stuff in there that's really not necessary. I'm looking for something more lightweight...
I haven't tried it, but you might want to take a look at CommMgrPro.
It's also from the creator of Bandswitch.
PhoneAlarm can do this.
I had PhoneAlarm installed on my previous phone. True, it can do this.
But again, it's like using a tank to kill a fly. Sam with CommMgrPro.
Is there no lightweight solution?
+1 for this. It has to be possible, everyone just seems to lump the functionality in with a load of other stuff I'm not interested in.
Up, I'm looking for this also
+1
This kind of app is missing...
SO.... last night I left my charging cable at the office and I only had around 20% of the battery left at 11:00pm. For some reason, the thing kept opening the data channel even though it was outside of "peak" hours for push! I had to reset and turn manually turn off all data... couldn't have the phone die overnight as it's my alarm clock!
Any ideas here?
DialUp Enabler Disabler v06
What about this one
http://forum.xda-developers.com/showthread.php?t=610657

Does WiFi remain on in Mango update?

In pre-mango WP7 phones the WiFi would automatically turn off if your phone was on battery and screen was off. Is this stupid feature still present in Mango or can we make WiFi run ALL THE TIME on battery power?
Yes, it is. But it reconnect looooot faster.
Wow thank God I actually remembered to ask this before wasting money on a WP7. I don't care how fast it reconnects when it wont be connected in standby. Which means I wont be notified of emails, IMs, social network updates etc etc. Brilliant decision MS.
I think you're missing the point, it recconects every so often in standby to download messages/emails/notifications etc it just doesn't stay constantly on.
ammarmalik said:
Wow thank God I actually remembered to ask this before wasting money on a WP7. I don't care how fast it reconnects when it wont be connected in standby. Which means I wont be notified of emails, IMs, social network updates etc etc. Brilliant decision MS.
Click to expand...
Click to collapse
Don't know if this is a troll or just a lack of understanding.
You can determine in the options how often you want to to check your various email accounts. For example, one of my accounts I only need checked every hour, while another one I have check ever 15 minutes.
Social network updates are pushed to the phone in real time. I just got a FB notification and the comment had only happened 30 seconds prior.
IM works real time like text.
MS knows what they're doing.
ammarmalik said:
In pre-mango WP7 phones the WiFi would automatically turn off if your phone was on battery and screen was off. Is this stupid feature still present in Mango or can we make WiFi run ALL THE TIME on battery power?
Click to expand...
Click to collapse
I guess your machine will juiced out within 6 hours if your run WiFi all the time, which is simply no point. I don't think you will charge your phone every 4-5 hours or bring 5-6 batteries along with you.
Phone will turn on WiFi only when you are going to use the internet (while screen on) or when receiving the mails/messages as scheduled (while screen off), so you can still receive your mails and messages when it is idling.
tiny17 said:
Don't know if this is a troll or just a lack of understanding.
You can determine in the options how often you want to to check your various email accounts. For example, one of my accounts I only need checked every hour, while another one I have check ever 15 minutes.
Social network updates are pushed to the phone in real time. I just got a FB notification and the comment had only happened 30 seconds prior.
IM works real time like text.
MS knows what they're doing.
Click to expand...
Click to collapse
I think his problem is that he's lacking a data contract(?) In that case he can't get any real time updates, but it should still connect to Wi-Fi for the periodic checks.
Yeah, it will still connect for email. I ran wifi only for a few months.
ammarmalik said:
In pre-mango WP7 phones the WiFi would automatically turn off if your phone was on battery and screen was off. Is this stupid feature still present in Mango or can we make WiFi run ALL THE TIME on battery power?
Click to expand...
Click to collapse
It is still connected on WIFI. I use it since using Mango Dev.
WiFi is a little different in mango. If I am using last.fm and turn off the screen, WiFi stays on instead of switching to 3g. Nodo would turn off WiFi.
Few things to note:
Wifi will drop at screen lock if its not utilized. It will sign you out from your messenger and stop receiving emails etc.
If you have DATA (edge or 3G) that will keep the connection alive.
If you have plugged in your phone to a electric socket then and ONLY then the wifi will stay alive at screen lock.
Wifi drops in about 30sec at screen lock.
Android drops wifi at screenlock by default, BUT you have an option under settings to keep it alive. iPhone prior to iOS4 used to drop wifi at screenlock but not anymore and has no impact on battery life what so ever. 3G consumes more battery than Wifi.
wp7 mango is amazingly fast, but no OS is perfect. Probably in future it will be much better. For now if you are dependent on chat, email and other notification then wp7 and Data package work gr8.
All radios im the RTM are sinked, the system will use WiFi if available, and does real time updates. Aging WiFi, GPS, 3G, BT all on when not needed it is plain stupid and will kill your battery in no time. If anyone desires this get Android, there you can turn everything on till your device stops responding altogether... Embrace the way WP works, lots of taught has gone in for someone to simply criticize it like so... I think ur a perfect android customer....
Sent from my HD7 using XDA Windows Phone 7 App
hdfanatic said:
All radios im the RTM are sinked, the system will use WiFi if available, and does real time updates. Aging WiFi, GPS, 3G, BT all on when not needed it is plain stupid and will kill your battery in no time. If anyone desires this get Android, there you can turn everything on till your device stops responding altogether... Embrace the way WP works, lots of taught has gone in for someone to simply criticize it like so... I think ur a perfect android customer....
Sent from my HD7 using XDA Windows Phone 7 App
Click to expand...
Click to collapse
If my Android can last one whole day with Wifi on 24 hours(Galaxy S2) then WP7 should last longer. WiFi radio DOES NOT consume a lot of battery. Please get these retarded Android thoughts out of your mind. I'm not exactly aiming for the moon here. All I want is to get my push notifications AS THEY HAPPEN.
Someone mentioned in this thread that it periodically reconnects even with screen off to check for updates. Well if that's the case then I can forget about push notifications right? Because for those to work I'll need internet access on my phone constantly and not on periodic intervals.
I'm not trolling here. This was a genuine problem for me on my old WP7 device. The phone would disconnect WiFi when in standby. I have a perfectly fine working internet connection at home and I'm not about to sign up for an expensive data plan from my cellular network provider.
What I need to know is will I get IM push notifications, email push notifications
on WiFi when my screen has been off for a longer period of time? If I'm not then what exactly is the reason behind this? Does MS except everyone to have a data plan?
ammarmalik said:
Does MS except everyone to have a data plan?
Click to expand...
Click to collapse
The simple answer is yes. It's Windows Phone. It's intended to work with a data, voice, and text plan.
thesecondsfade said:
The simple answer is yes. It's Windows Phone. It's intended to work with a data, voice, and text plan.
Click to expand...
Click to collapse
well if that's the case then is there any app that I use to limit what app can use how much data and what app can use what kind of data (wifi or cellular?) Because if there isn't then its just a ticking time bomb before I get a bloated bill at the end of the month
ammarmalik said:
Does MS except everyone to have a data plan?
Click to expand...
Click to collapse
It's a smartphone so... yes. That's why smartphones are usually sold with data plans and that's why Microsoft implemented cloud services like Skydrive and Zune Pass.
ammarmalik said:
well if that's the case then is there any app that I use to limit what app can use how much data and what app can use what kind of data (wifi or cellular?) Because if there isn't then its just a ticking time bomb before I get a bloated bill at the end of the month
Click to expand...
Click to collapse
Let me make this easy for you... WP7 is not for you and you should stick with your Galaxy S2 which is a great phone anyway.

WiFi Always on (Hack)

Hello All,
Is anyone working on this or interested in this? I am really needing this to make WP work for me as the 3G connection is terrible and causing significant power drain.
Thanks.
Can you tell me what the problem is? Because I have no problems in toggling WiFi on and leaving it all day. Of course, I'm forced to use 3G when there is no hotspot or I have no signal from my router, but there's no problem in leaving that on.
Spaqin he means that wifi turns off when screen is blocked
djdurance currently you can only set screen block time to infinity by patching the registry
Thank you. Are you able to provide a link for the registry edit?
Sent from my SGH-i937 using XDA Windows Phone 7 App
On most phones you don't even need a registry tweak to set the screen lock time to "Never". However, doing so will destroy your battery life as the screen never turns off, and is one of the main power consumers on the phone. So far as I know (and I might be mistaken) there's no hack yet that lets you use WiFi while the phone in unplugged and the screen is off.
djdurance said:
Thank you. Are you able to provide a link for the registry edit?
Sent from my SGH-i937 using XDA Windows Phone 7 App
Click to expand...
Click to collapse
Here you go m8 .. Alot of reg tips there
http://forum.xda-developers.com/showthread.php?t=907971
There is no hack but if power use is what you are concerned about just turn battery saver on, you will have to manually sync email and a few other things but your battery will last you days. Also another thing you try try is setting you phone to use edge only since your 3g is terrible anyways and that will save you battery as well.
it would be nice if we could make wifi stay on under lockscreen, I work in a school that gets absolutley no cell phone signal inside. but we have wifi in the whole building. Too bad i cant toggle off my data connection and wifi would just stay on.
MS needs to implement this especially for business users that would possibly be connected to a private network or something.
Install Spotify, then turn it on and press start (home) and as long as Spotify will run in the background wifi will be ON. Depending on the ROM you have is need to have checked in andvanced configuration ''Don't dehydrate apps on pause'' .
ok... I will try that. Such a pain to keep that in the "open" list of apps...
One thing that will improve with Tango hopefully... Although I'm not holding my breath. Windows Apollo I guess.
It works fine with Spotify. the battery lasts longer with the network data off, because at my house the reception is poor.
Any reported results here?
Here's a trick: http://mobilitydigest.com/wp-tips-tricks-keep-wifi-running-all-the-time/
Thank Jim for finding it and myself for sharing it!
oh ,thanks a lot

[Q] Set HOX to sync only on wifi?

Is it possible to set up the HOX to only sync certain things when on wifi? I have it set this way for my Dropbox ap and I love it...I don't have to worry about data usage (limited plan) for that. I was having a problem with the calendar ap drawing extremely high data usage, but if I could (for example) set that up to only sync when I wifi, then I could start it back up. If there isn't already a setting for this, I think the developers would do good to design one. There are probably many of us that have wifi most of the time throughout the day but the commutes back and forth or while out running around draw extra data for something I could just wait for when I'm on wifi...For example, if I'm syncing contacts, I don't need it done RIGHT THEN. If it waited until I was on wifi, that would be soon enough for me...Any ideas?
mmoffitt9241 said:
Is it possible to set up the HOX to only sync certain things when on wifi? I have it set this way for my Dropbox ap and I love it...I don't have to worry about data usage (limited plan) for that. I was having a problem with the calendar ap drawing extremely high data usage, but if I could (for example) set that up to only sync when I wifi, then I could start it back up. If there isn't already a setting for this, I think the developers would do good to design one. There are probably many of us that have wifi most of the time throughout the day but the commutes back and forth or while out running around draw extra data for something I could just wait for when I'm on wifi...For example, if I'm syncing contacts, I don't need it done RIGHT THEN. If it waited until I was on wifi, that would be soon enough for me...Any ideas?
Click to expand...
Click to collapse
If you use Tasker I'm sure you can set it up to turn on sync when wifi is on and turn it off whenever you turn off wifi/lose connection
I bought Tasker...I'll give it a shot...but it looks a bit intimidating...
mmoffitt9241 said:
I bought Tasker...I'll give it a shot...but it looks a bit intimidating...
Click to expand...
Click to collapse
You can do some pretty ridiculously complicated things with Tasker, but for most basic tasks like turning things on and off it's pretty easy. The hardest part is just sifting through the categories until you find what you're looking for.

Categories

Resources