Join now - be part of our community!

bluesleep wakelock

mabar81
Visitor

bluesleep wakelock

Hello, inspecting kernel wakelocks using betterybatterystats I noticed that when bluetooth is on there are always a bluesleep and and a ttyhs0 wakelocks that don't allow the cpu to go into deep sleep for a remarkable time (15-20% when screen is off, seems always when the screen is on). When connected to a smartband those wakelocks occurs for more than 90% of time with screen off, so battery drains very quickly. 

Is there something I can do? I'm on latest 34.3.A.0.217 firmware.

Obviously when I disable bluetooth the wakelocks stop, but I bought this smartband mainly to receive notificationsand without BT it becomes useless... thank you

6 REPLIES 6
YoGem
Leader

@mabar81 Bluetooth works with protocols... one of them is LE (Low Energy) but in order to work in LE mode your bluetooth peer has to be LE too. If your smartband is not LE enabled then you can expect some battery drain.

mabar81
Visitor

Hello, thanks for your reply. The smartband is a Mi Band 2, I suppose it supports LE. 

I considered a small increase of battery consumption, but I can't explain why only the xperia can't go into deep sleep mode with the smartband connected (doing nothing): neither my old LG G3 or my Asus Zenpad with their older no-more-supported softwares have the same behaviour and they go into deep sleep without any issue... nothing to do then? This is my first Sony, honestly I expected something better...

YoGem
Leader

@mabar81 I checked and discovered that the Xiamo Mi Band 2 uses Bluetooth 4.0 BLE but sadly the Mi Band 2 is haunted by a lot of bugs and the wakelock issue is one of them: 

Just one of them...

http://en.miui.com/thread-328439-1-1.html

Many of them:

https://www.google.com/search?q=xiaomi+mi+band+2+bluetooth+wakelock+site:en.miui.com&rlz=1C5CHFA_enU...

You may want to contact Xiaomi as the issue is not related to Xperia.

mabar81
Visitor

Hi, it's the first thing I checked, and that's why I tried the Mi Band with my other devices. However the fact that it doesn't create wakelocks with the others means that there must be something wrong with the xperia. You can call it compatibility issue, but there can't be just a Xiaomi fault.

Currently in 40 minutes of statistics I have more than 36 mins of bluesleep and ttyhs0 and consequently less than 3 mins of deep sleep (the remaining time is in "awake-screen off" state).

I'll see if I can try different smartbands to check whether it's a common issue or just Mi Band related. Thanks

mabar81
Visitor

Hi, waiting for a friend of mine's Fitbit I even did a factory reset but nothing has changed... I'm really frustraded about this...

YoGem
Leader

@mabar81 I understand you did a factory reset, did you try by chance instead a software repair using Xperia Companion?

Now, is it any way you could do this for me? Go to settings, battery, tap the three dots menu on top right and tap to "Consuming apps" - is there anything related to yor xiaomi band?

Then do this, go to settings, battery and tap again to the three dots on top right, this time tap to Battery Optimization: Do you see an app related to your xiaomi band in the "not optimized" tab?