yashsingh1/xdaforums huggingface dataset:
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] slumpz:
Hi,

I'm having problem with a kernel wakelock. Whenever a notification appear on my phone, it activate the LED blinking and if I don't touch it for a while, the leds wakelock stuck there. Even after I read and clear all the notifications, and LEDs gone, the wakelock still appear. So I assume this is a kernel bug. My only solution now is rebooting the phone but it's clearly not a good solution.

So I want to know if there's anyway to kill that wakelock to make the phone sleep again.

See the attachment for the dump file, in case you need :)
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] ahalford:
Thanks for submitting this, quite interesting

Yes, it's definitely system's, with most probability, kernel's bug. So, the solution seems clear - 1.Reflash the system dirt (no data wipe), if you can, if the problem persists - 2.Change the kernel. If you can. Becuase system info says it's a chinese copy phone...

Or, if you can't, just disable led notification.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] skivnit:
hi guys i'm pretty familiar with BBS and the wakelocks however i have some weird alarms.

For example:

google plus 126, knowing that i'm not even logged in

com.whatsapp: 710, now this is a huge number plus it shows a partial wakelock of 28mn named fullsync

then there's the maps: 38 , i have location disabed and most apps that requires location are set to manually input location

Android: 300, this alarm i never get
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] ahalford:
Google Plus - because it's in Acoounts now. Log in and go to accounts, disable all G+ notifications, see what happens.

WhatsApp - weird, but could be network issue. What's your device/os/kernel?

Maps - disable it at startup.

Android - android what? Android gsf? Disable Gtalk.

New Gapps are not quite stable, I admit.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] skivnit:
Thanks for the clarification but regarding WhatsApp I'm using stock rom and kernel on note II.

Gtalk is disabled and frozen yet it still shows ps up
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] AA1973:
Whatsapp has some server problems ATM...

Maybe that is (one of) the reason(s)

https://mobile.twitter.com/wa_status/status/273697196988309505
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] ahalford:
If it's android.gsf wakelock, start to play with gapps some - it is vary for different configs.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] myawan:
Thanks for the great guide ahalford!

I am attaching my betterbatterystats dump file, it would be great if I have expert analysis on this.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] porcusor:
Hi ahalford. I'm having some issues with battery drain from Android OS. It's been using 45 minutes of CPU and has kept the phone awake for 15 minutes, all in 9h of sleep with a few seconds of screen on. I've been trying to find out what's causing this but can't see relevant results in BBS. Could you please take a look at the stats? I've also attached the alarms dump. The phone has been asleep with background and wifi disabled for the night (been using settings profiles from playstore for that). I used to have huge battery drain from gtalk_async_conn but I disabled gtalkservice from the framwork and had no problems with it since.

p.s.: I've also attached the list of installed apps.

View attachment alarms.txt

View attachment apps.txt

View attachment BetterBatteryStats-2012-12-04_093405410.txt

Thanks!
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] ahalford:
Few clarifications:

1.No wi-fi, or no internet at all?

2.If you will use your phone 100% to 0% during the entire day, what would be screen time vs awake time?

3.Your OS - Chasmodo's Asylum?
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] porcusor:
1. Wifi disabled, H+ active. Wifi is set to be disabled after 30 seconds of screen off, and then h+ will come in when the devices needs anything.

2. I'll post later today

3. OS = Slimbean 3.1 with its own kernel and SlimGapps.

Battery monitor widget shows kworker/0:0, 3 and 1 are on top of battery drain. Surfaceflinger also shows up high but that one was back in ICS also and I kind of got used to it. But if you know how to put that down, it would be awesome. I tried to do a wipe and clean install of slimbean, but still Android OS is using most of the battery on standby.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] ahalford:
I'll wait for more stats, but want to disappoint you in advance - it's a well known mixture of H+ mobile network and Google apps/services. Saying precisely, 4 hrs of screen vs 4.30-4.40 of awake will be no issue at all for any CM-based 4.1 rom.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] porcusor:
should I leave wifi always on? I am disabling it to preserve battery but reading your post this might have the opposite effect..
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] ahalford:
Definitely. Wi-Fi always on is far better, than mobile internet, well known fact.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] ahalford:
Thanks for the submition. Quite interesting information.

As for any kind of app - if I underatand you well, you want to switch 2g/3g/H+ modes automatically, app driven? Actually, I never bothered to look for something like this, but it sounds like any "Timeriffic/Green Power" etc. managers, which I highly not recommend.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] sarf2k4:
No, I'm not referring to auto switch between the 2g/3g/h+ modes automatically by an apps like Timeriffic, based on schedule/event driven.

What I mean is, when we turned on the data mode, the apps will directly change the network mode to dual mode and turning data mode off will change it to GSM only mode.

I have a very basic java programming knowledge but developing a process only app that resides in the background is the thing I am not capable of until I someone teach me :)

An apps driven by schedule is always not my type although I have silent timer but for now I didn't use it since I am still a freelancer and the apps still renders useless for the time being (just off topic a while).

I've been practicing the network mode selection when I had older phone, Nokia N95-1, heavy battery drains even on GSM only mode and I've forgotten how dual mode affects samsung's devices heavily especially the usage of l2_hsic component.

Hope this information helped other people experiencing the l2_hsic problem :laugh:
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] ahalford:
Well, I'm afraid there is no much help from me this time, but the idea sounds good, and you can definitely get in tocuh with some developers in order to intoroduce your idea. I would even start with Gokhanmoral, author of Fast Dormancy app (and one of the greatest here at all).

Anyway, such an inputs are highly appreciated for the sake of knowledge.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] sarf2k4:
I've sent him a message regarding the request, just a matter of time waiting for his to reply only. By the way, my I ask a brief answer of the use of fast dormancy? Is it something like refreshing the network status or change the network node? :)
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] AA1973:
Maybe you want to have a look here as well. It is called Toggle2G. Do not get irritated by the thread title which says "Tasker/Locale" or LTE. It is an automated toggle switch and highly configurable.

http://xdaforums.com/showthread.php?p=7410035

If not, just ignore this post. ;)
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] sarf2k4:
It's a nice apps, however, workaround is needed and I want to avoid doing a full wipe if possible. I expect a slight battery drain when using this apps although it is questionable since the apps only about 50-200kb size. I rarely use the data in my phone actually. Sorry for being off topic
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] ahalford:
Fast Dormancy - That's where the whole story started
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] ahalford:
No, I don't mind, it's even good for data.

And I can say now, almost for sure - any! 4.1.x rom will have 20 to 40 minutes of drain due to Gservices, whatsoever. Some time I'll grab the stats and post it in the OP. There are too much network dependencies of Gservices, and we should be ready for a "surprises".
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] sarf2k4:
I will send the final data here again tomorrow, maybe these data would be a great conclusion to the network mode vs battery drains.

I guess this gservices is linked with the sync on feature or something, aince the sync will sync the phone with the data in the internet based on an interval:)
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] amonrei:
Totally never thought of this. What i did instead is assign my phone MAC address to a certain IP, and then set the phone to use static IP for my home network. Now it just connects instantly instead of searching for free IP. :laugh:
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] raj.neo:
Thanks...

I used to wonder why I kept losing my battery!

Now I know :)
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] ahalford:
It's the best reward - to see users coming, gaining something from the OP & guides, and solving their problem.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] porcusor:
Hey ahalford,

I enabled wifi and I'm now getting a much better battery life when the phone's not used. It also feels like the battery lasts longer during the day.

What bothers me is that Android OS is still at the top.

I'm attaching some screenshots. This is my device from 100 to 6 percent without charging at all. When iy got to 8 percent it "charged itself" back to 10 I don't know why, but I've seen this before.

So, can you make any sense out of this and tell me why Android OS is so high?

Thanks!
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] ahalford:
I would start with uninstalling Battery Monitor Widget Pro, if I read properly this name - ccc71.bmw.pro. This is what wakes your phone, looks like to me, to take a measurements.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] porcusor:
Wow.. Uninstalled bmwpro and Android OS is no longer at the top. I would have never suspected it. Now awake minus screen on =10 minutes in 8 hours, with 4% lost.

Thanks so much for your help with this!
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] coolfire:
Bmwpro gave me many wakelocks on my sgn previously as well, even though I set the logging to be every 10mins... Wakelocks told a different story - it logged at every min. Did away with it and used GSAM instead...
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] sarf2k4:
who would've guessed bmw caused a lot of kernel wakelock. I guess I did the right thing by removing it as well a month ago thinking could prevent more wakelocks since bmw logs battery status into the file

I lost my last night's data of having only 0.4%/hr in bbs :( accidentally pressed "set cust ref"
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] benblb:
Maps is killing my battery on my N4. I have no idea why. I have Facebook but it's not running. I also use Google Now but disabled a lot of the settings that check for my location. Maps just won't stop. Please see screenshots below.

Cheers,

Ben
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] ahalford:
Those screenshots are useless. In any way, disable maps at the system start-up, and then see what happens. Then - disabled a lot of settings, or all of the location settings, GPS-based and network-based? And - submit your BBS dump file.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] eidecedie03:
here's mine, 8% battery drained. wifi on, i didnt use it
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] eidecedie03:
what i did just now is disabled sync and notification setting in each apps. and in setting>application i also uncheck each show notifications. will it be ok? will it be better?
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] sarf2k4:
I only can come up with an idea of disabling the sync control from the notification panel and configure your modem so your phone will have a fixed ip address reserved, this would eliminate the dhcp kernel wakelock
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] eidecedie03:
so the wifi is the only suspect for my wakelocks? how about if i will just disable it?
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] ahalford:
Most simple idea. But wait some, I'll look into the dump. Sorry for not answering, I've been busy with my new device:cool:
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] sarf2k4:
If you set your modem to reserve an ip address for your phone, by most during sleep time is less than 1% for 8 hours during my tests at previous pages, i have never encountered dhcp wakelocks during thosr tests because i have an ip address reserved for my phone.

Basically dhcp is dynamic ip address with a set time of lease time. When the device reached that lease time limit, the modem will assign a new ip address again by giving a new ip adress setting and thus making the phone having a kernel wakelock with dhcp.

Correct me if i am wrong in this dhcp info

You may check the bbs dump i posted before as reference, i guess. :)
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] benblb:
It seems to have fixed itself. Thanks though.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] ahalford:
Great. I was looking at this right now, and seems like proper network issues. Btw, next time, before submitting dump, go to app settings and enable root features - it will provide more info.

P.S. You can also run dumpsys alarm in terminal in order to see detailed wakelocks list.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] ahalford:
And now, look at this - guess, what device can be awake for almost 1 hour of sync and loose only 1% battery overnight?

=========
Wakelocks
=========
*backup* (): 15 m 21 s (921 s) Count:47 4,0%
*sync*_com.google.android.apps.plus.content.EsProvider_Account {name=alchemist13@gmail.com, type=com.google} (): 10 m 50 s (650 s) Count:12 2,9%
GTALK_ASYNC_CONN_alchemist13@gmail.com/android_talk779610f7bca7 (): 4 m 7 s (247 s) Count:322 1,1%
FacebookService (): 3 m 50 s (230 s) Count:12 1,0%
GTALK_ASYNC_CONN_com.google.android.gsf.gtalkservice.AndroidEndpoint (): 2 m 27 s (147 s) Count:346 0,6%
Genie (): 1 m 37 s (97 s) Count:4 0,4%
================
Kernel Wakelocks
================
"PowerManagerService" (): 40 m 44 s (2444 s) Cnt:(c/wc/ec)464/0/0 10,7%
"msm_hsic_host" (): 12 m 26 s (746 s) Cnt:(c/wc/ec)410/57/0 3,3%
"radio-interface" (): 1 m 7 s (67 s) Cnt:(c/wc/ec)65/0/0 0,3%

-------------------------------------------------------
Deep Sleep (): 5 h 26 m 53 s (19613 s) Ratio: 86,0%
Awake (): 53 m (3180 s) Ratio: 14,0%
Screen On (): 24 s (24 s) Ratio: 0,1%

============
Battery Info
============
Level lost [%]: 1 Bat.: 1% (100% to 99%) [0,2%/h]
Voltage lost [mV]: 4 (4262-4258) [0,6%/h]
===========
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] sarf2k4:
Woah, a very good one, are the battery calibrated? Because when we fully charge our phone until there is a notificaton, a full 100% might take longer to reach 99% than 98% to 97% :)
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] ahalford:
Yes, it is. The results are after 2 cycles of charging.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] chasmodo:
Yeah, yeah, just keep on bragging about your new Durex 4.:angel:
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] ahalford:
You told me not to be humble :p
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] sarf2k4:
This is quite a good stuff if able to know how to get the state,
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] TheMasahiro:
Help here.. I lost 9% overnight....

https://www.dropbox.com/s/s4s0a0uwperkw7x/BetterBatteryStats-2012-12-18_134239071.txt

Heres the stats...

any insight, fix?
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] ahalford:
Nothing criminal, yet - read this. It may help you understand the nature of wakelocks, and find the rogue app/widget, cause it seems like wakeups for time/zone/location update, 3rd party app.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] TheMasahiro:
Im sure im not using a 3rd party app or any widget........

I have automatic date and time enabled is that it?
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] ahalford:
It doesn't have to be an time-related app or setting. I mean - any app. That's where I'm helpless, I can't see all your apps & settings.

And yes - you can try to disable automatic time update, and see, what happens.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] TheMasahiro:
Thanks... probably its app sync features.... the apps will try auto sync at sepcific times even with wifi off?
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] chasmodo:
Some of them will.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] eidecedie03:
thanks to this thread :good:
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] ahalford:
Just to inform -

I still intend to show some love to this thread. Just added some more lines about Media Scan, particularly about relation to I/O scheduler.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] slonlo:
Location reporting on photographs will get ya too. I guess that goes along with location services though, but I pared my location stuff way back and got a big jump in battery life. I was getting decent life, but after enabling the photo location (don't know why I did that... it's silly anyway) I started chewing up >10% an hour in standby. So I turned that off, and some others but still running Now with traffic (I actually use that) and my battery is doing MUCH better. If I killed location stuff all together I'd do even better, but I'm looking at around 16-18 hours now so I'm not really worried.

Verizon G Nex (i515), mmuzzy JB 4.2.1 ROM leanKernel 2100mAh battery.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] ahalford:
As long as it's Location service, used by one more app...also Google Photos sync. All as one.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] clive48:
where is th elink to app??
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] ahalford:
It's in the OP, under "Check it out" link.

Flown from my Durex 4
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] sarf2k4:
@ahalford, check this out :rolleyes:

Spoiler content hidden.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] ahalford:
I wish everyone were seeing such a healthy data. It is so "no issue", I can't even imagine something better.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] azrash:
Damn, even in BBS thread, I have not seen that kind of stats. Why don't you share it there too!

Sent from my Desire Z
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] sarf2k4:
Haha, wish i am able to get this state even with wifi on all the time.

What i did is just turning the wifi off and gsm only mode. With just a wifi and gsm, i get 0.6 per hour measured around same durations. :)

---------- Post added at 08:27 PM ---------- Previous post was at 08:22 PM ----------

Should i repost there?:confused:

I dont mind you quote my stats to there but must have give credits though. :)

I remembered someone also having about 0.1 per hour in other rom threads before.

My phone status currently on

Xxlsa stock odexed, philz 3.81 kernel and some minor build.prop tweaks. But i dont really believes that build.prop tweaks will gives a lot of impact on battery saving. :)
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] azrash:
It is nicer for you to post it there. I'm sure a lot of them would love to hear how you achieve it. And your setup shows that you don't have to do crazy stuffs to get that kind of good drain

Sent from my Desire Z
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] sarf2k4:
Messed up replies :p
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] sarf2k4:
Did you turn on your mobile data during this data collection?

Getting a less than 1% usage per hour is good enough, but if you want to have lower, try to turn off mobile data connection and try use adaway apps to remove some unwanted program like spyware or some sort. Try to collect the data again with mobile data disabled
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] parag1dubey:
yes, mobile data was on... I will do as you recommend :)
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] parag1dubey:
Err, anyone? Ahalford? Can anyone help me with my wakelocks?? :)
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] sarf2k4:
Try to turn off location updates, make the sync period longer, if you dont really need them. Try to see the google apps settings like gplus or gsearch. It has the most alarms triggered and by logic, most google apps are located within the phone memory, not internal sd and thus giving you the android system wakelocks. Correct me if i am wrong :)
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] ahalford:
parag1dubey, you have ~2.5 minutes of wakelocks per hour. It's not that much, given a fact, that you're on mobile data. Also, 12 out of 24 minutes of wakelocks is pure operator network related. You got good enough recommendations in a previous post.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] snabben:
Sv: [HELP CENTER] How to prevent § handle wakelocks § save battery life[GUIDE] [β]

Any of you guys that use cm10.1 on their 7105? I i have sort of massive wlan drain. I tried setting static ip but curve goes down a lot. I'll attach some pics. Tomorrow I will run on 3g/4g one and check.

I know I have over 10h running. not that I'm complaining about, but I have hardly been using it. It looks like that the curve to if I have it lying during night sleeping:)
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] snabben:
Sv: [HELP CENTER] How to prevent § handle wakelocks § save battery life[GUIDE] [β]

I find it wierd that android o's is on top.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] TheNoticer:
AW: [HELP CENTER] How to prevent § handle wakelocks § save battery life[GUIDE] [β]

Maybe Media Scans.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] snabben:
Sv: [HELP CENTER] How to prevent § handle wakelocks § save battery life[GUIDE] [β]

I have no files on either sd or the internal. So hope not
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] AA1973:
AW: [HELP CENTER] How to prevent § handle wakelocks § save battery life[GUIDE] [β]

Just try Rescan Media Root

https://play.google.com/store/apps/details?id=com.addz.mediascannerroot

Install and run it once. See if your "media" part goes away.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] snabben:
Sv: [HELP CENTER] How to prevent § handle wakelocks § save battery life[GUIDE] [β]

Tried that. didn't help aa. But turning off wlan and run on 3g/4g all night I lost just 2% on 7h.see attached pic.