LineageOS is here!!!
The title is enough, I think,
I haven't tested it yet but.... the first LineageOS ROM for our beloved Photon appeared !
https://download.lineageos.org/xt897
I've been 2 days using this rom on my xt926 so far is good and fast
Thanks, do we have to 'clean-install' this?
clean install was safe.
You'll get a broken notification status bar eventually and you'll need this:
https://forum.xda-developers.com/showpost.php?p=67444950&postcount=721
I spent half-a-day
palmwangja said:
clean install was safe.
You'll get a broken notification status bar eventually and you'll need this:
https://forum.xda-developers.com/showpost.php?p=67444950&postcount=721
I spent half-a-day
Click to expand...
Click to collapse
gapps package which removes CyanogenSetupWizard/LineageSetupWizard is broken and shouldn't be used.
There's no such issue with opengapps nano package which I use.
you can avoid wiping if you "hack" a bit.
I had only to defeat the check (adding the key to htmlviewer in the package.xml (or something like that)) and do a "pm grant com.android.systemui android.permission.READ_CONTACTS" via adb (to enable the logon screen).
Additionally, I did something like
for i in /data/app/*; do
pm install -r $i/base.apk
done
(could have small errors, is two weaks sine then ) to fix the other permissions problem (most with network status access)
It works apparently
Upgrade done almost flawlessly from LL resurrection remix to Lineage OS 13
Few apps had permission problems, i fixed it just restoring the app (app only, no data) using titanium backup.
Anyway I went back to RR given I like it more, and I can't see any real improvement on MM over LL
I am experiencing huge battery drain. Battery in idle last for about 8 hours. Even when phone was in airplane mode during night it fall from 100% to 75% during about 8 hours. Previously with Cyanogen I've lost maybe 3% during the night tops.
Battery stats does not shows any apps that goes wild. I've installed GSam Battery Monitor and it shows that battery is used mainly by kernel (~40%) and LineageOS (20-30%), but it was running only about half an hour. I will check tomorrow morning after airplain mode night, maybe something came out.
sc0ty said:
I am experiencing huge battery drain. Battery in idle last for about 8 hours. Even when phone was in airplane mode during night it fall from 100% to 75% during about 8 hours. Previously with Cyanogen I've lost maybe 3% during the night tops.
Battery stats does not shows any apps that goes wild. I've installed GSam Battery Monitor and it shows that battery is used mainly by kernel (~40%) and LineageOS (20-30%), but it was running only about half an hour. I will check tomorrow morning after airplain mode night, maybe something came out.
Click to expand...
Click to collapse
Have you checked if the CPU is entering deep sleep? My phone usually manages > 80% time in deep sleep. Of course that would depend on usage. Previous ROMs (nearly all) virtually never entered deep sleep. This one wallows in it.
If I leave it over night (clearing stats at the beginning) it gets very close to 100% I personally use CPU Spy, but there are many apps that would show you if you dont already have one.
I've installed CPU Spy, will see the stats after the night. I've also installed Greenify and I think battery consumption is better now, so I suspect one of my apps was preventing my phone from going to deep sleep.
According to CPU Spy my phone never goes to deep sleep when in airplane mode. I've checked this also with clean rom installed, without gapps or any other apps, just CPU Spy. I'm gonna open ticket in LineageOS JIRA.
sc0ty said:
According to CPU Spy my phone never goes to deep sleep when in airplane mode.
Click to expand...
Click to collapse
so, when its not in airplane mode, it does go to sleep?
I just tested mine, and even with a ton of apps, Xposed, Viper, Magisk etc etc it still went to sleep quickly. This ROM for me wallows in deep sleep. Previous ROMs hardly visited deep sleep if at all.
DiamondJohn said:
so, when its not in airplane mode, it does go to sleep?
Click to expand...
Click to collapse
Yes, the problem with battery drain when not in airplane mode seams to be fixed. It goes to deep sleep ~80% of the time when idle. I'm not sure what was the fix since there was update to LineageOS in between, and I was reflashing two times in the meantime, cleaning caches and restoring backup from recovery, so hard to say.
sc0ty said:
Yes, the problem with battery drain when not in airplane mode seams to be fixed. It goes to deep sleep ~80% of the time when idle. I'm not sure what was the fix since there was update to LineageOS in between, and I was reflashing two times in the meantime, cleaning caches and restoring backup from recovery, so hard to say.
Click to expand...
Click to collapse
Sorry, reading my post I guess was not clear. My phone DOES go to deep sleep when in airplane mode. XT905
============ edit
oh, and almost forgot. I am using Pico Gapps, and turn off auto updates and notifications on play store updates.
Hello, it looks like I'm experiencing the same problem. Battery drain on my photo Q running the last lineage os 14.1 (android 7.1.2).
When on airplane mode the battery drain disappears (even if I can't consider this phone a battery beast).
It seems curious to me, I was imagining that in all these months the problem was corrected.
Do you guys have a suggestion? Many thanks in advance
The thing is that my phone seems to suffer from battery draining (when not on airplane mode) even when running sailfish OS (flashed over cyanogenmod 11).
Could then be possible that it has some kind of hardware problem connected to the gsm/radio part? Except for the battery consumption It works fine tough.
Related
***********************
**** I have been performing controlled experiments to the best of my ability. See below for results. ****
Experiment #1: Isolate if this is due to Wifi
Methodology (one test per night)
1. Keep wifi off. Perform a set usage pattern, then keep phone on sleep all night.
2. Perform the set usage pattern using wifi, then keep phone on sleep all night with wifi turned on.
3. Perform the set usage pattern using wifi, then keep phone on sleep all night with wifi turned off.
Results:
http://forum.xda-developers.com/showpost.php?p=50548879&postcount=27
Experiment #2: Isolate if this is due to GPS/Location Services (Ongoing)
Methodology (one test per night)
1. Keep GPS off. Perform a set usage pattern, then keep phone on sleep all night. [This is identical to the WiFi experiment, so there is no need to replicate this]
2. Perform the set usage pattern using WIFI, then keep phone on sleep all night with GPS turned on.
3. Perform the set usage pattern using GPS, then keep phone on sleep all night with wifi turned off.
Results:
http://forum.xda-developers.com/showpost.php?p=50685378&postcount=69
***********************
So, I've been battling idle drain battery problems for a while now . I was unable to make much progress because I did not have visibility into partial wakelocks on the system . So I did what any inquisitive person would, I rooted my phone. Bye bye warranty.
Now that I have root, I am able to see the partial wakelocks in better battery stats. To my partial surprise , I do not see any substantial partial wakelocks that would explain the significant battery drain at night. I have good cellular signal, and wifi signal where the phone is placed.
Any clues?
Almost 25 percent in 9 hours. Also notice the lack of activity between successive awake blips, and the constant battery drain that occurs between them. Before I even got root and was able to look at the partial wakelocks, I had already suspected that there were no wakelocks going on but yet the battery was draining.
{
"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"
}
Below are screenshots from the stock battery app showing the top battery drainers and the details of the major ones.
By the way, I would attribute approximately 6 percent of the battery drain due to the screens. I have quite a bit of data that suggests at the brightness levels I was using the screen for those 30 minutes, the drain rate should have been around 12 percent per hour. That still leaves 18 to 20 percent of battery to be accounted for. According to better battery stats, the phone was only awake for around 30 minutes total when the screen was off. And looking at the CPU Lodge, it's clear that those 30 minutes or so were spent in the lowest frequency mode , and that the phone was in deep sleep at all other times.
Attached are the better battery stats logs that shows the partial wakelocks as well. I don't know why the CPU's states are not included in the file but I can assure you I took a look look at it and the 30 or so minutes of awake time were perfectly captured by the 300mhz state.
http://pastebin.com/j685pa5q
Sent from my XT1034 using Tapatalk
I turned airplane mode on, and left location services on. Battery drain was 2.8%/hr (measured over a 5% battery drain interval) with the phone only being awake for 7min 28sec when the screen was off. There were around 5min of NLP wakelocks, and some other miscelaneous ones. I don't think that explains the battery drain fully.
Then, I turned off location services, and the battery drain has been 1.7%/hr (measured over an 8% battery drain interval) with a total awake time of 5 mins, and of that only 1 min of awake time when the screen was off. Very few to no wakelocks.
What is wrong? Why is the battery draining at ~2%/hr with airplane mode on, location services off, and the phone being in deep sleep pretty much the whole time!?
Hey I'm trying to find if there of a pattern with the battery drain and the battery voltage (mv) .I slightly have the felling the battery is a bit wonky . Could you check the battery voltage while charging just before 100% and the voltage when it has fully charged ? .. Try the code *#*#4636#*#*
I feel the my peak battery voltage has dropped significantly over the last 2 weeks.
Sent from my XT1033 using Tapatalk
I have the same problem with mine, no clue what the problem is, I turned off location services and I dont use 3g at all, only wifi while at home or other places sometimes, but the drain persists, still dont know what to do
Sent from my Moto G :3
Try a Cache wipe in recovery - http://forum.xda-developers.com/showthread.php?t=2634361
neu - smurph said:
Try a Cache wipe in recovery - http://forum.xda-developers.com/showthread.php?t=2634361
Click to expand...
Click to collapse
I don't think a cache wipe is the solution. For example, see the updated battery settings screenshot below. The flat line at the end is the result of just rebooting the device (no cache wipe). The battery is no longer draining constantly, even though the same services are activated.
I'm the OP of the thread that I think first reported this issue. Note that I found that the drain is noticeable in airplane mode as you expect there to be almost zero drain, however it still happens when not in airplane mode as well, you just notice it less as the device is doing other stuff which all adds up to battery drain.
I think there is a driver bug, most likely a WiFi driver bug or possibly GPS driver bug. For example maybe GPS is somehow constantly active but the bug manifests itself in such a way that this is not reported to the OS itself which is why you do not see it active in the battery screen .
I had the exact same issue as reported above, no wakelocks over and above the normal amount but the drain was 3% hr or so. A reboot fixed it but it would reoccur when i connected to another WiFi network.
A factory reset fixed it completely until a few weeks ago when I was on the road and used GPS. That night I had the battery drain issue again.
So whether its WiFi or GPS that's the cause I don't know, and why, for me, did it stay fixed for so long. I also can't remember if I had GPS switched on when I first had the issue before the factory reset so makes it harder for me to determine the cause.
The above was all on 4.3. I've now upgraded to 4.4.2.
I think the only way to debug will to be to pull off all the various logs from android, you may even need to turn on various debugging/logs from the OS to capture more logs. I'm pretty sure you wont diagnose from just looking at wakelocks and battery screens.
If you can recreate this problem, and sounds like some of you have it a lot, then you are in a good position to get the logs.
BTW does anyone use the BBC weather app, I noticed this caused a LOT of NLP wakelocks so don't think its related but I did notice on 4.4.2 that it drained battery fast so I uninstalled. There is a thread in xda that I started about it.
A poster above says to clear cache, this is normally pointless as /cache will usually contain nothing except a few empty folders and a couple of log files. Also clearing cache means a reboot which temporarily fixes the issue anyway.
scott_doyland said:
I'm the OP of the thread that I think first reported this issue. Note that I found that the drain is noticeable in airplane mode as you expect there to be almost zero drain, however it still happens when not in airplane mode as well, you just notice it less as the device is doing other stuff which all adds up to battery drain.
I think there is a driver bug, most likely a WiFi driver bug or possibly GPS driver bug. For example maybe GPS is somehow constantly active but the bug manifests itself in such a way that this is not reported to the OS itself which is why you do not see it active in the battery screen .
I had the exact same issue as reported above, no wakelocks over and above the normal amount but the drain was 3% hr or so. A reboot fixed it but it would reoccur when i connected to another WiFi network.
A factory reset fixed it completely until a few weeks ago when I was on the road and used GPS. That night I had the battery drain issue again.
So whether its WiFi or GPS that's the cause I don't know, and why, for me, did it stay fixed for so long. I also can't remember if I had GPS switched on when I first had the issue before the factory reset so makes it harder for me to determine the cause.
The above was all on 4.3. I've now upgraded to 4.4.2.
I think the only way to debug will to be to pull off all the various logs from android, you may even need to turn on various debugging/logs from the OS to capture more logs. I'm pretty sure you wont diagnose from just looking at wakelocks and battery screens.
If you can recreate this problem, and sounds like some of you have it a lot, then you are in a good position to get the logs.
BTW does anyone use the BBC weather app, I noticed this caused a LOT of NLP wakelocks so don't think its related but I did notice on 4.4.2 that it drained battery fast so I uninstalled. There is a thread in xda that I started about it.
A poster above says to clear cache, this is normally pointless as /cache will usually contain nothing except a few empty folders and a couple of log files. Also clearing cache means a reboot which temporarily fixes the issue anyway.
Click to expand...
Click to collapse
Thanks you very much for your reply Scott.
As you can see in my troubleshooting, I eventually turned location services and wifi off, but still measured a considerable battery drain. Do you suppose that once you use wifi, or location services after bootup, the effect may remain afterward even if they are switched off? If so, do you agree that if I turn off location services and wifi, then reboot so that the phone boots up with neither - that should be able to verify your hypothesis?
I'll go ahead and try that for a few days and see how it goes. Will report back.
Others have mentioned something to do with the cellular radio power management, and how rebooting and clearing the cache helps with that (apparently this came from a motorola rep...). I've included a data point in this thread where I merely rebooted without a cache clear and the problem went away. So, perhaps the clearing of the cache really does nothing at all ...
If this is a software issue, why aren't all phone with the same software version effected? How are people getting 6-7 days of standby time consistently? Maybe they never use wifi or location services? Well, I intend to test the wifi/gps hypothesis soon .
google+, google now etc caused me a massive battery drain until i greenified them. now i get a solid 2 days and about ~6 hours screen on time.
twist3d0n3 said:
google+, google now etc caused me a massive battery drain until i greenified them. now i get a solid 2 days and about ~6 hours screen on time.
Click to expand...
Click to collapse
Do you need the donate version to hibernate them?
twist3d0n3 said:
google+, google now etc caused me a massive battery drain until i greenified them. now i get a solid 2 days and about ~6 hours screen on time.
Click to expand...
Click to collapse
So that´s exactly what I did, too. Turns out my Moto G is a battery monster, 2 days with average screen time without any problems.
tictac0566 said:
So that´s exactly what I did, too. Turns out my Moto G is a battery monster, 2 days with average screen time without any problems.
Click to expand...
Click to collapse
This thread is specifically about battery drain caused by something unknown, not an app or wakelock, I think we should try to keep it clean by not cluttering with app related issues as that can then be confusing for people who are reading through the thread. Thanks.
---------- Post added at 11:40 AM ---------- Previous post was at 11:16 AM ----------
if0rg0t said:
Thanks you very much for your reply Scott.
As you can see in my troubleshooting, I eventually turned location services and wifi off, but still measured a considerable battery drain. Do you suppose that once you use wifi, or location services after bootup, the effect may remain afterward even if they are switched off? If so, do you agree that if I turn off location services and wifi, then reboot so that the phone boots up with neither - that should be able to verify your hypothesis?
I'll go ahead and try that for a few days and see how it goes. Will report back.
Others have mentioned something to do with the cellular radio power management, and how rebooting and clearing the cache helps with that (apparently this came from a motorola rep...). I've included a data point in this thread where I merely rebooted without a cache clear and the problem went away. So, perhaps the clearing of the cache really does nothing at all ...
If this is a software issue, why aren't all phone with the same software version effected? How are people getting 6-7 days of standby time consistently? Maybe they never use wifi or location services? Well, I intend to test the wifi/gps hypothesis soon .
Click to expand...
Click to collapse
Well I cant answer all your questions but I will tell you about my test last night. I hardly use GPS at all (and my battery is normal) and last time I did use GPS I had the battery drain as per my post above, so last night I:
1. Drove 15mins from my house.
2. Switched on GPS (high accuracy).
3. Started google maps and drove for 2mins with GPS in use.
4. Shutdown maps app and drove home (GPS still on - ie high accuracy).
5. At home used phone for bit of XDA on wifi for a bit.
6. Switched on airplane mode but location service still on (note airplane mode does NOT switch off GPS), woke up at 02:00AM and noted I had the annoying battery drain - arghhh.
7. Switched off GPS - woke up 2 hrs later and drain still happening.
8. Switch off location altogether - woke up in morning and drain still happening.
9. Rebooted phone and now battery back to normal, Im back on wifi/mobile location (battery saving).
So to me it looks like its maybe related to GPS in some way but whether its purely GPS or a GPS/wigi/location combo I have no idea.
However I have in the past switced on GPS in my house just to play about and havent has the drain, so is it due to a larger change of location when GPS is on (ie 15mins drive from my house) that causes it to go bad.
So annoying, I took a CWM backup before I booted up my phone so I will pull that to my laptop and see if there are any obvious error logs to look at but I doubt it.
Im still leaning towards a driver issue or maybe some component, eg GPS chip, staying alive/awake even when not in use but m sure others have reported they have it with location/GPS off completely. Maybe its even a few different problems.
You said not everyone has the error, but I bet quite a few non-xda people do but do not realise. A lot of people will just charge their phones overnight so wont even realise, during the day they will think ~2% drop per hour is normal. Even if they do notice the drop in airplane mode they probably think thats normal and ignore it.
I think getting Motorola to accept there is an error is going to be almost impossible especially if its hardware related. Also as we have unlocked bootloader I doubt they will even accept a call once they know that.
I think it would be interesting to get a list of phones that are affected, ie model, serial no, location brought, ROM etc. maybe its a certain batch of phones, if we can determine that it would be some help, maybe we could buy one that isnt affected
So to start it off my phone is
XT1032 UK retail brought from Basildon, Essex, UK from phones4u.
Problem happens on 4.3 stock and 4.4.2 stock.
Baseband version is MSM8626BP_1032.340.63.00R.
Im tempted to flash GPE and/or new basenband radio but I bet the same thing happens.
I may see if there is a new GPS driver but no idea how to flash it etc.
Such a shame as this phone is excellent for me otherwise.
Just seen this thread as well, it blames GPS
http://forum.xda-developers.com/showthread.php?t=2607641
if0rg0t said:
Do you need the donate version to hibernate them?
Click to expand...
Click to collapse
if they're system apps, yeah. totally worth it tho cos you can do maps/fb etc too, also you can allow apps that get push messages to still give you notifications whilst greenified.
e: just to note, i have gps (high accuracy) enabled constantly and still manage 2 days.
twist3d0n3 said:
if they're system apps, yeah. totally worth it tho cos you can do maps/fb etc too, also you can allow apps that get push messages to still give you notifications whilst greenified.
e: just to note, i have gps (high accuracy) enabled constantly and still manage 2 days.
Click to expand...
Click to collapse
Maybe you can help test if you don't mind.
1. Use Google maps with high accuracy when you go out for 5mins or so.
2. Once home use phone as normal on WiFi for a bit, just 10mins will be enough.
3. Take note of battery percent.
4. Switch on airplane mode for 2hrs - DO NOT USE PHONE during this time.
5. After 2hrs take note of battery percent.
6. Report the battery percents recorded in this thread.
If you can do this we would be grateful.
Let us know your phone model, where purchased, ROM etc.
Thanks.
Hi,
Following this MotoG thread for some time I have to admit that my MotoG also has the same issue from time to time.
This is the reason now that I joined XDA because this issue is a real pain.
Having my MotoG for three weeks now I had to restart it four or five times to get rid of the excessive battery drain.
My MotoG (XT1032) is bought in the Netherlands, unlocked, rooted, CWM and stock ROM.
I did remove some Motorola apps and disabled some.
Because of the last remarks that it seems to be GPS related, I want to let you know that it also happened to me without using the GPS.
Yesterday it happened at school, at first the drain was not present but suddenly it started.
In the between the two situation I only checked my mail through Wifi and checked some news.
My MotoG has Wifi always on, bluetooth off, GPS off.
There must be something more than just GPS which causes this drain.
Hopefully we can find the root cause soon.
Mickeyvdb said:
Hi,
Following this MotoG thread for some time I have to admit that my MotoG also has the same issue from time to time.
This is the reason now that I joined XDA because this issue is a real pain.
Having my MotoG for three weeks now I had to restart it four or five times to get rid of the excessive battery drain.
My MotoG (XT1032) is bought in the Netherlands, unlocked, rooted, CWM and stock ROM.
I did remove some Motorola apps and disabled some.
Because of the last remarks that it seems to be GPS related, I want to let you know that it also happened to me without using the GPS.
Yesterday it happened at school, at first the drain was not present but suddenly it started.
In the between the two situation I only checked my mail through Wifi and checked some news.
My MotoG has Wifi always on, bluetooth off, GPS off.
There must be something more than just GPS which causes this drain.
Hopefully we can find the root cause soon.
Click to expand...
Click to collapse
Thanks for your reply, have you confirmed this drain happens when in airplane mode as well and that no wakelocks occur, no unusual statistics in battery screen etc. I ask as some people say they have the issue but then say they have greenified an app etc to stop it which basically means they dont have the issue at all. Im not saying I dont believe you, far from it, I just want to confirm its exactly the same issue as a few of us are seeing. Next time can you NOT reboot but leave phone in airplane mode for a few hours and DONT use it at all, then see if battery has gone down by 2-3% per hour.
Thanks.
Have not used airplane mode to check it, but will sure do this when it happens next time.
What I observed in battery stats was a high percentage of android-os.
I have not used greenify so far.
Sent from my GT-P3110 using xda app-developers app
Mickeyvdb said:
Have not used airplane mode to check it, but will sure do this when it happens next time.
What I observed in battery stats was a high percentage of android-os.
I have not used greenify so far.
Sent from my GT-P3110 using xda app-developers app
Click to expand...
Click to collapse
Doesn't sound like the same issue if android OS shows high in battery stats. That sounds more like a wakelock issue of some kind which still means you may get drain in airplane mode but for a different reason.
This thread is specifically for the problem of ALL battery stats looking normal, so android OS doesn't show up as high.
I think your best get is to root and install 'wakelock detector' app and you will probably see some high wakelock for android OS.
Thanks for your post on the Motorola forums Scott. It was well written, and to the point. I hope this issue gets the attention it deserves. I'll be reporting in the next few days with my experiments.
scott_doyland said:
Doesn't sound like the same issue if android OS shows high in battery stats. That sounds more like a wakelock issue of some kind which still means you may get drain in airplane mode but for a different reason.
This thread is specifically for the problem of ALL battery stats looking normal, so android OS doesn't show up as high.
I think your best get is to root and install 'wakelock detector' app and you will probably see some high wakelock for android OS.
Click to expand...
Click to collapse
Sorry to post this wrong condition.
I had the impression that I was suffering the same problem.
Will have a look with a 'wakelock detector' to see if I can tackle the high android-os consumption since I rooted my device already.
Although the issue seems different I will have a good look this morning since I have to use the GPS.
Will keep you informed if I notice something weird.
Hello all, I recently noticed that my OPO was not going into deep sleep. So I installed wakelock detector and to my surprise, nothing out of the ordinary was going on. I proceeded to wipe the dalvik and cache, still nothing, won't deep sleep. Last night I flashed franco kernel in the hopes that it would solve the problem, guess what, nothing, still won't deep sleep. The phone just drops to 300mhz and stays there for the minimum frequency.
I'm running liquid smooth 3.2 (4.4.4) with the recently flashed franco kernel.
Do you guys have any other suggestions on what to do?, I was just about to flash an entirely new rom and keep it barebones till the end of the week when cm 12s and oxygen os are released.
I'm experiencing exactly the same issue..
amd-dude said:
Hello all, I recently noticed that my OPO was not going into deep sleep. So I installed wakelock detector and to my surprise, nothing out of the ordinary was going on. I proceeded to wipe the dalvik and cache, still nothing, won't deep sleep. Last night I flashed franco kernel in the hopes that it would solve the problem, guess what, nothing, still won't deep sleep. The phone just drops to 300mhz and stays there for the minimum frequency.
I'm running liquid smooth 3.2 (4.4.4) with the recently flashed franco kernel.
Do you guys have any other suggestions on what to do?, I was just about to flash an entirely new rom and keep it barebones till the end of the week when cm 12s and oxygen os are released.
Click to expand...
Click to collapse
Maybe the PlayServices are the Problem somewhere here is a guid to prevent them to keep your phone awake
Actually play services did not come up in the battery stats to indicate it was indeed active. I ran through anything, there is nothing causing unnecessary wakelocks. So that's why I'm confused.
amd-dude said:
Actually play services did not come up in the battery stats to indicate it was indeed active. I ran through anything, there is nothing causing unnecessary wakelocks. So that's why I'm confused.
Click to expand...
Click to collapse
Play Services doesn't always show up as Play Services in the battery stats page in your settings menu, it quite often will show up as Android OS.
Transmitted via Bacon
timmaaa said:
Play Services doesn't always show up as Play Services in the battery stats page in your settings menu, it quite often will show up as Android OS.
Transmitted via Bacon
Click to expand...
Click to collapse
Not even that, as I said there was nothing android related nor was there any app in wakelock detector that was showing signs of a wakelock. For good measure I did follow the many guides on stopping google services etc. and none of them worked. Phone still won't go into deep sleep. Strangely enough it was wasn't affecting my battery life that much, was still getting about 6hrs on screen time with 14% battery left.
amd-dude said:
Not even that, as I said there was nothing android related nor was there any app in wakelock detector that was showing signs of a wakelock. For good measure I did follow the many guides on stopping google services etc. and none of them worked. Phone still won't go into deep sleep. Strangely enough it was wasn't affecting my battery life that much, was still getting about 6hrs on screen time with 14% battery left.
Click to expand...
Click to collapse
Sounds to me like your battery stats might just be screwy.
Transmitted via Bacon
So now I'm wondering, as well. What would an example of good/excellent deep sleep look like? % drop over time?
My battery stats show cell standby at 1%, phone idle at 1%, and over over eight hours go from 100% to about 86%. Would that drain be considered deep sleep, or good deep sleep?
I had a similar issue and able troubleshoot successfully.
Device:
- POCO F1
- MIUI 12.0.3.0, Android 10
- Magisk 21
What tried but didn't help
- There is no wake-locks active
- Tried Battery Saver and Ultra Battery Saver
- Tried Airplane mode
- Tried rebooting
- There is no significant battery drain (only 1.6% per hour)
- Tried disabling Proximity sensor
- Tried wiping dalvik-cache
I have followed the guide by Intel at https://software.intel.com/content/...-no-sleep-issues-in-android-applications.html
As I mentioned earlier, there is no active wakelock, that is why the troubleshooting was much difficult.
I have digged into `/sys/kernel/debug/wakeup_sources` and sorted processes based on the column `prevent_suspend_time`. The process `qtidataservice` was on the top. Not sure what it is, but it's probably from Qualcomm and running under the `radio` user.
The `strace` was showing nothing. I have simply killed that process. It's eventually re-created with a new PID. Interestingly the device began to go Deep-sleep while in idle.
Sup XDA!
When I updated to android 5.1.1 (cm12.1, rooted) android system started to drain my battery, even more than my screen would. This wasn't an issue back on 5.0 and I wonder what the problem is, and I thought you guys could be able to help me out as this forum has helped me before, thx for that!
Ive attached 3 screens, first is from battery monitor and the other 2 are screens of my battery 'page' in settings. Let me know if you need any additional information and or screenshots and I'll be happy to provide.
Thanks in advance
Disable all of the google services you feel that take RAM (and so, battery) using the Disable Service app. Don't disable GCM Service. Don't disable FusedLocation Service if you use GPS. The only google service running on my phone is GCM. Disable location services, key chain, pppreferences, CM logger, dev tools, etc. just anything that you find isn't important and takes battery! Use apps like Greenify, Disable Service and Titanium backup to greenify, disable and freeze the apps/services.
TheHighLife said:
Sup XDA!
When I updated to android 5.1.1 (cm12.1, rooted) android system started to drain my battery, even more than my screen would. This wasn't an issue back on 5.0 and I wonder what the problem is, and I thought you guys could be able to help me out as this forum has helped me before, thx for that!
Ive attached 3 screens, first is from battery monitor and the other 2 are screens of my battery 'page' in settings. Let me know if you need any additional information and or screenshots and I'll be happy to provide.
Thanks in advance
Click to expand...
Click to collapse
This seems to be a common issue.... the fix involves downgrading the modem. However downgrading the modem requires downgrading your TWRP Recovery... which you cannot do if you are running CM12.1, the downgrade will fail every time no matter which "tricks" you use.
lotherius said:
This seems to be a common issue.... the fix involves downgrading the modem. However downgrading the modem requires downgrading your TWRP Recovery... which you cannot do if you are running CM12.1, the downgrade will fail every time no matter which "tricks" you use.
Click to expand...
Click to collapse
You don't need to downgrade TWRP to flash a modem. You can very easily flash a modem without TWRP even installed; fastboot. It isn't even certain that the modem is causing this drain either.
Working on the likely assumption that it is the same problem, the modem is indeed not to blame.
I have moved through COS12.1, CM12.1, sultan, paranoid android, and exodus, with and without flashing the modem and gapps, using both stock and Boeffla kernel.
They all exhibit the same drain, 9-11% overnight or 16-40mA/h (via dumpsys). This is regardless of wifi/cellular/ambient and other features being disabled.
The only obvious anomalies differing from 5.0.2 are high system_server cpu (25-450% via top) when asleep, and intermittent floods of "unknown" wakeups without wakelocks (Observed by dumping batterystats, and are not registered by settings - battery).
On one of my many reflashes Exodus 12.1 suddenly began behaving reasonably, with 6-10mA/h drain and 2% overnight.
The high System_sever cpu and intermittent wakeups were still present at this point, and may be unrelated oddities.
I later made the mistake of flashing a newer nightly (and later the correct modem), upon which the problem reappeared.
Doing a wipe and reflashing in the same manner did not resolve the issue, and many attempts later I have been unable to reproduce the same state.
Coming from kitkat I figured 5.0.2 would be the same, but it has been smooth sailing since flashing it last night (Exodus), with 6-10mA/h drain and 0% overnight.
Roughy said:
Working on the likely assumption that it is the same problem, the modem is indeed not to blame.
I have moved through COS12.1, CM12.1, sultan, paranoid android, and exodus, with and without flashing the modem and gapps, using both stock and Boeffla kernel.
They all exhibit the same drain, 9-11% overnight or 16-40mA/h (via dumpsys). This is regardless of wifi/cellular/ambient and other features being disabled.
The only obvious anomalies differing from 5.0.2 are high system_server cpu (25-450% via top) when asleep, and intermittent floods of "unknown" wakeups without wakelocks (Observed by dumping batterystats, and are not registered by settings - battery).
On one of my many reflashes Exodus 12.1 suddenly began behaving reasonably, with 6-10mA/h drain and 2% overnight.
The high System_sever cpu and intermittent wakeups were still present at this point, and may be unrelated oddities.
I later made the mistake of flashing a newer nightly (and later the correct modem), upon which the problem reappeared.
Doing a wipe and reflashing in the same manner did not resolve the issue, and many attempts later I have been unable to reproduce the same state.
Coming from kitkat I figured 5.0.2 would be the same, but it has been smooth sailing since flashing it last night (Exodus), with 6-10mA/h drain and 0% overnight.
Click to expand...
Click to collapse
So right now you are on the 5.0.2 exodus builds and having minimal battery drain? Which modem are you using?
f41lbl0g said:
So right now you are on the 5.0.2 exodus builds and having minimal battery drain? Which modem are you using?
Click to expand...
Click to collapse
Correct, with the Xposed Mobile Radio Active fix applied.
bacon_firmware_update_2015_04_03.zip from ... <10 posts and am not allowed to post links yet.
It's on Exodus' 5.0.2 download page along with the roms.
As usual the modem will not flash in TWRP, and has to be done manually via fastboot.
Paresh Kalinani said:
Disable all of the google services you feel that take RAM (and so, battery) using the Disable Service app. Don't disable GCM Service. Don't disable FusedLocation Service if you use GPS. The only google service running on my phone is GCM. Disable location services, key chain, pppreferences, CM logger, dev tools, etc. just anything that you find isn't important and takes battery! Use apps like Greenify, Disable Service and Titanium backup to greenify, disable and freeze the apps/services.
Click to expand...
Click to collapse
I did all of this but it's still draining battery, should I post new screenshots?
TheHighLife said:
I did all of this but it's still draining battery, should I post new screenshots?
Click to expand...
Click to collapse
As you have tried many things to improve your battery life, last option I wanna suggest you to use your device in safe mode for one complete charge cycle from 94% down to 5% (I know that this mode is pathetic).
If you still find that it's causing battery drain, you need to reflash the ROM and please do not restore any backup(restore only those which are most important).
If you find that Android system is not causing anymore battery drain, then it's one of the third party app that is doing so.
Mr hOaX said:
As you have tried many things to improve your battery life, last option I wanna suggest you to use your device in safe mode for one complete charge cycle from 94% down to 5% (I know that this mode is pathetic).
If you still find that it's causing battery drain, you need to reflash the ROM and please do not restore any backup(restore only those which are most important).
If you find that Android system is not causing anymore battery drain, then it's one of the third party app that is doing so.
Click to expand...
Click to collapse
Ive only tried to disable some services that show up under android system. How do I put it in safe mode tho?
By the way, I just noticed that the CPU total time for android system is exactly the same time as the SOT, what does this mean? It only drains this much battery when the screen is on?
TheHighLife said:
Ive only tried to disable some services that show up under android system. How do I put it in safe mode tho?
By the way, I just noticed that the CPU total time for android system is exactly the same time as the SOT, what does this mean? It only drains this much battery when the screen is on?
Click to expand...
Click to collapse
Boot your device into safe mode https://support.google.com/nexus/answer/2852139?hl=en
Just post some screenshots of the battery (complete overview of graph screen and app list screen) after using your OPO in safe mode atleast for one charge cycle (90%+ down to 10%)
This will help us to figure out what is the exact issue you are facing.
If you are not interested in troubleshooting, just flash fastboot images of this build(CMOS12.1) using following guide
forum.xda-developers.com/oneplus-one/general/guides-bacon-timmaaas-how-to-guides-t2839471
For OnePlus One, about a month ago after systems update, my battery started draining fats and it has gotten worse over the past week. The battery barely holds four hours of after a full charge and the phone gets very hot. Also, over the past week, my main SMS messaging app (SMS) crashes nine out of 10 times -- I can start the app but when I click any of the messages I was to read or type, it freezes and crashes. Also, since yesterday, my phone dilaer crashes very often. Any thoughts/help? I am not familiar with how to flash ROM, etc. Also, since yesterday, charging has been very slow -- overnight, the charge went from 35% full to 74% full. I tried safe mode as well and no luck -- battery still keeps draining at 1% every three minutes.
I have the same issue. Any fixes which work ?
OTA update to 9.0 available a couple of days ago so I let it install. Since then, I've seen considerably quicker draining of the battery, with my usage of the phone being much the same as before. For example, when I went to sleep last night the battery was at 64%, and there were no apps running according to a swipe up from Home, but when I woke this morning, battery was down to 2%. I normally charge once a day, and previously the battery was hardly ever below 50% after 24 hours - I'm a pretty light user.
As an aside, with 9.0 there no longer appears to be possible under battery usage information in Settings to see the percentage of battery that has been used by the various apps and processes.
NickJHP said:
OTA update to 9.0 available a couple of days ago so I let it install. Since then, I've seen considerably quicker draining of the battery, with my usage of the phone being much the same as before. For example, when I went to sleep last night the battery was at 64%, and there were no apps running according to a swipe up from Home, but when I woke this morning, battery was down to 2%. I normally charge once a day, and previously the battery was hardly ever below 50% after 24 hours - I'm a pretty light user.
As an aside, with 9.0 there no longer appears to be possible under battery usage information in Settings to see the percentage of battery that has been used by the various apps and processes.
Click to expand...
Click to collapse
Click the three dots in the top right and choose battery usage.
As for battery life, mine has improved greatly on Android P
NickJHP said:
OTA update to 9.0 available a couple of days ago so I let it install. Since then, I've seen considerably quicker draining of the battery, with my usage of the phone being much the same as before. For example, when I went to sleep last night the battery was at 64%, and there were no apps running according to a swipe up from Home, but when I woke this morning, battery was down to 2%. I normally charge once a day, and previously the battery was hardly ever below 50% after 24 hours - I'm a pretty light user.
As an aside, with 9.0 there no longer appears to be possible under battery usage information in Settings to see the percentage of battery that has been used by the various apps and processes.
Click to expand...
Click to collapse
Ok here. 62% drop over night doing nothing suggests you have a rogue app in there. I'm assuming you have ok cellular coverage and nothing has changed there by coincidence. I would reboot and force close every app you have that's not essential overnight and try again. Swipe up from home and clearing those apps doesn't force close the apps. Greenify is an app that (in manual mode) will make it easy to select as many apps as you want and force close the lot of them. If that improves the situation you can then begin to work out which app(s) might be doing bad stuff whilst you sleep...
Battery on my P2 has significantly improved with Pie even if I didn't have any major problem with 8.1 either. Overnight drain 3-4%. After regular use after a full day I easily exceed 5h SOT. Everything stock with just Greenify in non root mode. I couldn't be happier, best Android release so far for me.
NickJHP said:
OTA update to 9.0 available a couple of days ago so I let it install. Since then, I've seen considerably quicker draining of the battery, with my usage of the phone being much the same as before. For example, when I went to sleep last night the battery was at 64%, and there were no apps running according to a swipe up from Home, but when I woke this morning, battery was down to 2%. I normally charge once a day, and previously the battery was hardly ever below 50% after 24 hours - I'm a pretty light user.
As an aside, with 9.0 there no longer appears to be possible under battery usage information in Settings to see the percentage of battery that has been used by the various apps and processes.
Click to expand...
Click to collapse
I've had my p2 installed with PIE for about 2 days now. I suggest giving it a week (which is what I'm doing) and then getting a full overview of how my battery is performing. Usually, after any major OS updates, being that apps are trying to utilize your resources and a new version of Android would try to allocate and learn your usage (in this case battery), you'd get a much better definitive idea of your overall performance.
I also think that since its now available, turn on Adaptive Battery mode. After a day of upgrading the OS, Adaptive battery at my 26 hr mark of upgrade said that one of my apps was taking in a lot of resources to be used in the background (ES File Explorer). I made AB to stop ES from taking battery resources.
So in conclusion, if it a week and then you'll be able to get a better overall understanding of whether your battery REALLY has gotten worse or better.
Hope this helps!
Interestingly, my battery was dropping really quickly too after the update to DP3, I switched off Adaptive Battery and it fixed the issue completely.
I tried it again with Android Pie and the issue resumed, so I turned it back off. Maybe try this too?
---------- Post added at 02:53 PM ---------- Previous post was at 02:53 PM ----------
Interestingly, my battery was dropping really quickly too after the update to DP3, I switched off Adaptive Battery and it fixed the issue completely.
I tried it again with Android Pie and the issue resumed, so I turned it back off. Maybe try this too?
Exact same problem here after updating. Even tried a factory reset in case it was an updating issue. Same problem. My battery is currently at 43% 4 hours after a full charge. And I've barely used it. This is really poor.
No new apps installed.
My Oreo battery life was great. I'll try shutting off adaptive battery as suggested - but seems a real shame if one of the flagship battery saving features is doing the total opposite on Google's current flagship phone!
Doesn't seem to be a massively common issue so not sure if a likelihood of a patch either
Just a quick update - Google play services has now become the biggest drain on my battery, just as it was before I factory reset after the first install...
Anyone else had the same?
gbmasterdoctor said:
Interestingly, my battery was dropping really quickly too after the update to DP3, I switched off Adaptive Battery and it fixed the issue completely.
I tried it again with Android Pie and the issue resumed, so I turned it back off. Maybe try this too?
---------- Post added at 02:53 PM ---------- Previous post was at 02:53 PM ----------
Interestingly, my battery was dropping really quickly too after the update to DP3, I switched off Adaptive Battery and it fixed the issue completely.
I tried it again with Android Pie and the issue resumed, so I turned it back off. Maybe try this too?
Click to expand...
Click to collapse
I had the same issue and did the same thing... until dp3 and my battery usage was terrible again even with adaptive battery turned off. I ended up turning it on again and after about a week my battery usage was back where it was before. So there doesn't seem to be a magic bullet here. FWIW app usage offered no insight as to what was causing the drain in the first place.
MaxNXS said:
Battery on my P2 has significantly improved with Pie
Click to expand...
Click to collapse
THIS.
I got like 8+ hours of SOT.... no mobile network though, all day wifi use only.
I have this issue. Dropped about 40% over night. I found that turning wifi off stopped the drain completely. I did not have this problem with Oreo at all so it's not the networks im connecting to. Weird thing is this did not happen when I first installed Pie. This started happening about 3 days into installing. Also, I put it in safe mode and saw the same drain with wifi on vs off.
Hi guys,
I seem to have fixed my terrible battery life!
The below might be worth a try if you're still suffering from it.
I noticed in GSAM that RCSphone was the front runner in battery drain so did a little research and found this site.
SOLUTION: Turn off app preview messages (settings / google / app preview messages). Apparently its only function is to allow Allo messages to be received without the app. To me, totally pointless as i don't know - nor have ever met - a single person who uses it.
I've gone from draining 8-10% an hour (screen off) to around 2.5%/hour and from 1hr 35 total SOT to 3hrs 39 minutes with 32% left (and an hour of that was Google maps navigating, so a proper work out for the phone).
Do give it a try and let me know if it works for you.
Although there's room for improvement (idle 2.5%/h seems high to me!) and it's ludicrous that I should have spent several hours finding a fix for this on 100% stock android, I'm very happy to have a usable battery life back again...
Adam.
UPDATE: Seems like in the night I lost 40% again. Idle drain climbed it's way up to 5.6% in the night. Still an improvement from where it was before, but not quite as good as it first appeared...
WibblyW said:
Ok here. 62% drop over night doing nothing suggests you have a rogue app in there. I'm assuming you have ok cellular coverage and nothing has changed there by coincidence. I would reboot and force close every app you have that's not essential overnight and try again. Swipe up from home and clearing those apps doesn't force close the apps. Greenify is an app that (in manual mode) will make it easy to select as many apps as you want and force close the lot of them. If that improves the situation you can then begin to work out which app(s) might be doing bad stuff whilst you sleep...
Click to expand...
Click to collapse
@Burkules I drop 0.4 - 0.7%/hr over night with Bluetooth off/Wifi on/strong cellular signal. Much the same as it was with Oreo. Not quite sure why's there's such a big range (almost 2x) but either way it's ok for me. Did you try the technique above?
WibblyW said:
@Burkules I drop 0.4 - 0.7%/hr over night with Bluetooth off/Wifi on/strong cellular signal. Much the same as it was with Oreo. Not quite sure why's there's such a big range (almost 2x) but either way it's ok for me. Did you try the technique above?
Click to expand...
Click to collapse
Cheers for getting back on this.
I left it on safe mode the other night and it still drained absurdly fast, which suggests to me it's a google system drain rather than rogue app, but will try again with app preview now switched off. Likewise will try greenify again and report back.
Burkules said:
Cheers for getting back on this.
I left it on safe mode the other night and it still drained absurdly fast, which suggests to me it's a google system drain rather than rogue app, but will try again with app preview now switched off. Likewise will try greenify again and report back.
Click to expand...
Click to collapse
Likewise maybe app preview set to off will help me even more. If I recall correctly rogue apps can cause some google system apps to wake up, but perhaps not in safe mode...
WibblyW said:
Likewise maybe app preview set to off will help me even more. If I recall correctly rogue apps can cause some google system apps to wake up, but perhaps not in safe mode...
Click to expand...
Click to collapse
So, switched off adaptive battery again (i'd enabled it after my short-lived miracle recovery the other day) and now I'm down to 4%/hour. Which is better but still really high for idling! Cleared cache and data in Google play services for good measure too as it still comes up super high on the list of battery drainers.
Booting into safe mode now to check the drain without adaptive there and will report back...
UPDATE: Exactly the same drain in safe mode. This is a straight up google problem....
Burkules said:
So, switched off adaptive battery again (i'd enabled it after my short-lived miracle recovery the other day) and now I'm down to 4%/hour. Which is better but still really high for idling! Cleared cache and data in Google play services for good measure too as it still comes up super high on the list of battery drainers.
Booting into safe mode now to check the drain without adaptive there and will report back...
UPDATE: Exactly the same drain in safe mode. This is a straight up google problem....
Click to expand...
Click to collapse
Have you tried to force close every app you've downloaded too?
WibblyW said:
Have you tried to force close every app you've downloaded too?
Click to expand...
Click to collapse
Haven't tried this - but if the battery drain is the same in safe mode (with only google/system apps running) I can't see how it will make a difference. Ill be in rehearsal for several hours today so will force close everything and will then be leaving my phone idling for a few hours anyway.
I signup up to the google play services beta yesterday, and google play services no longer appears as one of the top battery users... but the battery drain is the same and the numbers given in *all* battery apps (Gsam/accubattery/system) don't add up to anything close to the actual % drain. System battery displays 15% of usage (with 'full device usage' on show) when the battery is quite evidently at 48% from full charge. Total cluster****. So pissed off I updated.
Have you seen any improvement in yours with any of these workarounds?
Burkules said:
Haven't tried this - but if the battery drain is the same in safe mode (with only google/system apps running) I can't see how it will make a difference. Ill be in rehearsal for several hours today so will force close everything and will then be leaving my phone idling for a few hours anyway.
I signup up to the google play services beta yesterday, and google play services no longer appears as one of the top battery users... but the battery drain is the same and the numbers given in *all* battery apps (Gsam/accubattery/system) don't add up to anything close to the actual % drain. System battery displays 15% of usage (with 'full device usage' on show) when the battery is quite evidently at 48% from full charge. Total cluster****. So pissed off I updated.
Have you seen any improvement in yours with any of these workarounds?
Click to expand...
Click to collapse
Nothing to lose by trying. And as I said, Greenify makes it easy/quick to do. Force closing is almost as good as uninstalling those apps as the vast majority of installed apps won't restart or run in background until you use them for the first time again. In my experience, quiescent battery consumption (e.g. noticed over night):
Is vastly affected negatively by poor cellular signal strength. Marginal coverage can really drain the battery fast.
Gradually gets worse between reboots
Can be improved (once it degrades) if you force close all the apps you've installed, and swipe away the background apps just before you go to bed!
If quiescent consumption suddenly rises I can normally fix it by force closing all the apps (not being sure which was the one gone rogue/suddenly misbehaving)
At night I generally have excellent cellular coverage, good WiFi, and Bluetooth is off. NFC is always off
I don't enable sync on 2 of the 3 Gmail accounts I have configured
I disable notifications from any apps I don't actually need them from
Quiescent battery consumption is between, say, 0.4% and, 0.7%/hr at home, around 2 to 3%/hr when out and about which I put down to all background data being driven over 4G instead of Wifi, and variable cellular coverage
I've not noticed quiescent battery consumption change between Oreo and Pie, but this may be because I keep force closing apps at night and not giving adaptive battery (which I have on) a chance to have the same effect intelligently
Turning off app preview messages has made no practical different for me
I'm completely stock (stock launcher, not rooted, etc.)
If you can't fix it, at least a factory reset as the next experiment has the option to restore *most* of what was there before (so long as you have had the backup setting enabled). But because not everything is restored it's still a pain. And if that doesn't work it's another factory reset and test and then restore everything manually and gradually :-S. But I think you already tried that?
Burkules said:
Hi guys,
I seem to have fixed my terrible battery life!
The below might be worth a try if you're still suffering from it.
I noticed in GSAM that RCSphone was the front runner in battery drain so did a little research and found this site.
SOLUTION: Turn off app preview messages (settings / google / app preview messages). Apparently its only function is to allow Allo messages to be received without the app. To me, totally pointless as i don't know - nor have ever met - a single person who uses it.
Thanks, just tried that as well and my battery has stayed resolutely at 68% on idle beside me for the last few hours, previously it had gone from 100% down to 69% in about 4 hours whilst similarly doing nothing.
Click to expand...
Click to collapse
Greetings, I have a problem with constant wakelocks on my MI11i phone since the day I bought it. Those wakelocks drain battery by 30% overnight, but also cause increased drain during the day in standby too since they instantly kick in as soon as the phone is locked, overall resulting in poor battery life. Even thou I am not an advanced user and has no need of it, I went so far that I completely factory reset the phone(this was the 2nd time), then reflashed new recovery and new official ROM to see will that sort the issue, then for a good measure I also rooted it with TWRP and Magisk. I tried underclocking the cpu to the lowest but it makes no difference while in standby since obviously that isn't the case. I tried using icebox but there were no processes that had SNS or RMNET in their names, so I just froze some analytics apps. Both wakelocks are gone as soon as I turn on the airplane mode or switch to wifi. Any app that can help me freeze those or edit something in kernel?
I found a rom that fixes the wakelock, listed here https://miuiflash.com/roms/miui-csx/alioth/miui-csx-v13-0-8-0-stable-alioth
But i couldn't find a way to contact the author for more info can i fix the kernel myself