After playing music via Bluetooth multimedia speaker and stop playing, turn off speaker, turn off BT on phone, battery drain starts - phone not going to sleep (SystemDataScope shows 100% cpu loading). Restarting BT via Settings - Utilities helps. Until new sessions with BT speaker.
PRECONDITIONS:
STEPS TO REPRODUCE:
Turn on BT
Connect to BT multimedia speaker
Play music
Stop music
Turn off BT
Infinite battery drain until BT restarts
EXPECTED RESULTS:
No 100% cpu loading after BT turning off
ACTUAL RESULTS:
100% cpu loading after BT turning off
MODIFICATIONS:
Patchmanager: yes
OpenRepos: yes
Chum: yes
Other: none specified
ADDITIONAL INFORMATION:
Device Owner User: defaultuser
Home Encryption: enabled
the initial version of this bug report was created using Bugger 0.9.15+git1
Something in BT software don’t let phone to sleep after disconnect from BT speaker. Battery drain fast. What else i need to say… No bug, all is normal, it’s my illusion?
No, I’m not saying there is no bug, just that the reported details are conflicting. Either it’s not always reproducing, it’s sometimes 100% cpu and sometimes the bug doesn’t trigger (though this also says 100% reproducability), or then it’s not about 100% cpu but rather some milder sleep problem.
It’s probably ofonod that’s preventing the phone from sleeping. This has been an issue before, which seemed to have mostly gone away, but now with 5.0.55 it’s back with a vengeance - it always happens after having a bluetooth connection.
I always have to restart ofonod after driving, since my phone connects to my car for hands-free calls. After that ofonod remains active. It’s not taking a lot of CPU, just keeps doing something every second or so - enough to keep the phone active. If I don’t restart ofonod, the battery drains signicantly faster.
What you do is execute systemctl restart ofono.service as root. After that you may have to also restart the Android subsystem, because in my experience it’ll break internet on 4g/5g and thus silently apps won’t work if you don’t have wifi.