Is it possible to determine from ADB what process holds a wakelock. In particular I'm interested in what process on my Samsung S4 GT9505 running 4.3 is holding the wifi multicast wakelock, ie if any app is using WifiManager.MulticastLock
http://developer.android.com/reference/android/net/wifi/WifiManager.MulticastLock.html
I'm trying to debug standby power drain -- it's wifi wakelocks. I've quietened my home network has best I can, but I'm interested in whether
a) the stock kernel leaves multicast enabled even in standby (unlike the nexus)
AND/OR
b) Any app - perhaps stock bloatware - has acquired the multicast wakelock
I couldn't see anything in logcat, but perhaps if I knew what I was looking for...
Tips welcome.
Note - I'm not rooted. Mostly due to needing to use apps that have too good root detection (sky go)
Related
It's my understanding that the wifi on this phone has a very low power usage when inactive in standby. I'm going to guess, however, that the power usage goes up when it "wakes up" to scan for open and/or configured AP's. I'd also guess that it'd have to take the phone processor out of "sleep" and wakelock in order to perform that function
I'm wondering how often android (or this phone's default ROM in particular) will wake up to perform a scan of access points when it's NOT currently connected (but the wifi radio is left on at all times), and configured to only connected to known AP's.
Anyone?
Thanks
Gary
I have been searching through the two or three threads of ICS ROMs that support the Verizon LTE Tab. Unfortunately I am unable to find an answer if any of the ROMs once installed will retain mobile network functionality 3G/4G. If I flash any of these ICS ROMs am I turning my Tablet in to basically a Wifi-only tablet?
Thank you.
No modem support yet for our Verizon versions of the tablet so yes essentially you will turn the tab into a wifi one without working cameras as well.
Thank you very much.
muzzy996 said:
No modem support yet for our Verizon versions of the tablet so yes essentially you will turn the tab into a wifi one without working cameras as well.
Click to expand...
Click to collapse
What do us Verizon tablet owners do about the modem then? My tablet continues to be plagued by cell standby problems and I am running the latest version of CM10 nightly 2012.11.19. If I toggle the tablet into airplane mode and turn the wifi on, the battery status still shows that the cell is on and drains the battery very quickly.
When I've tried to flash the p4wifi version it fails out.
Is there anything I can do to get this cell standby problem fixed?
apexjr said:
What do us Verizon tablet owners do about the modem then? My tablet continues to be plagued by cell standby problems and I am running the latest version of CM10 nightly 2012.11.19. If I toggle the tablet into airplane mode and turn the wifi on, the battery status still shows that the cell is on and drains the battery very quickly.
When I've tried to flash the p4wifi version it fails out.
Is there anything I can do to get this cell standby problem fixed?
Click to expand...
Click to collapse
Probably would have been more appropriate to start a new thread than hijack this one. This thread was looking to find if any ICS based ROMs supported the SCH-i905 back in April of 2012. Fast forward to now and your issue is battery drain on CM10 which now supports the SCH-i905.
NEVER flash other versions, stick with versions specifically built for the SCH-i905 if that's your device. Flashing other things can yield to a bricked tab.
To answer your question; not completely no. Simple answer isnt it. And yes it sucks big time. Wakelocks on CM10 are a big issue for various devices and coupled with LTE causes major battery drain for multiple devices. All that can be done at the user level for now is to minimize wakelock issues manually by developing the habit of turning off various things when not in use prior to putting the tab to sleep. It's a pain in the butt but your alternative is to go back to stock touchwiz ICS if you wish.
What I've done is created TB shortcuts on desktop to disable maps and talk . . a secure settings toggle shortcut to turn off location services . . and developed a habit of turning on airplane mode prior to putting the tablet away. I've installed better battery stats to monitor application processes and identified wakelock crazy apps like Facebook etc. and uninstalled them.
This maximizes battery life but it doesn't always result in the tablet going into deep sleep consistently. Often times after a period of heavy use there will be various applications cached on the tab and it will fail to enter deep sleep when left in standby. So, if I know I'm going to be putting the tablet away while not plugged in for an extended period I find it best to do all those things outlined above and then reboot the tab. This clears out all cached applications and results in the tab deep sleeping for hours on end.
I've tried automating these things using Tasker but that application hasn't been playing nice with CM10 for me and often times my airplane mode script would run during use of the tab even though the script should have only run when the tab was on standby for more than 10 minutes.
For now I've disabled tasker and I just manage the tab manually.
Hey guys,
On my second samsung device and my fifth rom (including eclipse TW, eclipse AOSP, aokp, CM10, now hyperdrive). Have to say thay I'm satisfied with pretty much everything Hyperdrive has to offer, its freaking amazing! One issue doesn't seem to be resolving despite many attempts. My phone stays awake nearly 100% of the time with a wlan_wake wakelock. This isnt the well documented wlan_rx_wake wakelock, which I've also had in the past but managed to squash. I'll recount my findings in some order below.
I installed Hyperdrive, restored some some vital apps. Waited a couple days and found the battery wasn't what I'd hoped it'd be. I usually run with auto sync enabled for total 8 mins per hour (via Tasker) and wifi and mobile data on. I've also used a script that disables IPv6 whenever it connects to a wifi network -- work network has tons of IPv6 broadcasts that were triggering massive wlan_rx_wake wakelocks which were vastly reduced with this fix. Even with these throttles, I noticed that some time after boot (10-15 minutes) on my work as well as home network (10 mixed devices on a belkin router), a wlan_wake wakelock would start triggering and my phone would then stay awake 90-100% of the time, screen on or off.
I went ahead factory reset the phone, loaded just my google account, and found the same problem with autosync on, autosync off, GPS was off, Wifi "always allow scanning" option was disabled in the advanced menu, Google's Wifi network location was disabled, and no 3rd party apps except for BBS installed. Of course, with Wifi disabled, the issue abated but 3g/4g doesn't offer much better battery life than the phone staying awake the whole time. During this time, I used Network Logger and Shark for Root to attempt to identify Wifi traffic and found that a few apps were transmitting frequently, but not enough to keep the phone awake for the amount of time the wakelock indicated. Total battery drain is up to 8-10%/hour with absolutely minimal use. I've never had this particular issue with any other OS i've installed, any ideas what could be going on? Really looking forward to being able to rip through days without charging on Hyperdrive!
I have a Samsung Note 3 and I too have this same problem (except that a factory reset solves it). Can't seem to find a fix. People on internet suggest that it's because of some rogue app but my phone starts behaving like this randomly until I do a factory reset.
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.
Hello,
I have the following Problem, while in Idle the phone is consuming so much battery, any help ?
push
Which ROM release are you on?
I am on Stock Rom and have the latest ota 15.07
dafuq2111 said:
Hello,
I have the following Problem, while in Idle the phone is consuming so much battery, any help ?
Click to expand...
Click to collapse
There are quite a few threads on this already including what I wrote (pasted below).
<<<<
I had two types of standby battery drain - mobile data and wifi. I have fixed both of them through lots of trial and error. From my testing and looking on XDA at similar experiences of people on other phones, these are bugs in Android rather than anything Elephone can fix through updates (I'm on the latest 20160419 update).
I fixed the mobile data problem by creating Tasker profiles to keep the phone on 2G whilst it's connected to wifi. I can't post links yet but a search on XDA/Google will find you these profiles. Maintaining a 4G connection is unnecessary whilst on wifi, besides, some people have problems receiving calls on this phone whilst on 4G. If the phone is not connected to wifi (rare in London because it's everywhere even on public transport) 4G comes on. Best of both worlds.
The wifi drain solution sounds counterintuitive but it is simply to set it to 'always on'. With both of these measures, my standby drain has been 1% overnight for the last two nights and roughly 0.25%/hour during the day. Standby drain on 4G whilst moving around London with location on at least quadruples battery drain to around 1-2%/hour.
Some of my other settings will have an impact too. I find the auto-brightness calibration of the P9000 poor, so adjust brightness manually (which also saves battery life). NFC, bluetooth, etc. I only turn on when needed. I use Greenify and have all apps Greenified except Tasker, Textra, and Hangouts. I haven't Greenified any system apps except Google Maps. Location is always on but mostly device only (again counterintuitive, you'd expect it to be 'battery saving') unless I am moving around in which case I have a Tasker profile to automatically switch it to 'high accuracy'.
I tried to get Xposed working so that I could use Amplify too (see my other post) but that didn't work. Since I'm very happy with battery life now that's not that important anymore though it would be nice for the further tweaks it makes possible.
There are too many other variables to list and everybody's phone is set up differently. However, hopefully using some of the main big gains I've listed above you can fix your wifi drain specifically and improve standby drain generally.
Well, it's somewhat problably what keeps the phone awake, this occurs after factory reset, i already did the Tricks you've listed and on screen Features and so on are all off, there are no Apps who should keep the phone awake Cause it's happening Straight after factory reset so there are no other Apps..
Push
Finger print sensor or DT2W for sure. Disable them
On the latest ROMs it is the finger print sensor. Turn it off or go back to 20160810