[Q] tasker location not updating - Nexus 5 Q&A, Help & Troubleshooting

So tasker isn't updating location properly.
I have it using "net" for location and location mode is set to "battery saving"
Upon phone restart this works...
Until I change mode to "high power" for navigation, etc...
After toggling location mode tasker will cease updating location until I reboot the phone.
Even after going back to battery saver... google maps location works... but tasker refuses to change.
Anyone else having issues like this? what gives?

I have used location triggers from Tasker but never the "location" in Tasker.
If you want a low battery location trigger, use the State->Cell Near instead.
If you are ok with slightly higher battery usage with higher accuracy and got USD1 to spare, try the AutoLocation plugin that uses GeoFences.

It works great for weeks at a time... until I change my location mode from "battery saving" to "high power" (and later back to "battery saving")
Only after I change location modes does it stop working until a reboot (even force close and restart won't fix the issue)
Anyway, I'd rather not install AutoLocation... it seems like it does the same thing the location profile does in tasker...

orb360 said:
Anyway, I'd rather not install AutoLocation... it seems like it does the same thing the location profile does in tasker...
Click to expand...
Click to collapse
It definitely doesn't, if you are up for it, you can read up about Android Geofences, it is a new thing by Google and supposedly save more battery compared to previous methods of location detection.
Its sad that Tasker doesn't include this by default internally though.

orb360 said:
So tasker isn't updating location properly.
I have it using "net" for location and location mode is set to "battery saving"
Upon phone restart this works...
Until I change mode to "high power" for navigation, etc...
After toggling location mode tasker will cease updating location until I reboot the phone.
Even after going back to battery saver... google maps location works... but tasker refuses to change.
Anyone else having issues like this? what gives?
Click to expand...
Click to collapse
I am also trying to do the same profile but I am using disconnect from work wifi as the trigger. Can you please share how did you create the action to change the location mode because I can't seem to find it in tasker.

I think it has to do with LTE. I wound up using cell tower location within Tasker instead and that works fine.
Sent from my Nexus 5 using Tapatalk

Related

[APP] Tasker

I use Tasker for automating a lot of redundant tasks on my phone. I figured I would post a couple I'm using with hope that others will share with me some stuff they use it for.
action: Docked.
Tasks done when docked: Bluetooth on, wifi off, gps on, auto brightness set off [if time < 1800, Display Brightness set to 255 if time < 1800, pandora set on.
exit tasks: Bluetooth off, auto brightness on if TIME < 1800, pandora set off, gps off.
Action open Application Maps/Nav or any gps app.
Tasks done: GPS on
exit tasks done: GPS off.
action: phone face down
Tasks done: airplane mode on if time < 2200, all sounds off except for alarm
exit tasks: airplane mode off, all sounds revert to previous settings.
these 3 i use, if you have any others let me know. If you need help with the program let me know too.
here is where you can grab tasker.
http://tasker.dinglisch.net/
Sounds something that I would definitly use. I beleive its a paid app, but still worth it. I'll look into it. Does it have settings for wifi e.g.- 1 touch WIFI on, because i'm using the stock wifi on/of toggle but I then have to go into wifi settings and actually see my phone connecting to my network in order for i to work and turn on.... ??????
Yeah there are settings for connecting to wifi. Mine does it automatically when I get home based on the gps. Works most of the time, had to turn it on manually a couple times because the gps wasn't on.
generic.imitation said:
Action open Application Maps/Nav or any gps app.
Tasks done: GPS on
exit tasks done: GPS off.
Click to expand...
Click to collapse
How do you set up an OR for the app launch context? I'm trying to get it to turn on GPS when I open Maps, Foursquare, Yelp, or Places, but it doesn't let me multi-select apps and if I add a context, Application isn't there.
Make it separate tasks.
make 1 for each app.
Foursquare - turn on gps. Turn off gps when exit.
Ect.
also, I guess there is a wiki with a bunch of samples I guess. I'm out at a remote beach on northern oahu right now, but if someone doesn't post it before me I'll post the link when I get home.
generic.imitation said:
Make it separate tasks.
make 1 for each app.
Click to expand...
Click to collapse
Yeah, that's what I've been doing. It'd just be nice if you could have conditionals in the context. IF Yelp OR Foursquare OR Maps OR Places then ...
Post over there and make a feature request, they should put that in I agree .
Just bought Tasker and so far I like it. Can't seem to figure out how to do the following task though.
I need to set to static IP when on a certain wifi connection. I already have the IP set and the only thing that will need to be done is to toggle the static IP checkbox in the advanced setting of wifi. I know how to specify the wifi network but how can I make it toggle that checkbox/setting?
Thanks for any info.
i made a simple widget to toggle the screen brightness to two preset brightens for inside and direct sunlight.
i could not find an app that let me choose the brightness, they either made it full dark/bright.
i can't work out however to toggle a different widget icon to indicate on/off...
i've tried set icon but with no luck
its not really needed but would be good to have/know for future apps
also, can anyone explain how the HTTP (get info from net) works?
i want to try a few things but not really sure how it works
This app is the best app on the market... hands down. #Win
generic.imitation said:
Yeah there are settings for connecting to wifi. Mine does it automatically when I get home based on the gps. Works most of the time, had to turn it on manually a couple times because the gps wasn't on.
Click to expand...
Click to collapse
You should use "wifi near" as a condition instead of "gps". That way it just toggles you wifi on and off periodically and if it is near... it will connect.
Gps is so demanding on the battery... and not always accurate... as you see
I set mine up so whenever I plug in my headphones my music app opens
Sent from my DROIDX using XDA App
ichigopow said:
I set mine up so whenever I plug in my headphones my music app opens
Sent from my DROIDX using XDA App
Click to expand...
Click to collapse
I set my heaphones the same.. but at the same time, it cuts my media volume up (in case it was down) and when I unplug them... it returns my media volume back to it's previous value
MrDanger said:
I set my heaphones the same.. but at the same time, it cuts my media volume up (in case it was down) and when I unplug them... it returns my media volume back to it's previous value
Click to expand...
Click to collapse
I do the same except my volume goes down when I plug them in so I don't have music blaring in my ears.
Sent from my DROIDX using XDA App
I also have a profile that texts my gf a random message at a random time that is between 7:30 am and 7:40 am (so she don't think it's automated lol) every morning. I got that idea from LexusBrian
Again.. great app!
Here was I have got going on with tasker.
Car dock: gps on, bluetooth on, display always on, notification volume off. On exit they all do the opposite.
When home: wifi on. Exit wifi goes off.
At work: phone goes to vibrate for everything.
10pm to 545am: phone goes quiet.
I second it a best app ever. Wifi, gps, and bluetooth are never on when I don't need em. Come on you can't beat that. What a battery saver.
Sent from my DROIDX using XDA App
Tasker is an incredibly handy utility.
Here's the profiles I use:
GPSonForLocationApps - I think this one has already been covered by this thread.
WifiOnAtHome - I use the wifi near option... although I think it's causing issues with my 3G signal... it will occasionally turn on wifi to check if I'm at home which seems to turn off 3G. Still playing with this one.
LowVolumeDuringWorkHours - sets various volumes appropriately so I can still hear stuff but doesn't annoy folks working near by. I turn this on/off based on day of week and time of day. Upon exiting this profile it returns my volumes back to normal.
NoficationsOffAtNight - I turn off notifications at night and if my phone is plugged into AC.
SilentForMeetings - if I have a calendar entry where I'm marked as busy it turns my phone to silent mode.
Openwatch?
Hello
I am new to Tasker, and I'm starting to understand exactly how much you can do. Uses open watch a lot and have done a lot of settings to make my clock better. But I wonder if I can get messages from one app to my watch. The app is an ice hockey results service. And each time it becomes a goal, I get it as income message in the status bar. But can I get the message in the clock at the same time? Right now I just get a message in the watch which I've written, but would like it says in the status bar so you do not I pick up the phone to look at the result. Is there perhaps a few codes to enter, instead of my message is? Hope you understand me?
I have mine set to enable WiFi when I connect to a certain cell tower. Keeps the drain on my batter to nothing more than it was already at, and GPS is only enabled for about 5 minutes to and from the house. I'm sure the drain for that combined 10 minutes is much less than periodically checking the GPS or if a network is near.
I am turning off gps when I get to my home cell tower and turning on my wifi at the same time.
For my multimedia apps like pandora, I have my screen stay on when plugged to a power source.
Sent from my DROIDX using Tapatalk

[Q] Tasker - GPS On/Off?

Anyone finding success with Tasker getting GPS control working on their Nexus 5 (Android 4.4)?
Tasker v4.1
Rooted
Secure Settings Pro/Helper
Example:
Profile>Application "GoogleMaps">New Task ("GPS On")>Plugin>SecureSettings>Edit>HelperActions>GPS>On>Save
ExitTask same as above but GPS>Off
When I launch GoogleMaps I can see Tasker working, but from within Tasker I see an error: "An error occurred while executing Action:GPS"
Any suggestions? Related to "Location Mode" setting approach with "High Accuracy", "Battery Saving", "Device Only" options?
Thanks!
I solved this problem using Helper Alternative in Secure Settings (last option of Helper tab in Secure Settings)
Now with "gps on" action you switch from battery saving mode to high accuracy, and vice versa vith "gps off".
You can also use the action to enable/disable the entire location service but in that case every time you want it on it shows an annoying google location consent disclaimer
aecant said:
I solved this problem using Helper Alternative in Secure Settings (last option of Helper tab in Secure Settings)
Now with "gps on" action you switch from battery saving mode to high accuracy, and vice versa vith "gps off".
You can also use the action to enable/disable the entire location service but in that case every time you want it on it shows an annoying google location consent disclaimer
Click to expand...
Click to collapse
Where is the option for battery saving mode or high accuaricy? I set it up only for Location services and the google location consent appear.
Also, is it possible to set it off in another way? because if I click in Tasks button in my phone, it suddenly turns gps off although Maps keeps running in the background
chimas16 said:
Where is the option for battery saving mode or high accuaricy? I set it up only for Location services and the google location consent appear.
Click to expand...
Click to collapse
you can switch between battery saving mode and high accuracy toggling the gps option:
gps on -> high accuracy
gps off -> battery saving mode
chimas16 said:
Also, is it possible to set it off in another way? because if I click in Tasks button in my phone, it suddenly turns gps off although Maps keeps running in the background
Click to expand...
Click to collapse
I use a workaround, I have set tasker to wait 20 seconds before disabling gps when i close apps that need location services, so when I switch to another app it doesn't turn off gps immediatly. I don't know other methods to make tasker consider that the app is running in the background
aecant said:
you can switch between battery saving mode and high accuracy toggling the gps option:
gps on -> high accuracy
gps off -> battery saving mode
I use a workaround, I have set tasker to wait 20 seconds before disabling gps when i close apps that need location services, so when I switch to another app it doesn't turn off gps immediatly. I don't know other methods to make tasker consider that the app is running in the background
Click to expand...
Click to collapse
How do you set tasked to time out after certain time? I keep trying but it just stays on high accuracy
p4ranoid4ndroid said:
How do you set tasked to time out after certain time? I keep trying but it just stays on high accuracy
Click to expand...
Click to collapse
i set a "wait" action before disabling gps
aecant said:
i set a "wait" action before disabling gps
Click to expand...
Click to collapse
How do you set a wait action? Create another task?
p4ranoid4ndroid said:
How do you set a wait action? Create another task?
Click to expand...
Click to collapse
no, you add an action, just hit the plus button>task>wait and set the amount of time you desire
GPS or locational services turning on solution
I created this tasker for if my phone got lost, but could be used for the Google Maps apps or Photo geotagging. This is for phones that are locked and require the google consent notice to be accepted.
Profile: recieved text "lostphone"
Task:
Secure settings: pattern lock disabled
Secure settings: wake phone
WIFI on
Mobile Data on
Secure settings: Location Services Enabled
Wait: 2 seconds
Dpad: Right repeat x2 (this is because the first time it doesn't work)
Dpad: Press repeat x1
Wait: 2 seconds
Secure settings: Pattern lock enabled
Secure settings: lock device
this makes the phone vulnerable but it only takes seconds for the phone to relock itself
Lewis
Hi,
I just installed tasker app on my Galaxy S7 Edge.
I tried to create a task to switch on GPS when running Pokemon App and then switch off once app is closed.
Task:
1. Launch App
App Pokemon Go Data %LOC
I run the task, as expected, it opens pokemon go app and 4G(gps) icon appears on the upper-left corner of my phone. But the icon won't disappear when I manually turn off the Location on Quick Settings.
Please help how to restore Location icon on-off.
Thank you

[Q] can tasker be automated to turn off location completely?

is it possible to get tasker to automatically turn on GPS when when screen is on, and turn off GPS when the screen is off(or the device is locked)
i tried for about 2 hours yesterday and ended up giving up the most i could get it to do is just toggle the location settings
are you trying to duck NSA surveillance or increase battery life? because getting that working would accomplish neither.
Enddo said:
is it possible to get tasker to automatically turn on GPS when when screen is on, and turn off GPS when the screen is off(or the device is locked)
i tried for about 2 hours yesterday and ended up giving up
Click to expand...
Click to collapse
You will need secure settings plugin to do that, but yes, it should be possible.
I have a profile that enables GPS (active) only when I launch maps, and disables GPS (switch to battery saving mode in 4.4) when I exit maps.
In my case, disabling active GPS (i.e.. keep it in battery saving mode) helped random wakelocks from location reporting etc, Maps (navigation) is the only app that I use that needs active GPS. I don't have any other app that absolutely needs to have GPS coordinates for me.
Please use thread titles.
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
xBeerdroiDx said:
are you trying to duck NSA surveillance or increase battery life? because getting that working would accomplish neither.
Click to expand...
Click to collapse
im trying to decrease wakelocks at night while sleeping. location + google now keeps my phone up almost all night. i just want to automate this instead of having to do it manually
jj14 said:
You will need secure settings plugin to do that, but yes, it should be possible.
I have a profile that enables GPS (active) only when I launch maps, and disables GPS (switch to battery saving mode in 4.4) when I exit maps.
In my case, disabling active GPS (i.e.. keep it in battery saving mode) helped random wakelocks from location reporting etc, Maps (navigation) is the only app that I use that needs active GPS. I don't have any other app that absolutely needs to have GPS coordinates for me.
Click to expand...
Click to collapse
battery saver mode + google now keeps my phone up all night with location pings. i need to disable location completely
Enddo said:
battery saver mode + google now keeps my phone up all night with location pings. i need to disable location completely
Click to expand...
Click to collapse
If location is set to Battery saver mode, that should not cause battery life degradation. But if it is, then 'disabling GPS' is not what you want to do - you want to see how to disable location reporting entirely (exactly as what your updated title indicates).
I don't think secure settings has been updated to support that feature in 4.4 - but hopefully other forum members will have suggestions.
jj14 said:
If location is set to Battery saver mode, that should not cause battery life degradation. But if it is, then 'disabling GPS' is not what you want to do - you want to see how to disable location reporting entirely (exactly as what your updated title indicates).
I don't think secure settings has been updated to support that feature in 4.4 - but hopefully other forum members will have suggestions.
Click to expand...
Click to collapse
i dont know what to tell you then. http://forum.xda-developers.com/showthread.php?t=2551846 shows tons of people with this issue
it doesn't drain battery while my phone is on and active. but when i lock the screen at night to sleep, my phone gets hardly any deep sleep mode. i took a shower yesterday and these two services woke my device up 96 and 44 times within a 20 minute span
i have already tried disabling location reporting and location history. this did not fix anything while my device was locked. it still had hundreds of wakeups at night
and i believe you're right. i dont think secure settings works with 4.4 either this is the issue i've been running into, i believe
Enddo said:
... believe you're right. i dont think secure settings works with 4.4...
Click to expand...
Click to collapse
It does work, but you first have to install the alternative helper in settings. Then Location Services will be enabled and you can turn it on and off when you want.
Sent from my Nexus 5
PhilipTD said:
It does work, but you first have to install the alternative helper in settings. Then Location Services will be enabled and you can turn it on and off when you want.
Sent from my Nexus 5
Click to expand...
Click to collapse
im pretty sure i installed that. well, first i installed the helper, and then i installed it as a service(option at hte bottom) since i had root
Enddo said:
im pretty sure i installed that. well, first i installed the helper, and then i installed it as a service(option at hte bottom) since i had root
Click to expand...
Click to collapse
Just make sure it's the alternative one.
Sent from my Nexus 5

[Q] Advantage of Location battery saving setting?

As far as I can see, the only advantage to the location battery saving mode is that it deactivates your device's GPS. If that's the only savings, then I tend to just leave it on its high accuracy setting. It's sort of a pain to be reminded of this when flipping on the maps or navigation apps which require GPS. And, I don't have that take over the GPS in rogue fashion. Are there other advantages of the location battery saving mode besides simply deactivating GPS?
floepie said:
As far as I can see, the only advantage to the location battery saving mode is that it deactivates your device's GPS. If that's the only savings, then I tend to just leave it on its high accuracy setting. It's sort of a pain to be reminded of this when flipping on the maps or navigation apps which require GPS. And, I don't have that take over the GPS in rogue fashion. Are there other advantages of the location battery saving mode besides simply deactivating GPS?
Click to expand...
Click to collapse
Not that I know of. But GPS is a nasty battery drain depending on how many apps will do background requests of where you are (NlpWakeLock), which will go though the GPS if you have it set on high accuracy. It also kinda depends on how fast your gps can locate you, so if you are near a window it will consume less. Overall, I'd discourage you to leave it on, and if you really cant stand to turn it on when you need it, buy Tasker and make profiles to auto turn it on when needed
tylerdurden83 said:
Not that I know of. But GPS is a nasty battery drain depending on how many apps will do background requests of where you are (NlpWakeLock), which will go though the GPS if you have it set on high accuracy. It also kinda depends on how fast your gps can locate you, so if you are near a window it will consume less. Overall, I'd discourage you to leave it on, and if you really cant stand to turn it on when you need it, buy Tasker and make profiles to auto turn it on when needed
Click to expand...
Click to collapse
I don't know if that's accurate. That is, when the device has a wakelock and it has to do with those location nlp wakelocks, I don't believe the GPS is activated. GPS is only on when you see the icon in the notification bar as far as I'm aware. For instance, if I select "device only" or turn location completely off, I don't see the nlp wakelocks. I can only best guess that those background location services from Google only use your cell tower proximity to approximate location. In my experience, I don't detect any difference whatsoever between "high accuracy" and "battery saving" mode other than the nuisance of having to flip on GPS for maps, navigation, etc. when in battery saving mode.
floepie said:
I don't know if that's accurate. That is, when the device has a wakelock and it has to do with those location nlp wakelocks, I don't believe the GPS is activated. GPS is only on when you see the icon in the notification bar as far as I'm aware. For instance, if I select "device only" or turn location completely off, I don't see the nlp wakelocks. I can only best guess that those background location services from Google only use your cell tower proximity to approximate location. In my experience, I don't detect any difference whatsoever between "high accuracy" and "battery saving" mode other than the nuisance of having to flip on GPS for maps, navigation, etc. when in battery saving mode.
Click to expand...
Click to collapse
I recommend setting location to device only. That's the only way to subdue the Nlp wakelocks. Battery drain is irrelevant unless you are using your GPS for hours a day. Battery drain is actually worse with wifi and network assistance because of the wakelocks.
Aerowinder said:
I recommend setting location to device only. That's the only way to subdue the Nlp wakelocks. Battery drain is irrelevant unless you are using your GPS for hours a day. Battery drain is actually worse with wifi and network assistance because of the wakelocks.
Click to expand...
Click to collapse
Right, I'd just as soon keep it there. But, when I switch to device only, within 24 hours I get massive wakelocks from Search in the form of "entries refresh". When this happens, Google Now goes a bit berzerk in that it loses connection and can't refresh. Very strange.
floepie said:
I don't know if that's accurate. That is, when the device has a wakelock and it has to do with those location nlp wakelocks, I don't believe the GPS is activated. GPS is only on when you see the icon in the notification bar as far as I'm aware. For instance, if I select "device only" or turn location completely off, I don't see the nlp wakelocks. I can only best guess that those background location services from Google only use your cell tower proximity to approximate location. In my experience, I don't detect any difference whatsoever between "high accuracy" and "battery saving" mode other than the nuisance of having to flip on GPS for maps, navigation, etc. when in battery saving mode.
Click to expand...
Click to collapse
There's an xposed module that puts the old gps active icon back in the status bar for kitkat. I find it quite useful.
Sent from my Nexus 5 using Tapatalk

[Q] Help with Tasker

Hey everyone, first I'm not really sure if this belongs in a Tasker forums. Seeing as I use a N5, I figured it could also go here. Anyway, I've been having some problems with Npl wakelocks. I downloaded wakelock terminator with xposed and it seemed to have helped, however something didn't seem right as my battery was draining the same amount as when the wakelocks were happening. The only time I wasn't having the drain was when location was set to device only, which makes sense.
I'm completely new to tasker. I've watched a few tutorials and I've messed around with it a bit but with not much luck. I wanted to do one of two things. Either have location set to battery saver/high accuracy when the screen is on, and have it set to device only when the screen is off. Another option is to have it set to battery saver/high accuracy when google now/maps is open and device only the rest of the time. I feel like this shouldn't be that hard but I messed around with it and got no where. Anyway, what are your guys' opinion about this strategy and would anyone be able to help me with implementing these tasks. Thanks!
I wouldn't go the route of using tasker for your problem. And I would ditch that xposed module for wakelocks too. I run rooted with xposed on high accuracy at all times. My battery life is great. You need to find the source of your battery drain and eliminate it. Don't look for a bandaid fix using tasker. My guess is you have some rogue app killing your battery. Give us a list of all your apps, or delete them all, and install them one by one to track down the culprit. Also, are you running stock Rom and kernel? What other mods do you have?
Lokke9191 said:
I wouldn't go the route of using tasker for your problem. And I would ditch that xposed module for wakelocks too. I run rooted with xposed on high accuracy at all times. My battery life is great. You need to find the source of your battery drain and eliminate it. Don't look for a bandaid fix using tasker. My guess is you have some rogue app killing your battery. Give us a list of all your apps, or delete them all, and install them one by one to track down the culprit. Also, are you running stock Rom and kernel? What other mods do you have?
Click to expand...
Click to collapse
I can run the phone as normal today with location and everything on and post my BBS log after. Basically, when I'm at home the battery is great. However, ever since updating to the new google search app I've been having extreme wakelocks from the Npl whenever I would leave my house. Which is why I found a thread on xda that was talking about that exact wakelock. You're right though. I'm going to get rid of the app because it seemed weird. The wakelocks weren't showing up on BBS but I feel like it didn't get rid of them. Who knows though, maybe you're right and it is something else that's draining the battery which is why the wakelock app didn't help.
Anyway, I'm running stock ROM/kernel with xposed. I use greenify module, appOpsX, snapshare, gravity box, and gesture navigation module. With gravity box I just use custom quick settings, smaller nav bars, some status bar mods like the day and double tap to sleep. However, again I have had the same GB mods since before the drain. I use a pebble however I've never had a drain from that and I've been using it since Dec. Most of my apps are greenified including facebook, instagram, as well as all my music streaming apps. A lot of the google services I don't use are disabled like books/magazines/movies. I have snapchat, but I don't use it too much, and facebook messenger that I don't greenify. When I check GSam stats though, android system and kernel take the most battery, followed by music players if I was streaming music that day. The rest of the apps are way down the list.
I posted in the battery thread asking if anyone had the same problem with the wakelocks after having the latest google play services. I noticed mine is still 4.3 for some reason so I might just update manually from androidpolice and see if theres a difference. But yeah, I will keep this updated with todays logs.
Try this. Use titanium backup to uninstall Google play services and Google search. Then launch maps, and reinstall both from the play store.
PsychDrummer said:
Another option is to have it set to battery saver/high accuracy when google now/maps is open and device only the rest of the time.
Click to expand...
Click to collapse
This is what I ended up doing. You will need the secure settings plugin for tasker.
Set up a new profile for application "Maps".
When on, launch task GPS On (Secure settings, configuration GPS enabled)
Exit task, launch task GPS On (Secure settings, configuration GPS disabled)
I used the app factory to create an app for this, and use that on my N5 and my second phone too. Works great. Enables GPS when I launch Maps for navigation, and switches to battery saving when I exit Maps
PsychDrummer said:
I can run the phone as normal today with location and everything on and post my BBS log after. Basically, when I'm at home the battery is great. However, ever since updating to the new google search app I've been having extreme wakelocks from the Npl whenever I would leave my house. Which is why I found a thread on xda that was talking about that exact wakelock. You're right though. I'm going to get rid of the app because it seemed weird. The wakelocks weren't showing up on BBS but I feel like it didn't get rid of them. Who knows though, maybe you're right and it is something else that's draining the battery which is why the wakelock app didn't help.
Anyway, I'm running stock ROM/kernel with xposed. I use greenify module, appOpsX, snapshare, gravity box, and gesture navigation module. With gravity box I just use custom quick settings, smaller nav bars, some status bar mods like the day and double tap to sleep. However, again I have had the same GB mods since before the drain. I use a pebble however I've never had a drain from that and I've been using it since Dec. Most of my apps are greenified including facebook, instagram, as well as all my music streaming apps. A lot of the google services I don't use are disabled like books/magazines/movies. I have snapchat, but I don't use it too much, and facebook messenger that I don't greenify. When I check GSam stats though, android system and kernel take the most battery, followed by music players if I was streaming music that day. The rest of the apps are way down the list.
I posted in the battery thread asking if anyone had the same problem with the wakelocks after having the latest google play services. I noticed mine is still 4.3 for some reason so I might just update manually from androidpolice and see if theres a difference. But yeah, I will keep this updated with todays logs.
Click to expand...
Click to collapse
Just run device only all the time, like everyone else does. It's a problem with Google's code, and the same bad coding is clearly seen throughout their entire app lineup.
Lokke9191 said:
Try this. Use titanium backup to uninstall Google play services and Google search. Then launch maps, and reinstall both from the play store.
Click to expand...
Click to collapse
What would that do though?
jj14 said:
This is what I ended up doing. You will need the secure settings plugin for tasker.
Set up a new profile for application "Maps".
When on, launch task GPS On (Secure settings, configuration GPS enabled)
Exit task, launch task GPS On (Secure settings, configuration GPS disabled)
I used the app factory to create an app for this, and use that on my N5 and my second phone too. Works great. Enables GPS when I launch Maps for navigation, and switches to battery saving when I exit Maps
Click to expand...
Click to collapse
Thanks! So, how would I set this up using device only/high accuracy? I'm also super new to tasker so if you don't mind I might PM you asking for help.
Aerowinder said:
Just run device only all the time, like everyone else does. It's a problem with Google's code, and the same bad coding is clearly seen throughout their entire app lineup.
Click to expand...
Click to collapse
Well, I actually like to use maps and google now. However, I don't actually need the location on when I'm not using either of the two services which is why I wanted to setup tasker.
It'll change them from being system apps to user apps. This has solved nlp wakelocks for many others experiencing the same problems.
PsychDrummer said:
Thanks! So, how would I set this up using device only/high accuracy? I'm also super new to tasker so if you don't mind I might PM you asking for help.
Click to expand...
Click to collapse
Sure.
It isn't that hard - install the secure settings plug in first, and when prompted, give it Superuser access. Then, create a new profile in tasker - call it whatever you want. Set up the profile for the application "Maps"
When Maps is launched, set it up to fire a new task (I called it GPS On) - this task just enables the GPS setting in the secure settings (under third party plugins)
GPS on -> high accuracy
GPS off -> battery saving mode
Set up an exit task (I called it GPS Off) - this turns the GPS settings in the secure settings off.
I can send you the apk if you want (but you don't really know me, so you probably shouldn't use an apk from a stranger! lol!), or you can try to import this attached xml into tasker (rename the file to remove the .txt extension - filename will be AutoGPS.prj.xml) - the xml option should be safe.
I haven't tried importing an xml, but it should be fairly straightforward (Save profiles in /sdcard/tasker/profiles and then, in tasker, long press the profiles "tab" and "import"). Before doing this, backup your existing profiles in tasker, just in case. Also, make sure you have secure settings set up before you import this.
jj14 said:
Sure.
It isn't that hard - install the secure settings plug in first, and when prompted, give it Superuser access. Then, create a new profile in tasker - call it whatever you want. Set up the profile for the application "Maps"
When Maps is launched, set it up to fire a new task (I called it GPS On) - this task just enables the GPS setting in the secure settings (under third party plugins)
GPS on -> high accuracy
GPS off -> battery saving mode
Set up an exit task (I called it GPS Off) - this turns the GPS settings in the secure settings off.
I can send you the apk if you want (but you don't really know me, so you probably shouldn't use an apk from a stranger! lol!), or you can try to import this attached xml into tasker (rename the file to remove the .txt extension - filename will be AutoGPS.prj.xml) - the xml option should be safe.
I haven't tried importing an xml, but it should be fairly straightforward (Save profiles in /sdcard/tasker/profiles and then, in tasker, long press the profiles "tab" and "import"). Before doing this, backup your existing profiles in tasker, just in case. Also, make sure you have secure settings set up before you import this.
Click to expand...
Click to collapse
Cool, thanks I will give it a try. And it would be the same if I want to have location on when using google search/now?
PsychDrummer said:
Cool, thanks I will give it a try. And it would be the same if I want to have location on when using google search/now?
Click to expand...
Click to collapse
Yes, it should be. But in my experience, I haven't found Google Search/Now really requiring high accuracy GPS level location for any of the features yet. It gets by fine with just battery saving mode. So, I only enabled this for the Maps application.
Actually, now that I think about it, I don't know how you'd enable it for Google Now - since it runs in the background to notify you about upcoming events. Since you aren't launching Google Now most of the times, I don't know how you'd set up Tasker to enable the high accuracy GPS for that (and it is possible that Google now using active GPS may be part of the battery drain issue - I don't know for sure)
jj14 said:
Yes, it should be. But in my experience, I haven't found Google Search/Now really requiring high accuracy GPS level location for any of the features yet. It gets by fine with just battery saving mode. So, I only enabled this for the Maps application.
Actually, now that I think about it, I don't know how you'd enable it for Google Now - since it runs in the background to notify you about upcoming events. Since you aren't launching Google Now most of the times, I don't know how you'd set up Tasker to enable the high accuracy GPS for that (and it is possible that Google now using active GPS may be part of the battery drain issue - I don't know for sure)
Click to expand...
Click to collapse
I actually wanted to keep the device on "device only" location instead of battery saving. For Google now I wanted the traffic card, but I would only need it if I physically open google now. I don't really need the notification.
PsychDrummer said:
I actually wanted to keep the device on "device only" location instead of battery saving. For Google now I wanted the traffic card, but I would only need it if I physically open google now. I don't really need the notification.
Click to expand...
Click to collapse
To keep device only, you should use Location mode (in secure settings) and set it to Device only or whatever you need, instead of GPS.
Note that "Device only" still uses active GPS and "This mode may use more battery power and take longer to determine your location" (Ref: https://support.google.com/nexus/answer/3467281?hl=en)
The traffic card still works on "battery saving" because it uses cellphone triangulation, and shows you the traffic in your vicinity, and based on your destination.
jj14 said:
To keep device only, you should use Location mode (in secure settings) and set it to Device only or whatever you need, instead of GPS.
Note that "Device only" still uses active GPS and "This mode may use more battery power and take longer to determine your location" (Ref: https://support.google.com/nexus/answer/3467281?hl=en)
The traffic card still works on "battery saving" because it uses cellphone triangulation, and shows you the traffic in your vicinity, and based on your destination.
Click to expand...
Click to collapse
I know, I have always used battery saving. The problem is that with battery saving, I'm having these extreme wakelocks and Google is constantly searching for my location which is what I think is the cause of the drain I'm having. I'm going to use my phone today by just using device-only location and see how the battery lasts. It should be much better since I'm hoping the phone will be deep sleeping longer. Basically, when I take my phone off the charger in the morning and I'm still at home for the first 2 hours of the day the standby time is great. It usually goes down 1-2% in those 2 hours even if I use the phone a little. However, once I leave the house is when I get constant wakelocks from location services and the battery stats to deplete a lot faster. I mean, I can still get through a day just because I don't use the screen a lot. I tend to only use about 1 hr 30 min on a regular day but I just want to play around with settings to see what works.If I can get the same standby time throughout the day that I get within the first two hours when im at home that would be great.
PsychDrummer said:
I know, I have always used battery saving. The problem is that with battery saving, I'm having these extreme wakelocks and Google is constantly searching for my location which is what I think is the cause of the drain I'm having. I'm going to use my phone today by just using device-only location and see how the battery lasts. It should be much better since I'm hoping the phone will be deep sleeping longer. Basically, when I take my phone off the charger in the morning and I'm still at home for the first 2 hours of the day the standby time is great. It usually goes down 1-2% in those 2 hours even if I use the phone a little. However, once I leave the house is when I get constant wakelocks from location services and the battery stats to deplete a lot faster. I mean, I can still get through a day just because I don't use the screen a lot. I tend to only use about 1 hr 30 min on a regular day but I just want to play around with settings to see what works.If I can get the same standby time throughout the day that I get within the first two hours when im at home that would be great.
Click to expand...
Click to collapse
That's strange. With battery saving mode, I get no wakelocks, which with device only or high accuracy, I used to get a lot of wakelocks by the location services.
But yes, no harm in trying out the options. Tasker+secure settings should be able to set up the battery saving or device only (as described above)
jj14 said:
That's strange. With battery saving mode, I get no wakelocks, which with device only or high accuracy, I used to get a lot of wakelocks by the location services.
But yes, no harm in trying out the options. Tasker+secure settings should be able to set up the battery saving or device only (as described above)
Click to expand...
Click to collapse
You get Npl wakelocks? So far I haven't gotten it and that's the wakelock that usually keeps my phone awake for 2 hours or so. basically, I think the way it works is that the device only setting uses more battery when using apps that use location such as maps but when the apps are not in use it uses no battery on location.
PsychDrummer said:
You get Npl wakelocks? So far I haven't gotten it and that's the wakelock that usually keeps my phone awake for 2 hours or so. basically, I think the way it works is that the device only setting uses more battery when using apps that use location such as maps but when the apps are not in use it uses no battery on location.
Click to expand...
Click to collapse
No. Ever since I switched to battery saving (and tasker toggling to high accuracy when I use maps), I have no location based wakelocks (no NPL wakelocks)
jj14 said:
No. Ever since I switched to battery saving (and tasker toggling to high accuracy when I use maps), I have no location based wakelocks (no NPL wakelocks)
Click to expand...
Click to collapse
Interesting, I've been having the opposite. I even took a screen shot of the wakelocks on the stock battery app where when the screen is off there's a huge amount of individual lines for awake (of course this is backed up by BBS). However when using device only the awake and screen on match almost perfectly.
PsychDrummer said:
Interesting, I've been having the opposite. I even took a screen shot of the wakelocks on the stock battery app where when the screen is off there's a huge amount of individual lines for awake (of course this is backed up by BBS). However when using device only the awake and screen on match almost perfectly.
Click to expand...
Click to collapse
Not sure why the difference, but regardless, as long as the individual 'fix' works, that's all that matters

Categories

Resources