yashsingh1/xdaforums huggingface dataset:
[Asus Transformer TF701] filou76:
same here! running aokp with only gapps pico installed. i tried different settings with "disableservice" app ... no change in wake locks. update to newest play services neither.

disabling a couple of autostarts (e.g. play store and the first of google play services) with app "autostarts" magically braught back old, "healthy" behaviour of the tablet. i didn't encounter any other problems till now (2 days). still i'm confused about all that.
[Asus Transformer TF701] berndblb:
Would you be so kind a post a screenshot of what you disabled in Autostarts?

I disabled everything Google Play related, Gmail and Google search and still lost 40% battery in 4.5 hours with the tab awake 87% of the time :mad:

But I'm not on the 6.5.99 GP services yet. Maybe I try updating everything....
[Asus Transformer TF701] houtx2:
For me, I disabled everything under google play services that said after startup.
[Asus Transformer TF701] Alta1r:
Yes, as Houtx2 is saying you need to disable everything under Google Play Services. The Google apps don't make a lot of difference if they are enabled or not, not for those wakelocks anyway.
[Asus Transformer TF701] ndompierre:
problematic apps

I'm not rooted, so i can't disable services of google play services. So far, i did a list of the problematics GApps

Cloud print, Gmail, Google Play Music, Google+, Hangouts, Maps, Youtube and the last, Google Play Services

With the factory version of these apps, my battery issue is gone.

Alll othaer apps can be installed without issue.
[Asus Transformer TF701] wolfymozart:
The last google services update doesn't solve the problem for me... If I downgrade to previous versions, there are some GApps requesting for update, so I must uninstall these GApps and try to use the tablet without them...

My impression is that if I unplug the tablet after a fullcharge and I do not use any App, the battery lasts as before the battery drain problem. If then I open some Apps, then the drain starts and cannot be stopped.
[Asus Transformer TF701] buda5767:
Check this: If found Nvavp, you have a driver problem. Solution at the moment. Power off and new Start.

/sys/kernel/debug/suspend_stats

success: 48 fail: 11503 failed_freeze: 5561 failed_prepare: 0 failed_suspend: 5942 failed_suspend_late: 0 failed_suspend_noirq: 0 failed_resume: 0 failed_resume_early: 0 failed_resume_noirq: 0 failures: last_failed_dev: nvavp nvavp last_failed_errno: -16 -16 last_failed_step: freeze suspend
[Asus Transformer TF701] ndompierre:
I think that the gapp from the list use new features included in the google play services and if no apps use the, it don't hurt.

I will try to update the google play services to 6.5.99 only and stick with the factory version of the upper list.

If everything is right tomorow, i wil add one app at time to find of all apps are in cause or else wich one cause the issue.
[Asus Transformer TF701] loner.:
http://www.reddit.com/r/Android/comments/2ieetk/ive_figured_out_why_google_play_services_can_eat/
[Asus Transformer TF701] ndompierre:
The Google play services 6.5.99 app is problematic alone, even if the Gapps are factory version.

We will have to wait for a fix.
[Asus Transformer TF701] jackieku:
Thanks to buda, it likely we get closer to the root cause.

I tried to downgrade the kernel from 20141217-nightly to CM11 M9, the nvavp driver still made the system be not suspended.

After some investigations, I found it seems the mediaserver is leaking a /dev/tegra_avpchannel file descriptor.

root@tf701t:/ # lsof | grep avp
mediaserv 9662 media 33 ??? ??? ??? ??? /dev/tegra_avpchannel

If I kill the mediaserver process, the system could be suspended a while, until it opened /dev/tegra_avpchannel again.

Currently I have no idea about what cause mediaserver keep opening /dev/tegra_avpchannel at some time point.

I tried play some video with YouTube, it would not cause mediaserver open /dev/tegra_avpchannel though, so it may not be media playback related. (maybe recording or DRM?)
[Asus Transformer TF701] NoUseToRush:
I clean installed 11-20140505-snapshot-M6 (4.4.2) with latest gapps (june 06), let google upgrade its things and I'm @39% battery after 1 day 14 h 24 min

No leak at all, just like before.

Go figure:silly:

note: clean install in this case also means that I did not allow any personal app restoration
[Asus Transformer TF701] berndblb:
Disbaling GP services with Autostarts has made a major difference for me, but I had to reboot after the changes.

After a full charge I disconnected it from Power, let it sleep and 2 hours later it was still at 100%.

Used it briefly (Tapatalk, stock browser, Gmail) and during the next sleep cycle still almost no drain: 2% in 12 hours. More importantly, WLD shows it's been awake only 1% of the time.

Found the reddit article [MENTION=567635]Loner[/MENTION] posted interesting. I am wondering if it is another app using GP sevices's location process and not releasing it.

I will be sowly using one app after the other and checking in between if the drain comes back after using one of them.
[Asus Transformer TF701] filou76:
I made the exact same observation.

"Autostarts" shows us events which trigger starts of certain apps and services. I disabled all play services that started after boot but i did not disable those 2-3 play services that are being triggered e.g. after connect/disconnect from power source. And guess what!?... My tablet again didn't go to sleep mode after charging until I rebooted. Though the battery drain isn't that fast, I think around 3 %/h, this time. Maybe because cpu usage is less by those few services.

Unfortunately I don't see the name of the services which are triggered.

So, the problem's origin is still there, of course. Certain services once being called by an event won't stop working, as they can't finish work...like getting location or whatever???

That's my conclusion at the moment.
[Asus Transformer TF701] Danforth:
Unfortunately, the cause of the drain has temporarily become moot for me, because I left my tablet in my backpack for several hours and it drained COMPLETELY. Now I can't charge it at all.

After connecting it to a charger overnight, it still showed 0% battery, and initially in Settings/Battery the status was Not Charging. After clearing cache and rebooting the status changed to Charging, but no matter how long I hook it up, it stays at 0%. Unplugging causes an immediate black screen (no shutdown screen).

I'm trying trickle charging using my phone charger (5V, 1 amp) but I'm doubtful -- this happened to me a few months ago, and trickle charging didn't work. That last time, I gave up and left the tablet alone for a few days -- and then for some reason I was able to charge it. Hoping I'm lucky again this time.
[Asus Transformer TF701] jackieku:
Workaround for nvavp (/dev/tegra_avpchannel) prevent system from suspended.

I found nvavp is used by NVIDIA's Widevine DRM proprietary plugins.

I removed all proprietary DRM plugins from /system/vendor/lib.

/system/vendor/lib/drm
/system/vendor/lib/mediadrm
/system/vendor/lib/libWVStreamControlAPI_L1.so
/system/vendor/lib/libwvdrm_L1.so
/system/vendor/lib/libwvm.so

Then, the idle battary life becomes normal.

I supposed these thingy are used by Google Play Movies/Music, that why some people think disable Google Play Services helps. Althogh I guess it is a bug in NVIDIA's proprietary DRM plugins causes this issue.

I never used Widevine DRM stuff, deleting those files seems to have no drawback for me. ;)
[Asus Transformer TF701] JoshReuben:
I froze Nvidia Tegra Service (and Google search) using ROM Toolbox Pro and battery drain is now less than 1 percent per hour in deep sleep.
[Asus Transformer TF701] hitmancho:
I disabled Google Play Services today and only had a 2% drain in a few hours! I guess Google messed something up recently. Needless to say, no apps by Google work now. I actually use most of them so this isn't a great solution for me. Hope something else gets discovered and/or Google fix it...
[Asus Transformer TF701] berndblb:
This very interesting! I find it baffling that some devices have this drain with the new GP servies and others don't......I think I am going to test your solution next.

Although things are looking good for me ;)

After disabling GP services in Autostarts I used a couple of my daily driver apps, put the tablet to sleep for a few hours, used it a little more with a couple of other apps, let it sleep for quite a while etc.

The idea behind this was that I wondered if the drain returns if you start a certain app or process which may be responsible for the tablet never sleeping. I don't think it's GP services itself. It's some process calling a GP service and never letting it go.

So far the drain is gone and the tab sleeps like a baby. I have let it sleep for three long periods (7 hours +) and the battery consistently drains only 1%. WLD reports it asleep 99%.

Something else I noticed. After disabling the GP services and rebooting, the tablet came back with Location Services disabled. I ususally enable those, but left them off for now.

Once I am satisfied that none of my daily driver apps is causing the drain, I am going to turn Location Services on and see if that changes anything.

And once that is done I think I am going to enable everything in Autostarts and give [MENTION=4804270]jackieku[/MENTION] solution a try. :D

For how long have you tested this?
[Asus Transformer TF701] NoUseToRush:
If you don't mind downgrading, try what did: clean install CM11-20140505-snapshot-M6 (4.4.2) with latest gapps (june 06), don't activate localization. let google upgrade all play services...and everything should be fine. At leas it is for me.

2d1 2h and 33min on battery before charging at 14% this morning
[Asus Transformer TF701] JoshReuben:
About 18 hours so far. Will update again tomorrow.
[Asus Transformer TF701] JoshReuben:
Aaaand back to 9% per hour drain after using Moon Reader Pro briefly. Processor was maxxed but Better Battery Stats crashed, so I'll need to reboot and start over.
[Asus Transformer TF701] Phane7:
I've recently run into this issue running the latest OFW (not even rooted). I've found that restoring to factory and leaving wifi off gives me very little drain. Disabling google+ and hangouts made it so that 10 hours of sleep only drained my battery about 1-2%. Installing all updates besides Google Play Services results in several errors saying various apps need an update to Play Services, but battery drain remains the same. As soon as I update Google Play Services to 6.5.99, though, it all goes to hell. I'll have the battery completely discharge overnight in sleep mode after that update. Disabling Google Play Services and restoring the factory version doesn't seem to help for me. Once the damage is done, a factory reset is the only way to undo it.

I've managed to keep the thing from updating Play Services by turning off sync for everything on my Google Account and disabling everything Google that I could.

I've talked to Asus over the phone and over email about it and they seem to be unwilling to help me unless I RMA it. They claim that it's not a "known issue" as well.

My nVidia Shield (also Tegra 4) doesn't seem to have this issue, but it only has Play Services version 6.5.87.
[Asus Transformer TF701] JoshReuben:
I've deleted the drm libs and drain seems to have stopped. Greenified all and put it to sleep with battery at 77%. Will report in the AM.
[Asus Transformer TF701] loner.:
I tried this and it work great! Thanks. :) Battery drain no more [emoji3]
[Asus Transformer TF701] JoshReuben:
At 76% this morning. Back in business.
[Asus Transformer TF701] Trevor_g:
Alright... I'll give this a shot too and report back.
[Asus Transformer TF701] rgli:
this works for me....big thank....
[Asus Transformer TF701] Daruniafx:
Thanks [MENTION=4804270]jackieku[/MENTION] , work great for me. Now i have 12 hours with 1% battery drain!!!
[Asus Transformer TF701] berndblb:
Looks as if we have two solutions! [emoji2]

I am on the last test of the Autostarts > Disbale GP services method. Over 5 long sleep periods (5 + Hours) the tablet has never lost more than 2%. That is consistent over reboots and using most of my regular apps, especially the main Google apps.

Before I try the DRM plugin removal I just want to test if it stays that way with the dock attached and across a few charge/discharge cycles with the tablet/dock combo (all my tests during the last few days have been done without the dock attached during sleep).

Any of you guys that removed the DRM plugin: Have you tried to play protected content like videos or music you bought from the Play Store? That still working?

Thanks
[Asus Transformer TF701] McSym:
Removing DRM helped.

THANKS. That helped.
[Asus Transformer TF701] NoUseToRush:
I don't think deleting the following 3 files is required:

/system/vendor/lib/libWVStreamControlAPI_L1.so

/system/vendor/lib/libwvdrm_L1.so

/system/vendor/lib/libwvm.so

I had them on 4.4.2 before upgrading to 4.4.4 and I didn't have battery drain. So once on 4.4.4, I only deleted the two folders

/system/vendor/lib/drm

/system/vendor/lib/mediadrm

..and the drain is now gone
[Asus Transformer TF701] buda5767:
I think only this file make trouble :libwvdrmengine.so

if delete no nvavp problem.

now replace file from here and test again.

android-src-vendor_7-0ubuntu1_all.deb Ubuntu 14.10 Download
[Asus Transformer TF701] Riccaw:
Can you only do this fix if you are rooted?
[Asus Transformer TF701] NoUseToRush:
files replaced with backup and "libwvdrmengine.so" deleted

Will report back

---------- Post added at 06:48 PM ---------- Previous post was at 06:39 PM ----------

Yes, root necessary

---------- Post added at 07:39 PM ---------- Previous post was at 06:48 PM ----------

You are right, "libwvdrmengine.so" seems to be the culprit!:good:

1% drain in 58 minutes..

Now, what does that file do? what is the impact od deleting it, any idea?
[Asus Transformer TF701] berndblb:
I think [MENTION=4804270]jackieku[/MENTION] and [MENTION=2407107]buda5767[/MENTION] identified the culprit! But could you report back tomorrow please? We've had quite a few reports of "drains is gone" followed by "drain is back" and an hour is not long enough to be conclusive.

I think buda is checking the suspend_stats in the kernel log, looking for "last_failed_dev: nvavp" instead of just watching for battery drain, but I could be wrong. I'll play with this tonight some more.

For now I'm happy to report that even with the dock connected I did not have any significant drain today. So I'm done with the Autostarts testing, will try this solution now and see if there's any difference.

As to the impact - haven't heard anything yet from those guys that applie this fix. Since it seems to be DRM related I would check if I could play, access or download any DRM protected content from the Play Store....
[Asus Transformer TF701] berndblb:
I enabled all services in Autostart again, rebooted and let the tablet sleep for 2 hours. Got 8% drain during that time. More interesting is this

adb shell
uptime
# that returned: uptime 2:21:47, idle time : 1:38:54, sleep: 00:00:00

I then deleted only the /system/vendor/lib/mediadrm folder. Rebooted, let it sleep for two hours. No battery drain whatsoever.

uptime command got me:

uptime 2:21:47, idle time: 0:16:28, sleep: 2:01:30

I also ran this command

shell@K00C:/ $ cat /sys/kernel/debug/suspend_stats
cat /sys/kernel/debug/suspend_stats
success: 49
fail: 17
failed_freeze: 7
failed_prepare: 0
failed_suspend: 10
failed_suspend_late: 0
failed_suspend_noirq: 0
failed_resume: 0
failed_resume_early: 0
failed_resume_noirq: 0
failures:
last_failed_dev: sdhci-tegra.0

last_failed_errno: -16
-16
last_failed_step: suspend
freeze
shell@K00C:/ $

I don't know enough to really interpret it, but it looks to me that there were still 17 processes that it failed to either suspend or freeze, 10 and 7 respectively. Don't know - maybe that's normal. As long as they don't drain the battery...

Too bad I hadn't found these commands earlier. Could have compared it to the Autostarts solution....

Found this on kernel.org:

Maybe @buda5767 knows more about this.
[Asus Transformer TF701] Jonbest:
Got to admit to be being increasingly concerned about this as a Tf701 owner. Whose responsibility is it to fix this issue, Asus or Google? If its Asus then i'm very concerned.

Only had the tablet 2 months so don't want to unlock the bootloader (& void warranty) yet to be able to perform this fix. I reported to Google the error regarding Google Play Services but not convinced that will help much.

Currently not getting the drain due to setting Google Play Services and all the Google apps back to factory settings but I am hoping this is only a temporary solution until it gets a proper fix..........But baffled as to who might provide a proper fix :(
[Asus Transformer TF701] KAUSHDROID:
You should use battery life repair app
[Asus Transformer TF701] berndblb:
Well, where did you report it? Post a link and we all could chime in. A single user is easily dismissed, a couple of hundred not so easily :)

I'm still not clear if the DRM libs/plugin in /system/vendor/lib that came with the 4.4.2 update are to blame or the new GP services or some interplay between them. But both definitely originate from Google - so they are going to have to fix it.

Even the TF701s on CM roms have this problem and it has been reported and is discussed in the CM bug reports, so let's hope the good people at CM will fill Google in once they figure it out :fingerscrossed:

---------- Post added at 01:45 AM ---------- Previous post was at 01:44 AM ----------

This app addresses a totally different issue. Did you read even part of this thread??????
[Asus Transformer TF701] SteveConley:
Wow - this fixed it beautifully so far.

>>> I have 2014.03 TF701T bought only 2 months ago. I had rooted and applied CM11 and tried 3 nightlies. My battery use was TERRIBLE ... I finally found this forum last night.

I RENAMED the two "so" files to xxx.so_bad in the two folders:

/system/vendor/lib/drm

/system/vendor/lib/mediadrm

Previously, leaving it in NO WIFI, NO GPS, mode and asleep over night, left BOTH batteries nearly drained.

Almost all "battery drain" showed to be AndroidOS.

After the fix, same EXACT conditions, both batteries show 100% this morning !

I am proceeding to turn back on the WIFI and repeat - but it looks like this is solved except for breaking what ever those files were doing.

I will only post back if I see an issue with this fix.

Thanks guys - I had spent 3 or 4 days on this over the last month.
[Asus Transformer TF701] guerito73:
I've done the same yesterday, renamed 2 .so in .so.bak to be non destructive during my tests.

Seems Ok, This morning for first time since 2 weeks, battery was at more than 90% after a night.

Tonight I will perfom further tests to see if play film content still readable and I'll let you know
[Asus Transformer TF701] NoUseToRush:
I confirme: battery [MENTION=5720362]99%[/MENTION] from 100% after 8 hours sleep. The culprit is "libwvdrmengine.so" ..

Big thanks to jackieku and buda5767:highfive:
[Asus Transformer TF701] jackieku:
I believe those DRM blobs came from ASUS stock ROM, which might be in turn provided by NVIDIA because they are certainly hardware (or at least NVIDIA's kernel driver) dependent.

For people who need to access the DRM contents, perhaps replacing those files with older one helps. (no newer than CM11-M9 and stock 4.3 I guess.)
[Asus Transformer TF701] Jonbest:
Hi I logged it by going to the "Google Settings" app, then Help & feedback and then finally feedback and described the issues and sent the device logs when the drain was happening. Hopefully that will do some good.......
[Asus Transformer TF701] Riccaw:
Hi, is there anything that none rooted users like myself can do to fix this or do we have to wait for asus to release an update?
[Asus Transformer TF701] berndblb:
You can uninstall updates to GP services and all the Google apps (Material Design apps will not work on older GP services) and turn automatic updates from the Play Store off.

A factory reset from Settings should have the same effect. Just make sure you update only non-Google apps afterwards.

Sorry.
[Asus Transformer TF701] guerito73:
Able to play a movie throught play film with guilty drm deactivated, back to normal :)
[Asus Transformer TF701] Phane7:
Factory restore. Afterwards, turn off auto-update and quickly install whatever you need from Google Play, then turn off WiFi. Go to apps and all, then disable anything with Google in front of it (You will NOT be able to disable google play services, just force stop that one). After that, you can turn on WiFi again. You will occasionally get an error message saying that Google Play Services crashed. Unfortunately, that's all you can do.

I agree that this SHOULD have, but when I tried it, it didn't. After restoring Google Play Services to factory the battery drain continued for me. I read another poster say they also disabled google search and got a good result. I didn't try that additional step, so it may be worth a shot if you don't want to factory restore just yet.

I've been back and forth with Asus and they've really convinced me not to buy stuff from them anymore. They've asked me to RMA my tablet over this issue 3 times now when it's clearly a software issue. I sent them a link to this thread and I got a reply back that is at least encouraging:
[Asus Transformer TF701] Jonbest:
Hi, when you reset the apps to factory did you reboot the tablet? Mine kept draining until I rebooted......

Did you call Asus or log a support ticket? I can do the same as you to help draw more attention to the issue perhaps?
[Asus Transformer TF701] royredman:
Hi, was this the 4.4.4 bootloader battery drain issue solved or was this a different battery issue? I am still on a 4.3 bootloader and wonder if I will get a better battery life from this fix. Thanks for the help!
[Asus Transformer TF701] Phane7:
I did NOT reboot the tablet, so maybe I should have tried that.

ASUS CASEID=RWTM20141222125125901-546 would be the reference number most likely attached to the complaint I filed.
[Asus Transformer TF701] dvresource:
I can confirm by remaming libwvdrmengine.so my battery drain dissapeared. 95% battery overnight.:good:
[Asus Transformer TF701] blickley:
Same here...I renamed the file, rebooted....no problems yet in 24 hours. Usually I would have the drain begin within a few hours of rebooting.
[Asus Transformer TF701] Lopburi:
+1 :good:
[Asus Transformer TF701] JoshReuben:
Pita with no thanks to Asus. Was able to fix the issue on my rooted unit, but my dad's is going to be a problem, as it's unrooted. How to explain that the vendor has broken the device and is impossible to fix without hacking it and invalidating the warranty? Wtg Asus.
[Asus Transformer TF701] ky236:
Workaround for non-rooted tablets

I've been following this thread the last few days but have been unkeen to root my TF701T since I still have a good few months of warranty left on it.

Yesterday found an app on Google Play (GServiceFix) which seems to have worked for me (overnight battery drain of 2%, this evening still at 95%).

Unfortunately, not hugely clear what the fix actually does, but seems to be a workaround for non-rooted devices. Hope this helps
[Asus Transformer TF701] asinglenoob:
The truth is you probably don't really need the warranty. Since it will only cover hardware issues anyway, if you've had the device for a few months with no hardware issues it's extremely unlikely (especially in hardware with no moving components) that you'll see a hardware failure (unless you drop the tab and the screen shatters but that's not covered by warranty anyway). The most likely time for a failure in electronics is within the first few months of ownership and if it doesn't happen then it's unlikely to have any issues until the end of the product's life-cycle.
[Asus Transformer TF701] cooked:
I also did not root my 701t. I installed GserviceFix, as you suggested, and it seems to have stopped the battery drain. Thanks for the lead.
[Asus Transformer TF701] wolfymozart:
This solved the problem for me! No more battery drain!!! I also uninstalled TegraZone App, just in case... ;o)

Thank you very much!!!