[INFO]CM7Weekly kernel Without Partial Wakelock by AlarmManager

bobo9900

Senior Member
Dec 27, 2009
86
8
0
EDIT 23 FEB 2012 :
=== THIS THREAD IS OBSOLETE.. THERE IS A LOT OF DEVELOPMENT FROM ATRIX-DEV-TEAM AND FAUX SINCE I LAST POST, AND WHOEVER FOUND THE SAME PROBLEM BETTER TRY THE NEWER KERNEL.. ===



Old Post :
This is CM7 stock kernel extracted from CM7weekly29jan. Credit goes to Atrix-dev-team.
I found out that this is the only kernel in Gingerbread for atrix doesn't have Partial Wakelock by AlarmManager. I know that stock froyo doesn't have wakelock too.
Half day using this kernel, AlarmManager only wake for less than 30sec, and take less than 1% of the whole partial lock, compared to before, it could take up to few hours and 90%+.
I create this thread so that CM based ROM (CM7,Miui,Neutrino) user can test this kernel, if this non-wakelock really improve battery or not, or its just show different kind of log and had no effect on battery.
I only got hold atrix for a few day, a friend ask me to unlock the bootloader, and I have returned it.
If this really improve battery, I hope this can brought attention to developer on how to fix partial wakelock by Alarmmanager on stock kernel. If this thread is no good, feel free to delete it.

This CWM replace boot.img and /system/lib/modules/dhd.ko from CM7weekly.
I used CWM script from faux's, and replace those 2 files.
It is recommended to backup your rom before installing this.

Edit 05feb2012:
I'm sorry, I shouldn't have started a thread of a device I don't hold anymore. Today faux have released his new kernel, it might already solve the problem as and I couldn't test it. But for clearer view on why I started this thread, what I mean is that I saw BetterBatteryStats shows this. This is screenshot from other device as example.
On my defy, the percentage never goes above 1%. But on atrix, it could go above 20%, I even seen it on 90%+. Using CM7weekly29jan kernel, it always stay below 1%. And about the time AlarmManager is on, maybe I was wrong, it was not below 30s, maybe 1minute+, but before, it could go hours. Problem is I only tested for around 6hour. I just install the kernel, no wipe or clear cache. On that short test, I left the phone idle with screen off. I check on Battery Monitor Widget, it seems that each 1% of the battery can last slightly longer than before.
I hope this can make things clear.
Note: For quick test, you should see the partial wakelock 'since unplugged', not 'since charged', because reboot will reset the timer in 'since unplugged', but the 'since charged' will not reset unless you plugged the usb port for charging.
More info : device is Atrix International, last fullsbf is 2.3.4.45.0.20SEA.
 

Attachments

Last edited:
  • Like
Reactions: KCKitsune

v.k

Senior Member
Oct 23, 2011
123
25
0
Could somebody point me a commit that fixed this issue? What was the reason of this issue? Could this fix be applied to the stock kernel too?
 

SirFork

Senior Member
Mar 15, 2011
304
48
0
Very interesting! Will test this weekend, sounds promising if it really does improve battery life on cm7 based roms, maybe talk to clemsyn or faux about it.

Sent from my MB860 using XDA App
 

bobo9900

Senior Member
Dec 27, 2009
86
8
0
How long should one use this before giving appropriate judgment?

Sent from my MB860 using XDA App
On other kernel, switch off screen for 10minutes. alarmmanager should wake for more than 1minutes. with this kernel, always below 30sec.
But whats important is the effect on battery life. A proper test would be night time battery usage, wether its the same as before, or gives better battery life.

I search for the commit too, but couldn't find it, I got no knowledge on building android from source.
 
Last edited:

Magnetox

Senior Member
Jun 11, 2011
720
93
58
Toronto
I will be trying this on Neutrino 2.2EE.

---------- Post added at 09:10 AM ---------- Previous post was at 09:03 AM ----------

Installed with just cache and dalvik cache wipes.
 

bobo9900

Senior Member
Dec 27, 2009
86
8
0
So...is it just ripoff from weekly 29?

Or did you modified something?
I'm sorry, this indeed just a rip off from weekly29jan, if this is not appropriate, I will take the zip down.

I make the zip so its easier for people who want to test. From my short test, BetterBatteryStats show smaller wakelock by AlarmManager, but I haven't test it long enough to make sure how the effect on battery. If this indeed have impact on battery, I hope enough to get dev's attention to fix the wakelock on stock kernel.
 

schwann

Senior Member
Mar 30, 2011
747
77
0
bobo9900 gave proper credit to the dev-team and is just posting the file for easy access with his thoughts on possible improvements of battery life. There is no need to give him a hard time for that.
I don't think anyone is giving him a hard time....

Sent from my unlocked Motorola Atrix.
 

fischwrap

Senior Member
Jun 17, 2011
570
101
73
After initial testing, I'm not seeing a reduction in alarm wake locks. Will give it a full cycle to test battery life

Sent from my Supercharged Atrix
 

ccs86

Senior Member
Nov 16, 2011
702
65
28
Any updates on this?

I'm running MeanROM 3.1 with Anthrax RLS 06 and am seeing substantial wake time from AlarmManager.

I've used Gscript to dump the AlarmManager log, but I'm not entirely sure which parts to scrutinize. I also don't know how to wipe this log and start fresh... I recently flashed this rom/kernel combo after running Chad's modified superwipe, yet this log seems to span 50+ days.

:confused: