BT don't let cpu sleep after disconnect from BT speaker

REPRODUCIBILITY: 100% (always)
OSVERSION: 5.0.0.55
HARDWARE: Xperia XA2 - Dual SIM - h4113 - h4113 - 1.0.0.26 - armv7hl
UI LANGUAGE: English (UK) (user: en_GB, os: en_GB.utf8)
REGRESSION: not specified

DESCRIPTION:

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:

  1. Turn on BT
  2. Connect to BT multimedia speaker
  3. Play music
  4. Stop music
  5. Turn off BT
  6. 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
4 Likes

Are you able to check what’s the process using all the cpu?

No, I can’t! All seems as normal, standard using of cpu. Just something don’t let cpu to sleep.

I’m now then puzzled what the “actual result: 100% cpu loading after BT turning off” means.

1 Like

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.

1 Like

Does ofonod restart when restart button of BT pressed in Utilities? I think that not, only when restart of Network button pressed.

I hope developers read us and will fix this middle bug in next release.

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.

1 Like

Seems this bug is fixed in 5.0.0.61. Need to test more, will write soon.

1 Like