Device is awake more time, than it tells me in BBS (wakelock problem) - Xperia Z4/Z3+ Q&A, Help & Troubleshooting

Hi,
I have problem with my Xperia Z3+ (E6553, firmware version 32.2.A.0.305 rooted). I use it everyday, and I don't use it a lot (about 1-2h SOT), but still my wakelocks are very high, and I can't target them. After a day of use, my battery is about 10-30 %, and this is below expectations. I have WIFI, NFC turned off for most of the time, the bluetooth module is active to connect with Smartwatch (Sony SW2), and transmission is always on.
I also use Amplify and Greenify.
According to BetterBatteryStats, in Kernel Wakelocks, I have 45 min of PowerManagerService.WakeLocks (which is sum of all partial wakelocks):
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
, but in Partial Wakelocks its about 15 mins. Also I'm aware, that some of the partial wakelocks are triggered at the same time:
also I include screenshot of Alarms - there are lots of it, but it doesn't show duration:
, and process:
So, my question is: what is consuming the power, what's with "lost" wakelock time, and how to measure it?
I also send screenshot from WakeLock Detector:
and system battery usage:
Please help, because I have 3000 mAh battery in smartphone, I do nearly nothing on it, and my battery is depleted after less than day.

Tbh I don't really see a problem here. I might be wrong, but 5%/hr drain with bt and sync always on and light usage seems completely normal to me.
Only thing I can suggest is to disable amplify for a few days and see if you blocked something you weren't supposed to, but i'm skeptical that you'll find anything wrong. That bt is triggering alarm more than every minute...can you post cpu states bbs page?

Rudjgaard said:
Tbh I don't really see a problem here. I might be wrong, but 5%/hr drain with bt and sync always on and light usage seems completely normal to me.
Only thing I can suggest is to disable amplify for a few days and see if you blocked something you weren't supposed to, but i'm skeptical that you'll find anything wrong. That bt is triggering alarm more than every minute...can you post cpu states bbs page?
Click to expand...
Click to collapse
Well I disabled Amplify and we'll see what it changes.
BT is triggering alarm very often probably because of Smartwatch, but I can't target any specific app for SW2 that could do it.
Also I wonder, what's with other Kernel Wakeloks such as qpnp_fg_memaccess, netmgr_wl, or event1 to event6?
I'm sending today's screenshots from BBS including processor stats:

Are you new to this phone? Are you comparing it to what you had before?
In my experience 4.5% /hr drain with 90min screen on time doesn't really seem like it has anything wrong. After 12hrs (a full day) you have half battery left and that's not bad based on what i'm used to...
Phone was on for 2hrs with screen off but thats probably due to bt and smartwatch sync..I have trouble finding anything wrong here :/ maybe somebody else will have better insight

Rudjgaard said:
Are you new to this phone? Are you comparing it to what you had before?
In my experience 4.5% /hr drain with 90min screen on time doesn't really seem like it has anything wrong. After 12hrs (a full day) you have half battery left and that's not bad based on what i'm used to...
Phone was on for 2hrs with screen off but thats probably due to bt and smartwatch sync..I have trouble finding anything wrong here :/ maybe somebody else will have better insight
Click to expand...
Click to collapse
Well I tried to turn off smartwatch, and "awake on screen off" dropped down to 10%... (from about 20%). So I think it's smartwatch related. Also bluetooth alarm dropped off to 4/h instead of 1 per min. I don't believe, that smartwatch synchronization is consuming so much power (if so, there would be already several threads about it), and I suspect one of smartwatch apps. But how to check which app exectly is draining power? It doesn't show on BBS nor WakeLock Detector. Is there some other app that can track it?
I'm sending list of smartwatch apps installed - maybe one of them looks to you suspicious?:

Related

Wakelocks preventing phone from going to sleep...Help please.

I am currently using Marvel 11, with interactive/cfq. The phone constantly is at 300mhz, and doesn't sleep. I installed Wakelock Detector app and it showed me these Wakelocks. How do I get rid of these? Battery life with my phone is terrible.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The second one is x359!
See if this help: http://forum.xda-developers.com/showpost.php?p=40825012&postcount=9
dcop7 said:
See if this help: http://forum.xda-developers.com/showpost.php?p=40825012&postcount=9
Click to expand...
Click to collapse
Thanks for the reply, but I did everything on the list, except mobile data is on. But that didn't prevent the phone from going to sleep in boype's cm7. Any other ideas?
None of those wakelocks would cause what you said in the first post, the largest is only 31 seconds.
First, make sure your cpu is scaling properly, use cpuspy, that will tell you how much time is spent in each state.
Use a diferent app for changing govenor, i've noticed strange behaviour occasionally. Reboot phone, change govenor, reset stats in cpuspy, use for a few minutes, put phone to sleep for a few minutes, then check stats in cpuspy (you may need to refresh).
Correct behaviour is most time spent at 300, then 1000. 600 and 800 should be next to nothing. Sleep should be for virtually all the time the phone is off.
If problem persists, post logs from betterbatterystats.
jason600 said:
None of those wakelocks would cause what you said in the first post, the largest is only 31 seconds.
First, make sure your cpu is scaling properly, use cpuspy, that will tell you how much time is spent in each state.
Use a diferent app for changing govenor, i've noticed strange behaviour occasionally. Reboot phone, change govenor, reset stats in cpuspy, use for a few minutes, put phone to sleep for a few minutes, then check stats in cpuspy (you may need to refresh).
Correct behaviour is most time spent at 300, then 1000. 600 and 800 should be next to nothing. Sleep should be for virtually all the time the phone is off.
If problem persists, post logs from betterbatterystats.
Click to expand...
Click to collapse
What about the x356? Doesn't matter? Also, I already use cpu spy, which tells me that my phone is mostly on 300 mhz, not on sleep when the screen is off. Lemme try using Another app to change governor...Also, I tried what you said, if the screen is off for 10 mins, 6 mins is on 300 mhz. I currently use Wakelock detector, but I'll try using batterbatterystats.

			
				
The cpu is scaling properly, also sleeping properly. You have no major wakelocks (ignore wakelocks of seconds, worry about wakelocks of hours). The screenshots you posted show only 20 minutes after charging, leave all day then check wakelocks again.
I installed betterbatterystats, restarted phone, plugged my phone in for charging overnight. I didn't know that betterbatterystats resets data when plugged in, but overnight, with no usage, look:
Maybe it's a kernel issue? Should I try changing the kernel? I'm on N00by's kernel.
ykumar00 said:
Maybe it's a kernel issue? Should I try changing the kernel? I'm on N00by's kernel.
Click to expand...
Click to collapse
In betterybatterstats it shows kernel wakelocks and partial wakelocks. In your screenshot you've got about 8 hours of wakelocks, which is serious. Partial wakelocks are apps and are the usual reason for large wakelocks, remove the app thats causing the problem. If its a kernel wakelock, you can try a diferent kernel, though I doubt thats the problem because if noobys kernel was the cause, everyone using it would be getting the same problem.
Froze Google maps, restarted, left idle for ~an hour. Suddenly seems to be fine.
Let's see how it behaves overnight. Thanks guys

Battery issues

I think I have an issue with my battery, or possibly phone!
On my Galaxy S3 LTE I've been experiencing very poor battery life recently and have tried a few suggestions to improve it.
I have kept the screen brightness on -5, I have applied Power Saving Mode, disabled 4G mode (not using currently anyway) and installed a battery saver app (Internet Commander). However none of these seems to have made a difference!
As an example, here is my phone at 5.36 this morning on 71%. That is after I took it off a full charge at 11.30pm when I went to bed. So in Standby it had used 29% in around 6 hours. Then it just got worse through the day...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
At 3.23 I had just 8% battery left!! And that was after a top up charge of about 20% around 11am!! I had listened to half a dozen songs on the phone but thats it!
As you can see I do have data enabled, and just the standard apps installed (WhatsApp, KIK messenger, facebook, BBC Weather, Sky News, etc...). I also only have 1 widget on my home screens which is the BBC Weather app widget.
Could it just be a faulty battery? Would a faulty battery cause this kind of rapid decrease?
zim_zimmer said:
I think I have an issue with my battery, or possibly phone!
On my Galaxy S3 LTE I've been experiencing very poor battery life recently and have tried a few suggestions to improve it.
I have kept the screen brightness on -5, I have applied Power Saving Mode, disabled 4G mode (not using currently anyway) and installed a battery saver app (Internet Commander). However none of these seems to have made a difference!
As an example, here is my phone at 5.36 this morning on 71%. That is after I took it off a full charge at 11.30pm when I went to bed. So in Standby it had used 29% in around 6 hours. Then it just got worse through the day...
At 3.23 I had just 8% battery left!! And that was after a top up charge of about 20% around 11am!! I had listened to half a dozen songs on the phone but thats it!
As you can see I do have data enabled, and just the standard apps installed (WhatsApp, KIK messenger, facebook, BBC Weather, Sky News, etc...). I also only have 1 widget on my home screens which is the BBC Weather app widget.
Could it just be a faulty battery? Would a faulty battery cause this kind of rapid decrease?
Click to expand...
Click to collapse
I blame those battery intensive apps showing in your statusbar. Your battery is being used by Cell Standby, this is your Data connection being used to receive notifications. The fact that you have high Google Services percentages also points to this since it uses your wifi and radio to get your location periodically when set to do so. Start by disabling feature under location settings. Next, have a look at Android Device Manager in Google Settings, disable the location setting if you do not intend to use it. Anything that uses your Data, will cause more drain, especially on higher bands like HSPA.
Again, Whatsapp and Kik will constantly receive push notifications and sync, this also adds to your battery drain.
Thank you, I will try your suggestions
Hi, i had the Problem with huge batterx drain too. The battery didn't last much longer than 8 hours. My phone didn't go to deep sleep mode
I then installed wake lock detector and One Power Guard. In One Power Guard i aktivatet AI mode and now it looks like this:
Hope this helps
Gesendet von meinem GT-I9305 mit Tapatalk

[Q] Why my battery drains faster every update?

Hello,
Something that I've been noticing...
Every time when Sony launches a new update my phone's battery is draining faster.
I'm not a hardcore user, I only use wi-fi or 3g, barely use 4g because my city doesn't have the greatest coverage, I don't need to use GPS and all other functionalities... Sometimes I use Whatsapp, Instagram and Snapchat and that is all.
Today for example I only used Whatsapp through their website, didn't use my phone that much and look at these stats:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
In a couple of hours I lost almost 40% of battery
I'm used to my phone lasting 2-3 days before needing to charge and now every day I have to do it.
Can someone explain to me, or help fix this issue?
Thank you all
PS.: I didn't root my phone or did anything with it yet....
Not sure since I use cyanogenmod but those stats just tell that you have the screen on a lot. For advanced battery usage diagnostics you would need root but you could try Wakelock Detector: https://play.google.com/store/apps/details?id=com.uzumapps.wakelockdetector&hl=de
MyPictures said:
Not sure since I use cyanogenmod but those stats just tell that you have the screen on a lot. For advanced battery usage diagnostics you would need root but you could try Wakelock Detector: https://play.google.com/store/apps/details?id=com.uzumapps.wakelockdetector&hl=de
Click to expand...
Click to collapse
But that is what I'm talking about, each update my screen and android seems to use more battery.
I did nothing different with him from when I first got the phone and updated it to Lollipop.
The first update was great, then the others started to make my phone use more battery...
Are all your apps up to date? The second to last Snapchat update caused wakelocks and the latest should fix that.
Asife from the wakelock detector (which is a great app) you could also try Gsam Batterymonitor.
Cazteclo said:
Are all your apps up to date? The second to last Snapchat update caused wakelocks and the latest should fix that.
Asife from the wakelock detector (which is a great app) you could also try Gsam Batterymonitor.
Click to expand...
Click to collapse
Yes, I just updated Snapchat.
I'm gonna try using Gsam since Wakelock only works with rooted devices.
Thanks for helping me guys
renatop said:
Yes, I just updated Snapchat.
I'm gonna try using Gsam since Wakelock only works with rooted devices.
Thanks for helping me guys
Click to expand...
Click to collapse
There is also an app called Deep Sleep Info and that tells you, over time, how much sleep your phone is getting. This app does not require root and does not consume any cpu or battery power.
Before 5.1.1 I was getting around 90% when the screen was off but since 5.1.1 the phone is only sleeping around 60% of the time. I think there is more to the problem than just one rouge app because Gsam is reporting sensors.qcom and mediaserver as using more resources in the latest lollipop.
Did you do a factory reset after the update?
Before doing that, my phone also has poor battery life, but after did a factory reset, my battery life turns a lot better!
You might consider give it a try!

[Question/Discussion] Severe battery drain in PIE stock May and June

I bought this phone 2 weeks ago, and soon rooted it and installed May Update via Fastboot.
While I'm generally happy with this phone, there's serious battery drain issue due to a particular wakelock called IPCRTR_lpass_rx. While there are others like RILJ etc. they are still not that severe.
I've tried Wifi on + data off, both on, both off, Only Sim 1 activated, both sims activated.
After this, I even put my mobile on flight mode for a night and there was around 20% drain overnight. In my previous mobile Redmi 3S, there would hardly be 1% drain over night on flight mode and 3-4% if Wifi was on.
I was tracking these using BetterBatteryStats, however, while tracing the root cause, i even uninstalled BBS and used the system in-built bug report and analyzed it on battery historian to track the wakelocks and all.
Then came June update. I clean flashed through the unofficial fastboot, formatted data partition as well so as to leave no stone unturned. Again the same situation. A lot of battery drain.
Here are some reports -
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Please see the attached graph.
1. At around 6.30 PM (UTC) (graph times are in UTC) (12 AM IST) I kept my phone on flight mode at 50% battery and slept for 8 hours.
2. I woke up around 3.30 AM UTC (in the graph) (i.e, 9 AM IST) and checked my battery percentage. It was down to 30% from 50%.
3. Checked the main cause of wakeups, not much in Userspace wakelocks but massive amounts of kernel wakelocks from IPCRTR_lpass_rx. For the duration of this graph, there were over a million (2.3 x 10^6) wakelocks from this service, causing wakelocks every 2-3 seconds.
4. Even though phone went into full doze after some time, this wakelock continued.
Any suggestions on how to go about solving this?
Running June update, Rooted + cam2api enabled using Magisk patched boot img
Its been a month since i moved to a custom ROM, currently on Havoc OS 2.7
The severety of the bug is lesser than stock ROM, however, still quite random and causes battery drain and keeps CPU awake!
Check the wake sources, IPCRTR_lpass_rx is the number one wakelock with 10^6 wakelocks!! Thats way too huge in my opinion, and keeps my CPU awake.
At least i can prevent the wakelock to a large extent by turning off location, wifi (or both) in Havoc. It also doesn't occur during flight mode, or if it does sometimes, a restart usually solves the problem for me.
Ideally, even if i keep wifi on, battery should not drain more than 4-5% overnight (which was the case in all of my previous phones, and in my friends' phones other than Mi A2).
This is december now. And so far, the only problem i have with this device is the poor battery, intensified with software problems, poor modem and LPASS!!!
Its kind of frustrating for me.
Please see the screenshots and the attached bugreport.
rahulmanpur said:
This is december now. And so far, the only problem i have with this device is the poor battery, intensified with software problems, poor modem and LPASS!!!
Its kind of frustrating for me.
Please see the screenshots and the attached bugreport.
Click to expand...
Click to collapse
Well, i'm very satisfied with battery on this device. It could be better, but it's only 3000mah.
This ss was taken yesterday.
rahulmanpur said:
At least i can prevent the wakelock to a large extent by turning off location, wifi (or both) in Havoc. It also doesn't occur during flight mode, or if it does sometimes, a restart usually solves the problem for me.
Ideally, even if i keep wifi on, battery should not drain more than 4-5% overnight (which was the case in all of my previous phones, and in my friends' phones other than Mi A2).
Click to expand...
Click to collapse
Could you find what this Lpass wakelock mean? It occured 3720k times in 5 hours for me.
Unreal!

Question High battery usage? Even when I'm sleeping?

The device is new, has only 2 weeks of use and I've updated it to MiUi 12.5.6 (RKLEUXM). My use is very moderate, some videos, social network just for conversations and only wi-fi connection. After the update, I noticed high battery usage even when I'm sleeping with all connections turned off. Obviously there is some battery thief, but it only appears in the graph as "smartphone services", this is not normal. Any idea?
I can even feel the phone a little warm around the cameras when I'm using it for basic stuff.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Try battery guru's app...
It's seem a 12.5 MIUI problem for all Xiaomi note 10 series
Something(s) are running in the background.
Try putting into Safe mode at night to rule out 3rd party apps.
Track down the culprits and deal with each on a case by case basis.
I have this device since August 27th, after setting it up, I started optimizing it, restricted background use for a lot of apps, well, everything that could be disabled or restricted, I only gave free pass to apps I consider important, but, the reults were really bad, 17% of overnight drain! Long story short, the optimization must be done very carefully, trying to stop all kind of things might prove negative, by trial and error, I now get a good battery life, now it barely consumes 1% in 8-9 hrs idling at night, aod off, wifi on, gps on, so, try to optimize your device carefully
winoles said:
I have this device since August 27th, after setting it up, I started optimizing it, restricted background use for a lot of apps, well, everything that could be disabled or restricted, I only gave free pass to apps I consider important, but, the reults were really bad, 17% of overnight drain! Long story short, the optimization must be done very carefully, trying to stop all kind of things might prove negative, by trial and error, I now get a good battery life, now it barely consumes 1% in 8-9 hrs idling at night, aod off, wifi on, gps on, so, try to optimize your device carefully
Click to expand...
Click to collapse
Hi,
Did you single out what was the culrpit. I have disabled every non essential app, tried this solution: https://forum.xda-developers.com/t/improving-battery-life-on-miui-12.4139913/
But nothing helps. It only shows that android system is drawing power.
I will be glad if you could point what you made to fix your phone
If there is any Firewall that can log with the newer "secure" OS's you can use that to help pinpoint the rogue apk(s).
With Pie I use Karma Firewall but it's logging feature doesn't starting with 10.
After doing everything I could think of, the AOD seems to be the culprit, even thoug I really like it, when disabling it, overnight battery consumption lowered to 1% in a 7 hrs period
winoles said:
After doing everything I could think of, the AOD seems to be the culprit, even thoug I really like it, when disabling it, overnight battery consumption lowered to 1% in a 7 hrs period
Click to expand...
Click to collapse
Thank you for the fast reply. I already had it disabled, but with no positive result.
Thank you, nonetheless.
winoles said:
After doing everything I could think of, the AOD seems to be the culprit, even thoug I really like it, when disabling it, overnight battery consumption lowered to 1% in a 7 hrs period
Click to expand...
Click to collapse
Is tap on an option?
No, to achieve this low bat comsuption, I disabled miui optimizations, then, the option for aod is on or off, no more settings, I really like the aod, but the drain while idling drives me nuts... I painfully miss my galaxy note 10+.....
Meh, I hear that. It's to the point I got a second new 10+ while they're still available. They are the last of the stock devices running on Q.
I won't touch 11 or 12. Funny thing is it doesn't run like an outdated dinosaur.
Been a real bad year for Android...
perhaps related?

Categories

Resources