Hey guys! It's me again, and I bring word from Lord Elrond of Rivendell.
As you may have read a few posts ago, my phone's battery was being massacred by a wlan_rx_wake kernel wakelock while connected to my university's WiFi. I looked everywhere for a solution but none was to be found. I knew my good ol' Nexus 5 had had the problem fixed by having Franco's Kernel flashed into it, so I looked further into that. I had never ever considered building my own custom kernel, but sure enough I ended up porting the fixes from Franco's kernel to some sort of modded stock LG G6 kernel. I am pleased to inform you, ladies and gentleman, that the wlan_rx_wake wakelock is now nowhere to be found. I would (and eventually will) post the kernel in the Development section (I even made a neat flashable zip even though I had already flashed the kernel from a boot.img), but I am sadly not allowed to post there yet.
My success was very short lived though. I went from a phone that almost never slept while connected to my university's WiFi to a phone that did't sleep at all(!) while connected to said network. The new culprit was a partial wakelock by the name WifiOffDelayIfNotUsed. Again, I looked into this and I read that some people had fixed it in LG G4s by modding the system framework. And so I did, I modded the G6's framework and the WifiOffDelayIfNotUsed is now also nowhere to be found. Again, I went through the trouble of creating a neat flashable zip even though I had already pushed a patched .jar, I'll post it as soon as I'm allowed to.
I'd love to tell you guys that my phone sleeps deeply most of the time it's connected my university's WiFi, but such is not the case yet. Back at home the battery life is superb, but at work I still struggle to deep sleep while not in use. This is all very recent, so I guess there's a chance my mods haven't settled in yet (the patched .jar file does't appear to have been "reodexed" yet, I don't even know if that's a thing but I'll be sure to look into it). I still look at all of this as progress though.
That's pretty much it. If someone is in desperate need of either of these fixes I'm sure we can arrange something while I'm still not allowed to post them. Otherwise, I'll post them soon enough.
Cheers!