yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ1 Compact Questions & Answers] silestanix:
My phone now only loses 2-3% during the night now. My solution? I turn off WiFi and data during my sleep. Stamina on my Z3c used to do this anyway when phone wasn't used for a while but doing it manually I'm now onto almost 3 days battery life without breaking a sweat.

I also use Data Saver which does what Z3c Stamina used to do, turn off data with screen off.

Quite happy with the phone now.
[Sony Xperia XZ1 Compact Questions & Answers] smorgar:
I drop 2-3% over night (about 8h) with wifi and mobile data on. And i can easy go 2 days w/o charge. My record is almost 3 days and 10h SOT. Screenshot in page 1 of this thread i think. Wonder why its so much difference from user to user with xz1c...

[Edit] With z3c i dropped 0-1% over night with no stamina mode. Concept rom tho. [/Edit]
[Sony Xperia XZ1 Compact Questions & Answers] silestanix:
It is indeed very odd, I don't understand the huge irregularities with this phone from user to user.

As I mentioned before though I think our Z3c's spoilt us lol.
[Sony Xperia XZ1 Compact Questions & Answers] CelicaGT:
Hi,

I have same problem with my battery life, it's quite fitfully.

I've checked that my battery can stand 3 days and 7h of screen on, but on the other hand sometimes my battery only can stand 1 days and 2'5h of screen on.

I make a very undemanding and very similar daily use of the XZ1 Compact

I have my xz1 Compact totally updated: Firmware v.47.1.A.12.119 PlayStore v.9.4.18 and disabled all of uncommon scannings (Wi-Fi,BT,Location,etc..)

My router has 2.4ghz band only enabled and WPA-PSK security, during the night I specially have good and strong Wi-Fi signal in XZ1 Compact.

So...Does anyone know what may be happening? I really appreciate your help.

Thanks.
[Sony Xperia XZ1 Compact Questions & Answers] Horst the Animal:
Omg stop spamming!!
[Sony Xperia XZ1 Compact Questions & Answers] CelicaGT:
I apologize but...I saw 3 threads talking about same topic, so I wrote in all of them :mad:
[Sony Xperia XZ1 Compact Questions & Answers] profyler:
I was loosing 25 over night.. 3 months ago i was lossing like 5 % over night

So i deleted an brazilian wifi app that i was suspicious and today I lost 5 % again. I'll keep testing.

I knew it was some app because on safe mode i was also loosing 5% only...

Im not 100% sure, because i tested only one day after deleting the app. The weird thing is that on the battery option, this particullary app wasnt show as the one wich was draining battery... so its hard to know... installing some battery check app might help.
[Sony Xperia XZ1 Compact Questions & Answers] profyler:
My drain came back. It was not the app I suspected.

Damn... I will try download some battery app as the battery settings dosnt show anything wrong
[Sony Xperia XZ1 Compact Questions & Answers] Dean F:
Your experience is exactly as mine. I didnt have any drain after unsinstalling some apps, but then the drian came back.

What is the exact firmware version you are on now? I am on Customized HK 47.1.A.12.145
[Sony Xperia XZ1 Compact Questions & Answers] Hansoliv:
Good day.

Could i sugest installing GSam Battery monitor. In the app there is an option (more stats) that after activated through ADB, shows an detailed consumption per app, including system apps.

And check if you have "Wifi scanning" on (see attched screenshots). Some apps turn it on without consent :( (When it's on for me is about 15% consumption overnight)

Thank you.
[Sony Xperia XZ1 Compact Questions & Answers] profyler:
Im on 12.179. (Germany)

I had 5% drain this night. I let Wifi OFF for testing purpose. I was wondering if all the backups were the reason for the drain (Whatsapp, google and Xperia makes backup in my phone when Im sleeping), but im not sure if its culprit...

I will keep going with the testing.

Yeah I tried Gsam, but didnt have the time to make de ADB thingy...

I disabled my wifi scanning as you suggested, but honestly, this was always on and i had no drains before...

I will let this disabled during my testings..
[Sony Xperia XZ1 Compact Questions & Answers] profyler:
37% Drain this night. Ridiculous.

Wifi On and wifi locations off. I set wifi location on because thats probably not the issue.

I'll keep testing ... but it seems that some app or process is requesting wifi all the time. My guess, because i dont have drain when on safe mode or wifi off (only 4G)
[Sony Xperia XZ1 Compact Questions & Answers] Dean F:
Sorry to hear that. My drain was always on 3G. I have wifi off, location off.
[Sony Xperia XZ1 Compact Questions & Answers] Hansoliv:
Good day

Try GSam to track misbehaving apps.

I have 2% drain overnight. Data, wifi, bluetooth and gps off.

I use Naptime (to force doze to start early) and also use App Opps (https://play.google.com/store/apps/details?id=rikka.appops) to deny facebook and games to run in background.
[Sony Xperia XZ1 Compact Questions & Answers] profyler:
I dont have drain on 3G. My guess is that some app is in background using wifi. But hard to know...

Gsam does not help a lot without ADB. I have not tests it with the adb command yet.

I wont disable wifi and data overnight. I need them to be on. Disabling conections should not be the solution.
[Sony Xperia XZ1 Compact Questions & Answers] profyler:
Cool.

Im gonna test it with Data only (wifi off) tonight, again, to be sure its something with wifi + app, and check what gsam says.

If i have no drain, i'll be deactivating backup services (whatsapp google etc)

next step would be deleting app per app until i find the one...
[Sony Xperia XZ1 Compact Questions & Answers] Dean F:
Good Morning.

So, first night with GSam+ADB. My screenshots included.

My Results show that the below probably arent the problem:

1. Nothing to do with Wifi. No usage while I was sleeping.

2. Nothing to do with GPS. No usage while I sleeping.

3. No/Minimal apps usage. Defintly not Outlook or whatsapp. My banking app had some wakelocks (15) - but my battery life is identical regardless if I install this app or not. ill limit its background and data in future.

What could be the problem.

1. Wakelocks

1.1 Phone/RCS 199+ wakelocks

1.2 Google Play Services - 400+ wakelocks.

13. Wake locks on all user installed apps minimal, like less than 10 or 20.

My comment to profyler. I think we both can stop with hunting for apps the could be causing this problem. I have been checking apps for weeks - if it was an app - i would have found it by now. Even the syncing type apps, like email, onedrive where not the problem. GPS type apps, Maps.ME were not the problem... Banking apps were not the problem. I have no games. Common chat apps where not the problem - with the exception of Skype... but when Skype drains, its clearly shown in the battery stats. We are not seeing apps consuming in out battery stats because they are not the problem. Even Gsam Pro shows its definitly not apps.

We need to focus on wakelocks and the most likekly cause.

ProFlyer, why not download Gsam and do the ADB thing? Took 5 minutues to set up. Right now I dont see what other option we have. If we are working together we can solve this a lot faster.
[Sony Xperia XZ1 Compact Questions & Answers] profyler:
We might have different problems..

Today, and again, i had 3 % drain in my 8 hours sleep, because Wifi was off (data (4G) was on)

So my drain only happens when im on Wifi.

Thats the reason why I suspect for backup services, even thou I dont think it is the culprit anymore, but i have to be 100% shure

Even on WIFI I have almost no stats on drain in battery menu.

What i mean is: when i have a 25 % drain with WIFI, even when im going so gsam or battery menu, there is no app that shows the drain. Even RCS shows as 1 % drain. the biggest "drain" is phone iddle with 2%. it doen not show the culprit of the other 20% drain. the 20% drain should be the wacklocks as you mentioned.

Gsam shows Doze deepsleep for ~4 hours

shows DOze lightsleep for ~3 hours.

I suspect wacklocks is the reason for that much light sleep. But whats causing it?

I didnt have a computer to make the adb thing, but im going to do it now on weekend and report back.

I know that, like you said, there is probably no APP the culprit of this drain, that might be. But lets face it. I didnt have drain WITH WIFI ON when I put the device on SAFE MODE. As you know, on safemode, there is no user app, but all other services and system ar "ON", like RCS and Google play services. Thats the reason I thought APP + Wifi could the problem on my device.

I can disable it, but i wont. Carrier Services is critical to android system and necessary for my use (signal, sms etc) But i clear cache/data and rebooted it.

Have you tested if you have drain on safe mode?

I would recomend you a test:

freeze rcs and google play services when you are about to sleep. (dont reboot phone because those 2 services will be on again).

---------- Post added at 10:01 ---------- Previous post was at 09:45 ----------

[/COLOR]Next test:

Clear data/cache on : Play services, RCS, Carreier service.

Disable backup services and syncronization

Wifi: On
[Sony Xperia XZ1 Compact Questions & Answers] Hansoliv:
Good day.

Because i have been having abnormal consumption with RCS Service, i have tried this tutorial and i have been having a better battery life. (https://xdaforums.com/showpost.php?p=75161544&postcount=6)

And it seems that the wifi problem that it sometimes takes long to connect has disappeared too :).
[Sony Xperia XZ1 Compact Questions & Answers] Dean F:
Thanks - disabling this disgusting abomination of an apk com.qualcomm.qti.uceShimService has helped my phone big time! Gosh, I actually did this months ago, but when I later flashed a new firmware I forgot to disable it again. I can see in GSam that the phone now stays much less active when screen off.
[Sony Xperia XZ1 Compact Questions & Answers] profyler:
What does this service do and how you disable it?
[Sony Xperia XZ1 Compact Questions & Answers] Hansoliv:
Good day.

It seems that i talked too soon. For me the wifi problem is back and the battey consumption is like it was before :(.

Hope it helps anyone else.

Getting tired of Sony.
[Sony Xperia XZ1 Compact Questions & Answers] profyler:
check if you have drain only in wifi like me.
[Sony Xperia XZ1 Compact Questions & Answers] Dean F:
Draining

--
[Sony Xperia XZ1 Compact Questions & Answers] profyler:
Nice that you have solved you problem.

Noob question: Do you had to root your device to delete the stupid amazon and AVG app, or just the adb command does the thing?

I had 2% drain on WIfi this night after disabling all backup services (whatsapp, Google, xperia ). I need a second day to confirm it.
[Sony Xperia XZ1 Compact Questions & Answers] Dean F:
No root. Just enabled developer options, downloaded "15 seconds ADB Installer", then ran the commands. You can uninstall or disable all the bloatware, Whats New, AVG, Amazon etc via ADB. No root needed.
[Sony Xperia XZ1 Compact Questions & Answers] Dean F:
Unfortunately I spoke to soon. When the phone went into Doze, the phone cpu became active and drained my batt. I have no solution. I believe the kernel is draining the batt. Right now I can only cross ny fingers and hope in Android 9.0 we will have a solution.
[Sony Xperia XZ1 Compact Questions & Answers] Didgesteve:
BBS is your friend in this situation.

You don't need to root your phone, just follow the instructions and install the app.

It will give you a breakdown of

partial wakelocks

kernel wakelocks

network (usage)

alarms (what wakes it up)

cpu states

Plus there's a really helpful thread to ask questions on when you find something strange.
[Sony Xperia XZ1 Compact Questions & Answers] profyler:
i got no drain again.

I can see in your picture that you didnt have wifi nor 4G on, so my recomendation to disable data sincronization (account menu) would be unecessary.

Data sincronization is what I suspect in the moment.

Weird thing is that you have a lot of DeepSleep Doze time and still the battery drain.

I got another 2% only drain in my sleeptime. May be Im getting closer to the culprit here.

Yep, I also thought that Android 9 would maybe finish my drain...
[Sony Xperia XZ1 Compact Questions & Answers] Dean F:
Another day, another drain

Its not any syncronization. Everything that could possibly be turned off - is already off - every thank would normally sync is turned off, or disabled, or both. The phones CPU never ideals properly, there is always CPU activity.

Please ignroe firefox, as these screenshots were taken after about 15mins screen on time after I woke up in the morning.

It is not a 3rd party app requesting wakelocks... i hardly have any wakelocks. Wake locks are ignored during Doze - that is the purpose of dove - but the phones CPU is running... The phones standard battery usage screen shows no app consumed power..

Installing Better Battery Stats/Gsam, disabling packages, disabling sync, uninstalling 3rd party apps. All known options have now been exhusted.
[Sony Xperia XZ1 Compact Questions & Answers] mhaha:
Here's my battery for reference. GPS, wifi, BT, high accuracy location are all on.

As you can see, the slope is nearly flat while sleeping, doze seems to work as expected.

With wifi turned off, it's almost level, although I currently do not have a saved screenshot of that scenario.

FW: 145
[Sony Xperia XZ1 Compact Questions & Answers] Didgesteve:
Your screenshots show Google Play Services to be perhaps the main offender.

Do you have more than one Google account on your phone?

When GPS starts acting up it's usually syncronisation errors, sometimes it's down to bad reception or it's just gone and tied itself up in knots.

Try uninstalling your Google account. Then go into airplane mode. Delete the app data for

Google Backup transport

Google Play Services

Google Play store

Google Services Framework

Restart your phone

Enable the network

Log into your Google account again

This will force the phone to re syncronise with fresh data. Hopefully squashing the Play Services error that's causing your power drain.
[Sony Xperia XZ1 Compact Questions & Answers] profyler:
Have you cleared cache/data from Google Play service as I mentioned?

I've cleared cache/data from google plays service and carrier services. Do this test as your play services shows a lot of activity.

I had 1% drain this night with backup services activated. I need one more day to confirm.

Next test: re-activate sincronization accounts (google).
[Sony Xperia XZ1 Compact Questions & Answers] Dean F:
Here is mine. This is a fresh flashed rom. Yes, cleared cache of play services, etc. Screen shots taken directly after waking up. less than 2 mins screen on time.

Battery drain, a consistant 15% per night. Let me also add, its not the Home Bank app, if already tried uninstalling it, results were the same.
[Sony Xperia XZ1 Compact Questions & Answers] Didgesteve:
Just wiping the Play services data doesn't fix it. Looking at the stats, there's no way it should be top of the legue for power consumption. You have some sort of sycronisation error.

Did you delete your G account, wipe data on all the G apps, then add it again?

Factory reset is the next step, although Xperia transfer app can mitigate some of that pain
[Sony Xperia XZ1 Compact Questions & Answers] profyler:
I had drain today. damn. backup services on and syncronization off. Need more time here for testing..
[Sony Xperia XZ1 Compact Questions & Answers] Dean F:
Turned synce off

I turned off sync last night. Looking better. Weird sudden drop before I woke up, but whatever. Sync off is ok for me, since I dont store my contacts on google, I dont have gmail, etc - just the minimal google account to be able to log in.

Going to debloat more tonight.
[Sony Xperia XZ1 Compact Questions & Answers] profyler:
My sync was off and I got drain again. Backup services were on, but It was on and I didnt had drain a few days ago.

Right now im in the same boat as you and I dont know whats triggering this drain. I'll wait for Android P.
[Sony Xperia XZ1 Compact Questions & Answers] profyler:
How fresh is it?
[Sony Xperia XZ1 Compact Questions & Answers] Dean F:
drain is back

My drain is back. Sync was turned off for everything. Backs ups etc all off. All cache's cleat. Rom flashed last sunday...

As far as I can see all options are now exhausted. Its Root or Android P...
[Sony Xperia XZ1 Compact Questions & Answers] Dean F:
Drain is back

Drain is back. Sync is off, Backups off, caches clear. Lots of bloatware removed. Rom is 6 days old. All options now exhausted. Its android P or rooting as the last hope.
[Sony Xperia XZ1 Compact Questions & Answers] Hansoliv:
Good day.

This could be a stupid suggestion.

I have been seeing people complaining about more battery draining in their phone with the latest FW, but i noticed no difference in mine (I live in Portugal)

Does someone want to try and flash a different version of the firmware to see if the battery draining gets better?
[Sony Xperia XZ1 Compact Questions & Answers] profyler:
Did you have drain before flashing?

Im thinking if its a good idea to factory reset mine as a last hope option...

I had no drain again with back up services off, but i dont think its that anymore. I have no idea whats going on. I activated all things again (sync, backups, locations etc).

Probabaly google play service is messing around, but no Idea how to fix it since is a vital component of the phone.
[Sony Xperia XZ1 Compact Questions & Answers] profyler:
It seems that the Phone has problem to activate DOZE/Sleep.

I took a nap and phone slept like it should, than for a brief moment I take aquick look at the phone and it couldnt sleep like before after locking it, triggering the drain.

I hope a new Android version or Kernel will fix this.

I'm eager to make a factory reset now. I'll wait for andoid P and the fac. reset it.. I dont knwo what else to do/test.
[Sony Xperia XZ1 Compact Questions & Answers] profyler:
Had no drain today.

Amazing how this works. Sometimes drain and sometimes not... without any change at all.

Attached is my phone when there's no drain. Everything is activated (backups, sync, locations , wifi , 4g etc...). Now with ADB thing.

Even with no drain and deep sleep DOZE there is a lot of activity. But ok, since it does not drain battery .. I guess...

Ps.: I couldnt attach a fith picture, but it shows Google play service with the highest wakelock numbers (84 wackelocks), but even with all that wackelock, it was not responsible for drain, as shown in the second picture.

As soon as I have drain again I'll post here to compare.
[Sony Xperia XZ1 Compact Questions & Answers] profyler:
Well, could it could be, but maybe there is no drain because you have a new fresh system too... hard to know...
[Sony Xperia XZ1 Compact Questions & Answers] Hansoliv:
Good day.

Have you tried "naptime"? (https://play.google.com/store/apps/details?id=com.franco.doze)

I'm using it so it force dozes the phone after the screen turns off.
[Sony Xperia XZ1 Compact Questions & Answers] profyler:
No drain in 3 days... Without any modification at all... What a weird thing.

Well, im walking away from this issue. Hope it stays like that...
[Sony Xperia XZ1 Compact Questions & Answers] Dean F:
Fixed the Battery drain using the last resort.

My battery drain was so bad that I was loosing over 20% per night - and both mobile data and wifi turned off. I also tried using stamina mode and it drained just as badly.

My only option seemed to be to wait for "maybe" a possible fix in Android 9.... but I was draining so bad I could no longer wait.

I have no choice but to take the final step..... root the phone. Took me about 2 hours to root it. Battery drain over night is now less than 1%. Exact same apps and settings as I had before root...

MY PROBLEM IS FINALLY FIXED.

see the before and after screenshots attached.
[Sony Xperia XZ1 Compact Questions & Answers] Tron510:
so, did you do anything after root to improve the battery life, or did juts rooting itself solve the problem? you did the drm backup and whatnot?
[Sony Xperia XZ1 Compact Questions & Answers] Dean F:
Please ignore my last post. I did not fix my drain, it came back the next day, and now is draining heavier than ever before.

I have no solution. I advice not to root... not worth it - now I have a phone with no drm keys... and i still got a battery drain.

---------- Post added at 09:40 AM ---------- Previous post was at 08:46 AM ----------

I have thought of 1 final option, for those who have not rooted. Flash firmware version Customized GR 47.1.A.2.281 which can be downloaded via Xperifirm . This is the phone originals Android 8.0 Oreo software, and I think this one is from the days before the drain started.
[Sony Xperia XZ1 Compact Questions & Answers] moreinfo:
I tried accubattery, so I charged from 0% to 100% and I got 6h of screen on, and 5h 21' of hibernation screen off, it's ok for me, I have disabled wifi and 4g, so just 3g and data on ( inthe screenshot it's 4g I activated in the last minutes) The next day I used wifi on and 3g and I got 4h 30' of screen on and 2h 17' of hibernation with screen off. Well is it wifi the culprit? Today I'm trying wifi off and 3g on, but no hibernation...why? So the draining is caused by the lack of hibernation when the screen is off. Which app is the culprit?
[Droid Turbo 2 Q&A, Help & Troubleshooting] juvesss:
Hello,

I have a stock Moto X force for about 20 months.

I've been suffering from lagging lately (sometimes it takes a few seconds when trying to switch between apps or the keyboard becomes unresponsive). I think it got worse after the 7.0 update.

I've downloaded an app for system monitoring and I've noticed that at times of lag the internal disk activity is maxed (Read & Write are 100% (not sure exactly what that means)) (Can't add attachments). But, cpu performance and ram usage seems fine. I assume some app is causing this but have no suspects at the moment. How should I continue my debug from here ?

Thanks :)
[Droid Turbo 2 Q&A, Help & Troubleshooting] oniscidea:
Hello Juvesss,

Exactly the same phone with the same problem since one week ago... If you solved it please explain me, this is a pain!

No OS upgrade was involved in my case, I have Nougat since a long ago.

Cache wipe did not help. Limiting background processes to 3 helped just a little (developer menu).
[Droid Turbo 2 Q&A, Help & Troubleshooting] roweboat56:
I've been noticing this problem too.

Not sure what the cause is.

I've factory reset and that seems to fix the problem for awhile, but it seems to come back over time.

Something in the stock rom must be cluttering the phone.
[Droid Turbo 2 Q&A, Help & Troubleshooting] oniscidea:
Dear roweboat56,

It happened to me after 12 months of having it, so for my experience it is not so frequent. How often happened it to you? (To understand better how long will I "enjoy" the factory reset solution...)
[Droid Turbo 2 Q&A, Help & Troubleshooting] Sweetie:
Move to a custom rom!

I faced that issue too! The last update was buggy maybe..and the moto services and rest apps by moto are eating a lot of ram and using a good amount of I/O

.

Try this rom by me (on the latest 7.1.2 build with 5th February 2018 security patch)

https://xdaforums.com/droid-turbo-2/general/lineageos-14-1-build-7-1-2-heating-t3757565

Change battery profile to power save, and see the magic :D

No heating at all!
[Droid Turbo 2 Q&A, Help & Troubleshooting] roweboat56:
Hm I noticed after maybe 2 months of use or so?
[Droid Turbo 2 Q&A, Help & Troubleshooting] gyarados025:
Im on Latest Stock FW Android N ,using the device since 8months and not find any lag, in my case it lacks a bit when heated a lot.

I didnt disable any of the Moto Services though.

Try using Greenify if it solves the issue. I will not unlock my phone till it gets 14-15month old and see whether the same happens to me :mad:
[Droid Turbo 2 Q&A, Help & Troubleshooting] oniscidea:
It is strange... In my case the phenomenon suddenly disappeared some weeks ago, so I think some system update messed it all and later another update solved it. I have the impression it was a system problem and not a particular app, because I tried to uninstall the more suspicious apps without appreciating any change.