FORUMS

Analysis & Opinion

Top Forum Discussions

Bluesleep Fix / Deep Sleep Discussion

3,775 posts
Thanks Meter: 10,597
 
By upndwn4par, Recognized Developer / Forum Moderator on 6th August 2012, 04:35 AM
Post Reply Subscribe to Thread Email Thread
This is a thread for the discussion of the bluesleep fix / deep sleep issue specifically for the Motorola Atrix 4g

There is a known issue with some roms that prevents the device from entering the deep sleep cpu state, which is ultimately responsible for a significant reduction in battery life. This is believed to be caused by a glitch in the Bluetooth permission settings. A fix has been developed (known as the bluesleep fix) which is thought to correct the problem, and allow the device to enter deep sleep. It has been suggested that the bluesleep fix will also correct a glitch that prevents the wifi from sleeping. I have not experienced wifi sleep issues myself, so I can’t provide any first-hand knowledge.

Almost everyone who has experienced deep sleep issues and has used the bluesleep fix agrees that it works. I have corrected the problem on my device on CM7, CM9, and CM10 roms. The increase in battery life was dramatic.

However, the bluesleep fix is not without controversy. Many people, including at least one developer, believe the bluesleep fix works and recommends its use. Another developer submitted his version of a fix to CM. There are others, including one whose opinion I respect, that believe there is no reason the fix should work and don’t believe that it does. There have been many recent discussions on the topic on CM9 and CM10 threads that you can search for yourself.

If you have used the bluesleep fix to successfully correct deep sleep issues, or tried the fix and it didn’t work, or strongly believe one way or the other, please share your knowledge and experiences below for the benefit of the community!

[The bluesleep fix is attached (flash with CWM) along with before and after screenshots for a CM9 rom on my device.]

[FYI, I was involved in some of the linked discussions under my former user name (Atrix_FauxG). I thought I should mention this to avoid any confusion.]

[At the time I posted this thread I was unable to determine who created the bluesleep fix. If anyone knows, please inform me so I can give proper credit.]


______________________________________________
Edit:
1) I got confirmation from Th3bill that he wrote bluesleep_fix based on settings from olegfusion. Please take a moment to thank both of them (here and here). The bluesleep_fix file can also be found here (feel free to click on a few ads while you are there to further show your appreciation).
2) I neglected to mention that I observed the greatest increase in battery life on CM9 and CM10 roms.
Attached Thumbnails
Click image for larger version

Name:	Before Bluesleep Fix.jpg
Views:	2920
Size:	37.2 KB
ID:	1244665   Click image for larger version

Name:	After Bluesleep Fix.jpg
Views:	2606
Size:	39.1 KB
ID:	1244666  
Attached Files
File Type: zip Bluesleep_fix.zip - [Click for QR Code] (125.8 KB, 2937 views)
Last edited by upndwn4par; 6th August 2012 at 12:03 PM.
The Following 10 Users Say Thank You to upndwn4par For This Useful Post: [ View ]
 
 
6th August 2012, 07:05 AM |#2  
Senior Member
Flag england
Thanks Meter: 1,650
 
Donate to Me
More
Th3bill first brought it to our attention when building miui

Sent from my MB860 using xda premium
The Following User Says Thank You to stevendeb25 For This Useful Post: [ View ]
6th August 2012, 07:57 AM |#3  
ravilov's Avatar
Senior Member
Thanks Meter: 1,344
 
Donate to Me
More
Quote:
Originally Posted by upndwn4par

[The bluesleep fix is attached (flash with CWM) along with before and after screenshots for a CM9 rom on my device.]

Or not?


As for me, my battery life was always very good on the Atrix. At some point I came across this bug and the fix for it and I applied it just to be safe. I know what the fix does (basically it setuids a few bluetooth-related utilities and fixes their ownership) and I guess I can kinda sorta see how it would be possible that that fixes the issue. However I can't say I noticed any big difference in my battery life after applying it.

For the record, I went from stock ROM to CM7-RC3, then to CM7-stable, and am now on ABC.
The Following User Says Thank You to ravilov For This Useful Post: [ View ]
6th August 2012, 03:47 PM |#4  
elbscorp's Avatar
Senior Member
Flag Rock Spring,GA.
Thanks Meter: 134
 
More
Not sure!
I posted this in another thread: http://forum.xda-developers.com/show...postcount=2154
After the full wipe and fresh install without the fix my Atrix is going into deep sleep fine.
I am using CM10 by epinter
Attached Thumbnails
Click image for larger version

Name:	2012-08-06 10.40.45.jpg
Views:	1201
Size:	41.0 KB
ID:	1245045  
6th August 2012, 06:19 PM |#5  
boulos's Avatar
Member
Thanks Meter: 9
 
More
Worked for me. I am using CM7 by the way. Before I implemented the fix, my phone never went into deep sleep. Now it does all the time.
6th August 2012, 09:56 PM |#6  
NFHimself's Avatar
Senior Member
Flag Mount Pearl
Thanks Meter: 469
 
Donate to Me
More
Hmm,

Basically, mount /system rw, and chmod 04755 /system/xbin/hci*.

Not sure what the target rom is, but on my bell I don't have a hcidump. I have a dexdump though.

Cheers!
7th August 2012, 01:20 AM |#7  
ravilov's Avatar
Senior Member
Thanks Meter: 1,344
 
Donate to Me
More
Quote:
Originally Posted by NFHimself

Hmm,

Basically, mount /system rw, and chmod 04755 /system/xbin/hci*.

Not sure what the target rom is, but on my bell I don't have a hcidump. I have a dexdump though.

Cheers!

Yeah, that's not the one.

I think the primary target would be CM7 and all ROMs based on it. I have a CM7 based ROM and I have all three hci* utilities.

And yeah, that's basically it, like I said in my previous post. It setuids all three and sets their ownership to root:shell (0:2000).
Last edited by ravilov; 7th August 2012 at 01:25 AM.
The Following User Says Thank You to ravilov For This Useful Post: [ View ]
7th August 2012, 01:27 AM |#8  
upndwn4par's Avatar
OP Recognized Developer / Forum Moderator
New Jersey
Thanks Meter: 10,597
 
Donate to Me
More
As stevendeb25 mentioned above, the primary target was MIUI (CM9).


Quote:
Originally Posted by ravilov

Yeah, that's not the one.

I think the primary target would be CM7 and all the ones based off it. I have a CM7 based ROM and I have all three hci* utilities.

And yeah, that's basically it, like I said in my previous post. It setuids all three and sets their ownership to root:shell (0:2000).

The Following User Says Thank You to upndwn4par For This Useful Post: [ View ]
Soldier-2Point0
7th August 2012, 03:54 AM |#9  
Guest
Thanks Meter: 0
 
More
I got 17 hours deep sleep without the bluesleep fix file. I'm on Epinter's CM10.

Sent from my Nexus 7
7th August 2012, 09:05 AM |#10  
ravilov's Avatar
Senior Member
Thanks Meter: 1,344
 
Donate to Me
More
Quote:
Originally Posted by upndwn4par

As stevendeb25 mentioned above, the primary target was MIUI (CM9).

Ah, I see. Yeah, CM7 (GB) has all the proper drivers to support the Atrix hardware fully, my guess is that that's the reason CM7-powered devices are able to enter deep sleep state regardless of permissions and ownership of the Bluetooth utils.

Here's a screenshot of my current state. This is after applying the patch though, so I don't know if it's relevant really, but here it is anyway.
Attached Thumbnails
Click image for larger version

Name:	ss.png
Views:	979
Size:	40.6 KB
ID:	1246545  
7th August 2012, 11:54 AM |#11  
upndwn4par's Avatar
OP Recognized Developer / Forum Moderator
New Jersey
Thanks Meter: 10,597
 
Donate to Me
More
I never checked while on CM7.0, but for me CM7.2 did not enter deep sleep until I applied the patch.


Quote:
Originally Posted by ravilov

Ah, I see. Yeah, CM7 (GB) has all the proper drivers to support the Atrix hardware fully, my guess is that that's the reason CM7-powered devices are able to enter deep sleep state regardless of permissions and ownership of the Bluetooth utils.

Here's a screenshot of my current state. This is after applying the patch though, so I don't know if it's relevant really, but here it is anyway.

Read More
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes