yashsingh1/xdaforums huggingface dataset:
[G2 Android Development] chillstep1998:
I leave my phone on my bedside table during the night. It loses about 2 percent of battery in 9 hours. (Keep in mind that it is on airplane mode, because I only need the alarm function)

Sent from my Munsta LG G² from XDA Premium⁴
[G2 Android Development] 1ceb0x:
Same here. I use tasker to turn airplane mod automatically in a period of time (1 am - 7 am) :)
[G2 Android Development] RenderBroken:
I have noticed a service that is causing a wake lock. Its not a serious wake lock but I had not noticed it before. I will be looking at trying to get rid of it if possible. I had added a feature that when looking at dmesg you can see the sleep cycle and during the cycle, if its interrupted, you will get a new line stating what the wake up source was from. If I remember correctly it has to do with ipc.
[G2 Android Development] 1ceb0x:
Is it somehow, PowerManagerService.Wakelocks?
[G2 Android Development] RenderBroken:
Not that I had ever seen but I could have missed it. An example of an entry i am talking about is:

last active wakeup source: KeyEvents

This is one that I have found but because this shows up it doesn't mean anything is wrong. 95% of these are naturally occurring. This is just a way to see what the cause for PM not going down accordingly.

And this is not pointed at you but I don't want a bunch of people complaining about "wakelocks" they see like the above example. This is just a good debugging tool I wanted to add because I like to learn and it would appear I have followers of this kernel that like to learn and discuss as well.
[G2 Android Development] Matze060906:
I wanted to give this kernel a new try. Installed it and I've lost non of my paid apps. Is this issue only on a specific device? I've a d802.

BTW, here's a Screenshot from wakelock detector. Is it normal, that power manager have so many wakelocks?
[G2 Android Development] merikgvr4:
Good morning render, will your kernel work with one+ room by vectus? Still on my first recharge with room and wanna try your kernel after a few charges. TIA.
[G2 Android Development] metalboy94:
I lose about 2-3% battery in 7 hours with WiFi on.

Addendum: interactive governor is absolutely fantastic, especially in idle with data on for some reason.
[G2 Android Development] RenderBroken:
Weird! It very well could be device specific. 7 carriers fml lol

I dont think that wakelock is normal but it is not causing any adverse effects either. Someone else had brought it to my attention and I will be looking into why its showing so high. Thanks for sharing!
[G2 Android Development] Raagh:
Finally flashed r3 yesterday mahdi latest clean install. Im almost 1 d and a half no reboots. So im very happy. Hopes its stays this way :)
[G2 Android Development] manager77:
any news about

the ext. sdcard for 320 versions....was fixed
[G2 Android Development] crnkoj:
The power manager wakelocks are just all alarms and partial wake locks together. Out of my experience is best to check with better battery stats, and you will see the app/apps doing it. Mostly it's Google services or some widgets that refresh in the background. Nothing really to do with the kernel.

Btw, are there still reboots with r3? I went to vanirs dorimanx cause of those, using Alucard governor and hotplug, which seem to be very effective. I'll probably install a new rom soon and try with r3,or is r4 gonna be released soon - these dissappearing apps still bug me a bit... Have you looked into the ramdisk about it compared to stock Mahdi kernel or vanirs dorimanx where this doesn't seem to happen for me.
[G2 Android Development] Ace42:
CM isn't AOSP, neither is the 1+1 port.

Transmitted via Geass
[G2 Android Development] RenderBroken:
Not yet in R3 but I am working on it for the next R build.
[G2 Android Development] RenderBroken:
Yea the reboots are now under control so give it a shot and report back. I would like to hear about your experience. Also yes, I have looked at the ramdisks and they are pretty much the same. I may be overlooking something small so I will be looking again and actually comparing files using notepad++. I will get to the bottom of the issue. I don't have a date yet of when I will release R4 though I am already working on it.

One thing I could use help with is how to extract files from a ".LZ4" file so I can start building for Stock roms. If someone can help me do that the sooner I will build for Stock! Thanks guys!
[G2 Android Development] 1ceb0x:
People reported this kernel working on CM as well... I guess it is a 'hit and run' type of thing.. You have to try on your own phone to see if it works on a certain rom.
[G2 Android Development] RenderBroken:
Actually, I have not really changed much from R11 to R12 except the Ramdisk. I am still working on a new kernel based on the new LPl Source + CAF. Sorry I cant help more but if you need anything just holler.

That one is not in use yet but thanks for helping!
[G2 Android Development] loveyoulovemetn:
Please help us F320 users to fix wifi problem in CM12.1/CM12! Thank you so much [MENTION=5438598]RenderBroken[/MENTION]
[G2 Android Development] axeronb:
Too many reboots

Lg g2 802

Got back to srock...

Hope next build will be awesome
[G2 Android Development] Lawlrus:
Hope next time you post logs
[G2 Android Development] RenderBroken:
I plan on doing so with the new LP/CAF source. I will not continue working on current JB "LP" source and I wont waste time trying to get it to work for f320x users. I know yall want to use the latest and greatest but I already sink enough of my own time into these projects for me to sink even more into a dead end.

1. You have not shared any logs

2. You have not told me with what rom

3. You have insinuated that the current build you tired is not awesome lol

4. Still no logs

5. You have not noted the build for which you are using nor the settings if any that you have changed. If none, just note that.

You could try just staying with an "older" LP rom so that you have no issues. Numerous others use R12 and have not reported such a problem so I would say it is the Rom you are using. It could be too much newer than the ramdisk I have included in R12. Thus the reason why I said you could try just sticking with an older build. I really don't see myself continuing on the old JB source LP kernel. I would rather work on the new source and take my time with it. Also I am working on a type of flashable that makes it so my kernel will work with ANY AOSP Rom (Not Stock LG). Because I am tired of chasing the newest changes these different rom Devs make. If they make one change it could throw off stability with my kernel. But regardless, if you could give more info, we could actually help each other.

Thanks for the laugh!
[G2 Android Development] Berkant Ayhan Karabudak:
Synapse App Error. :( Resurrection Remix 5.1
[G2 Android Development] ZeNiXxX:
read op.... download Universal Kernel script synapse from xda.... its mentioned in first or second post
[G2 Android Development] RenderBroken:
Thanks for your help! I have actually released me own special version of UKM here :Render-UKM

I have made a few modifications and plan on many more. It offers everything UKM does and then some.

Also I need some testers coming up. I am working on AnyKernel and need some ppl that can test flash on clean flashed roms. If you are interested let me know.
[G2 Android Development] liusi522:
F320S ,I can test .

All my best .
[G2 Android Development] RenderBroken:
ok it will be based on the same kernel as R12. so expect the usual issues with f320. But when installing this build I need you to be on a clean rom flash.
[G2 Android Development] ZeNiXxX:
no problem.

I can test,too :)

Model: D802

Rom: 5.1.1 blisspop
[G2 Android Development] TDSJR:
Ill help out with D801
[G2 Android Development] nimrodsv:
I can help if you need.

D801 5.1.1
[G2 Android Development] bamonkey:
D800 here same device your...wife?...uses now lol.

Can still provide feedback if/when you need it.
[G2 Android Development] RenderBroken:
Yea I think its ready. I have set it up to bump the boot.img file. Also I have set it so it should work with SELinux set to Enforcing. I plan on creating a test build when I get home. I have to create a new build script.
[G2 Android Development] Hbohd:
D802 user ready and happy to test :)

Btw. It's just R12 or some additions like d2tw fix? :>
[G2 Android Development] nklenchik:
R12 was before the fix, the next release may have it.
[G2 Android Development] jeyd02:
May?
[G2 Android Development] giorgos123:
Hey guys, I'm using this kernel with Ressurection Remix 5.0 ROM. I have undervolted the CPU, lowered wifi search intervals, am using smartmax as my governor and generally I have tried my best to tune the kernel and ROM for better battery life. My social apps are Facebook(and Messenger), Viber and Snapchat. The problem is though that whenever I flash this kernel, the battery gets drained insanely fast. Fast like on CM11, stock kernel, I was getting 4 hours SOT and now on cm12 with render's kernel I'm roughly getting 1.30 - 2 hours screen-on.. I have installed wakelock detector and the only thing that keeps popping up is an *alarm* wakelock, mainly from messenger facebook and viber. I only have a few apps installed and none of them should drain any battery. Also on the wakelocks I saw Google Play Services was running for like 3 hours straight, though I use it once a day. This probably explains why when I opened synapse, it said that my phone was 98% awake and 2% in deep sleep. What is going on? I have done multiple wipes, and the Facebook apps were never a problem before.

I am in no way trying to criticize this kernel, it's just that I really like its features and want to use it, but this low battery life is kind of unbearable. I'm losing 2% per minute when on WiFi. Can anyone provide any course of action to try and pinpoint the problem?

Thanks in advance and thanks for a great kernel!
[G2 Android Development] Choristav:
No, we can't do it ourselves, but you can provide the logs necessary to pinpoint the problem.

Also any battery issues are not kernel related (unless the kernel has a governor that forces the cores to a specific frequency for long periods of time).

Your problem is surely with wakelocks and location. Search around, there's a lot of information. Also what happens when you stick with the stock kernel?
[G2 Android Development] phoenix_rizzen:
There's a glitch with recent versions of Google Play Services and Android 5.x ROMs that keeps the CPU awake. You can work around it:

1. Settings --> Privacy --> Privacy Guard

2. Click the 3-dot menu and enable built-in apps.

3. Scroll down until you find Google Play Services. Long-press on it to modify the settings.

4. Disable wake-up, keep awake, and auto-start.

That will allow your CPU to enter Deep Sleep and fix most of the issues. At least, it did with my D803 when I had similar issues after upgrading to 5.1.

Also, make sure C3 sleep state is enabled. In some kernels on some ROMs, it's not enabled by default.

I was ready to give up on Android 5.x-based ROMs due to the horrible battery life compared to the previous 4.4-based ROMs. Lucky if I got 1 hour of SoT throughout a day, and leaving my phone on my desk as work would see the battery level drop 30-odd %. Now I get 4-6 hours of SoT, and standby use is under 1% per hour.
[G2 Android Development] giorgos123:
Yeah, I basically meant if someonce could tell me what information to show you so that it can be solved :)

As for the stock kernel, the problem I'm experiencing generally happens in Lollipop ROMs, regardless of the kernel. B14CKB1RD kernel has a tad better battery but no DT2W and the stock one has problems with wifi and data, so both are a no-go. And also I didn't know where else to ask, the thread of my ROM says that any question regarding the ROM and its performance when a different kernel is used will not be answered.

What logs would you like me to provide?

---------- Post added at 12:38 AM ---------- Previous post was at 12:34 AM ----------

Thanks for the workaround man, I have applied it and will tell you if it works! :D And yes, C0,C1 and C3 are enabled in the kernel by default.

EDIT: Well, I still just lost 4% in 2 minutes of doing nothing but hey, let's give it a little time :P
[G2 Android Development] Lawlrus:
Asking for etas eh? Eh!?!?!
[G2 Android Development] liusi522:
Great .I always wipe cache /Dalvik cache /system /data .

If you need ,I can KDZ first
[G2 Android Development] blastagator:
No problem. I'm not really sure what source Omni 5.1 and TWRP LP are looking for. I've tried several different kernel build trees all of which seem to just infinitely hang on the LG logo.

I know it is doing something though, if I don't have SELinux on permissive, i get into a reboot situation instead of the infinite hang.

I'll definitely give the new -caf kernel you're working on a shot once you have it building.

One day I'll get us to the new sources - one day.
[G2 Android Development] jeyd02:
No way!!
[G2 Android Development] blossom:
Please let me know where i could find this privacy settings

i dont see it anywhere through my setting

thanks
[G2 Android Development] liusi522:
Great .I always wipe cache /Dalvik cache /system /data .

If you need ,I can KDZ first:o
[G2 Android Development] vrwmiaris1:
Guys I'm about to try this kernel, I'm bit concussed with ukm zip file and which version i should flash.I'm on 5.02 PSD Rom.tnx
[G2 Android Development] Hid3rs:
You'll need R11 on 5.0.2 ROMs (R12 is for 5.1.x). Without flashing the ukm zip you won't be able to tweak the kernel with Synapse, so yep, just flash it via recovery.
[G2 Android Development] vrwmiaris1:
from what i see the last one for 5.0.2 is the 18/3 right?ukm file auto tunes the recomended settings for kernel?
[G2 Android Development] sonic997:
Does it support smart cover for LP?

I think the small quickwindow is very useful for G2

Support for this is very important

Thx
[G2 Android Development] geov03:
Can I flash this kernel on my d800 running CM12?
[G2 Android Development] KevTheGuy:
R11 for 5.0.X , R12 for 5.1.X

You can always flash the ROM again if you want the kernel included in the ROM, so yeah [emoji2]
[G2 Android Development] geov03:
I couldn't find 'Update touchscreen firmware' under tools tab?
[G2 Android Development] geov03:
DTW

I couldn't find 'Update touchscreen firmware' under tools tab?

or where should I run the given command?

I tried in the terminal emulator app ,but no luck.
[G2 Android Development] TDSJR:
did you first get root access?
[G2 Android Development] RenderBroken:
Since I dont include Synapse support built in, there is not button as of right now. If you have ran that command in terminal and you still have issues. Then use an older rom build. I am not continuing support with the current LP Kernel. From this point forward I am focusing on the new CAF kernel.
[G2 Android Development] geov03:
Yes, I granted root access for the emulator first.
[G2 Android Development] vrwmiaris1:
[MENTION=221618]ReNDeR[/MENTION], are there any recommend settings with 5.0.2 r11 kernel?

Στάλθηκε από το LG-D802 μου
[G2 Android Development] Lawlrus:
I never understood asking things like this. No one uses the phone the same way, so how do you figure there is one set of global settings?
[G2 Android Development] Really now:
I always go with the stock settings. If you feel the need to tweak anything just make one change at a time and see how it works. :good:
[G2 Android Development] SoMeiBoL:
It does not respect maximum cpu frecuency.

V and X of synapse???

AICP, render kernel R12 and UKM 3.8.1.4.
[G2 Android Development] RenderBroken:
Can you try to get me a couple more screenshots? I don't see anything wrong in the one you sent me.
[G2 Android Development] bromoxitos:
hello to all.

i just last day flash the CM nightly 5.0.2 with render kernel...(great work btw) but i have an issue with synapse whe i install it and i go in to make some change with governor and i/o and frequency staff in the start works but after i make a reboot and i go to app, i see a smg who says that boot settings canceled.....why happen and why?

i must uncheck in settings the stability check???

i make a reinstall the app but i have the same issue.

i have install the app and synapse who says for better results like the OP says but i dont see any appin my menu....or is this a custom settings by the dev?

Clean install with JB bootloader and kk baseband

LG G2 D802 CM 5.0.2 9-5-2015 nightly.

p.s sry for my english
[G2 Android Development] SoMeiBoL:
Of course!

Thanks friend!
[G2 Android Development] RoboJoe:
Going with the easiest answer first.. do you have your kernel settings applied at boot?
[G2 Android Development] SoMeiBoL:
Yes.
[G2 Android Development] RenderBroken:
Looks like its being throttled by the Thermal Driver.
[G2 Android Development] bradreeves94:
Possible Stock Render Kernel for LS980 & other variants

I noticed in a previous post by your Render that you would be building your kernel for the Stock G2. I have the LS980 (Sprint). I know how busy u are, but would love to use this since it looks like Dorimanx isnt working on one for Stock G2 Lollipop. Just wondering if u have started working on this great kernel...Thanx 4 ur hardwork and time involved in doing this for us.
[G2 Android Development] berryman13:
What are you talking about?

Dorimanx is the only one publicly maintaining a stock LP kernel right now, for D802 only because it's the phone he has. It will be on your variant once it's finished. I assume the same is going on with render but he's just not posting it yet.
[G2 Android Development] vrwmiaris1:
Guys i know that it's not the appropriate thread, but why the developers are abandoning such a powerful phone like g2? It's a pity

Στάλθηκε από το LG-D802 μου
[G2 Android Development] skulldreamz:
Answer is quite simple, people move on and get new phones so naturally their work is going to slow down. Id be happy if I were you with how much development and crazy good devs the lg g2 has and what you have gotten already from all their blood, sweat, and tears... Just saying...
[G2 Android Development] SoMeiBoL:
I got it fixed, I uninstalled the Synapse and I returned to install.

But today with updating AICP, I can not use this kernel ... At startup "Unfortunately, System UI has stopped".
[G2 Android Development] RenderBroken:
I am not building a kernel for stock roms but I am building using the new caf kernel put together by rashed. This will only support roms that use the new caf trees. So really only aosp will be supported. Sorry for any confusion.

Because there are always better. Now I don't have to worry about heat, I have a bigger screen and I have had a completely fluid android experience using the 801. Still I will support the g2, just not in a hurry. I have alot going on right now. Still I am making progress on my new kernel.

Looks like aicp has changed something in their ramdisk so now my kernel won't work. I plan on releasing a modded version or r12 that will use the new anykernel scripting I have been working on. This new kernel should technically be compatible with any current LP rom.
[G2 Android Development] RenderBroken:
Disregard
[G2 Android Development] Lawlrus:
Because OEMS are stupid asses. They made this device with different hardware for each variant, why would you want to deal with all that horse **** as opposed to getting an N6 for example.

Same hardware across the board, aosp native so its stupid easy to build and maintain.

Answer? They don't, and I don't Blame them, this phone is great and a pile of **** at the same time.
[G2 Android Development] RenderBroken:
Couldn't say it any better at times. Like with my OPO, it just works, I build a single kernel and it just works. It is refreshing. But like I have said, I plan on continuing support for the G2. I do not see a stopping point and even so with the new kernel source that is coming out for AOSP roms. Its exciting and the performance is noticeably better. I can move on knowing for certain the base of the kernel is solid. It is essentially CAF with LG G2 Blobs ontop. Also I could release more builds and such on the current kernel but I would rather get the new AnyKernel flash-able working so I don't have to deal with Ramdisks on the G2 anymore.

Also note that I see a large influx of new G2 owners because the G2 is getting so cheap now. More ppl are going to buy it. So I don't see the community dying anytime soon. Lastly, note that we don't make any money doing this (Yall already know ) and the time we spend on this is pretty crazy. Like for me, I dev during the day remotely and then when I get home. I could spend about 3-4 hours a day Deving. I do it because I am truly interested and get excited with it all. But still we don't really gain much other than personal satisfaction. Saying that, its hard to get any satisfaction spinning your wheels playing whack-a-mole trying to fix every little issue that keeps coming up because one rom changes something in its ramdisk or another adds a new dependency, etc. Then when this happens you have the user that complains and passively threatens about using the Stock kernel of a rom because of one reason or another. Or people make demands of your time. I could list them on and on. I can step away from it all but it still takes away from the personal satisfaction. Then add that the G2 is such a finicky device that many ppl own and want to work (I dont blame them for that), it raises the pressure. Or when ppl ask you over and over to fix wifi for F320x and you answered this question over and over and someone tries to call you out for not working on it. . . ( I don't blame the user for wanting to use my kernel and use LP without issues like the rest)

I don't say this as complaining but more just a gimps of the other side of Dev work. The dark side if you will. This is why devs stop even using XDA. It gets old and makes the whole experience unenjoyable. But I am pretty happy, I can normally brush off such things and understand user frustration. I really just wanted to give you a glimpse of what we as Devs see daily and why someone would drop a device.
[G2 Android Development] picaso86:
THANK YOU!!!! :o I was going crazy trying to fix this DT2W issue.

FYI... Running XenonHD 5.1 Rom on VS980 :good:
[G2 Android Development] RenderBroken:
This is already implemented in R12. Not sure about R11 though if you are not using LP 5.1.x.
[G2 Android Development] picaso86:
It was working for me... I tried every setting possible.
[G2 Android Development] Matze060906:
Hey render. Haven't read your thread for a long time,but now back again. Only to clarify: this fix doesn't help with the screen wake on bug after dt2s right?
[G2 Android Development] RenderBroken:
correct. This is just to fix an issue with DT2W about a month ago.
[G2 Android Development] jeyd02:
But only works with BlissPop?
[G2 Android Development] RenderBroken:
Its not rom dependent. It should work on any rom. All it does is update firmware and enable touch gestures.
[G2 Android Development] jeyd02:
Ohh well, I mean, that auto wake bug. Is that the fix for it?
[G2 Android Development] RenderBroken:
No it is not.

People need to hang tight for a bit while the move to the new CAF branches take effect and more roms support it. I am working on the kernel for it and it just takes time for the migration.
[G2 Android Development] jeyd02:
Ah okay. Np just wanted to confirm.
[G2 Android Development] RenderBroken:
It's all good. I do not mind ppl asking questions. I am sure someone else thought the same and now they can see the answer in thread.
[G2 Android Development] crnkoj:
Hey guys, havent been following here a lot, but i tried blisspop 5.1.1 with the latest lolipop kernel from you render and the phone heated up so much compared to my old config (4.4.4 LS + your kernel R24 almost stock). Is this normal for lolipop or have i done something wrong? thanks