1. Download our Official Android App: Forums for Android!

Root Bluetooth fix using PARTIAL_WAKE_LOCK not working

Discussion in 'Android Devices' started by mrk2010, Jan 12, 2012.

  1. mrk2010

    mrk2010 Newbie
    Thread Starter
    Rank:
    None
    Points:
    16
    Posts:
    25
    Joined:
    Sep 1, 2011

    Sep 1, 2011
    25
    3
    16
    California
    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.
     

    Advertisement

  2. thangfish

    thangfish Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    1,311
    Joined:
    Sep 17, 2011

    Sep 17, 2011
    1,311
    352
    163
    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.
     
  3. mrk2010

    mrk2010 Newbie
    Thread Starter
    Rank:
    None
    Points:
    16
    Posts:
    25
    Joined:
    Sep 1, 2011

    Sep 1, 2011
    25
    3
    16
    California
    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.
     
  4. thangfish

    thangfish Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    1,311
    Joined:
    Sep 17, 2011

    Sep 17, 2011
    1,311
    352
    163
    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.
     
  5. mrk2010

    mrk2010 Newbie
    Thread Starter
    Rank:
    None
    Points:
    16
    Posts:
    25
    Joined:
    Sep 1, 2011

    Sep 1, 2011
    25
    3
    16
    California
    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.
     
  6. Whyzor

    Whyzor Android Expert
    Rank:
    None
    Points:
    213
    Posts:
    1,108
    Joined:
    Jul 7, 2011

    Jul 7, 2011
    1,108
    966
    213
    I have a kernel wakelock implemented in the next version, will upload tomorrow after some testing.
     
    mrk2010 and thangfish like this.
  7. thangfish

    thangfish Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    1,311
    Joined:
    Sep 17, 2011

    Sep 17, 2011
    1,311
    352
    163
    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.
     
  8. Whyzor

    Whyzor Android Expert
    Rank:
    None
    Points:
    213
    Posts:
    1,108
    Joined:
    Jul 7, 2011

    Jul 7, 2011
    1,108
    966
    213
    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.
     
  9. thangfish

    thangfish Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    1,311
    Joined:
    Sep 17, 2011

    Sep 17, 2011
    1,311
    352
    163
    Downloading now!
     
  10. mrk2010

    mrk2010 Newbie
    Thread Starter
    Rank:
    None
    Points:
    16
    Posts:
    25
    Joined:
    Sep 1, 2011

    Sep 1, 2011
    25
    3
    16
    California
    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.
     
    Whyzor likes this.
  11. Wallmax

    Wallmax Lurker
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Jan 18, 2012

    Jan 18, 2012
    1
    0
    5
    I have found that the blutooth will stay connected if I leave my Wi-fi on. It's a battery drain, but it seems to be the only thing that holds the connection. Even the app for my earbud (Sound ID six) doesn't help.
     
  12. thangfish

    thangfish Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    1,311
    Joined:
    Sep 17, 2011

    Sep 17, 2011
    1,311
    352
    163
    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
     

Share This Page

Loading...