[kernel] update lineage os 16 batteri drain - ONE Q&A, Help & Troubleshooting

Hi, I think I have a problem with my OnePlusOne. I have lineage os 16 but I see from BBS that it practically never goes into Deep sleep but there is no app that keeps it awake, it seems to be a kernel problem. Has anyone tried a stable #bacon kernel? I have the 3.4.113! automatic translation

Related

[Q] No deep sleep but no wakelocks huh?

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.

[Q] "Android OS" keeps my device awake.

I just flashed the CM 12.1 Nightly and the AK Kernel. And after that I found a STRANGE SITUATION.
Usually, before sleep, I would turn my phone into Airplane Mode and just sleep. But I found the battery will reduce from approx. 100% to 92% in 5hrs.
How ever, during daytime with LTE signal, the battery seems not to drop.
Here's the battery history.
ww1.sinaimg.cn/large/49977c5dgw1es9g4ztzh8j20u01hcq7j.jpg
(Sorry I don't have the permission to put a direct link.)
SunsetYe said:
I just flashed the CM 12.1 Nightly and the AK Kernel. And after that I found a STRANGE SITUATION.
Usually, before sleep, I would turn my phone into Airplane Mode and just sleep. But I found the battery will reduce from approx. 100% to 92% in 5hrs.
How ever, during daytime with LTE signal, the battery seems not to drop.
Here's the battery history.
ww1.sinaimg.cn/large/49977c5dgw1es9g4ztzh8j20u01hcq7j.jpg
(Sorry I don't have the permission to put a direct link.)
Click to expand...
Click to collapse
Go to Privacy > Privacy Guard > Advanced > Google Play Services > Switch off Keep Awake, Auto Start and Wake Up.
Hope this helps
SunsetYe said:
I just flashed the CM 12.1 Nightly and the AK Kernel. And after that I found a STRANGE SITUATION.
Usually, before sleep, I would turn my phone into Airplane Mode and just sleep. But I found the battery will reduce from approx. 100% to 92% in 5hrs.
How ever, during daytime with LTE signal, the battery seems not to drop.
Here's the battery history.
ww1.sinaimg.cn/large/49977c5dgw1es9g4ztzh8j20u01hcq7j.jpg
(Sorry I don't have the permission to put a direct link.)
Click to expand...
Click to collapse
Install BBS+ / GSAM or Wakelock detector to see what keeps your device awake. Other than that hard to tell only from the default battery screen.
Meuuks13 said:
Go to Privacy > Privacy Guard > Advanced > Google Play Services > Switch off Keep Awake, Auto Start and Wake Up.
Hope this helps
Click to expand...
Click to collapse
davebugyi said:
Install BBS+ / GSAM or Wakelock detector to see what keeps your device awake. Other than that hard to tell only from the default battery screen.
Click to expand...
Click to collapse
I do installed BBS and switched off Keep Awake, Auto Start and Wakeup. But it turns out the unusual wakelock mainly appeared in Kernel Wakelock. (ww4.sinaimg.cn/large/49977c5dgw1esakwxo781j20u01hc45o.jpg) Does that means I have to change a kernel or a system?
BTW, do you guys think OxygenOS is better than CM12.1? And do you have a recommended Kernel or ROM for both power-saving and performance ?
Thank you for any suggestions.
SunsetYe said:
I do installed BBS and switched off Keep Awake, Auto Start and Wakeup. But it turns out the unusual wakelock mainly appeared in Kernel Wakelock. (ww4.sinaimg.cn/large/49977c5dgw1esakwxo781j20u01hc45o.jpg) Does that means I have to change a kernel or a system?
BTW, do you guys think OxygenOS is better than CM12.1? And do you have a recommended Kernel or ROM for both power-saving and performance ?
Thank you for any suggestions.
Click to expand...
Click to collapse
One thing in your Image. PowerManagerService.Wakelocks are detailed under > Partial Wakelocks.
Besides that I do not see anything abnormal.
As for Oxygen - I did not try it, because I am favoring the customisations and custom kernels. Maybe this will change with the new Hydrogen OS (28 May announcement?)
davebugyi said:
One thing in your Image. PowerManagerService.Wakelocks are detailed under > Partial Wakelocks.
Besides that I do not see anything abnormal.
As for Oxygen - I did not try it, because I am favoring the customisations and custom kernels. Maybe this will change with the new Hydrogen OS (28 May announcement?)
Click to expand...
Click to collapse
So, what's the best ROM and kernel? Or, in the other word, what's your current ROM and kernel?
从我的 A0001 上通过 xda Forums PRO 发送
SunsetYe said:
So, what's the best ROM and kernel? Or, in the other word, what's your current ROM and kernel?
从我的 A0001 上通过 xda Forums PRO 发送
Click to expand...
Click to collapse
Best ROM and kernel does not exist Everyone has a different taste.
Mine is: OnePlus One | CM12.1 Temasek - Boeffla Kernel v16 - Deep Darkness Theme - V4AFX - SLIM GAPPs full
davebugyi said:
Best ROM and kernel does not exist Everyone has a different taste.
Mine is: OnePlus One | CM12.1 Temasek - Boeffla Kernel v16 - Deep Darkness Theme - V4AFX - SLIM GAPPs full
Click to expand...
Click to collapse
I tested for the other time, it turns out that the major wakelock was PowerManagerService.Wakelocks. and PowerManagerService.Display. In Partical Wakelock, there's almost nothing.(Less than 1h in partical wakelock and about 3h in kernel wakelock.)
从我的 A0001 上通过 xda Forums PRO 发送
SunsetYe said:
I tested for the other time, it turns out that the major wakelock was PowerManagerService.Wakelocks. and PowerManagerService.Display. In Partical Wakelock, there's almost nothing.(Less than 1h in partical wakelock and about 3h in kernel wakelock.)
从我的 A0001 上通过 xda Forums PRO 发送
Click to expand...
Click to collapse
PowerManagerService.Wakelocks. > All the wakelocks accumulated (found in Partial Wakelocks)
PowerManagerService.Display > Display turned ON/Screen ON
So if you get 1h of PowerManagerService.Wakelocks, there must be something under Partial And TBH, 1h is not that much.
SunsetYe said:
I do installed BBS and switched off Keep Awake, Auto Start and Wakeup. But it turns out the unusual wakelock mainly appeared in Kernel Wakelock. (ww4.sinaimg.cn/large/49977c5dgw1esawxo781j20u01hc45o.jpg) Does that means I have to change a kernel or a system?
BTW, do you guys think OxygenOS is better than CM12.1? And do you have a recommended Kernel or ROM for both power-saving and performance ?
Thank you for any suggestions.
Click to expand...
Click to collapse
I just use CM 12.1 Nightlies with AK kernel setting the cpu frequency to 223-1113 mhz and governor to conservative and some other variations provided by the kernel. At the end of the day the battery is about 30% with 4+ hrs SOT

LineageOS is here!!! [ROM MM]

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.

OxygenOS 10 vs Havoc OS 3. Which is better?

As the title says, which one do you guys think is better? For example battery life, features, etc. I tinkered with Havoc OS the other day, but after realising half the custom Havoc settings that were in 2.9 like custom doze were not present, I reflashed 2.9. I was expecting all that was in 2.9 plus more.
Now that OOS 10.0.1 has dropped, I wanted to see what that was like, but didn't want to flash, be disappointed and then have to reflash Havoc and set up each app all over again. I've had issues restoring stable TWRP backups, so I have given up and just start from scratch each time I reflash.
What features from each stand out to you and what SOT and standby drain %/h are you getting from both?
havoc 3.0 is better because new maintainer is skulshady he trying best to provides new updates in every 1/2 week there are some less tweak for now but getting added in new updates you can wait till the base os changes to oos 10 (dont know when)
if you dont want to install app from scratch try migrate app by baltiapps
i didnt check sot & idle drain so i cant say anything about it
siddhrsh said:
havoc 3.0 is better because new maintainer is skulshady he trying best to provides new updates in every 1/2 week there are some less tweak for now but getting added in new updates you can wait till the base os changes to oos 10 (dont know when)
if you dont want to install app from scratch try migrate app by baltiapps
i didnt check sot & idle drain so i cant say anything about it
Click to expand...
Click to collapse
How do you install it? I tried and it borked my phone.
Try to install 3.1 latest on 20-01-2020. Seems to be fine Rom. But OTG provision is not seen.
Does havoc os have working, smooth OOS gestures? Only thing stopping me from changing in the past was bad gestures. Main issues for me on 10.3.0 are Bluetooth connectivity, internet disconnects, and poor battery life.
rickesh1 said:
Does havoc os have working, smooth OOS gestures? Only thing stopping me from changing in the past was bad gestures. Main issues for me on 10.3.0 are Bluetooth connectivity, internet disconnects, and poor battery life.
Click to expand...
Click to collapse
No oos gesture yet but full screen gestures are there currently some minor bug otg doesn't work & display profile changes after every reboot
battery working great but deep sleep is 0% switching to other kernel like blu spark fix this
Just had to switch to OOS 10.3.0 from Havoc OS due to freezing/crashing with Android Auto. Tried all the fixes on the internet, but no luck. Was going to go back to 9.0.6, but decided to try stock and it has been working fine. Too bad, as I really like Havoc with some of the AOSP touches, and the capability to separately adjust notification sounds. Can't understand why OnePlus can't add this feature.
wrench588 said:
Just had to switch to OOS 10.3.0 from Havoc OS due to freezing/crashing with Android Auto. Tried all the fixes on the internet, but no luck. Was going to go back to 9.0.6, but decided to try stock and it has been working fine. Too bad, as I really like Havoc with some of the AOSP touches, and the capability to separately adjust notification sounds. Can't understand why OnePlus can't add this feature.
Click to expand...
Click to collapse
To be honest, other ROMs do have these options, you could try something else

Question Mobile internet not working, battery saver completely turns off internet

I recently installed the Android 13 Arrow OS GSI and after trying it out I noticed that turning on battery saver would completely turn off my internet with the error code DNS_PROBE_FINISHED_NO_INTERNET.
Also my mobile internet is not working either, with the same error code as I get when battery saver is turned on.
Are Android 13 GSIs not stable enough? Or maybe it's an Arrow OS problem? Or does this happen to every GSI?
ru_vlad1 said:
I recently installed the Android 13 Arrow OS GSI and after trying it out I noticed that turning on battery saver would completely turn off my internet with the error code DNS_PROBE_FINISHED_NO_INTERNET.
Also my mobile internet is not working either, with the same error code as I get when battery saver is turned on.
Are Android 13 GSIs not stable enough? Or maybe it's an Arrow OS problem? Or does this happen to every GSI?
Click to expand...
Click to collapse
It is most likely a Arrow OS problem, on my phone (A127F U7), battery saver on pixel experience Android 13 works without turning off the internet.

Categories

Resources