• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Bluetooth fix using PARTIAL_WAKE_LOCK not working

Hey guys, many of you may have noticed that the bluetooth tends to disconnect after a few minutes of inactivity. A fix was mentioned in one of the threads here using the Wake Lock app available in the Market. By turning on PARTIAL_WAKE_LOCK in this app, the bluetooth connection should hold for much longer. However, I noticed that even after a long time (I'm not sure how long, maybe an hour or two), the bluetooth disconnects in the same way that it would disconnect before enabling PARTIAL_WAKE_LOCK. Just wondering if anyone else using this fix is having the same issue.
 
I haven't used it for that long a stretch, but I have noticed (maybe twice now) that upon turning on the screen I'll see the "partial_wake_lock service acquired" message pop up like it just started.
I was thinking maybe it was getting dumped for some reason, but I'm not sure. It HAS been working for me though. I use it everyday, and it seems to have fixed the BT disconnect issue. Mine always disconnected 2 minutes after screen off... But I never use it for more than 20 minutes or so at a stretch.
 
Upvote 0
Hm, I guess partial_wake_lock doesn't hold for that long. I noticed that it does drain the battery much quicker (which makes sense since the CPU remains on).

It's a shame because the Triumph is a really good phone, but this one issue is bugging me because I depend on my bluetooth headset for making and receiving calls. I guess I could just manually turn the bluetooth on whenever I answer calls, but this is a hassle to do every time, unless there's an app that could automate the process.

EDIT: Just found out that Tasker would be able to do this, but it's not free. It does look like an awesome app though. If there's no free alternative to fix this, I'll consider buying this app since it can do a lot of other handy stuff.
 
Upvote 0
I emailed the dude that made the WakeLock app to ask if he could make it work with Tasker... He said he would like to, but sounded like he had more important things in life right now.
Tasker is really powerful, but this issue *should* be able to be addressed in the ROM.
I'm just not sure that everyone is experiencing it.
 
Upvote 0
Tasker is really powerful, but this issue *should* be able to be addressed in the ROM.
I'm just not sure that everyone is experiencing it.

Which ROM are you referring to...CM7 by TickerGuy (no longer in development), or the reloaded CM7 being developed by Whyzor? I'm currently using TickerGuy's CM7 but if the issue is fixed in Whyzor's then I'm willing to switch over.
 
Upvote 0
Which ROM are you referring to...CM7 by TickerGuy (no longer in development), or the reloaded CM7 being developed by Whyzor? I'm currently using TickerGuy's CM7 but if the issue is fixed in Whyzor's then I'm willing to switch over.

I was talking about both..
But get ready to switch! :D

@Whyzor,
Great news! Can't wait to test the results.
Thanks for your efforts dude.
 
Upvote 0
New build of my ROM with this built-in is uploaded, I'd like to hear if it helps or not. I tested it with the only Motorola BT headset I had & it worked fine.

Thanks for addressing this issue! I'll give it a try and see if the issue is resolved. Will post an update soon.

UPDATE: It passes the short-term test...the BT connection holds after 15 minutes of inactivity. AWESOME! :D. Thanks Whyzor!

I'm gonna try and see if it'll hold for a few hours of inactivity. I'll also be able to comment on battery drain.

UPDATE 2: Long-term test passes! BT connection holds after a few hours. I've been using this updated ROM for a day now and haven't come across any issues. The battery does drain pretty quickly (it's down ~50% after about 7 hours)....but this is typical for BT paired with a smartphone. I have an extra battery, so I should last throughout the day.
 
  • Like
Reactions: Whyzor
Upvote 0
That's because wifi already had the PARTIAL_WAKE_LOCK implemented to fix a sleep/crash bug in it.

Assuming here, that you're talking about CM7.

The only problem with doing what you're doing, is that it brings up another bug concerning wifi and Bluetooth running together... it pegs the CPU at 100% (or damn near anyway). Its a -real- battery killer.

Whyzor's newest CM7 reloaded version fixes the BT disconnect problem so you won't have to do that anymore.

If you aren't running CM7... Never mind! :D
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones