Is there an app to turn off 4G whenever screen is off? - EVO 4G Q&A, Help & Troubleshooting

From everything I've heard, having 4G running all the time is a real battery hog. So it's a real waste to keep it on while the phone is in standby mode. However when the phone is on, I'd like to use 4G for web browsing, etc. and I don't want to keep having to toggle it on and off.
Is there an app available that automatically toggles off 4G whenever the screen is off, and automatically toggles it back on whenever the screen is on (similar to what is done with the OverclockWidget)?
I've searched but couldn't find one.
Thanks
Albert

There will be the second that I find the one little line of code to toggle the 4G.. got the rest of the app done though..

That would be handy.

Starting to think its not possible.. let me know if anyone finds how to toggle the 4G and ill add it in. I feel like it was something that Sprint/HTC created though and is not in the normal SDK as this is the only device with wimax so far.

Related

[Q] Force WiFi to stay active when screen is off?

Hi everyone!
I'm using OpenDesire 4.0.4, and while it's more or less the perfect ROM for me, I'm getting a little annoyed at the WiFi. As the ROM is based on CyanogenMod, it has the same WiFi behaviour: When the screen turns off, the WiFi enters power saving mode, regardless of the apps that are active at the time, or the amount of traffic over WiFi at the time.
The problem here is that any application that's using WiFi pretty much just stops as soon as you turn the screen off.
1. Sipdroid during a call: Massive packet loss as soon as the screen turns off. You may hear a garble or two, but nothing intelligible.
2. SwiFTP and other FTP servers: Connecting to the FTP server and navigating to folders takes ages when the phone is in standby. Transferring files is more or less impossible (times out)... Everything's fine when the screen's on. If you transfer a big file and turn off the screen during the transfer, you basically pause the transer - turn the screen back on and the transfer goes back to full speed
3. Market: If you turn off the screen while a lot of apps are going to download, like after pressing "Update all" for a few apps, more often than not they'll just fail in the background.
Now, I could beg and ask the ROM developers (Kali for CyanogenMod on Desire, or AdamG for OpenDesire) to just change this behaviour, but it seems that most people are happy with the situation, as it causes the WiFi to use very little battery on standby... so I'm asking if anyone knows how I could change this myself. Is it even possible to do this at runtime without baking it into the ROM directly?
Or am I SOL until (or rather unless) AdamG or Kali takes pity on me?
I'd love to hear some input - hell, maybe I'm just doing it wrong ... Thanks in advance!
PS: Yes, my WiFi Sleep Policy is set to Never, and the Desire DOES stay connected when the screen is off. Just in a very low power mode...
-edit- Should have searched, sorry: http://forum.xda-developers.com/showthread.php?t=752856
-edit2- Looks like there really isn't a fix for this... Anyone found a way to completely disable PSP on the Desire/Nexus WiFi?
I'm on the same ROM as yourself. What value is your "screen-off lock screen delay" set to?
In my observations, the transfer in the state you mention still persists albeit at a very slow rate and the WiFi chip is certainly placed in the LOW power state, although on.
I'm unaware of any workaround but what I use myself when transferring bulk 1-7GB files through WiFi from my PC/Laptop, which is to change the value of the screen lock delay at screen off under Settings>OpenDesire>User Interface>(last option) to a high figure, like 10-30m, depending on how long I'm expecting the transfer to take. It's a trade-off but you'll still save over 95% of the power since your screen is off but the WiFi/SD/CPU remain working as when the screen is on. Maybe you've tried this already?
-----------------------------------
- Sent via my HTC Desire -
That's not a bad idea... brb testing .
-edit- Didn't work
As soon as the screen times out, my transfer speed drops to nearly 0 - even with the lock delay set to 30m... :'(
OK, that's confusing. I'll be back by tonight or morning... I have much testing to do on this since for sub-20mins, my connection runs plus 200Kbps according to the PowerTutor log in such a state. Usually it would drop to 0.3-8Kbps when the screen switched off.
-----------------------------------
- Sent via my HTC Desire -
th3 said:
OK, that's confusing. I'll be back by tonight or morning... I have much testing to do on this since for sub-20mins, my connection runs plus 200Kbps according to the PowerTutor log in such a state. Usually it would drop to 0.3-8Kbps when the screen switched off.
-----------------------------------
- Sent via my HTC Desire -
Click to expand...
Click to collapse
Mine drops to practically 0. So low that due to overhead, FTP transfers pretty much stop completely...
I've seen that the linked kernel module provides a temporary workaround for you guys now. During the course of my testing your concern I basically found my WiFi module isn't ever turning off nor switching any connections off - it's always awake and can always transfer some data. Even in the LOW state it is connected at 24Mbps. Whatever I did I couldn't change this behavior on 4.0.4. Time for another wipe...
OD has many user preferred options baked in working fine alongside the conventional options so it'd probably be best suited for a toggle of this feature to be implemented for you guys (if at all possible). Not sure if that WiFi module power state behaviour is write-able and changeable on-the-fly before a reboot, should be, as it's only changing a hardware state.
-----------------------------------
- Sent via my HTC Desire -
The new Wifi module is working perfectly here. No more performance problems, and my power consumption has actually gone DOWN. Probably because I have a bunch of connected apps running in the background and PSP is very inefficient for that.
Also, the delays in Chrome To Phone and Appbrain web installs are gone...
I'm loving this fix...

Anyone Using Tasker?

Anyone here using it? what is this app for? is it worth buying? does it give u battery life? im really interested but i cant find no videos on it on youtube. please share your thoughts.
It is worth every penny. The best app for android IMO. It is not very easy to master it, but even the basic stuff has made a vast difference too the behavior of my phone.
For example, I have extended my battery life to 38 hours simply by having it automatically go into airplane mode between midnight and 6am.
It will turn off wifi, back screen brightness down, change screen timeout to 10 seconds and give me a notification popup and sound when my battery drops below 15%.
It will turn on gps when Wavesecure is activated, something Wavesecure can't do by itself.
It will turn my ringer off when I get within 200m of the two cinemas I go to.
It turns wifi on when I get home, and off when I leave. Same for work.
It loads my music app when I plug my headphones in.
Tasker can make widgets! I have one set up to (with one press from my home screen) turn up screen brightness, turn on gps, turn up speaker volume to max, wait 2 seconds, then launch google navigation. It will then turn everything back when I exit out of navigation.
It will, on weekdays, text my girlfriend at a certain part of my journey home after work. That way my dinner is ready when I get home!!!
I would say try out the free 1 week trial. There is even a wiki and web site with extensive instructions and examples uploaded by other users. You can also import profiles as well as create your own. The really handy ones I have exported to my sd card, and e-mailed them to a friend when he bought Tasker. Not sure I helped him though as there is a steep learning curve for this app, and it is worth being patient with it to learn its ways for yourself.
I think it is worth much much more than the asking price.
Sent from my HTC Desire using XDA App
wow sounds sooo nice . i already bought full version yesterday but havnt even opened the app once . well i did open it once it seems hard to understand lol . so for all this task does the gps need to be on? or not? and can u turn off 3g?
You can turn off APN, but don't think that works well in the UK. Sorry, my knowledge of 3g is limited.
Basically, you can have tasker turn on and off nearly any feature of your phone that your want. There are two sides to tasker. The "Profile" and the "Task".
I have found it is best to first set up the "task". Say you want to save battery power at night. Select the task button and select "new". Call it "power save" or something. Select the + symbol and select "Net". In this menu, pick "Airplane mode" and select to ' on'. Then hit ok, then save.
Now to create the 'Profile' where you define the contexts that will activate the "power save" task you just created.
Select 'new' then select the 'time' context. Enter the time you would like to have your phone go into airplane mode. After hitting 'ok' it will take you to the profile page where you set up what now happens between the times you just specified. From the drop-down at the to of the page, select the "power save" task you created earlier. Hit 'ok'.
Done. Your Tasker will now shut off all your radios between the times you entered.
Sent from my HTC Desire using XDA App
Worth every penny. I use it to:
- turn on GPS for programs that need it (turns back of when editing the program)
- turn notifications off when starting desk clock
- change volume when connecting head phones
There are endless possibilities, try it and then buy it.
i've bought it for little things but want it to be able to handle 3g data which it doesn't
i,e turn on wifi, if no conn after 10 secs, turn on 3g, auto sync for a min, then turn data off.
works fine and dandy with wifi, but not 3g.
tommo123 said:
i've bought it for little things but want it to be able to handle 3g data which it doesn't
i,e turn on wifi, if no conn after 10 secs, turn on 3g, auto sync for a min, then turn data off.
works fine and dandy with wifi, but not 3g.
Click to expand...
Click to collapse
You need APNDroid to disable 3G.
tasker really is worth every penny!
Wort every cent. Must have
I used to check periodically (every 3 minut) if my car Bluetooth near. If yes connect and and hold on the connection. If disconnect wait 15 minutes and seek again... save really battery... fantastic...
Sent from my HTC Desire using Tapatalk
Tyderion said:
You need APNDroid to disable 3G.
tasker really is worth every penny!
Click to expand...
Click to collapse
it still doesn't work. it turns apndroid on, but 3g flashes up then dissapears.
wnp_79 said:
It will, on weekdays, text my girlfriend at a certain part of my journey home after work. That way my dinner is ready when I get home!!!
Click to expand...
Click to collapse
Now that i like. This app sounds amazing.
Thanks for bringing it to my attention.
wnp_79 said:
It is worth every penny. The best app for android IMO. It is not very easy to master it, but even the basic stuff has made a vast difference too the behavior of my phone.
For example, I have extended my battery life to 38 hours simply by having it automatically go into airplane mode between midnight and 6am.
It will turn off wifi, back screen brightness down, change screen timeout to 10 seconds and give me a notification popup and sound when my battery drops below 15%.
It will turn on gps when Wavesecure is activated, something Wavesecure can't do by itself.
It will turn my ringer off when I get within 200m of the two cinemas I go to.
It turns wifi on when I get home, and off when I leave. Same for work.
It loads my music app when I plug my headphones in.
Tasker can make widgets! I have one set up to (with one press from my home screen) turn up screen brightness, turn on gps, turn up speaker volume to max, wait 2 seconds, then launch google navigation. It will then turn everything back when I exit out of navigation.
It will, on weekdays, text my girlfriend at a certain part of my journey home after work. That way my dinner is ready when I get home!!!
I would say try out the free 1 week trial. There is even a wiki and web site with extensive instructions and examples uploaded by other users. You can also import profiles as well as create your own. The really handy ones I have exported to my sd card, and e-mailed them to a friend when he bought Tasker. Not sure I helped him though as there is a steep learning curve for this app, and it is worth being patient with it to learn its ways for yourself.
I think it is worth much much more than the asking price.
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
Wow sounds like you have a good understanding and has some good stuff. I don't know if you can, but I posted a page where maybe people can leave profiles for those of us who are a bit more chronologically challenged.
This is the greatest
I use tasker for everything. I am very forgetful so I have it pop up astrid tasks when I leave the house or work. The quiet mode works well for work and there is even a way to auto check in to foursquare.
Worth every penny, it makes your phone 10 times better and is a must have app.
I have profiles that do the following:
-During work hours and within range of the office set Vibrate, turn off wi-fi.
-When within range of home turn on Wi-Fi
-If at home after certain time in evening go silent
-When leaving car (detected by bluetooth connection to stereo), store time and location. Have icon on desktop to retrieve info and show on map to find car.
-When on call (by checking diary) if a colleague calls always ring regardless of silent.
-Say caller/texter name
-Send magic packet to wifes phone to report location and show on map (handy when shopping)
Plus many other scripts....
I find that this program has a pretty high learning curve...
Is there a wiki I can read up or a way to import other people's profiles?
YoYoost said:
I find that this program has a pretty high learning curve...
Is there a wiki I can read up or a way to import other people's profiles?
Click to expand...
Click to collapse
http://tasker.dinglisch.net/
Using "Cell Near" instead of GPS
I was using Tasker to turn WIFI on and off based on GPS locations. However, I found an alternate method that does not use GPS calls (and waste battery use). Instead, I am now using "Cell Near" to find the cell tower near home and turn WIFI off when I am not within distance of it.
I have posting walkthroughs of all of the most useful profiles I have collected. Check it out at http://dbilliter.blogspot.com
Tasker rules my phone... With all the taks i made.... Love the app!!!
You can do almost everything if you know how to use it... Little variable programming and your phone will get his own life haha...
GREAT APP
the_ahmadzais said:
Anyone here using it? what is this app for? is it worth buying? does it give u battery life? im really interested but i cant find no videos on it on youtube. please share your thoughts.
Click to expand...
Click to collapse
If you're interested I've put together this thread http://forum.xda-developers.com/showthread.php?t=1018245 on how to use the CPU Profiles - I hope it's good enough to replace SetCPU!?
Let me know what you think.
problem with deleting profiles
i am also new to tasker. made a simple sms schedular, which worked fine, but when i deleted all the profiles, contexts and tasks...somehow sms is still going on scheduled time... tried to clear data, force stop it, but still sending sms.
any suggestion.
thanks

Help with tasker

alright i need help with the program tasker.
i have a DINC and i want to get it set up to toggle data connection on screen off. i found some tutorials that got it to do that and it works cool but i cant get the it to enable every X amount of mins for auto sync, if this isnt possible is there a way i could just have it go into 2G mode and then into 3G mode apon screen on
also with the profile i have set up now where it dsiables all data on screen off sometimes i noticed when i screen back on the data connection never resumes, it looks like it does it mostely in low coverage areas and in extended network areas
http://forum.xda-developers.com/showthread.php?t=769364
i made a thread for Tasker a while ago. Just answered a similar question at the end. You could try posting there if you have any further questions

[Q] Searching an app/mod for automatic wifi/3G connection

Hey guys,
I am searching for a mod or app that makes my Handy go online in a set period.
For example I have set the Wi-fi not to be on always when screen is off and have activated the standby mode (so 3G won´t be on when screen is off), because it makes the battery last so much longer. And now I don´t want to always have to switch on screen or touch my phone I would just like it to go online every 30 minutes for 1-2 minutes so i get the notifications and see i have missed something because of the notification light.
I know you will answer me just turn everything on always but that drains the battery to much.
Hope someone could help me.
Try juice defender, from the play store
Sent from my LT26i using xda premium

A Root Battery Saver App (By Moi)

I've lately got into developing mobile apps and even though i've promoted this as beta, people seem to be using it, but nobody's reporting back! - same goes for all of my apps, i don't get it...
Anyway, i need real feedback and I was wondering if any folks here with a rooted android could help test this app out, it was made on Kitkat, so while yes, it works fine for me, it may not for you... I've had one feedback comment saying that his modem data was not switching off on lollipop, so i added support for that now allowing him or her to use the app as intended, but after replying via the playstore, nothing was heard of him since... almost suspicious lol
http://www.youtube.com/watch?v=YpsPnMRO86w
Find it on Android's Playstore... Craig's Battery Saver ROOT
https://play.google.com/store/apps/details?id=saver.battery.craigs.craigsbatterysaver :good:
How it works..... read on
How it works, if you're interested!
2 things use up battery power
1. apps that are CPU intensive, eg constantly repeating to connect (this would only happen under malware, as most apps would never do this, it would see the socket it closed/dead and stop and wait until user input, malware would constantly reconnect.. but 99/100 apps will just stop and then do nothing meaning all genuine apps should 'idle' not really using up cpu time....
2. Hardware services, bluetooth, mobile data, wifi, gps, these services are all hardware, so your cpu will switch on each of these services and each one has a significant drain on your battery, go bed at 11pm, by 9am it may have drained 30 - 40% or more... with this app, it will have drained under 1 - 3% depending on your battery (tablets for example should run for days with this app if rooted)
So this app does 2, it first remembers which hardware was on before the screen goes off, so no confusing switch wifi on when wifi's already on (as i've seen on other apps?!) reason why i wrote this because all the other apps i came across sucked really, almost but not quite etc etc..
With this tool, if you're a light user you could quite easily see 60% battery improvement! the bonus side affect of this app is also interesting, for 1, it charges quicker! if you accidentally fall asleep, it will conserve as much power as possible, obviously sms,telephone/mobile network is still running in the background so you can't completely stop a device from draining...
the other bonus side affect was, it kills dead all facebook notifications, twitter, well it would as it disables wifi, modem. 3g, bt when the screen goes off! :good:
1 more feature, if you drop your phone? then what?... take where's my droid, i sms it asking for location... it replies "GPS OFF" and "modem off" simple, send the text message to your phone with "on" without the " " around on, and the app will disable itself so it does not switch off the services and then at the same time it enables Wifi, Modem Data, Gps, Bt pretty useful huh... then on where's my droid, you'll get GPS combined with AGPS data from mobile data giving you pin point accuracy, as soon as you get the data of where it is... type in
off (to turn this feature off) or
on (to turn on all your services)
It also disables itself taking calls...
It has a smart check feature too, let's say after you switch the screen on and for some reason wifi failed to switch on ? after 3 seconds it will then check again to see if wifi is indeed on... if it's not on, it attempts to switch it on again...
Feedback is greatly appreciated so i can support a larger range of devices.... thank you for reading! (Suggestions, welcome!)
So basically what your device is and what's not working (along with build version, lollipop/kitkat etc) and i'll see if i can find a way to add it in to support your droid! - one more thing, i've been releasing updates like a crazy woman collecting cats lately and even though it does all this it's only supporting "Extreme power saving option" come tuesday i hope to have that sorted out so that every few minutes it can wake up to check for twitter/facebook messages for all of those who hate the sound of a phone being blissful quiet
if you're rooted and it does not look like that in the video [top of screen] (not the interface, but the services, i've already updated the UI)
anyway, help me to make it better for you...
One more thing, there are no push notifications, no popup adds, no huge banners, all my apps have one tiny advert to help support the countless hours of programming i'm putting into this apps, with each upgrade i aim to make them more stable and more usable, and i really need peoples help and support even if that is criticism - it's "beta" but i'm almost ready to bring it out after i add the wake up services....
Nobody has a rooted device?
Unlike other battery savers... it really does work

Categories

Resources