Auto Bluetooth Shutoff? - Nexus One Q&A, Help & Troubleshooting

Is there anything that will turn off bluetooth for me after a set period of time without usage?

The Bluetooth and Wifi services go idle after a period of no usage but I'm pretty sure they don't explicitly get terminated without user input.

Related

Kaiser Tweak problem - Won't disconnect during sleep

I recently applied the Kaiser tweak to disable idle connections after 1 min - this works great when the phone is on, however, when it goes into sleep mode, this fails to work.
E.G. If I click send/receive on my emails then quickly put it into sleep, turn on the device in 10min and it would have stayed connected, once it is turned on after a minute it will disconnect.
This morning I turned on the device to see that it had connected to receive emails last night and had stayed connected for hours - of course once I turned it on the tweak kicked in and it disconnected after a minute.
So my question is, how do you get the tweak to work whilst in Sleep? Any work arounds?
Thanks in advance!
Hi
If you are referring to GPRS/3G there is no problem the connection remaining active. It isn't really active unless data is being transferred, it is just the session remains ready for data. The mobile operators prefer it working this way as it is less strain on the network creating a data connection and keeping it rather than setting them up/closing them down/setting them backup again.
It doesn't use any more power by remaining up.
The software isn't shutting down the connection when you have the phone in standby as quite simply the software will not be running in standby, everything stops in standby, so the program can't run to turn off the connection, until you turn the phone on again.
Regards
Phil
Hi Philip,
From my experience I have found that even if the data connection is open with no data flow (HSDPA / 3G ) it drains the battery much more than if it were closed.
Or is this just for HSDPA?
snaveint said:
Hi Philip,
From my experience I have found that even if the data connection is open with no data flow (HSDPA / 3G ) it drains the battery much more than if it were closed.
Or is this just for HSDPA?
Click to expand...
Click to collapse
same question here...
Hi
There is a blog that explains what is happening from Microsoft.
I would guess that while the connection is active something on the device is seeing that and stopping the device from entering standby.
The actual connection itself remaining open does not drain any more power as it isn't doing anything different than just having your phone on waiting for a call.
http://blogs.msdn.com/windowsmobile/archive/2006/07/14/666203.aspx
Regards
Phil
Hi Philip,
Thanks for your response.
I have to say though from the last few days of tinkering, an open connection does drain more than a closed one even with no data flowing. This is with HSDPA, I have not tested this with just a 3G open data connection though...
Are we talking about the same things? I'm a bit new to this phone though sorry.
Thanks,

Wifi/Email Problems from Stand-by/Sleep Mode (Tytn II)

Hi,
My Tytn II seems to have problems waking up from stand-by and retrieving emails at via wifi connections. I have set up the send/receive schedule to 5 minutes. The only way I seem to be able to retrieve emails via wifi is to wake the phone up manually (eg. press buttons) or wait for a reminder/alarm to sound which wakes the phone up.
Interestingly it doesn't have any problem waking up from stand-by/sleep to retrieve emails via a cellular (3G/HSDPA) connection.
I've installed KaiserTweak and set up the following:
- "Battery Resume from Suspend": 90 seconds (Max)
- "Wifi Standby Mode": Disabled
When I enabled "Wifi Standby Mode", it retrieved emails on cue, but this consumed way too much battery unfortunately, so it isn't acceptable.
I would really appreciate any ideas on how I can get the Tytn II retrieving emails according to the schedule by waking itself up from stand-by/sleep.
Thanks very much,
Prembo
It's not gonna work for you unless you enable the wifi standby mode. How can it know if you have emails if it doesn't have a data connection? The 3G connection will stay active while the phone is in standby, and as such can grab the emails on cue. But by allowing the wifi go into standby when the phone is in standby, you're effectively turning off the internet connection altogether. Either have the wifi standby turned off, or have it retrieve by 3G.
My 3G/HSDPA connection doesn't remain on permanently either.
I have it set (using KaiserTweak) to disable Data Connections (3G/HSDPA) after 1 minute of use. So my 3G/HSDPA is off whilst in stand-by mode most of the time.
However, the email retrieve schedule wakes up the Data Connection and then retrieves email. It doesn't seem to be able to however to wake up the Wifi connection and retrieve emails.
Enabling "Wifi Standby Mode" permanently leaves wifi connection active even during standby, therefore draining the battery significantly.
But it seems to be a fairly straightforward thing to wake the wifi connection up (just as it does the cellular connection) based on the email retrieve schedule.
PS. I'm connecting to the work network via wifi and therefore don't have access to work emails via cellular network.

Toggle between WiFi and mobile data with tasker

Hello. Does anyone knows how to make a script for tasker which switch mobile data off if WiFi is connected and mobile data back on if there's no WiFi connection? For the last 3 or 4 hours I'm searching for this and can't find nothing.
Also, I want if there's no WiFi network, to switch WiFi off (so mobile data will be turned on).
I managed to do something, but it didn't worked. When I enabled the profiles with WiFi and mobile data both turned on, the mobile data turned off, then WiFi off, then mobile data on and so on, in a loop.
Wouldn't that be redundant? The os already does that.
Sent from my Nexus 7 using Tapatalk
Thanks for the response. I know that if WiFi is connected, I'm using the internet from it, but mobile data is still active, right? Even if there's no traffic from mobile data, that's still on. Wouldn't that be a source of battery drain?
I set my data to turn off if my phone is connected for 5 minutes to a wifi. Important: set collision handling to 'abort existing task'.
Here you got pictures.
Edit:
if you are further interested in battery savings, you can read my thread "[BATTERY LIFE] How to get up to 7+h of screen-on-time"
This is absolutely redundant and unnecesary, when the phone connects to a wifi, it disables 3g/LTE data connection by itself. When you connect to a wifi you can see how the 3g/H/H+ icon above radio signal dissapears. The radio chip inside this phones can be used in Wifi mode or 3g/4g mode for data connection, but not both at a time. It is technically not possible.
Accidentally sent from my Xperia Z using Tapatalk
RoberM said:
This is absolutely redundant and unnecesary, when the phone connects to a wifi, it disables 3g/LTE data connection by itself. When you connect to a wifi you can see how the 3g/H/H+ icon above radio signal dissapears. The radio chip inside this phones can be used in Wifi mode or 3g/4g mode for data connection, but not both at a time. It is technically not possible.
Click to expand...
Click to collapse
The moment you don't have wifi anylonger, the phone starts a fullburst search for wifi and 3G/4G networks (even if I don't want wifi/data at the moment). and this drains a hell of a lot of battery. then (if you go out e.g.) it finds a 3g/4g-connection which it tries to keep up (drains a lot battery) and in the same time searches for wifi-networks (also drains battery)... very inefficient use of battery
So I deactivate data after 5 mins automatically via tasker and turn it on manually when I need it (could also automate that, but I'm lazy). This way I circumvent all these battery drains
Additionally:
Under normal circumstances I'd also set wifi to "turn off if not connected" (in settings) and "optimize wifi for battery life", but I use a custom stock kernel that has issues with these settings so I need to leave wifi on all day
sea2605 said:
The moment you don't have wifi anylonger, the phone starts a fullburst search for wifi and 3G/4G networks (even if I don't want wifi/data at the moment). and this drains a hell of a lot of battery. then (if you go out e.g.) it finds a 3g/4g-connection which it tries to keep up (drains a lot battery) and in the same time searches for wifi-networks (also drains battery)... very inefficient use of battery
So I deactivate data after 5 mins automatically via tasker and turn it on manually when I need it (could also automate that, but I'm lazy). This way I circumvent all these battery drains
Additionally:
Under normal circumstances I'd also set wifi to "turn off if not connected" (in settings) and "optimize wifi for battery life", but I use a custom stock kernel that has issues with these settings so I need to leave wifi on all day
Click to expand...
Click to collapse
Umm, ok... But this has nothing to do with what the OP asked, or what I said.
You may try e-robot from play store.
I have a command for that, after wifi disconnects, wait for 30 sec. If still wifi is not connected, automaticcaly disables wifi.
Same as for bluetooth. When i leave my phone in my desk and gone for a while, 60 sec later disable bt.
You can do what ever you want.
Sent from my C6603 using Tapatalk

A wifi conundrum (unsolved)

Hi everyone
I have a profile that that kicks in every 30 mins from 8 am to 9pm, to sync my account. I have set it up to use wifi first, but if there is no wifi connection it will go to my mobile data instead.
Now here is the problem if my phone is on standby it always connects via mobile data regardless of a wifi connection is available. But if I am using my device at the time when the task runs then it will connect to wifi. I have checked my, keep wif on in sleep option and it is set to always.
Could anyone explain as to what this is happening?
Thanks in advance
What is your Android version?
I am currently using a custom rom called exodus which is currently based on marshmallow.
Check if Tasker is excludied from Battery Optimization and whether Wi-Fi is not deactivated while the phone is in sleep mode in Settings/Wi-Fi/Advanced/Keep Wi-Fi on during sleep.
yep tasker is excluded from battery optimisation and the allow wifi during sleep policy is always.
If you're turning wifi on with tasker action wifi turn on, try instead of that shell script "svc wifi enable".
Ok thanks, I will let you know the out come of this. I was using secure settings to enable Wifi as the command built in tasker, is not compatible from kitkat and onwards if I remember correctly.
I found out "svc wifi enable" command does exactly the same thing
Discovered I'm having the very same problem on cm13 and the batch jobs have been done by initialized mobile data. Finally found out a solution to initialize wifi instead of mobile data. I've no limited data plan, but wifi is more battery friendly.
taisto said:
Discovered I'm having the very same problem on cm13 and the batch jobs have been done by initialized mobile data. Finally found out a solution to initialize wifi instead of mobile data. I've no limited data plan, but wifi is more battery friendly.
Click to expand...
Click to collapse
Care to share the solution?
After all this is a community that people use to, find solutions to problems and to get the most out of their device. Which also help others who experience the issue for future reference.
Does anyone else know a solution to this?
HatchetEgg said:
Does anyone else know a solution to this?
Click to expand...
Click to collapse
Do you actually wait for wifi to connect?
Does your phone do the low power screen off wifi thingy?
rignfool said:
Do you actually wait for wifi to connect?
Does your phone do the low power screen off wifi thingy?
Click to expand...
Click to collapse
Yes under normal circumstances it takes about 20 seconds to connect.
No because for some reason my wifi will only switch on if the screen is on.
I also have uninstaled my custom kernel, but this issue still appears from time to time.
There's a setting in wifi connection settings that you can set to that says "keep Wi-Fi on during sleep"
This same setting is often repeated in battery apps like powernap, naptime, better battery saver etc.
Even though the wording is the same, I don't believe they are all touching the same setting so go find those apps if you have them installed.
Also, disable all native battery savers (including Samsung 2 or 3 different ones,, doze, battery optimization etc etc just to see if your problem goes away.... Which it will. At least you'll know though
I have the same problem with Wi-Fi connection.
I have a profile to turn Wi-Fi on and try to connect when certain conditions meet and the screen is off in that case.
It seems that the phone has difficulties turning Wi-Fi on and connecting to it when screen is off. Tasker does manage to turn Wi-Fi on but the phone somehow does not connect *reliably* in all cases.
Tasker is excluded from battery optimization, Wi-Fi on during sleep. I tried turning cpu on for a short time hoping that it will connect, but still no result.
The only possible solution might be turning the screen on briefly at that moment.
If anybody has a better idea, you are more than welcome to share!
alienyd said:
I have the same problem with Wi-Fi connection.
I have a profile to turn Wi-Fi on and try to connect when certain conditions meet and the screen is off in that case.
It seems that the phone has difficulties turning Wi-Fi on and connecting to it when screen is off. Tasker does manage to turn Wi-Fi on but the phone somehow does not connect *reliably* in all cases.
Tasker is excluded from battery optimization, Wi-Fi on during sleep. I tried turning cpu on for a short time hoping that it will connect, but still no result.
The only possible solution might be turning the screen on briefly at that moment.
If anybody has a better idea, you are more than welcome to share!
Click to expand...
Click to collapse
I can certainly say that turning the screen on will enable wifi, as I have resulted to this as well. But unfortunately I do not know any other solutions to try.
loogielv said:
There's a setting in wifi connection settings that you can set to that says "keep Wi-Fi on during sleep"
This same setting is often repeated in battery apps like powernap, naptime, better battery saver etc.
Even though the wording is the same, I don't believe they are all touching the same setting so go find those apps if you have them installed.
Also, disable all native battery savers (including Samsung 2 or 3 different ones,, doze, battery optimization etc etc just to see if your problem goes away.... Which it will. At least you'll know though
Click to expand...
Click to collapse
My Wifi is set to always "keep wifi on during sleep"
I'm going to resort to flashing stock rom again and see if that helps. As I am only using doze and amplify to save battery, all settings for that has been adjusted to the guide I found.
HatchetEgg said:
My Wifi is set to always "keep wifi on during sleep"
I'm going to resort to flashing stock rom again and see if that helps. As I am only using doze and amplify to save battery, all settings for that has been adjusted to the guide I found.
Click to expand...
Click to collapse
Before reflash, just disable xposed and see what you get... I will bet half of this soft taco I'm eating your problem disappears with greenify and or amplify. I'm not saying don't use them at all... Just make sure it works without them. I used to have some serious battery apps, but found after disabling, my battery was IMMENSELY better. And I had no config to deal with. But first things first... IT'S without a doubt, no question, a battery app setting or a system app that's being put to sleep that should be white listed

WiFi keeps turning off during sleep

Running any Marshmallow rom on this phone always turns the wifi off after about 30 seconds of screen-off time. This is incredibly frustrating because it breaks any app I have running in the background that uses wifi. For example netflix on chromecast always loses it's connection and I cant control my chromecast because the wifi disconnected. It's also needlessly using cellular data while asleep.
I have checked all the wifi options and theyre all set correctly. There is a whole 10 pages of complaints about this on a simple google search with no real solution provided. You guys have any ideas?

Categories

Resources