Hello everyone. I am facing a problem since more than a month ago which is that if I turn on fast dormancy in my phone, the GCMService (Google Cloud Messaging service) causes a lot of multipdp kernel wakelocks and my phone cannot enter into deep sleep. This thing shouldn't be a problem but I have these ones. If I use an AOSP lollipop rom (to which I want to change) I cannot disable fast dormancy and if I disable the GCMService I cannot receive any notification message (e-mail, whatsapp, etc.), which for me are important, at least e-mail. Meanwhile I have a back-to-n00t based rom, in which fast dormancy toggle works.
I will now write a summary of the things I tried and how I realize that GCMServive was driving me crazy. First of all I used BetterBatteryStats to figure out what was going on behind Android OS battery usage and I saw a lot of multipdp wakelocks (arround 30% of total wakelocks and just 30% of deep sleep) under kernel wakelock tab. I did a search and I saw that it is related with fast dormancy. So I tried to disable with all the methods I could find on internet:
-Using Fast dormancy toggle for I9300 app (Play store link: https://play.google.com/store/apps/details?id=com.gokhanmoral.fastdormancytoggle.i9300 ). Worked on stock roms, not working either in CM11 nor CM 12.1.
-Using Fast dormancy toggle for I9100 app (xda thead: http://forum.xda-developers.com/galaxy-s2/themes-apps/fast-dormancy-toggle-app-version-1-5-t2647015 ). Not working on CM11. On CM 12.1 I couldn't connect anymore to the 3G network.
-Manually editing the "nwk_info.db" file. No luck.
-Editing build.prop with "ril.fast.dormancy.rule=0 and ro.config.hw_fast_dormancy=0". Bootloop on CM11 and it is not maintained anymore on CM 12+ roms, as I read here: http://forum.xda-developers.com/showpost.php?p=60511737&postcount=13426
-Using the code *#9900# with phone keyboard. Just available on stock based roms.
-Different modems and kernels. No succeed.
After all these trials I started to freeze apps and when I froze Google Play Services I could get a 93% of deep sleep and just 1% of multipdp kernel wakelock. So it was clear what was causing the wakelocks. Then I started to disable the services running in the app and when I disabled GCMService I got again a 90% of deep sleep and 1% of multipdp wakelock. But there were no e-mail notifications anymore. So I am blocked here.
Does anyone know how to reduce the activity of GCMService and still be able to receive e-mail notifications but no having wakelocks? If it is possible I prefer a solution not involving xposed.
Thanks a lot in advance.
And I want to acknowledge in advance all the rom developers who created the roms I used and the developers and researches who made the apps and procedures I used here.
More info:
Test environment: WiFi off, GPS off, Bluetooth and NFC off. Just 3G mobile data on with full bars signal and fast dormancy on.
Roms I used: Blekota Note 4, official Cyanogenmod 11, and ArchiDroid 3.1.3.
Edit: Greenifying all GCM apps doesn't work either.
Related
Hi @all,
since i switched from samsung stock rom to CM 10.1 (M3) there is a high battery drain when the phone is running on standby.
To be sure i'm getting nearly "comparable" results, i flashed both roms completly clean without any additional apps. Google services/syncs switched off, mobile data disabled.
With the samsung stock rom the battery lasts for about 3,5 days in standby. With CM10 the battery is drained after 1,5 days. 12 hours after charging BetteryBatteryStats shows a high number (~20000) of kernel wakelocks for the type "wlan_ctrl_wake" (NOT wlan_rx_wake). As far as i can see, there is no connection to any app keeping the phone from entering deepsleep. However, i only have a deepsleep rate of about 70%. Nothing suspicious in partial wakelocks.
Regarding the battery drain topic, there are many hints on google now, latitude, Gtalk and so on. Already tried those. There's no need to change the wifi settings, because on samsung stock rom everything works fine using the same settings (just about 40 wlan_ctrl_wakes within 12 hours). I'm using Fritzbox 7170 as wifi ap. Some people mentioned multicast/broadcast packages may be a reason for high wifi wakelocks. I traced the network, but nothing of the sort occurs.
Any ideas?
Thank you
Wakelock detector will link the wakelocks to the specific apps
Greetings,
I had been using my Xperia Neo V with Cyanogenmod 10 (10-20130519-NIGHTLY-haida) for the last 2 months. It was all ponies and rainbows for me for the first 6-7 weeks.
Issue:
Now I'm facing with a random and ridiculous overnight battery drain issue since a week ago. Ridiculousness here is being referred to the amount of the drain (almost 60% overnight) and to the fact that there's no particular change of use of the phone by me,comparing with the days before. As you can see in the screenshots, the main actor here is "Operating System". I don't really know what this drain is related to, so I was not able to do comparisons of use.
Facts:
-Mobile Data was active but only at 2G
-Location services were off
-Bluetooth and all other possible signals were off
-No active apps, all were hibernated with Greenify
What might be the reason of this problem and what would you advice me to try?
Thanks in advance.
what kernel are you using? overclocked?
maybe you can try re-flash the rom
60% overnight is way high battery drain
You should try to see a pattern. Does it happen after specific usage "ritual" or just purely random?
It may be kernel bug/core system bug. Try dumping dmesg and logcat when it happen next.
I would start by trying to flash other kernel.
Install BetterBatteryStats (ther's an SDA thread); It will give you better info of what is draining your battery. In addition to that, you can post your logs in the thread (BBS thread) and they will provide better help.
Good luck
Edit: here's the link http://forum.xda-developers.com/showthread.php?t=1179809
Install wakelock detector app uninstall those... Try greenify too
Firstly we have to know what kernel are you using...
2.6.32.9 or 3.x.x version?
Hi there all, thank you for replies, and here are some extra info;
Fresh facts:
- Kernel: 2.6.32.9-FXP [email protected] #1
- Not overclocked
New observations:
So far I don't see any pattern as to what could possibly be the reason for this issue.
The last time I faced with this, the phone was fully charged and on 2G mode I left it on my desk (my wi-fi router was located next to it, keep it in mind so that it might be a clue coinciding with the BetterBattery logs I will reveal next) and after 3 hours, when I went to check if there were any calls, nearly 30% was drained. Comparing with the initial drain issue (which is a 60'ish% drain overnight) I can say it's the same issue within a proportionate period.
Well takin' a quick look at the BetterBatteryStatus report, drain was mainly caused by some wake thingy called "rx_wake". I don't really know much about all these wake calls in Android system but I googled it and reached to a brief conclusion that it's somehow related with Wi-fi connection. So I'm suspicious that maybe my Android system is perpetually sending wake calls related to a Wi-fi signal even when the Wi-fi mode is off on my phone (only relation I could make here is that I left the phone next to my wi-fi router)
I attach the screenshot and BetterBatteryStatus logs to this post, thanks in advance for your further comments.
Further comments, anyone?
Post the logs in BBS thread. There people has more knowledge and they can help you.
Issue Solved on Galaxy S - Will fit all I assume
Hi
I face the same issue from the day I install the ROM (CM 10.1.2)
I browse the Internet and found the issue
The issue is Wi-Fi and mobile network location
When it is on in this version it turn on the Wi-Fi not only on GPS request and No GPS status
You need to shout it down and issue solved
To change this setting:
System Settings -> Location access and disable the "Wi-Fi mobile network location"
Nachum
My s3 had been suffering constantly from wakelocks depending on the situation.
If I had location services and Google now closed audio_2 takeslevel.ost of my battery life (around 25% every 7 hours)
And if i turned them on audio_2 almost dissappears and url dispacthing service and npl wakelocks take over and drains the battery in the same level
Here is what I tried:
-formating phone and greenifying and non system apps
-installing a new version of cyanogen mod to 4.3.2 stable from 4.2.2 stable
-switching back to Samsung's stock 4.1.2 ROM
-using media scan
- Using task managers
-switching the battery
Seriously don't go on with there is no solution this problem is so annoying if it keeps up I'll consider throwing the phone
Ok, this has gone past creepy
I got myself I9300, did all the necessary:
Root, ODIN > Philz, wipe, install rom
I installed PA for i9300, which was nice but battery drain was immediate problem so I just thought it was a bad/unfinished ROM. I then installed Resurrection remix which seemed like really neat and complete ROM only to experience the SAME problem - standby battery drain.
I then started searching for the problem cause. BetterBatteryStats says:
partial wakelocks -
SystemUpdateService on par with Awake. it is ALWAYS on
googled it, here is the problem:
People reporting it on 4.3, making constant wakelock, disallowing the phone to go in deep sleep once it is locked. And it was actually fixed in 4.4 CM and CM based roms (resurrection is one of them) but mine is running still.
I then started searching for the solutions, even though my OS version shouldnt do that. One of them says -
You should disable the service via apps "service diasble" or "Autorun Manager" from Play store in order to stop it. So I download both and the service is actually unticked. Shouldnt run at all. but it is still there destroying my battery. Next thing I found on CM forums says:
"wakelock is disabled by devs so that users wont experience constant OTA updates, and while it is disabled, it still runs (nice logic over here) and enabling it stops the wakelocks"
I then tick it to "enable" via those mentioned apps, but the wakelocks are STILL there, phone wont go to Deep Sleep
Extremely annoyed, I went to Settings>Apps>All and disabled the whole "Google services framework" which containts "SystemUpdateService" and there you go -
it still runs, wakelock on par with awake time ....
Is this God-mode service, is this some magic ? What the F is going on, and why do I even experience this when the problem was solved in 4.4 .. ? Please help me.
hi!
i need to turn fast dormancy off.
i've tried these methods:
1) Fast Dormancy Toggle App - says that fd is off but secril_fd_interface wakelock is still on after rebooting.
2) FastDormancy Toggle for i9300 - same as above.
3) this thread on xda.
4) adding "ro.ril.disable.fd.plmn.prefix" with my carrier number as the value to my build.prop.
all no use...
my nwk_info.db was empty at the beggining of the proccess, maybe that's why the first 3 methods didn't work.
i have a galaxy s2 I9100 running slimkat 4.4.2.
help me
well, i couln't find a solution so i had to be "creative".
i downloaded the app Wifi/Data auto Off|On of WHUERIC, so when my screen goes off - so does the data connection, and it turns automatically on when i use my phone again.
that way i get no secril-fd-interface or multipdp wakelocks - and RILJ wakelock is also showing up less than before.
using that solution will make your application loss their internet connection so you won't get notification from those apps while your screen is off, you'll get them only when you'll turn your screen on.