yashsingh1/xdaforums huggingface dataset:
[LG G6 Real Life Review] Unundra:
Yeah, sure! No problem.

Regarding the WifiOffDelayIfNotUsed wakelock, I first read about a fix for it when [MENTION=4088197]metalboy94[/MENTION] mentioned it here. At the time it was regarding the G2 if I'm not mistaken. In the G6 though, the com.lge.wifiext.odex file does not exist. However, [MENTION=6847891]shbang[/MENTION] described here how he successfully ported the fix to the G4, this time by patching a file named wifi-service.jar. I basically just ported it further to the G6 by deodexing the /system/framework/oat/arm64/wifi-service.odex to /system/framework/wifi-service.jar and commenting out

#invoke-virtual {v0}, Landroid/os/PowerManager$WakeLock;->acquire()V

You can find my patched wifi-service.jar here.

This got rid of my WifiOffDelayIfNotUsed wakelock (at least it no longer shows up in BBS).

Regarding the wlan_rx_wakelock, I just edited the drivers/base/power/wakup.c in the stock kernel source with some of the mods [MENTION=3292224]franciscofranco[/MENTION] had introduced to the Nexus 5' FrancoKernel. You can find said mods here. Since my last post I have further modded my kernel with some other mods, this time from the Pixel' FrancoKernel, which can be found here, in order to also block the NETLINK and [timerfd] wakelocks. You can find the source to my kernel here.

After this BBS showed no significant wakelocks anymore, but my phone would still only deep sleep about 50% off the time when connected to my work network (which was still an improvement). Since I can no longer pinpoint what's waking up my phone I have half given up on it. I have captured some packets with tPacketCapture that I intend to look at with WireShark in the future, but I haven't gotten around to yet. If someone manages to further fix this problem please do share!

Cheers!
[LG G6 Real Life Review] johanruda:
Thank you so much for taking your time! I will try this for sure! :)
[LG G6 Real Life Review] h3xx3r:
THANKS THANKS THANKS

I have tested on LG G6 H870 with Fulmics 2.0.

Befor after display off the WifiOffDelayIfNotUsed went higher and higher and now absolutely low.

Fulmics 2.0 based on v10T it should also run with other roms
[LG G6 Real Life Review] ben cherian:
Guys seriously don't use any greenify or clean master like thing. All these things hinders with normal Android task managing system.

Apps like FB, twitter, other social media apps does constant background syncing which cause wake ups in between. So turn off sync of all from account settings.

Always on display consumes 8-9% within 7hrs of sleep which is normal because display is LCD. Turn off AOD or keep fone UPSIDE down so that AOD turns off by proximity sensor.

I have drain of 1 to max 3% at night for 7 hours and 8-9% drain With AOD on.

Tip- before sleeping try a restart fone and keep fone aside.
[LG G6 Real Life Review] flaviusbob:
I agree with you. Perform a restart and optimize phone every morning. Keep the phone upside down at night. I get around 3-4 hours SOT of normal usage, syng, gps, wifi, and sometimes data. I find this battery to be above average, and it does its job. My question is who has time to look on its phone more than 4 hours per day? maybe teenagers.
[LG G6 Real Life Review] Xygote:
Using doze help, also use Metal app instead of regular facebook app.
[LG G6 Real Life Review] MsuatafaKhatab:
Can I use doze without root
[LG G6 Real Life Review] faeArai:
Yes you can. Install force doze and it will give you instructions how to enable it without root
[LG G6 Real Life Review] MsuatafaKhatab:
Force doze or greenfy
[LG G6 Real Life Review] Perseus:
Light cleaning done on the thread. Please stay on topic of REDUCING the Drain or cause thereto.
[LG G6 Real Life Review] pjdick:
So has someone compiled this kernel and put it somewhere that can be downloaded? Or is this everyone on their own to compile the kernel themselves?
[LG G6 Real Life Review] Percy247:
Battery drain whilst phone off H870DS

I have a g6 H870ds on Nougat 7.0, v10j firmware and on 3 network in the UK.

Two major issues on standby drain.

Firstly, the battery drains a minimum of 2% hour with screen off and all battery saving settings on. Don't use social media apps and android system tends to be highest battery user. Phone battery drain 14-16% overnight! Is this normal? Max standby time with very little use is 48 hours. Previous phones have done up to 4 days on standby!

Secondly, turned actual phone OFF at bedtime last night with battery on 8% and it died during the night. I will repeat this test with a full battery over a 24hr period to see how much charge the battery is losing. Again is this normal? How much should a battery discharge when switched off?

Another issue I have with this phone is that it will constantly search for a signal when there is none. At home I have wifi and aeroplane on otherwise cell standby drain kills the battery.

If I turn the phone on and off it will then lose 15-25% battery very quickly before settling back to normal. Is this normal on this phone. Is it a battery calibration issue? I read fully charging it and discharging the phone 3 times might help. Is there any truth in this?

I have tried a factory reset and playing with very settings but it makes no difference to battery drain. I Need to establish if I have a faulty phone or battery or this is just how the phone works on Nougat then I can decide to either keep or sell.

Any help would be greatly appreciated thank you.
[LG G6 Real Life Review] vctrrl:
Well, I have a significant drain overnight. Today I had 14% lost over 10h with no usage at all connected via WiFi. I don't like to disable things I'd normally use like WiFi etc or to put the phone on airplane mode overnight but I'd like to manage to reach less battery consumption while idling. I don't have things like Google's location history turned on but the Google Assistant is on and I let apps sync normally (like Facebook, Messenger, Instagram and all the other typical apps). I'm using Better Battery Stats and GSam (granted BATTERY_STATS permission via ADB) to track what's draining my battery.
[LG G6 Real Life Review] KingFatty:
Facebook Messenger is known to consume lots of power - even if you aren't actively using it. Even if you switch to Facebook Messenger light, that still consumes more power than it seems it would need.

Consider doing a test: logging out of Facebook messenger app, and then uninstalling/disabling that messenger app. Does your battery consumption get much better?

personally I uninstall facebook messenger and disable it (I"m not rooted, so I can't fully remove it), and then access the website via Chrome browser desktop mode. Yes, it's possible and I"m doing this right now, you just have to make sure to follow these steps: 1) load facebook in chrome - it should default to the mobile version of the website, 2) click on the messenger icon in the website, 3) after you get redirected to the app store page for facebook messenger app, hit the back button until you are back at the facebook mobile webpage, 4) select the chrome browser option to request desktop site, 5) after the site reloads, click the messenger icon in the website. That will bring up the list of messenger chats and you can choose what you want to view from there. Note: you just need to do this once, and then just keep that Chrome tab loaded in chrome, so you can just jump right back into the messenger page directly by selecting that tab. You don't need to go through all those steps again.

Anyway, with Facebook messenger app disabled on my phone, my battery life is great overnight, although I haven't rigorously monitored the usage. I prefer to set my phone in the battery saver mode overnight too, see if that also helps you (I use the quick access toggle switch that you see when swiping down, and just click the leaf icon to turn on battery saver immediately, regardless of battery level).
[LG G6 Real Life Review] Unundra:
I assume you mean the kernel I mentioned in #141. I bricked my phone a few weeks ago so I effectively stopped trying to fix the problem any further. I must have a compiled kernel somewhere though, I'm sure. I just got my phone back from LG, very stock, and the battery drain at work is excruciating again, so I'll either find and flash my old kernel or just compile another one. When I do I'll either post it in the development section (I'm not sure I'm allowed to yet) or PM you a compiled version or something.

Edit: Uploaded the compiled kernel. I've just flashed it and it's working on US99715a. I suggest using Kernel Adiutor to toggle the wakelock blocks. Back up your boot image in TWRP before flashing and don't forget that I am not responsible if something goes wrong! Also, by blocking these kernel wakelocks, expect the WifiOffDelayIfNotUsed partial wakelock to go bananas. I suggest installing the patched wifi-service.jar also mentioned in #141.

Edit 2: The kernel appears to mess something up with the micro sd card, it's recognized as corrupted and asks you to format it (which I haven't done). Works fine in TWRP though.
[LG G6 Real Life Review] DavDav1990:
My standby drain still high even after removing LG bloatwares. Almost in par with my screen consumption but still phone idle always came on top. Have you guys still having the same problem? It's kinda unfortunate to have battery drain for doing nothing :\
[LG G6 Real Life Review] santor:
My device h870ds fully stock (of course lol). I've disabled auto updates, disabled sync , GPS, data and WiFi. Overnight (11hrs around) drain is about 4%.
[LG G6 Real Life Review] Percy247:
Screen off battery discharge anyone?

I am using Gsam to try and work out what is causing battery drain and here are my most recent stats.

Time off charge; 45hrs 23 mins, battery usage 93% of which;

Screen - 29% (SOT 10 mins max, discharge whilst on - 2% / off 91%)

Held awake - 16%

Apps - 51% of which Android 21.7%, Kernel 16.4%, google svcs 5.4%

Radio - 4%

Nougat battery usage only tells me; screen 1%, idle 32% and android OS 1%.

Three questions;

1. Is the screen off discharge figure of 91% correct and what does it mean? Does this point to a problem?

2. Does the drain caused by Android, Kernel and google services appear normal or could this point to another issue.

3. How reliable are these figures and why do the screen discharge figures vary so much (Gsam 29% and built in battery usage 1%)? Which should I believe?
[LG G6 Real Life Review] Percy247:
Just got the v10m firmware update for H870DS and this seems to have reduced standby drain somewhat. Overnight standby drain was 9% or only 1.2% an hour compared to the usual 2-2.5% an hour I was getting previously. Hopefully this was not just a one off and things will improve!
[LG G6 Real Life Review] Killua96:
Keep us updated! Could you tell me if they fixed the phone idle percentage or if it's alway high as ****? :confused:
[LG G6 Real Life Review] Percy247:
After two days with v10m TWN update, standby drain overnight has gone back to 1.6% per hour. My H870DS is still not optimised for efficient standby. I think the problem depends on which model and firmware you have and even then standby drain will vary from one day to the next. Some people have seen their phone lose only 3-4% overnight but I have seen between 14-25% over 9 hours. I believe that android 7.0 itself is part of the problem as it is not optimised for standby drain. All phones should not lose no more than 1% an hour when in standby. Get it sorted!
[LG G6 Real Life Review] kamiel:
I have around 3% idle drain with the LG G6. After installing betterbatterystats (and giving it permissions with adb) I notices the reason for the drain is bluetooth_pm wakelock. Googling didn't give much results. Therefore I installed permission explorer to see what could use bluetooth and stopped most apps that had bluetooth permission. Non of the apps I stopped made any difference for the wakelock. Only stuff I didn't try to stop where phone essentials. Only way to counter the drain is by disabling bluetooth. When bluetooth is disabled I only lose 1-2% a night.

Only problem with this solution is that I cant use my smartwatch that I can't live without. Anybody know a solution or a way for me to investigate further? btw I run the standard LG firmware.
[LG G6 Real Life Review] EMJI79:
Could be "use Bluetooth for more localisation precision". I turned it off and it gained me a lot of battery.
[LG G6 Real Life Review] Sid@developer:
Phone Idle is draining battery for me more than Screen.... Tried Factory Reset. It also drains in Safe mode...is it a hardware problem ?
[LG G6 Real Life Review] anabeaverhausen104:
have you tried greenify?
[LG G6 Real Life Review] kamiel:
I have found the problem of my idle drain caused by the bluetooth_pm wakelock. After a factory reset I started installing apps and testing when the wakelock came back. After installing adguard and enabling add blocking the bluetooth_pm wakelock is keeping the phone from deep sleep. When add blocking is disabled in adguard the phone goes to deep sleep normally.

To be able to use adguard and have the phone go in to deep sleep I have installed tasker and made tasks to enable and disable adguard add blocking. The tasks are executed when the display goes on and off. This way adguard is disabled when the screen is off and enabled when the screen is on. Best off both worlds :)
[LG G6 Real Life Review] EMJI79:
Bluetooth, that's what I told ya.
[LG G6 Real Life Review] Croize:
i gor more idle drain then anything else aswell. I been reading its a bug in 7.0... Battery for me is good, but not if i leave it alone for a day, nonstop using is great 6-8hrs sot
[LG G6 Real Life Review] Kaleidosc0pe:
With force doze i can reach the 5-6 hours SoT in one day.

That's the biggest improvement i ever had with my settings and testing.
[LG G6 Real Life Review] jshames:
In the last few days something dramatically increased the idle battery drain. Up until then it was 1% an hour or less. Now it suddenly jumped to 2% an hour. I am suspecting its one of the Google App or Play updates. Anybody else experience this? As an experiment I am uninstalling the last Google update, I'll let you guys know what happens.
[LG G6 Real Life Review] jshames:
Well, uninstalling updates didn't help. Battery drain for idle continues at about 2+% an hour, which is what it was before the latest 11d update. The only thing that seems to help the battery drain is turning off data :(.

Haven't been able to pinpoint the source, in the settings it just shows Android and Phone Idle as the biggest sources of drain.

Turning off BT didn't seem to make a difference.

Strange, for one week after the update I was getting minimal drain at idle, them something made it jump.
[LG G6 Real Life Review] Iriroro:
Why don't you install gsam battery monitor so you know what exactly is draining your battery?
[LG G6 Real Life Review] EMJI79:
Does gsam battery work when using a vpn ad blocker like AdGuard?
[LG G6 Real Life Review] jshames:
I'll give it a try. In the past I did not find that these apps helped much.
[LG G6 Real Life Review] jshames:
In the meantime, I did radical surgery-- blocked background data from all apps except Whatsapp and SMS messenger, and switched location services to GPS only.

Drained decreased to about 1% an hour.

I also think that the "100%" battery indication is like the "F" in your car's fuel guage-- which can stay at F for quite a bit of driving then starts to drop more quickly after a certain point.

The 100% can last almost 2 hours then starts to drop at a higher rate.

Since my phone is not rooted I'll try GSam's adb method for getting more stats.

The question is will the information I get be actually useful in trying to change something. If its a hoggy app, yes, but if it just the google/android system, not much to do about it.
[LG G6 Real Life Review] Percy247:
My experience of using Gsam pointed to a combination of a android system, Kernel and google play services causing the battery drain which I can do nothing about. I agree that the battery drain is non linear with it dropping 100% to 95% at about 1% an hour in standby and after that it increases on my phone to about 2% an hour. Really hoping that IF we get Oreo it MIGHT improve things but I have strong doubts on both counts.
[LG G6 Real Life Review] jshames:
In my case Gsam identified a shopping app (Listonic) that was running in the background using a disproportionate amount of power so I shut it down.

Today I'll see how the phone does
[LG G6 Real Life Review] weltall2:
It feels to me that because I charge the phone at 15-30%, the battery drops faster. It is not the only Android I am feeling this happens to either. I just installed GSM Battery Monitor in hopes to see of it's anything that does it. I keep data off at night though. Only WiFi is running and it can take 1-2% of battery. The day I let the battery drop to 0 and then fully charge it, to recalibrate the battery, it feels the battery lasts more. I am kind of blaming Android though, for not being able to accurately read the battery. Still though, seeing how my mother's Xiaomi Redmi Note 4 can go on for days with minimal power drop, makes me feel the power cluster of the LG G6 is just pulling a lot from the Battery. That or it is just not switched and used correctly by the G6.
[LG G6 Real Life Review] branran:
Anyway to do this without root?
[LG G6 Real Life Review] Percy247:
Over the last few days standby drain has increased massively from 2% an hour to about 5% an hour. I have only updated a few google apps so that could be the issue. I thought 2% was bad but 5% is appalling! Anybody else had any similar issues?
[LG G6 Real Life Review] XDA_RealLifeReview:
Playing Candy Crush for 22 hours straight can take its toll on your battery (and your marriage). Rate this thread to express how the LG G6's battery performs under heavy use. A higher rating indicates that it lasts a long time even when playing games, streaming video and audio, and doing other CPU-intensive activities.

Then, drop a comment if you have anything to add!
[LG G6 Real Life Review] chinchillables:
Played a lot of games and apps at same time without closing them, and even dual windows some stuff. Phone seems unphased at all, other than a little heat which is to be expected due to so much running, but it ran like a PC. No lag, no hiccups, no problems. I also had the screen brightness set to 79% so that may also be a factor.
[LG G6 Real Life Review] Gboss01:
Day 1, 1st Full Charge, heavy usage especially from the morning till midday.
[LG G6 Real Life Review] prasadudwadia:
thanks for the pic
[LG G6 Real Life Review] baysik4o8:
After 1st charge to 100%, day started at 7AM and was at 5% by 8PM. The day consisted of about 4 hours of video streaming, 2 hours of Pandora, and about 20-30 minutes checking facebook/instagram.

2nd day, 100% started at 6AM and it's currently at 60% at 1:35PM. About 45 minutes checking facebook/instagram, 1 hour streaming video and 1 hour reading manga.

Both days have location services and Wi-Fi on, Screen always on setting turned off, and auto brightness.
[LG G6 Real Life Review] Gboss01:
Colour me impressed!
[LG G6 Real Life Review] Jeremiah Bonds:
What do you have your brightness set as?
[LG G6 Real Life Review] Gboss01:
Brightness is set to Auto which seems plenty good enough for all situations IMO.

Battery is at 5% time for a recharge. Final usage attached, 19hrs uptime with almost 6 hours SOT with no power saving of any kind.
[LG G6 Real Life Review] Jeremiah Bonds:
Thats not bad at all. Do you leave it on wifi all day? Did you make any adjustments out of the box?
[LG G6 Real Life Review] Gboss01:
No adjustments at all Jeremiah. I did push the auto brightness up an extra 5%. Coming from a S6 this screen needed the extra brightness when I'm sunlight.

Wi-Fi is on all day and Bluetooth for most of the day as I have a Gear S2 Classic connected to the phone.

My S6 could get me 19hrs uptime but the SOT wpuld be like 2hrs maybe 2.5hrs

Light usage should easily get me 2 days on the G6.
[LG G6 Real Life Review] Jeremiah Bonds:
Cool. I have Bluetooth on all day and I rarely use wifi, that tends to drain my battery a little more than it should.. I get about 18 hours up time but i haven't been able to get anymore than 4.50 SOT.
[LG G6 Real Life Review] Gboss01:
I soend a lot of time watching YT amd chattimg my whatsapp groups. Maybe its your mix of media that lends to you getting a little less SOT.

4.5hrs is still very good SOT compared against my old Sammy.
[LG G6 Real Life Review] Gboss01:
And the battery just seems to be getting better as the days pass [emoji41]
[LG G6 Real Life Review] bassnet334:
With heavy clash of clans use and other hard running apps I'm overall happy with the battery life. Though I did come from the LG G4.. So I could be just wowed by normal battery use.
[LG G6 Real Life Review] htcnext:
How much more battery on G6 vs G4? I have G4 now and am on the fence between G6 and Galaxy S8. Battery life is a priority.
[LG G6 Real Life Review] bassnet334:
I noticed a improvement but honestly if your looking for battery life Samsung always wins! LG Still won't last a full day really
[LG G6 Real Life Review] Jeremiah Bonds:
What do you do? I get 5 hours SOT time and 13 to 16 hours of battery..i guess that's not technically a full day.
[LG G6 Real Life Review] WAIDroid:
One of Y'all just use the Mobile Site of Facebook and tell me the SOT results. Uninstall the App of course and try to use the Opera Browser if possible as it works the best
[LG G6 Real Life Review] bassnet334:
I do play clash of clan, and that eats a large amount of battery. Without the game I would agree with your numbers definitely!
[LG G6 Real Life Review] Jeremiah Bonds:
For sure.. Games do that.. I can't wait to test it with the games I play
[LG G6 Real Life Review] XDA_RealLifeReview:
Once in a while, when your significant other yells at you, you might use your phone a bit less. Rate this thread to express how the LG G6's battery performs under light use. A higher rating indicates that the device goes a long time when you're using the phone sparingly: no gaming or video/audio streaming, light web browsing, some calling and texts, etc.

Then, drop a comment if you have anything to add!
[LG G6 Real Life Review] chinchillables:
With light use my battery barely moves.
[LG G6 Real Life Review] jakeyo:
My first day of real life use I had 70% remaining, that was with social media, 9 hours of work and 14 hours off the charger
[LG G6 Real Life Review] dantes5823:
are you guys leaving the always on display off? ive had mine for a few days coming from a pixel and this battery hasnt impressed me much. But granted ive had the always on, on.
[LG G6 Real Life Review] jakeyo:
I've turned mine off since day one
[LG G6 Real Life Review] vintagerock:
Honestly I think the AOD barely effects it. I have AOD on and after being off the charger for 3 hours with light use, a few texts and checking email, I've only gone down 1%.
[LG G6 Real Life Review] lostwarriorhere:
HI All,

I have had my G6 since this Friday that pasted. I haven't had a phone this good for a long time. I previous owned a LG V10 and this phone just out performs all my other phones. Its fast has a battery life that i have very pleased with. So far I have played games most of the day and i make it home with about 20%. If i charge my phone while driving I have about 60% when i get home. I purchased Three anker USB C cables, they seem good but its a very snug fit.

I also have yoo tech glass on the phone which was a awesome deal.

I am using Spigen LG g6 Tough Armor its very small but strong.
[LG G6 Real Life Review] CereSG6:
sometimes on los 14.1 fastcharge isn't working. Else super fast.

endurance with los could be better
[LG G6 Real Life Review] Percy247:
What is the longest standby time anyone has got from a full charge with light use? My max is just over 47 hours with very little use but I have some standby drain issues. Has anyone had this phone off the charger for 72 hours or more?
[LG G6 Real Life Review] devaa01:
On light use honestly i get 6-8h of SoT and yeah i am not kiding.