Doze disables portable hotspot - Android Q&A, Help & Troubleshooting

Currently when Doze activates (not sure if light or deep idle, my guess would be deep) the portable hotspot stops working, it doesn't turn off, so in order to get it working again you have to turn it off and then on again. Because of this there is no way to share your internet access indefinitely if you let our phone idle. Is this an oversight from Google in the way that doze activates? I see no reason why you would want your phone to doze while hotspot is active.
And in accordance to the "Android Compatibility Definition Document" OEMs are not allowed to alter Doze, meaning that this problem carries over to almost all phones in the west.
The way I've been doing it now is disabling doze when I turn on hotspot using tasker. Unfortunately this requires root. Not a problem on my 6P, but a much bigger problem if I decide to get the S8 (trigger KNOX = no Samsung pay, probably).
What would be the best way to get Google to fix this? Am I the only one that cares for portable hotspot? Does this work differently for others?
Any sort of response would be much appreciated.

Related

Bluetooth Always Discoverable, Wifi Never Sleeps - Not always the case

I have both of these setting turned on, but for some reason the bluetooth discoverability will dissapear every few hours for a few minutes, and the wifi seams to go to sleep after a certain amount of time (hours) after the screen is off. I imagine, particularly with the wifi that this might be done to conserve battery.
The reason I know this is that I use the phones bluetooth discoverability to determine whether or not I am at home or away, and trigger events accordingly through my home automation software. When the bluetooth mac address of my phone is not found to be present, a ping is sent through wifi as a fallback. However both are failing according to the logs. (not to mention all my lights and electonics turning off while watching a movie, or even worse the lights and electronics turning on at two in the morning as if I had just arrived home when actually I was asleep in bed)
I didn't have this problem with my OG EVO 4g, and so I am hoping there is a hidden setting or even maybe an app available that will hold these setting to do what they say, and not just use them as a suggestion. I understand the battery trade-off.
Edit: I am on a CM10 ROM, so I do not have smart sync
Well go to advanced in the WiFi and Bluetooth setting. And you'll see what to do when you get there
milli5410 said:
Well go to advanced in the WiFi and Bluetooth setting. And you'll see what to do when you get there
Click to expand...
Click to collapse
I already know what to do there (as is pointed out in the title of the topic), those are both enabled.

[Q] Notifications arrive during sleep

I'm running on stock 4.1.2 and mobile data is always turned off. "Keep Wi-Fi on during sleep" is set to "Only when plugged in" so the phone should only connect to Wi-Fi when it's in use. It seems that the phone periodically connects to Wi-Fi even though it's been idle for extended periods (e.g. an hour) because it's able to deliver notifications (e.g. gmail and hangouts). Other Android devices that I have, including Nexus devices with the same settings don't deliver notifications until they are "awoken".
This might also explain where a lot of battery goes. Does anyone else experience this and does anyone know if other phones/brands/models behave like this?
I presume you got an app that keeps waking the phone up every so often. Which then enables Wi-Fi to activate. Or an app stopping your device from sleeping properly. If phone is on charge then Wi-Fi on all time.
Wrong forum by the way Q&A forum.
Sent from my GT-I9300 using Tapatalk 2
Thanks for the reply and sorry for posting in the wrong place.
I installed Wakelock Detector and I can seen numerous "CPU wakelocks" and "wakeup triggers" but no "screen wakelocks", so I didn't expect a Wi-Fi connection to be made unless I turned the screen on and started using the phone? Perhaps I misunderstand the meaning of "Keep Wi-Fi on during sleep", especially the meaning of "sleep"? And, it still doesn't explain why other devices with the same apps installed don't behave this way. That's why I wondered if it was something to do with mods that Samsung have made to the software?
Markanski said:
Thanks for the reply and sorry for posting in the wrong place.
I installed Wakelock Detector and I can seen numerous "CPU wakelocks" and "wakeup triggers" but no "screen wakelocks", so I didn't expect a Wi-Fi connection to be made unless I turned the screen on and started using the phone? Perhaps I misunderstand the meaning of "Keep Wi-Fi on during sleep", especially the meaning of "sleep"? And, it still doesn't explain why other devices with the same apps installed don't behave this way. That's why I wondered if it was something to do with mods that Samsung have made to the software?
Click to expand...
Click to collapse
The meaning of "Sleep" in Android is when the CPU is in a mode called deep sleep, the device is set to a really low power setting so it will just run, apps can wake the device up ie take it out of deep sleep if they need to sync with a server, etc and this is what a wake lock up, an app waking the device up, and as the device is out of deep sleep for those few seconds it can switch wifi on, I personally keep wifi and mobile data on all the time so I don't know much about it.
Thanks, it looks like I have misunderstood the meaning of "sleep". I do have apps that would run periodically.
For example I use SugarSync, which I have set to only backup while on Wi-Fi and when the device is plugged in. I assume that it will have a timer set (or cron job in the old speak) so that the app can run and check for the required conditions before attempting to backup? I guess when this happens, Wi-Fi might connect and any other app that wants Wi-Fi (like Gmail or Hangouts) would take advantage of the connection? I suppose that my older devices (that run Android 2.3) might not have time to connect and so don't get the notifications that the Galaxy S3 does?

Disable cellular when WiFi is present

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)

Is it possible to automate the toggling of a WiFi Hotspot?

I have an Android head unit that I'd like to get a constant internet connection to every time I'm in my vehicle. I am trying to accomplish this without root. I have a Nexus 6P right now, but I have an S8+ coming and I'm not likely to be rooting it. Basically what I want to do is that every time my phone connects to my cars bluetooth, it enables the hotspot. When bluetooth is disconnected, I want wifi to enable again. I want this to happen automatically, if it requires a widget or something to toggle, I may as well just use the normal hotspot toggle in my notification bar.
I own Tasker, but I can't really figure out how to use it. I don't know if it can help me without root anyway. I tried MacroDroid, and I was able to make a macro that did what I wanted it to, but not make it automated, I had to manually run the macro every time. So then I tried Automate, and I was actually able to make it work, but I had to make it an infinite loop for it to detect the bluetooth state change, which was hell on my battery. Otherwise, without the loop, the story was the same as MacroDroid, I had to run it manually to make it function.
So, anyone know of a way I can accomplish this (without having it drain my battery by keeping my CPU awake)? I don't mind purchasing an app if there's a reasonable amount of confidence it will do what I want.

gps power saving

hi, after pie update I haven't this option. I would like to set the phone with the position only on mobile networks and wifi, without physical GPSI you can tell me how I can set it? thanks
That option is gone, don't know why....in the same boat
without any normal explanation
mago988 said:
hi, after pie update I haven't this option. I would like to set the phone with the position only on mobile networks and wifi, without physical GPSI you can tell me how I can set it? thanks
Click to expand...
Click to collapse
Google either choose simplification or flat out removed the setting. As for why in some sense it makes things simpler for developers and virtually most (not all obviously). Linked two articles out of the multiple google search results below that pertain to the question.
I maybe totally going out on a limb to guess (and I am, not something I am to fond of doing honestly) since GPS/Location services only turns on when it is needed maybe the option was unnecessary?
Granted the choice would be nice, but so far I haven't seen anything in my usage that shows GPS location is a battery killer. In fact I get a lot more active use out of my phone now as it is then I did previously on Oreo, which is rather nice IMHO.
https://mobilesyrup.com/2018/05/09/location-options-consolidated-android-p/
https://www.androidpolice.com/2018/...-now-binary-setting-battery-saving-mode-gone/
fyi...
The option seems to be there.
On the Pixel phones you can enable it via "developer options" -> "featured flag"
Samsung decided to ditch this feature flag, why i don't know.
But with tasker and my unrooted S9 i could enable the battery saving mode.
Although you can't verify i think it works.
As i use Life360 which triggers the GPS when opened and haven't seen the GPS icon since i toggled to battery saving mode.
So as lomg as it works i'm happy.
Task:
Location Mode - > Mode: battery Saving

Categories

Resources