Battery Saver when screen is locked - Tasker Tips & Tricks

So, I thought about automate Energy Saver when I hit the "Hibernate and Lock" from Greenify, and whenever I unlock my phone, the Energy Saver is disabled.
Is there a way of doing that? I've searched here in the forum and youtube, but none of them helped me.
I really appreciate if someone have the answer!!

Does this works
Does Tasker can really save battery

Priyanshu 452 said:
Does Tasker can really save battery
Click to expand...
Click to collapse
It's not a Tasker feature, but just to set up the native Energy Saver from the Android when the screen is locked.

Related

[Q] Power Saver shortcut

Hi all.
Does anyone know of a way to turn on the Power Saver with 1 click from a shortcut on one of the home screens?
It's in the extended quick settings of most custom roms, so I know a 1-click solution must be possible, but couldn't find anything obvious on how to do it. I'd just like it as shortcut on my home screen (& also as a result be able to run it from tasker!)
Any ideas?
Col.
Bump...
Still can't find a way to do this.
As I said above, i'm sure there must be a way to do it, otherwise how could custom rom's extended quick settings (ViperOne rom is a prime example) activate it with one click
Any ideas anyone?
Maybe there's a shell command that would work?
With 4.2.2 you can activate it only in settings or with the viper in the EQS.
But also in other rom if you will change the EQS number
Two fingers swipe from notification bar and 1 click-Power saver on/off !
Guich said:
With 4.2.2 you can activate it only in settings or with the viper in the EQS.
But also in other rom if you will change the EQS number
Click to expand...
Click to collapse
Yes, I am currently running the ViperOne rom & that's what made me think it could be possible. On ViperOne's EQS, you have one click to turn on the Power Saver. It doesn't open the power manager app and "click" the button to turn on the power saver, so logically there is some code in the Viper EQS that can turn on the power saver directly. I wanted to know if that could be done in a separate app, or what the direct command is (shell command?). With an app or shell command, I could turn on the power saver from a Tasker profile.
martyy said:
Two fingers swipe from notification bar and 1 click-Power saver on/off !
Click to expand...
Click to collapse
Didn't know about the 2 finger swipe though... Useful, but again isn't quite what I want. Thanks though.
colthekid said:
Yes, I am currently running the ViperOne rom & that's what made me think it could be possible. On ViperOne's EQS, you have one click to turn on the Power Saver. It doesn't open the power manager app and "click" the button to turn on the power saver, so logically there is some code in the Viper EQS that can turn on the power saver directly. I wanted to know if that could be done in a separate app, or what the direct command is (shell command?). With an app or shell command, I could turn on the power saver from a Tasker profile.
Didn't know about the 2 finger swipe though... Useful, but again isn't quite what I want. Thanks though.
Click to expand...
Click to collapse
I don't know if it still works.. I haven't used it in years, but have you tried setting up a shortcut via the AnyCut app or other similar applications?
EDIT: Appears AnyCut is gone. QuickShortcutMaker from the Play store is another being recommended according to my googlefu.
unremarked said:
QuickShortcutMaker from the Play store is another being recommended according to my googlefu.
Click to expand...
Click to collapse
Tried that, there is a way to get a shortcut direct to the Power Settings app, but not to turn on the Saver directly. Lots of other direct shortcuts though which may be useful in future!
Still searching...
Anyone got any other ideas or know of a developer to pm?
colthekid said:
Still searching...
Anyone got any other ideas or know of a developer to pm?
Click to expand...
Click to collapse
Tasker will do it:
Create a task called Power Saver (or whatever you want) and select 'Load App'.
Check the 'Show All' box in the app list, and Power Saver Settings becomes visible.
Should have a home screen shortcut to toggle the power saver mode.
colthekid said:
Yes, I am currently running the ViperOne rom & that's what made me think it could be possible. On ViperOne's EQS, you have one click to turn on the Power Saver. It doesn't open the power manager app and "click" the button to turn on the power saver, so logically there is some code in the Viper EQS that can turn on the power saver directly. I wanted to know if that could be done in a separate app, or what the direct command is (shell command?). With an app or shell command, I could turn on the power saver from a Tasker profile.
Click to expand...
Click to collapse
Anh, understood
I saw that you asked in the Viper Thread
crushalot said:
Tasker will do it:
Create a task called Power Saver (or whatever you want) and select 'Load App'.
Check the 'Show All' box in the app list, and Power Saver Settings becomes visible.
Should have a home screen shortcut to toggle the power saver mode.
Click to expand...
Click to collapse
That's what i'm doing at the moment, but it only opens the power saver settings, i still have to "click" the button to turn the power save on.
I can't find a power saver widget on my rom (ViperOne)...should there be one?
Guich said:
I saw that you asked in the Viper Thread
Click to expand...
Click to collapse
Im trying everything!
Was considering sending a pm to one of the viper developers...but I'm not sure if that's really "allowed"
colthekid said:
That's what i'm doing at the moment, but it only opens the power saver settings, i still have to "click" the button to turn the power save on.
I can't find a power saver widget on my rom (ViperOne)...should there be one?
Click to expand...
Click to collapse
I see. Well you could try Power Toggles app. I used it for a while and it is very good. It should allow you to use a widget to toggle the power saver mode.
http://forum.xda-developers.com/showthread.php?p=44105528
J4n answer your question,
colthekid said:
Im trying everything!
Was considering sending a pm to one of the viper developers...but I'm not sure if that's really "allowed"
Click to expand...
Click to collapse
Garmig said:
http://forum.xda-developers.com/showthread.php?p=44105528
J4n answer your question,
Click to expand...
Click to collapse
Yes, and it works!
Credit to @j to the 4n
As I said in the ViperOne thread, the precise shell command that worked on my phone was...
sqlite3 /data/data/com.android.providers.settings/databases/settings.db "update 'system' set value='1' where name='user_powersaver_enable';"
value='0' works for disable as well
and my recent comment....
colthekid said:
After some testing on this last night I can confirm what @j to the 4n said, it is turning the power saver on (you can see the screen dim after 20-30 seconds), but it's not immediately updating the quicksettings icon, although again, it does update eventually (especially after a screen off/on). The status bar notification also doesn't appear. However if, as said above, you open the power settings, the notification appears and it also updates the quicksettings icon.
Click to expand...
Click to collapse

[Q] Power Saver notification on 4.2.2

Just got the 4.2.2 update today which installed fine.. sites all over the internet claim this should remove the annoying Power Saver notification.
Unfortunately this hasn't happened for me, I can only remove the notification by turning the service off or using the force stop option in App info.
The 'show notifications' checkbox is greyed out in App info.
Can anyone shed any light on this, I want the Power Saver mode on - just without the permanent notification!!
Thanks,
Mark
mdon874 said:
Just got the 4.2.2 update today which installed fine.. sites all over the internet claim this should remove the annoying Power Saver notification.
Unfortunately this hasn't happened for me, I can only remove the notification by turning the service off or using the force stop option in App info.
The 'show notifications' checkbox is greyed out in App info.
Can anyone shed any light on this, I want the Power Saver mode on - just without the permanent notification!!
Thanks,
Mark
Click to expand...
Click to collapse
There is an app in the Play store :JMZ Power Saver Disable or something close to that that does exactly what you want.
dgtiii said:
There is an app in the Play store :JMZ Power Saver Disable or something close to that that does exactly what you want.
Click to expand...
Click to collapse
Yeah i've heard of that thanks - my One isn't rooted though. Just seems like everyone is reporting the update fixes it but it hasn't for me amd I can't work out why!!
It's removed only when the power saver is off.
Photosphere/Power saver notification/Developer options
I've seen that the Photosphere application/feature, Power saver notification and the Developer options button is removed from settings...............these seem to be missed somehow
phsetaknev said:
I've seen that the Photosphere application/feature, Power saver notification and the Developer options button is removed from settings...............these seem to be missed somehow
Click to expand...
Click to collapse
Just found out that tapping 7 times on the build number [under About phone, under Software Info, More] enables the Developer options........

Battery Percentage

Is there any sort of battery Percentage option that I can turn on or do I have to use widgets to do this?
Wutang200 said:
Is there any sort of battery Percentage option that I can turn on or do I have to use widgets to do this?
Click to expand...
Click to collapse
There's an app that does that. Battery percent for kitkat/L. Works pretty good.
I already have an app that does it. Just thought Google would have included it as a standard feature by now.
Wutang200 said:
Is there any sort of battery Percentage option that I can turn on or do I have to use widgets to do this?
Click to expand...
Click to collapse
Don't know why anyone would want to see the percent. Masochists.

Solved - tasker not starting when phone is switched on

Hi,
I have a profile that switches my phone to do not disturb when I get to work but for some reason the application doesn't start when I switch on my OnePlus 3t in the morning (stock OS 9.0.4). Profile kicks in if I start the app. Any ideas what is going on? Tried to switch off battery optimisation bit that hasn't helped.
Eggstones said:
Hi,
I have a profile that switches my phone to do not disturb when I get to work but for some reason the application doesn't start when I switch on my OnePlus 3t in the morning (stock OS 9.0.4). Profile kicks in if I start the app. Any ideas what is going on? Tried to switch off battery optimisation bit that hasn't helped.
Click to expand...
Click to collapse
Take a look at (all of) these settings
Don't kill my app - OnePlus
Why doesn't Tasker work in the background on my device?
ktmom said:
Take a look at (all of) these settings
Don't kill my app - OnePlus
Why doesn't Tasker work in the background on my device?
Click to expand...
Click to collapse
Thanks. Will test tomorrow. Been away traveling.
ktmom said:
Take a look at (all of) these settings
Don't kill my app - OnePlus
Why doesn't Tasker work in the background on my device?
Click to expand...
Click to collapse
Have looked at those links again and will try to see if the locking thing sorts it. If not I'll try to toggle off the advanced battery settings to see what it does.
Just noticed that both tasker, the auto apps and lastpass has the option to manage battery usage in the background greyed out. Could this have something to do with it. Can't figure out how to change this. Have checked 5-6 other apps and they allow me to change this setting.
I think I have solved this now. Tasker seems to be running happily in the background after I locked it using the padlock icon you get when you click on the three dots you see when you switch between apps or want to close it. It is even playing nicely with battery optimisation turned on.
Since locking tasker with the padlock it works fine both with battery optimisation on and deep cleaning.

Question Battery drain Issue?

My device is draining so much battery in every app. It's kind of annoying. How do I fix that? Or can i even fix that.
Android version?
Screen on time?
shanii95 said:
Android version?
Screen on time?
Click to expand...
Click to collapse
11, and like 7h
You should check this settings:
1)Battery/More battery settings/Optimize battery use/
For every app that you don't need in background after using "close all" option set "Auto optimize".
2)Battery/More battery settings/App quick freeze
For every app that you don't want to be run by it's self in background turn option ON, except for apps like facebook, viber on any other that you need for showing messages on time.
3)Battery/App battery management
Again every app that you don't need running by it's self in background, turn off all 3 options.
4) Also check for :
*OSIE Visual effect
*Double tap to wake
*Raise to wake
All options should be off because it drain power

Categories

Resources