Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Android battery usage #1446

Open
faulker opened this issue Jan 22, 2025 · 16 comments
Open

[Bug]: Android battery usage #1446

faulker opened this issue Jan 22, 2025 · 16 comments
Labels
bug Something isn't working

Comments

@faulker
Copy link

faulker commented Jan 22, 2025

What was the Problem?

I'm having battery usage issues, the usage has been much higher than in previous app versions. After about two hours of playtime, it has been running in the background for 6+ hours and accounted for 35% of my battery usage, five times the usage of any other app.

Steps to Reproduce the Issue

Use the app on a similar phone

What was Expected?

Less battery usage

Phone Model

Pixel 7a

Phone OS

Android 15

Audiobookshelf App Version

Android App - 0.9.78

Installation Source

Google Play Store

Additional Notes

I do have the widget enabled, I've removed it to see if that makes any difference.

@faulker faulker added the bug Something isn't working label Jan 22, 2025
@nichwall
Copy link
Contributor

Was this with streaming or a downloaded book? Was the app connected to the server or listening in offline mode (not attempting to sync progress to the server)?

I just checked my usage, and a downloaded book took 16% of my battery after 7.4 hours on a Pixel 6a

@faulker
Copy link
Author

faulker commented Jan 22, 2025

It is an audiobook that I have previously downloaded from the server, I am not streaming anything from the server.
Removing the widget didn't help, today I listened for less than an hour yet the battery usage is around the same 37% of my used battery was from the app. The app is reporting that it has been running in the background for 3h 52m.

This time around I'm disabling the "pin media player" option to see if that helps at all

@Zibbp
Copy link

Zibbp commented Jan 22, 2025

I've also noticed this since the last last updated, 0.9.78. I'm listening to a downloaded book and it uses a significant amount of battery (something is using a lot of CPU as the phone warms up). Android claims 45% battery usage for ~5 hours of runtime.

@schinguhl
Copy link

schinguhl commented Jan 23, 2025

Its the same for me. After the last pixel 9 update (android 15, security patch of January) my audiobookshelf app uses up to 40% of my battery every day. Before this update it was not noticeable. Im listening to an downloaded audiobook and the network usage is almost 0.

Image

@TDderpy
Copy link

TDderpy commented Jan 23, 2025

Same issues for me also! One thing I've noticed is everyone who's stated a phone model all seem to have pixel devices?
I myself are in a pixel 7 pro, might just be representative of the community here I'm not sure, but could be pixel devices specifically effected?

@kingmike67
Copy link

Noticed the same with me on my P8P. Now I can almost confirm 100% it's something (not sure what) in the pixel stock ROM that is causing it. When running a custom ROM, I can listen for hours, nearly half the day and it's only 15-20% battery drain. On Stock ROM I lose about 15% batter an hour listening. All books are streaming for me.

@Vilhjalmr26
Copy link

Same issue on my Pixel 9 Pro, very recently started burning through battery while in background and not listening. Yesterday I listened to downloaded audiobook for about 2 hours total, and audiobookshelf accounted for 57% of my daily battery usage. And that was with my battery having run down to 10% at the point when I checked, so a very significant amount of the battery.

@Zibbp
Copy link

Zibbp commented Jan 23, 2025

Same issues for me also! One thing I've noticed is everyone who's stated a phone model all seem to have pixel devices?
I myself are in a pixel 7 pro, might just be representative of the community here I'm not sure, but could be pixel devices specifically effected?

I have a Samsung S22 running Android 14 so I don't believe it is limited to Pixels.

@theniwo
Copy link

theniwo commented Jan 23, 2025

I have a Samsung S22 running Android 14 so I don't believe it is limited to Pixels.

Samsung Galaxy S20 Pro / Android 13 / One UI 5.1 / Nova Launcher Prime 8.0.18

ABS Mobile Version: 0.9.78-beta
ABS Server Version: 2.18.1 docker

No significant increase of CPU Load while streaming over cell and wifi as well as local playback. Widget enabled. Foreground and Background playback.

(You can add and enable a CPU Load Widget in Androids Developer Settings -> GPU Watch)

@faulker
Copy link
Author

faulker commented Jan 23, 2025

Disabling "pin media player" had no effect, battery usage is still extremely high (41% over 7 hours today) with only 30 mins of listing time.

@theniwo
Copy link

theniwo commented Jan 23, 2025

Its the same for me. After the last pixel 9 update (android 15, security patch of January) my audiobookshelf app uses up to 40% of my battery every day. Before this update it was not noticeable. Im listening to an downloaded audiobook and the network usage is almost 0.

It doesn't even show up in my battery usage history of this week. But I have 60 minutes sleep timer enabled, though.

@kymahi
Copy link

kymahi commented Jan 23, 2025

Just wanted to say I'm also having this same experience.

Image

ROG Phone 6

app version 0.9.78-beta

listened to about 20 minutes of a (locally downloaded, not streamed) book this morning, did not download any other books or interact with the app outside of playing and pausing.

@theniwo
Copy link

theniwo commented Jan 23, 2025

It was active in the background for 6.5 hrs.

Can you check the battery setting of the app (App-Info -> Battery)?

Mine is set to optimized. The other two options translate to

  • Not limited: Allows the app to use the battery without limits. Can decrease battery lifespan.
  • Limited: Limits the use of battery in the background. App can misfunction etc.

Make sure, you don't have it on Not limited, or whatever the setting is called in english.

Image

@tdz262
Copy link

tdz262 commented Jan 24, 2025

Pixel 7 Pro. I am streaming and it's used 77% battery in 11 hours of background use. I had my phone playing through Bluetooth speaker most of the day, I've plugged my phone back in multiple times through out the day because battery was getting low. Audiobook shelf is on Optimized.

@Ich-Eben
Copy link

Have the same issue (Pixel 8a).
I did a few tests and figured out that it does not matter if you are listening locally or streaming. In fact, the app drains the battery even when it is only running in the background and you are not listening to anything at all.

I downgraded the app to version v0.9.77-beta and the problem was gone. So, there is definitely something wrong with version v0.9.78-beta.

@biuklija
Copy link
Contributor

Same issue, Samsung A55 (Android 14), ABS server at v2.18.1; v0.9.78-beta absolutely murders my battery life just by idling in the background after I stop playing an audiobook (local, streaming, makes no difference) even with screen off. I had to downgrade to 0.9.77 so can't provide battery usage stats, but they're similar to those seen in previous posts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests