Affichage des articles dont le libellé est wakelocks. Afficher tous les articles
Affichage des articles dont le libellé est wakelocks. Afficher tous les articles

mercredi 12 août 2015

[CAF][BT][BUG] Bluetooth Wakelocks of caf kernels



Hi all. I decided to open this thread because I reported this issue in the past but didn't got attenction.

THE PROBLEM
CAF kernels (OFFICIAL CM NIGHTLY 12.1 TOO!!!) have serious bluetooth wakelocks when a paired device goes out of range

HOW TO REPRODUCE
1) install cpuspy from play store
2) enable bluetooth on your phone
3) pair a Bluetooth device (like the xiaomi mi band)
4) with the Bluetooth still on, move the BT device out of the phone range
5) wait a couple of minutes with the phone in standby (screen off)
6) open cpuspy and check that the phone didn't went in deep sleep
--------------------
a) if you turn off and then turn on the Bluetooth, the phone starts to deep sleep again, also if Bluetooth is on
b) place the phone near the BT device, wait for it to re-pair and then move it out of range, the phone doesn't deep sleep anymore

SCREENSHOOTS




CONCLUSIONS
I found some commits that claim to fix the bluetooth wakelocks issues...but i can't find a single caf kernel that doesn't have this problem.
With this bug my battery goes down REALLY quick (no problem with bluetooth off), I can't believe that after months of caf based roms very few people reported the problem :)

PLEASE REPORT IF YOU CAN CONFIRM THIS BUG...THANKS!



lundi 10 août 2015

Insane wakelocks when connected to wear.



Hi

When i'm connected to wear, I get insane wakelocks. I got 25k+ wakelocks in 10 minutes from the Android Wear app.

Suddenly it stopped, but I still had deep sleep problems (gets in deep sleep, but not much) so I checked wakelocks again and now Bluedroid_Timer 340 wakelocks in 1min.

Anyone know a fix for the second issue?

Thanks in advance