Disable cellular when WiFi is present - Android Q&A, Help & Troubleshooting

O2 Germany offers this feature to route your calls/SMS/MMS through Wifi. Since I'm 9 hours a day working in a building where no cellular signal can reach me but wifi is present I might as well turn it off. (according to android battery management cellular network standby takes 11-15%) I know enabling airplane mode and then enabling wifi will do the job but is there no possibilty to simply switch it off?

My guess is that it consumes that much battery because it continuesly scans for a network. Is there at least a way to change the scan intervall?
btw my phone is OnePlus One running COS

Hello (liebe gruesse)
you can try llama (free) or Tasker (payed).
Llama is not more in development, but it is open source.
I think the last API level is 21 (Lollipop 5.0).
http://kebabapps.blogspot.de/?m=1
Tasker is still in development but closed source an cost around 3€,
but is made in Germany.
For Both Apps you need time to find out how it works.
The GUI are not the best, but hey you need it one time and let it run in the background.
I know with Llama can you select:
if WlanSSIDconnected = yourWlanName {tun off celluar}
else {turn celluar on}
Viel Glueck (have fun by try it out xD)

Related

Battery Life

Ok i'll strart this one off with my experince and my battery, (sorry about typos)
When I first got my droid, the phone lasted 3 hours and needed a charge. Well now it lasts me 56 hours and i use it about 5. 1/2 hours to 6 hours. If you do not care about pushemail disable the following settings.
Wifi
GPS
Mobile Network Always On
Enable:
AutoBacklight or turn brightness down as low as you can bare.
Hope this helps improve somes battery life. With Mobile Network always on you will still be able to use the internet there will be a small delay at first to sign in. If you want easy access to wifi/gps add a widget to your desktop. Now if you want to take it a step farther and are not getting quite what you want install a task manager i use Task Manager 1.11.1 use your preference. If your done using a app/game kill it as this is responsible for alot of idle cpu use even when not in use and may/can prevent your phone from sleeping. To check your sleeping status go to Settings> About> Status> At the bottom youll see uptime and alive time with a easy % number. At first my awake time was 78% after doing all this and using task managers i was averaging 9%.. Also just remember the more you play/ mess with it your battery will Die, I can still drain my battery quick if i wanted to.
The WiFi chip uses less power than the 3G Chip, so if WiFi were enabled whenever there is an available network, battery life shall be saved.
I keep my Mobile Network Always on enabled and I get about 18 hours out of my phone in one charge with moderate to heavy use.
Haven't done my wifi test yet. Original was with my mobile network just drained the battery today again, will try with wifi as suggested. Only down side to wifi - only is MMS give errors. So you gotta toggle to Mobile Network, But if you disable always on mobile network (still leaving mobile network on) and enable wifi, This should cause the mobile network only to be used when needed correct? so i would assume it would be same power savings if you were wifi only?
posting for cred

[Q][View] Battery/Screen Question

Hello, everybody. Newb here (only have had the HTC Evo View 4G for a couple of days now). I have a question about the battery and screen. Is it regular for the screen to use up about ~60 percent of the battery? (According the usage stats). I find that the screen is bright, even on the lowest setting.
Also, I have a question about the battery. It seems to be draining a little quick (I am using lowest brightness and WiFi only). Could some people share how long their battery usually lasts for regular usage? I don't think it's a hardware issue. Like I've said, I've only had it for 2 days, so I don't know if I still need to wait a little.
Thanks!
The screen is one of the biggest battery drainers (if not the biggest) on tablets. So if you are using the tablet a lot, and the screen is on for long periods of time, then 60% seems normal. I don't have my Flyer with me right now to check what my % for screen is.
Battery drain is going to depend a bunch on how much you are using your View, and for what. With moderate usage, I can get around 2 days on a charge. I'd say that is about average for me. But if you are downloading big files and gaming, and/or have the screen on a lot, it can be significantly less.
redpoint73 said:
The screen is one of the biggest battery drainers (if not the biggest) on tablets. So if you are using the tablet a lot, and the screen is on for long periods of time, then 60% seems normal. I don't have my Flyer with me right now to check what my % for screen is.
Battery drain is going to depend a bunch on how much you are using your View, and for what. With moderate usage, I can get around 2 days on a charge. I'd say that is about average for me. But if you are downloading big files and gaming, and/or have the screen on a lot, it can be significantly less.
Click to expand...
Click to collapse
Okay, that makes sense. The battery life seems to be getting better. One more question. I want WiFi to turn off after a certain amount of time once the screen timeouts. Is there any way to do this in the settings or with an app? The settings (official 3.2) has a WiFi timeout policy that gives three options:
Switch from WiFi to mobile data when screen is off
Never switch WiFi off
Never switch WiFi off when plugged in
I live in Canada and don't have a plan. Would using the first option drain more battery because it is looking for a connection? Or should I use the third option?
Thanks again.
Hmm, not sure. I have the WiFi only version of the Flyer, and on mine the first choice is just "When screen turns off". The first choice on your View is weird. Mobile data always uses more power than WiFi, if both are available. I don't see why you would ever want that.
BTW, I'm at home and have access to my Flyer now. Battery usage for screen is 52% for me. So I'd say 60% you mentioned is pretty normal.
You should also take into account, unless you've taken steps to turn it off/remove it, Cell standby might also be causing your battery life to take a hit. Since the View is set up to also be able to receive text messages, out of the box it's constantly trying to connect to Sprint's cellular network, even if you have mobile data turned off. This thread discusses ways to deal with it. Cell standby used to be one of the biggest users of my battery. Now, it's no longer a problem and I've seen a major increase in battery life.
As for the WiFi issue, the first choice in the settings actually says "When screen turns off (uses more mobile data)." That doesn't mean that it automatically switches mobile data on if you've turned it off in the settings by selecting that option. It's worded that way because the View is designed to be used on Sprint's network, so under normal circumstances it is assumed that if you turn WiFi off, you'll have a data plan and automatically connect to the mobile data network. If you don't have an account with mobile data from Sprint, and you've turned off mobile data in the settings, it won't be an issue because you have nothing to connect to.
bsweetness said:
As for the WiFi issue, the first choice in the settings actually says "When screen turns off (uses more mobile data)."
Click to expand...
Click to collapse
That makes much more sense.
Okay, thanks everybody. I really appreciate it. With heavy usage (basically using it all the time) I'd get about 6 hours and 10 minutes. Is that normal for everybody else?
Also, I have a couple of more questions, if you guys don't mind.
First of all, could rooting my device boost my battery life? Would it give me more access to settings like screen brightness?
And, do apps running in the background use battery life or are they 'frozen' until active? This sort of leads me into my next question. Is having 400-500MB of RAM always being used normal? Is the OS using all of it?
And I notice that when I put my tablet in airplane mode (to kill the 4G radio) I lose access to Bluetooth. Is this normal and will turning off airplane mode for a minute be a battery drain?
Thanks again, guys.
nubyw00tz said:
Okay, thanks everybody. I really appreciate it. With heavy usage (basically using it all the time) I'd get about 6 hours and 10 minutes. Is that normal for everybody else?
Also, I have a couple of more questions, if you guys don't mind.
First of all, could rooting my device boost my battery life? Would it give me more access to settings like screen brightness?
And, do apps running in the background use battery life or are they 'frozen' until active? This sort of leads me into my next question. Is having 400-500MB of RAM always being used normal? Is the OS using all of it?
And I notice that when I put my tablet in airplane mode (to kill the 4G radio) I lose access to Bluetooth. Is this normal and will turning off airplane mode for a minute be a battery drain?
.
Click to expand...
Click to collapse
Answers:
Rooting won't necessarily boost battery life, but does give you ways to access more system items if you want using apps that take advantage of root.
Android attempts to keep non-rumming apps in memory so that it can load them faster in the future (Ram is much faster than SD memory). 80% Ram full is typical.
Airplane mode turns off all radios, BT, Wifi, GPS, 3g.
There are apps in the market that can turn various things on / off based on your environment / time / conditions
nubyw00tz said:
First of all, could rooting my device boost my battery life? Would it give me more access to settings like screen brightness?
Click to expand...
Click to collapse
You don't need root access to adjust screen brightness. Settings -> Screen -> Brightness.
nubyw00tz said:
And I notice that when I put my tablet in airplane mode (to kill the 4G radio) I lose access to Bluetooth. Is this normal and will turning off airplane mode for a minute be a battery drain?
Click to expand...
Click to collapse
DigitalMD said:
Airplane mode turns off all radios, BT, Wifi, GPS, 3g.
Click to expand...
Click to collapse
Airplane mode turns off all radios initially, but then you can turn almost all of them right back on (except for the cellular radios). I run mine in airplane mode all the time to keep the cellular radio completely inactive, but I still use WiFi, GPS, and Bluetooth when I need/want them, and they all work great. Are you running Gingerbread or Honeycomb? I do seem to remember some mentions of not being able to use Bluetooth in airplane mode on Gingerbread. It works perfectly fine on Honeycomb.
And you can turn off the 4G radio and all data service without turning on airplane mode (Settings -> Wireless & networks -> Mobile network). Doing this turns off all radios that receive data from the cellular network, but it doesn't turn all cellular functions off since the View is also set up to receive text messages. That's what airplane mode or any of these options address.
What I meant by adjusting the screen brightness was being able to control its range more than I can right now (I feel that even the lowest setting can be too much). But it seems that rooting/installing a custom ROM wouldn't do too much for the battery.
But my issue with airplane mode is that I can't turn on Bluetooth with it (Bluetooth is 'grayed out'). I am running official Honeycomb.
nubyw00tz said:
But my issue with airplane mode is that I can't turn on Bluetooth with it (Bluetooth is 'grayed out'). I am running official Honeycomb.
Click to expand...
Click to collapse
Did you try tapping on the box for Bluetooth in the settings even though it looks like you can't, and did you try using a widget to turn it on? I'm using stock OTA Honeycomb, and Bluetooth works perfectly fine for me while in airplane mode. I can turn it on in the settings (the box does look a little "grayed out," but you can still select it) or via a homescreen widget. If you can't turn it on with either of those, then it would seem that you've got some other type of problem. It works fine for me. I just tested it out again.
bsweetness said:
Did you try tapping on the box for Bluetooth in the settings even though it looks like you can't, and did you try using a widget to turn it on? I'm using stock OTA Honeycomb, and Bluetooth works perfectly fine for me while in airplane mode. I can turn it on in the settings (the box does look a little "grayed out," but you can still select it) or via a homescreen widget. If you can't turn it on with either of those, then it would seem that you've got some other type of problem. It works fine for me. I just tested it out again.
Click to expand...
Click to collapse
I just tried it. It seems to not be working for me, but it doesn't seem like a glitch but something built into the OS (I tried with a widget and it did a little 'no' animation). It's alright, I rarely use Bluetooth anyway.
Thanks for all of your help (plus everybody else, too)!
nubyw00tz said:
I just tried it. It seems to not be working for me, but it doesn't seem like a glitch but something built into the OS (I tried with a widget and it did a little 'no' animation). It's alright, I rarely use Bluetooth anyway.
Thanks for all of your help (plus everybody else, too)!
Click to expand...
Click to collapse
I'd venture to say it's not something built into the OS. If it is built into the OS, then there's a glitch that allows me to use it under the same circumstances, and glitches rarely enable functionality. They almost always cause a device to lose functionality like you're experiencing. I'd be curious to know if anyone else is having the same issue you're having.
Last time I have ran battery test on my Flyer I ran it for almost 11 days on one charge. Yeap, 11 days. I mostly used Flyer as a notepad, checked orders on website couple of times a day, read emails. One day I played a game for about 20 minutes. At the end I set up and tested Plex and Google Music. I stopped the test at 11% charge. Overall screen was on for a bit over 4 hours (40%). Wi-fi on for 16 hours (only 4% ??) according to stats. That's pretty much it. Tablet idle 43%. Fairly light usage, but I mostly was testing how much of useable time I can get out of it. 11 days is a pleasing result.

Greenpower is a must have app

Link
One of the top power saving tips for android roms on any device is turning wifi off when the screen is off. Our touchpads are not capable of this on their own yet, that is where this app comes in.
Just install/open and the app will do the rest for you. The only con that I have found is that it takes 5-10 seconds for it to enable wifi when you awake if for sleep.
Market Description:
GreenPower battery saver: No need to charge your battery so often!
GreenPower battery saver brings many extra hours to your battery life!
Unlike other battery savers that require regular user manual actions, GreenPower is fully automatic: Once configured, it runs and saves your battery by itself. It does so by smartly managing Wifi, Mobile data & Bluetooth (*): Turning them off when you don't need them, but ensure minimum disturbance: Automatic turned ON when needed by you or by other apps (e.g retrieving mails).
Similar but easier cleaner and faster than JuiceDefender!
"GreenPower mainly does one thing, but does it so well and so flexibly that the benefits reaped are considerable." (InfoWorld)
"GreenPower is a simple and easy to use power and network management software" (Engadget Chinese edition)
"GreenPower Premium is a remarkable tool. Battery saver, time saver, top notch!" (AndroidPit)
HIGHLIGHTS
- Handles WIFI, Mobile Data (2G, 3G, some 4G) & BLUETOOTH
- Supports most phone types (both GSM & CDMA) and most carriers
- Supports Android ICE CREAM SANDWICH, HONEYCOMB, GINGERBREAD & FROYO
- Mobile Data toggling using clean Internal API or APN renaming (you can chose)
- Most features below available in Free version unless marked with (*)
INSTALL AND FORGET
Or take time to configure to get the most out of it!
24H MONEY BACK GUARANTEE (premium)
Google's 15 minutes trying time is too short for such an app. Try Premium for 24H and get a refund if you didn't like it.
FEATURES
- Wifi mgmt: Based on schedule, screen state, power connected, signal level...
- Mobile data mgmt: Based on schedule, screen state, power connected...
- Mobile data mgmt: Either Internal API or APN renaming
- BLUETOOTH (*) mgmt: Based on devices connected or in range, screen state, power etc
- Traffic check: Configurable to prevent disturbing other apps
- Apps Whitelist (*): To keep data on when using specific apps (like music streaming)
- Simple WIDGET (*): To quickly pause or resume
- NIGHT (*) mode fully configurable, Airplane mode...
- Tasker & Locale Plug-in (*)
- Compatible with Cerberus 2.0
- Very lightweight and fast app
- Easy and clean interface
- Fully configurable settings
- Settings backup / restore
- 20 Languages (changeable at run time)
- And more...
SUPPORT
- Dedicated Forum for support issues
- Support from the developer. I'm answering each issue.
- Regular updates with bug fixes and new features
PREMIUM version specific features:
- Bluetooth support
- Widget
- Night mode
- Tasker & Locale Plug-in
- Apps whitelist
- No ads
- The good feeling to support an independent developer ;-)
Tags: battery saver, battery booster, juice defender, batteryfu, apndroid, 2x battery saver
Click to expand...
Click to collapse
I have no affiliation with this app, just wanted to pass it along to those who want some power management. I haven't bought the premium version, but probably will after a week or so of testing.
Im going to try this with AOKP 31. So what you are saying, is the bug where if i have wifi set to off, it never comes back again, will be fixed with this app? I wont have to turn wifi off and then back on again to reconnect after sleep?
nightanole said:
Im going to try this with AOKP 31. So what you are saying, is the bug where if i have wifi set to off, it never comes back again, will be fixed with this app? I wont have to turn wifi off and then back on again to reconnect after sleep?
Click to expand...
Click to collapse
You'll leave your wifi setting to "always" be on and let the app manage it.
When the screen shuts off, the app will turn off your wifi. When you turn your screen back on, it turns your wifi back on.
Like I said above, it is slow to turn back on (sometimes takes up to 10 seconds), but yes it will turn it back on for you.
If you have ever used Juice Defender before, this app is like that in a simpler form.
Just what I wanted. Works just like you said. Hopefully it doesn't have battery drain from running in the background. But so far I am happy that it kills wifi when the screen is off and starts it back up on screen on.
I tried it (free version initially and then purchase and got a refund within 15 mins) but then settled for Juice Defender instead. Both are good but I found the extra customisation, etc. available with JD the deciding factor.
I've got JD Ultimate and its definitely saving me battery life on both my phone and Touchpad. Its also got a handy 'night mode' feature that automatically switches my tab into silent mode at bedtime and back into noisy mode around the time I wake up!
I've been using llama (available on the market) for some power management. It's not explicitly designed for that purpose, but you can create profiles based on location and have it turn off the wifi if you haven't used it for a while, that sort of thing. It's kind of like a simpler version of Tasker.
Neat idea but not a new concept whatsoever. The App Tasker does this and a WHOLE lot more. What you describe above is what a profile or two in Tasker can do.
DNak206 said:
Neat idea but not a new concept whatsoever. The App Tasker does this and a WHOLE lot more. What you describe above is what a profile or two in Tasker can do.
Click to expand...
Click to collapse
I'll have to check App Tasker out. We need to share battery saving info like this because in my opinion that is an area we are lacking with our Touchpads.
rootnik said:
I'll have to check App Tasker out. We need to share battery saving info like this because in my opinion that is an area we are lacking with our Touchpads.
Click to expand...
Click to collapse
You're kidding right?! My batt lasts ages - its one of the great features of the Touchpad. I can put videos on for my son in the car for 6-8 hours and still have 20%+ juice left afterwards for him to play Angry Birds when reach our destination! Or, spend all day surfing the net and playing games before it needs a recharge.
Obviously I don't leave my WiFi on while I'm not using it or doing something that doesn't need me to be online.
Also, one if the biggest battery drains is usually the screen. Turn the brightness down and it'll last loads longer!
Good find. Thanks.
I downloaded this and gave it a try. Didn't really notice any difference in battery tbh.

[Q] wlan_wake wakelock on Hyperdrive RLS 12 on Verizon Galaxy S4

Hey guys,
On my second samsung device and my fifth rom (including eclipse TW, eclipse AOSP, aokp, CM10, now hyperdrive). Have to say thay I'm satisfied with pretty much everything Hyperdrive has to offer, its freaking amazing! One issue doesn't seem to be resolving despite many attempts. My phone stays awake nearly 100% of the time with a wlan_wake wakelock. This isnt the well documented wlan_rx_wake wakelock, which I've also had in the past but managed to squash. I'll recount my findings in some order below.
I installed Hyperdrive, restored some some vital apps. Waited a couple days and found the battery wasn't what I'd hoped it'd be. I usually run with auto sync enabled for total 8 mins per hour (via Tasker) and wifi and mobile data on. I've also used a script that disables IPv6 whenever it connects to a wifi network -- work network has tons of IPv6 broadcasts that were triggering massive wlan_rx_wake wakelocks which were vastly reduced with this fix. Even with these throttles, I noticed that some time after boot (10-15 minutes) on my work as well as home network (10 mixed devices on a belkin router), a wlan_wake wakelock would start triggering and my phone would then stay awake 90-100% of the time, screen on or off.
I went ahead factory reset the phone, loaded just my google account, and found the same problem with autosync on, autosync off, GPS was off, Wifi "always allow scanning" option was disabled in the advanced menu, Google's Wifi network location was disabled, and no 3rd party apps except for BBS installed. Of course, with Wifi disabled, the issue abated but 3g/4g doesn't offer much better battery life than the phone staying awake the whole time. During this time, I used Network Logger and Shark for Root to attempt to identify Wifi traffic and found that a few apps were transmitting frequently, but not enough to keep the phone awake for the amount of time the wakelock indicated. Total battery drain is up to 8-10%/hour with absolutely minimal use. I've never had this particular issue with any other OS i've installed, any ideas what could be going on? Really looking forward to being able to rip through days without charging on Hyperdrive!
I have a Samsung Note 3 and I too have this same problem (except that a factory reset solves it). Can't seem to find a fix. People on internet suggest that it's because of some rogue app but my phone starts behaving like this randomly until I do a factory reset.

Would really appreciate some help making a wifi/cellular Tasker script :)

Hi there,
I recently rooted my Google Pixel XL (8.1 Oreo) and have been working hard to optimise it much as possible.
I noticed in my battery stats that "Mobile Network Standby" has taken about 60% of the usage since my last charge so I thought I'd make a nifty Tasker script to toggle it on and off when needed. I've done a little programming in the past and have tried to write the commands as simply as possible in a way I can comprehend.
What I've come here for is to see if anyone would be kind enough to convert this into Tasker's syntax, or to perhaps give me some pointers on doing it myself.
I also have a question regarding what "Mobile Network Standby" refers to specifically. Would simply turning off Mobile Data fix this? Or would I need to go flight mode to fully disable it connecting to the towers? I've heard it's maintaining the connection that takes most of the battery, rather than the data itself.
So here's the code. The idea is that when I use my phone I always want an internet connection but also have the cellular off as often as possible. Wifi obviously takes priority, locking the phone for longer than 90 seconds turns off cellular, and after that it should turn on every 5 minutes for 15 seconds so I'm still getting Messenger notifications.
If (wifi connects) then
Turn off cellular
EndIf
If (wifi discons >15 secs) and (locked <90 secs) then
Turn on cellular
EndIf
If (screen turns off for >90 secs) then
Turn off cellular
EndIf
If (phone unlocks) and (no wifi) then
Turn on cellular
EndIf
If (not unlocked for 300 seconds) and (no wifi) then
Turn on cellular
Sleep (15 seconds)
Turn off cellular
EndIf
Thanks for your help guys, I really appreciate it!
vanillaslice said:
Hi there, I recently rooted my Google Pixel XL (8.1 Oreo) and have been working hard to optimise it much as possible. I noticed in my battery stats that "Mobile Network Standby" has taken about 60% of the usage since my last charge so I thought I'd make a nifty Tasker script to toggle it on and off when needed. I've done a little programming in the past and have tried to write the commands as simply as possible in a way I can comprehend...
Click to expand...
Click to collapse
I don't use Tasker but, the following area of the forum is specific to Tasker.
https://forum.xda-developers.com/u/tasker-tips-tricks
With that stated...
I believe that one or more of the following threads may be helpful for what you are looking to do and don't be afraid to ask for some member guidance within one of them too.
https://forum.xda-developers.com/showthread.php?t=3742629
https://forum.xda-developers.com/showthread.php?t=1110775
https://forum.xda-developers.com/showthread.php?t=890596
https://forum.xda-developers.com/showthread.php?t=3333728
Good Luck!
~~~~~~~~~~~~~~~
I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.

Categories

Resources