Significant increase in battery consumption in recent days

MacroDroidDev

Administrator
Staff member
I am trying to recreate the problem with no success so far. I definitely would like to resolve any such issue, but this is a complex beast and without reproducing the issue I have no idea where to start looking at this stage.
 

gilesbradley

New member
Having been a developer myself I understand that. I'm surprised no-one else seems to be reporting the issue? Tonight I will restart the phone, fully recharge and keep MD switched off all day tomorrow without any brief switch ons and see what happens
 

shadewood_mole

New member
I have to say I'm extremely confused.

Yesterday I fully charged the phone, used it as normal during the day and MD was well down at around 10th in the list with only 1% used after 16 hours. This was just after the latest version of MD had installed.
Today I fully charged the phone, used it as normal and MD is top of the list with 10% usage after just 15 hours!

This is so odd, what is going on?
 

shadewood_mole

New member
I am trying to recreate the problem with no success so far. I definitely would like to resolve any such issue, but this is a complex beast and without reproducing the issue I have no idea where to start looking at this stage.
I can imagine this is a very difficult issue to track down. But thank you for trying.
 

hsurB

Well-known member
I have to say I'm extremely confused.

Yesterday I fully charged the phone, used it as normal during the day and MD was well down at around 10th in the list with only 1% used after 16 hours. This was just after the latest version of MD had installed.
Today I fully charged the phone, used it as normal and MD is top of the list with 10% usage after just 15 hours!

This is so odd, what is going on?

How much % of battery was used during this period of time in total by all apps?
 

shadewood_mole

New member
How much % of battery was used during this period of time in total by all apps?
I didn't keep a record for the day when all appeared 'normal'.

As an example of a 'bad' day:
Total battery usage: 55% since last full charge of 12 hours ago. 14 hours left. (only just over 24 hours total)
MacroDroid 10% used for 11hrs, 47mins
Play services 4%
Voice calls 4%
WhatsApp 3%
Location history 2%
Phone 2%
Photos 2%
Maps 2%
and so on.

On a 'good' day MacroDroid is well down the list with 1% used and I get 40/48 hours total.
But I can't figure out what the difference is!
 

dhj49er

Well-known member
I didn't keep a record for the day when all appeared 'normal'.

As an example of a 'bad' day:
Total battery usage: 55% since last full charge of 12 hours ago. 14 hours left. (only just over 24 hours total)
MacroDroid 10% used for 11hrs, 47mins
Play services 4%
Voice calls 4%
WhatsApp 3%
Location history 2%
Phone 2%
Photos 2%
Maps 2%
and so on.

On a 'good' day MacroDroid is well down the list with 1% used and I get 40/48 hours total.
ByBut I can't figure out what the difference is!
I think it's useful to know the phone usage when you quote a total battery used figure.

What is the SOT in hours & % battery used.
What is the sleep time in hours and if available the deep sleep hours and for both % battery used.

Do you have this data?

From the data you have supplied it suggests the phone may not be deep sleeping when the screen is off.

I assume in all the testing you have undertaken that you do not open MD, so not writing, amending or checking any macros, otherwise MD battery consumption will increase.

It would be interesting to know the SOT hours when you get up to 48 hours battery life.

Finally, do you know the overnight battery drain?
I try to minimise this and typically strive for <2% for the ~ 8 hours I'm asleep.
 
Last edited:

gilesbradley

New member
I didn't keep a record for the day when all appeared 'normal'.

As an example of a 'bad' day:
Total battery usage: 55% since last full charge of 12 hours ago. 14 hours left. (only just over 24 hours total)
MacroDroid 10% used for 11hrs, 47mins
Play services 4%
Voice calls 4%
WhatsApp 3%
Location history 2%
Phone 2%
Photos 2%
Maps 2%
and so on.

On a 'good' day MacroDroid is well down the list with 1% used and I get 40/48 hours total.
But I can't figure out what the difference is!
Hi. I also have an ongoing battery issue. Macrodroid has been enabled all day BUT all the macros are switched off. So it's not doing anything and this is backed up by the system log being empty. Despite this, MD is at the top of the list with 6.3% consumption already. In addition it has 3h45m of background processing, which is nearly the whole time since the last full charge. Something is definitely awry.
 
Eu uso o aplicativo GSAM Battery Monitor com adb hacks e tive mais de 8.500 wakelocks por dia que foram causados por uma macro com gatilho de intervalo.
Só descobri porque o protocolo MD mostra que o gatilho de intervalo está contando, mesmo que a restrição não seja verdadeira, mas não está disparando.

Mas também 3.000 deles foram chamados de *location*:GnssLocation Provider.
Depois de desativar o MD por um dia, tive apenas 300 wakelocks.

Como o uso da bateria e dos wakelocks, neste caso, estão registrados no "sistema Android", deve ser algo relacionado ao MDHelper.
how to install GSAM with ADB?
 

dhj49er

Well-known member
Hi. I also have an ongoing battery issue. Macrodroid has been enabled all day BUT all the macros are switched off. So it's not doing anything and this is backed up by the system log being empty. Despite this, MD is at the top of the list with 6.3% consumption already. In addition it has 3h45m of background processing, which is nearly the whole time since the last full charge. Something is definitely awry.
Have you tried the same test after resetting the phone?

If so, is the issue immediately present and ongoing?

Likewise disabling MD, leave for a few hours, enable MD, does the issue return?

It's useful to know if the issues persists after a reset and returns after disabling MD.
 
Last edited:

shadewood_mole

New member
I think it's useful to know the phone usage when you quote a total battery used figure.

What is the SOT in hours & % battery used.
What is the sleep time in hours and if available the deep sleep hours and for both % battery used.

Do you have this data?

From the data you have supplied it suggests the phone may not be deep sleeping when the screen is off.

I assume in all the testing you have undertaken that you do not open MD, so not writing, amending or checking any macros, otherwise MD battery consumption will increase.

It would be interesting to know the SOT hours when you get up to 48 hours battery life.

Finally, do you know the overnight battery drain?
I try to minimise this and typically strive for <2% for the ~ 8 hours I'm asleep.

Hi #dhj49er

I've had an interesting result recently.

A new version of Macrodroid was installed overnight whilst the phone was on charge.

The following day was a 'good' day in that MD was not even showing in the list of apps using battery (see attached).

So there appears to be some difference between when the app is freshly updated and other times when the battery is charged but the app is not updated.

Obviously I'm not aware of what happens when the app is updated but this does seem to 'fix' the issue for one charge cycle before the high usage returns.

Does this give any clue as to what is going on?

Thanks




Screenshot_20231229-231828.jpg
 

dhj49er

Well-known member
Hi #dhj49er

I've had an interesting result recently.

A new version of Macrodroid was installed overnight whilst the phone was on charge.

The following day was a 'good' day in that MD was not even showing in the list of apps using battery (see attached).

So there appears to be some difference between when the app is freshly updated and other times when the battery is charged but the app is not updated.

Obviously I'm not aware of what happens when the app is updated but this does seem to 'fix' the issue for one charge cycle before the high usage returns.

Does this give any clue as to what is going on?

Thanks




View attachment 8171
From your good day data....the highest draining app used 4% of the battery and the total battery used by the apps listed is 11%....yet 44% of the battery was used. That's a huge difference. Do you know what's draining the battery? It's not MD, as it's not on the list.
Do you have the battery usage screenshot for a typical MD bad day? It would be interesting to compare the 2 sets of data.
 

Endercraft

Moderator (& bug finder :D)
From your good day data....the highest draining app used 4% of the battery and the total battery used by the apps listed is 11%....yet 44% of the battery was used. That's a huge difference. Do you know what's draining the battery? It's not MD, as it's not on the list.
Do you have the battery usage screenshot for a typical MD bad day? It would be interesting to compare the 2 sets of data.
44% on a day and 3/8 is pretty good to me. Does your battery last a week? 😅
 

shadewood_mole

New member
From your good day data....the highest draining app used 4% of the battery and the total battery used by the apps listed is 11%....yet 44% of the battery was used. That's a huge difference. Do you know what's draining the battery? It's not MD, as it's not on the list.
Do you have the battery usage screenshot for a typical MD bad day? It would be interesting to compare the 2 sets of data.
I've never really understood why the sum of the percentages of the apps is so much less than the total used, but that's always been the case. I don't know where the missing chunk is going but, as you say, it's not MD on a 'good' day.
By the way the large figure at the top is the remaining charge so on that day around 56% had been used not 44%

If you look back to Nov 28 2023 in this thread you will see a 'bad' day screenshot of battery drain. On that day the remaining charge was 23% (77% used) but the point is that MD is now top of the usage by some margin.

So for the first charge cycle after an update MD doesn't appear in the list and I get estimated battery life of 60 hours (2 1/2 days) and on others I get half that with MD at the top.
 

dhj49er

Well-known member
I've never really understood why the sum of the percentages of the apps is so much less than the total used, but that's always been the case. I don't know where the missing chunk is going but, as you say, it's not MD on a 'good' day.
By the way the large figure at the top is the remaining charge so on that day around 56% had been used not 44%

If you look back to Nov 28 2023 in this thread you will see a 'bad' day screenshot of battery drain. On that day the remaining charge was 23% (77% used) but the point is that MD is now top of the usage by some margin.

So for the first charge cycle after an update MD doesn't appear in the list and I get estimated battery life of 60 hours (2 1/2 days) and on others I get half that with MD at the top.
I'm still trying to understand the data you have provided

On a good day what battery life do you actually get? (not the estimated)

On a bad day what battery life do you get?

Am I right in assuming your phone usage is the same on good and bad days?

What SOT do you typically have per charge?

All the apps % battery used on a bad day are higher than on a good day. Yes, MD is the highest but Google Play Services is 4x higher at 12%. Why do you think that has increased significantly?

Have you disabled macrodroid before charging and looked at the battery used at the end of the day?
With MD disabled it should be a good day and all the app % battery used should be low eg Google Play services 3%. Is this the case?
 

dhj49er

Well-known member
Have you looked at the used time for MD and Google Play Services?

It's the whole time since last charge!

I've attached a screenshot of my phone's battery usage.

This shows MD active for 3m in over 11 hours since last charge.

Google Play Services usage is <1m and 0.6%
 

Attachments

  • Screenshot_20240111_093701_Device care.jpg
    Screenshot_20240111_093701_Device care.jpg
    275.1 KB · Views: 10

shadewood_mole

New member
Yes I did notice that my battery usage shows the whole period since the last charge, but I think this may be a limitation of the battery status page in Android 10?

Obviously MD is running all the time, but your battery status is only showing when you are actually using the app.

If I click on Play Services within the battery status is says it's been in active use for the full time since the last charge (same for MD).

What version of Android was your screenshot taken on?
 
Top