[Q] Battery notification 10% steps with tasker - Pebble

want to get notified each time my phone's battery goes down to 90-80-70....%
using tasker + notification center app
so created this task:
Battery Level
|--->Notification Center plugin send "Battery level 100%" if %BATT=100
|--->Notification Center plugin send "Battery level 90%" if %BATT=90
|--->........
And this profile:
Battery Notification---> state: battery level from 0 to 100 ---> run Battery Level task
the trigger is green but seems it doesn't run the task when the battery meet the right %
if i set the profile to a fix level (i.e. battery level from 80 to 80), it works...
should i set a profile for each step i want to be notified?

I set mine as a profile on battery change. My task for notification is send %BATT if %BATT % 10 = 0.

I had created 3 profiles for exact battery stats 15%, 10% and 2%
Profile:
stat battery level 10%-10%
+
State no power connection
Task: configured notification with notification center plugin.
It's work for my, and no power stat prevent notifications when phone connected to a charger.
Sent from my SAMSUNG-SGH-I727 using xda premium

thanks..so it's needed to create more profiles as the battery level you want to be notificated at...

beren said:
thanks..so it's needed to create more profiles as the battery level you want to be notificated at...
Click to expand...
Click to collapse
Not really
use the If statement so if the battery level mod 10 = 0, then send the message.
---------- Post added at 04:33 AM ---------- Previous post was at 04:16 AM ----------
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my HTC One using Tapatalk 2
---------- Post added at 04:35 AM ---------- Previous post was at 04:33 AM ----------
Sent from my HTC One using Tapatalk 2

Grooby97 said:
Not really
use the If statement so if the battery level mod 10 = 0, then send the message.
Click to expand...
Click to collapse
thanks a lot.....obviously working.
can you explain me what exactly does %BATT %10 = 0

% is the MOD operator. So if battery level MOD 10 (remainder of %BATT / 10) is 0, then the battery level is in the 10% step.

thank you....i think this profile is pretty battery hungry, as it runs the task on each step down of the battery..or not?

have not noticed it
besides, a profile of "do this when battery is 50%" has the same steps, Tasker is just doing it behind the scene doing the if-then statement anyway.

not exactly the same....because if the battery isn't 50% (like your example) the profile will not start the related task, while using Battery Changed + MOD operator will run the task every time the battery drops 1%.
btw i don't think this will impact the battery live significantly...

beren said:
not exactly the same....because if the battery isn't 50% (like your example) the profile will not start the related task, while using Battery Changed + MOD operator will run the task every time the battery drops 1%.
btw i don't think this will impact the battery live significantly...
Click to expand...
Click to collapse
if you do a cooldown time...

Related

[Q] Make the bettery meter more accurate?

Is it possible to have the battery meters in the phone be more accurate than every 10%, or are all Motorola phones display battery levels for every 10% (except for 15% and 5%)
when i feel that my cell battery is running low and i need to step out i just simply plug in the charger, power off then power back on. Phone instantly jumps 30% or so.
I use Battery Indicator from the market. It is a status bar icon, not a widget (which I like better since it can be seen from every screen, including the lock screen) and the 1% increments work perfectly on the D4. The free version is just a black and white icon but the pro version can be skinned.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I will try this battery app. Its annoying to see the 10% incremental change. Its hard to recognize which app is consuming what.
Thanks
Sent from my DROID4 using xda premium
I've been using Battery Circle since the day the Droid 3 was released.
are there any apps that replace the battery icon?
The information on how the D4 indicates battery charge is here: http://code.google.com/p/battery-indicator/wiki/OnePercentHack
I checked it, and the indicated file does indeed work to show 1% battery increments. I am considering making a widget for the D4 that shows the battery in 1% increments based on the content of that file. Would you all find that helpful?
Sent from my DROID4 using XDA
omniuni said:
The information on how the D4 indicates battery charge is here: http://code.google.com/p/battery-indicator/wiki/OnePercentHack
I checked it, and the indicated file does indeed work to show 1% battery increments. I am considering making a widget for the D4 that shows the battery in 1% increments based on the content of that file. Would you all find that helpful?
Sent from my DROID4 using XDA
Click to expand...
Click to collapse
I, for one, would be very interested in this.
Simple Battery Monitor Widget
I have tried a few apps from the market, but although a few support the Motorola 1% trick, they seem like overkill to me, and for something so simple, I don't really want to pay for it. All I want is a very simple widget that shows 1% increments.
Here's what I have in mind:
Also, I am looking in to a way to provide a service through the app that will broadcast 1% increments through the Android system. It may require root, it may not even be possible, but if I can do it, it would mean all apps would receive the 1% increments as long as the app is installed.
Either way, the project will end up hosted on GitHub under the GPL. If anyone is interested in helping out, I'll put it up on GitHub ASAP and we can work together on it.
Ideas for other features:
Add toggles for Wifi, Network Mode, Screen Brightness, Bluetooth in the App; instead of using built-in themes, make some kind of simple "theme file" so that it is easy to make new themes; add an optional notification in the drop-down; ICS support.
I'm using Gauge Battery Widget. It supports 1% reporting in
- status bar icons
- charts
- widgets
More details about app at http://www.gaugebatterywidget.com, you can download it from https://play.google.com/store/apps/details?id=net.hubalek.android.gaugebattwidget.pro
There is an app in the market called " moto charge" that will read 1% on stock rom. It Does not work on asop or ics roms.
Sent from my DROID4 using Tapatalk
The app "Minimalistic Text" also displays individual percentages, it's just a widget so it doesn't display in the notification bar but it was the first app I found to display the exact percentage, and it's free.
This is my first post so I can't link to the page, sorry.
I use badass battery monitor and it shows by 1%
Sent from my DROID4 using XDA

improve battery life

please put vustras recommendations for longer battery life, and we will add it to the top of the thread.
1.- I have found that with SetCPU set (51-1200 MHz) improve the battery life and lowers the temperature.
2.- remove apk:http://forum.xda-developers.com/showthread.php?t=2193944, if not utilizais these applications:
AAT
Application Manager
Backup
Camera Test
Cell broadcast
Chrome
com.lge.appbox.bridge
com.lge.appbox.remote
com.lge.defaultaccount
com.lge.internal
com.lge.lgdrm.permission
com.lge.lgfota.permission
com.lge.permission
DmFAdmin
Downloads
DRM Service
DRM-Protected Content Storage
E-mail
E-mail widget
Face Unlock
Favorites Contact Widget
Google+
Home Theme - biz
Home Theme - Cozywall
Home Theme - Marshmallow
LG MLT (if you eliminate skip step 3)
LgInstallService
LGSystemServer
Live Wallpaper Picker
Media Home
Memo Widget
Music Widget
NFC Service
On Screen Phone
PC Suite Service
PC Suite UI
Picasa Uploader
QSlide Framework
QuickMemo
REmote support Service
RemoteCall Service
SIM Toolkit
Smart Log Service
SmartShare
Software update
Streaming Player
Street View
SystemBackupService
Tags
Talk
TalkBack
VpnDialogs
Weather
WeatherTheme_Optimus_Still
3.- 3845#*880# <- how to get in hidden menu and there u should disable MLT. After this restart the phone.
4.- Disable Fast Dormancy to get less com.android.phone wake-ups http://forum.xda-developers.com/show....php?t=2057093 ( Thanks again to Arne_B for this)
5.- Setting>developer options>background process limit> at most 2 processes (verified only by my, I hope someone else can verify)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
1200mhz works too :3
noppoer2 said:
1200mhz works too :3
Click to expand...
Click to collapse
I'm going to try it
pescaero said:
I'm going to try it
Click to expand...
Click to collapse
you are right....
How can I do step 2? I am new in Android.
This thread is totaly not needed... There is a Thread about Battery life There is written how to make your battery last longer etc... Mine was today 2days running and still had 50% of battery.
---------- Post added at 08:36 PM ---------- Previous post was at 08:33 PM ----------
Dowper said:
How can I do step 2? I am new in Android.
Click to expand...
Click to collapse
3845#*880# <- how to get in hidden menu and there u should disable MLT. After this restart the phone.
Dowper said:
How can I do step 2? I am new in Android.
Click to expand...
Click to collapse
with titanium backup, you can download it from play store.
setting>developer options>background process limit> at most 2 processes
not seem to affect performance but increases battery life
someone else can check?
gmajnkek said:
This thread is totaly not needed... There is a Thread about Battery life There is written how to make your battery last longer etc... Mine was today 2days running and still had 50% of battery.
Click to expand...
Click to collapse
This would be true if that post's OP had kept tabs of the various solutions found in the first post(s). The way it is, if you want to learn new methods, you have to read the entire thing and hope you don't miss something. To be exact, the only thing we need is someone who volunteers to gather the useful suggestions in there.
Although I still think it helps to have a specific thread for info gathering about battery solutions, as it would (hopefully) limit suggestions like "freeze/uninstall some stock apps", that add nothing to who's trying to follow the suggestions.

			
				
Removing com.lge.internal will **** up everything...
pescaero said:
Click to expand...
Click to collapse
dude this picture is for ants?

What is this wakelock? PowerManagerService.Display

It shows up in BBS in the kernel wakelock and usually shows up when i've missed a call. It drains the battery pretty darn fast and keeps the phone awake.
PowerManagerService.Display
biggiestuff said:
It shows up in BBS in the kernel wakelock and usually shows up when i've missed a call. It drains the battery pretty darn fast and keeps the phone awake.
PowerManagerService.Display
Click to expand...
Click to collapse
I found this earlier, could be helpful. supposedly that may be a collection of different wakelocks from what I found. Check out the links and I would recommend running your phone is safe mode for a few hours to test and also running normally and freezing some apps. Hope that helps.
http://forum.xda-developers.com/galaxy-nexus/help/excessive-battery-drain-t2375348
http://forum.xda-developers.com/galaxy-nexus/general/kernel-wakelocks-t1462020
This is not the case. What you posted is for the regular powermanagerservice.wakelock, not the one with "display" in the title.
biggiestuff said:
It shows up in BBS in the kernel wakelock and usually shows up when i've missed a call. It drains the battery pretty darn fast and keeps the phone awake.
PowerManagerService.Display
Click to expand...
Click to collapse
Hey, did you figure out how to stop it? I have the same problem...
power manager service.display
Hi,
i think, it's about your settings.
For me, i apply, in developper options, stat transitions=1.25x, and it disapper
will try that
glarage said:
Hi,
i think, it's about your settings.
For me, i apply, in developper options, stat transitions=1.25x, and it disapper
Click to expand...
Click to collapse
I have the same problem. I went to developer options, but can't find stat transitions. Where is it?
glarage said:
Hi,
i think, it's about your settings.
For me, i apply, in developper options, stat transitions=1.25x, and it disapper
Click to expand...
Click to collapse
Didn't help
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
?
Maybe you're right... i didn't explain that, because in BBs it shows me 1s but not in WLD???????
It appears, only when i plug my phone on charge (or usb), and use the torch in the background...
Anyone?
glarage said:
Maybe you're right... i didn't explain that, because in BBs it shows me 1s but not in WLD???????
It appears, only when i plug my phone on charge (or usb), and use the torch in the background...
Click to expand...
Click to collapse
Did you find out what that powermanagerservice.Wakelock was ? I'm having the same issue ATM on my oneplus one and don't find any solution...(I know I'm on the wrong forum but i think its not device related)
Envoyé de mon A0001 en utilisant Tapatalk
So, did anyone find out how to fix this?
I'm having the same issue on LGG3 (5.0 stock, v21a, rooted).
Phone's battery is discharging much more rapidly than before (for couple of weeks now), even when the phone is not in use at all.
2 highest wakelocks are PowerManagerService.Display and PowerManagerService
The same here
Same here. Guys any solution ?
http://newandroidbook.com/Book/PMS.pdf
PowerManagerService.Display - Used during display state transitions
@biggiestuff
Is there any way to modify a setting for display state transitions to avoid these wakelocks? I'm experiencing these wakelocks on my Galaxy S7.
bluemu said:
Is there any way to modify a setting for display state transitions to avoid these wakelocks? I'm experiencing these wakelocks on my Galaxy S7.
Click to expand...
Click to collapse
Me too
Sent from my SM-G930F using Tapatalk
I thought the PowerManagerService.Display had to do with your display on-time. From what I understand you can at least assume that your display is supposed to consume a lot of your battery power. In that case.. Some unfounded guesses: (1) try manually adjusting your screen brightness instead of automatically, (2) keep your brightness as low as possible, (3) disable as many fancy lockscreen and launcher visual effects as you can.
If the PowerManagerService.Display actually does refer to the screen-off state, maybe look into the way your phone displays notifications?
No solution for wakelock?
Guys, Any solution?

App or Widget to display phone battery level on gear?

Is there such a thing? :good:
Yes but most eat a lot of battery in the process of cycles checking and displaying the battery status, I use pie controls that can instantly display the battery status and time, when I pull up the menus from any screen im in.
ronfurro said:
Yes but most eat a lot of battery in the process of cycles checking and displaying the battery status, I use pie controls that can instantly display the battery status and time, when I pull up the menus from any screen im in.
Click to expand...
Click to collapse
Do you mean pie controls installed on the gear let you see the battery level on the phone?
lazer9 said:
Do you mean pie controls installed on the gear let you see the battery level on the phone?
Click to expand...
Click to collapse
Sorry, No. Disregard, I read your question incorrectly, dont know of an app. that can do that, since my Gear always depletes it's battery before my phone, never looked.
I can appreciate the concern of battery consumption with such an app/widget but if it could be set to poll only when the gear screen is on OR better yet, when the button/widget was pressed, that would be ideal. Wish I was smart enough to make such a thing.
lazer9 said:
I can appreciate the concern of battery consumption with such an app/widget but if it could be set to poll only when the gear screen is on OR better yet, when the button/widget was pressed, that would be ideal. Wish I was smart enough to make such a thing.
Click to expand...
Click to collapse
If you are using a custom launcher there are quite a few, you can use UCCW, Zooper or you could also find a battery widget on the playstore.
Otherwise tap your screen twice with two fingers and it will display your battery percentage if enabled in gear manager.
I just double tap the screen with two fingers to quickly check battery level.
Sent from my SM-N900P using XDA Premium 4 mobile app
brandibran said:
I just double tap the screen with two fingers to quickly check battery level.
Sent from my SM-N900P using XDA Premium 4 mobile app
Click to expand...
Click to collapse
nice, didn't know that lol, im on null v23 rom
fOmey said:
If you are using a custom launcher there are quite a few, you can use UCCW, Zooper or you could also find a battery widget on the playstore.
Otherwise tap your screen twice with two fingers and it will display your battery percentage if enabled in gear manager.
Click to expand...
Click to collapse
Thanks for the reply but I think there is some confusion as to what I'm after. I have UR Battery on the gear which gives me a widget already to display and see the battery level remaining on the gear itself. What I am after is a way to simply look at the gear to get a battery level reading somehow of the PHONE itself, not the gear.
PS: If I tap the screen twice, my screen turns off. I have this set up in apex and using "Screen Off" app I believe it's called. I'm thinking again though that you are referencing showing the Gear's battery level this way and not the phone's?
I use solo battery widget which displays a circular graphic with numerical % inside it. Works well
Sent from my Lenovo K900 using Tapatalk
Tasker to the rescue
This can be accomplished on the gear s2 using the task s2 companion app. Setup a task to send the current battery level as a notification. Enable tasker notifications for the gear s2 in gear manager.
I was needing the same thing, so created an app called 'phone battery widget'.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Give it a try folks, do let me know if you have any feature suggestions.

Battery Saver mode in Android 9

I can't seem to find the Battery Saver mode in Android 9 (MIUI v10.1.2.0) anymore.
There's also no indication in the battery meter for activating such mode. (used to show as orange in the meter background)
Am i the only one missing this?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I'm in 10.1.2 and I find it in my notification drawer (bottom right)
lioutasrom said:
I'm in 10.1.2 and I find it in my notification drawer (bottom right)
Click to expand...
Click to collapse
Got it thanks,
I was looking into the settings menu and couldn't find any.
It's missing his own voice in the setting really weird
hi guys, my mi 8 stay on miui 10 china rom 10.1.2.0 PEACNFI,
i have an issue about notification, notification will never appear until the screen turned on,
suspect about "save battery when device is locked" status is optimized on battery usage scanning, but i can't find how to turn it off
already lock my app (whatsapp, line, etc) in recent app list
already turn off battery saver
already set no restriction for several app on battery saver
already set autostart permission for
setting clear cache when device off = never
setting turn off mobile data when device is locked = never
any other suggestion?
thanks before
catallizer said:
hi guys, my mi 8 stay on miui 10 china rom 10.1.2.0 PEACNFI,
i have an issue about notification, notification will never appear until the screen turned on,
suspect about "save battery when device is locked" status is optimized on battery usage scanning, but i can't find how to turn it off
already lock my app (whatsapp, line, etc) in recent app list
already turn off battery saver
already set no restriction for several app on battery saver
already set autostart permission for
setting clear cache when device off = never
setting turn off mobile data when device is locked = never
any other suggestion?
thanks before
Click to expand...
Click to collapse
Whatsapp / Line notifications have always been unreliable in Chinese ROM, that is quite a common issue.
Another thing that you might check is under Settings -> Battery & Performance -> Scenes -> Non-interactive mode and make sure it is DISABLED.

Categories

Resources