Last night I charged my iPad to 100%, it was then unplugged and unused. This morning I noticed that the charge had dropped to 95%. The battery info under Settings says that Serento used that 5%. Serento was ‘open’ overnight but all my equipment, NAS & streamer, were powered off. Can you say what Serento was doing to use 5% battery when it was supposedly doing nothing?
I can’t tell yet for certain what Serento was doing, but these are the possible causes, most likely first:
A listening session that was never paused. When Serento plays to a streamer, it keeps the iPad’s audio running with silence (nothing is audible) so the Lock Screen and Control Center controls keep working while the screen is off. That stops iPadOS from putting the app to sleep, and Serento only lets go when the music is paused. If the music was still playing when the streamer and NAS were switched off, Serento would have stayed awake all night, trying to reach the streamer every few seconds.
An album or playlist that played to the end. The end of the queue doesn’t count as a pause, so the same applies: Serento stays awake and checks the network for your devices every few minutes.
Music started on the streamer from another app or another device. If Serento was open and connected to the streamer at the time, it follows that playback and keeps itself awake for it in the same way, until it is paused.
iCloud sync. If you use Serento on other devices, iPadOS briefly wakes it to sync changes such as favourites and playlists. These wake-ups are short, so on their own they are unlikely to add up to 5%.
If none of these applies, for example if nothing had been playing or the music had been paused before you switched off, Serento should have been asleep all night and I’ll need to look further. Scheduled library sync and data enrichment only run while the iPad is charging, so they can’t have caused it.
Two things would help narrow it down:
Had anything been playing on your streamer last night, from Serento or another app? If so, how did it stop: Pause, the album ending, or switching the streamer off while it played?
In Settings › Battery, how much background time is listed for Serento? Several hours points to causes 1 to 3; a few minutes points elsewhere.
In the meantime, pressing Pause in Serento before switching your equipment off, or closing Serento from the app switcher, rules out causes 1 to 3.
During development I’ve optimised Serento to use 0% CPU while idle (with or without the screen on). And the memory footprint is reduced to a minimum. For a library of 1500 albums, 20000 tracks and 2500 artists that would be around 200 MB of RAM. It varies while in use (towards 500 MB but for brief moments). With 0% CPU and 200 MB of RAM usage the app is not killed by the OS when idle, so it stays alive. This does not explain the behaviour you noticed but it does make me scratch my head because I can’t figure out what is causing the battery drain.
Thanks Lorin. It was scenario 2, the queue had finished playing so we just turned the devices off. Usually we do pause the music before closing down, which explains why we hadn’t noticed it before.
This is good to know. I’ll make sure I close Serento at the end of the day to ensure it’s not doing this again.
I get this all the time too and scenarios 2 or 3 probably apply; either I was listening to something and it finished or I took control from another device.
These are both pretty common scenarios- I have Serento on both my phone and iPad. My iPad is sat on my stereo so is usually my kick off but then I’ll use my phone from then when I’m sat down.
It’s very common for music to finish and then just to leave it - my stereo will turn itself off after 5 minutes now - ironically, Serento means I don’t have to worry about “losing my place” anymore so I can make the full use of any power conserving features in my equipment.
Perhaps it should “drop off and shut down” after a period of time until the app is woken up again?