yashsingh1/xdaforums huggingface dataset:
[G2 Android Development] GalaticStryder:
Hipnose final release schedule

Hi, people. Finally have been able to get my hands on fixing the latest issues on Lambda kernel, tough work but should now be ready for embracing everyone.

What's inside?

CLEANUP! is the main key. No OC is included for now, the kernel is getting high performance without it. Will be reimplemented when I lock the boot frequency the proper way.

Battery leaks are gone (at least on my testing) after all workqueue updates. Also, all devfreq (GPU) governors that aren't much important have been removed. We now run a Linux 3.10/3.4 mixed tree for CPU that allows the usage of "newest" governors (3.10) together the "old" ones (3.4).

Old -> Ondemand and Userspace governors from dorimanx, he has got many good fixes for 'em, not sure if other devices like N6 actually have those problems.

New -> Interactive, Conservative, Performance (no changes so meh) and Impulse, they are from upstream CAF-1.3.5 + neobuddy changes/optimizations. Impulse is his work, totally.

State notifer now hooks on lge code instead of Linux mdss code, it's a little bit more responsive after this change but not a huge difference. It also follows neobuddy's latest upstream code + dorimanx 'queue' backport for 3.4. On my test it has worked like a charm.

MSM limiter has been bumped to 5.4 and resume/suspend code redundant callbacks were fixed. E.g: Minfreq was using state_suspend to run or not but it doesn't need since it will only run on suspend after splitting the code. There's a delay of 50ms when you call the resume (to ensure every driver call gets answered), suspend has the usual delay of 2~3s.

BETA 4 is scheduled for 06/24 for D802 and 06/25 for VS980/LS980/D800/D801.

More to come...

Ramdisk part: Took me some time but I think we can now have a better approach on most CAF/CM based firmware since I managed to change all g2 configuration files by my patched ones based on Nexus 5 (CAF).

Much more needs to be done before going into stable although this is finally a great starting point in terms of compatibility.

D802 builds are live at AFH.
[G2 Android Development] lunafag:
Will it include Synapse support?
[G2 Android Development] matt4321:
Please don't be demanding of work that is done from free.

Forum moderator,

Matt
[G2 Android Development] GalaticStryder:
The previous post was updated jus now.

For the people wondering, not an internet problem but a little worse, my Gentoo server has broken (systemd) yesterday so all queue works were stuck and I can't build a kernel on my phone or Raspberry. Hopefully, will be able to re-do it today and backup/migrate everything to Funtoo.

The BETA release for D802/LS/VS is being compiled on my Fedora station for now, which also needs to be updated to sooner or later.
[G2 Android Development] blastagator:
I'll be back to test d800 when it gets posted. Sorry, real life has been hectic lately for me!

If you're running a VM to build, I like BBQLinux, might be worth checking out. It is built of Arch with android in mind.
[G2 Android Development] dan3840:
beta 4 does not pass the boot screen I'm using the cm12.1 version of drastic
[G2 Android Development] android extreme:
I think that this is normal. In the op the developer said that the lollipop rom that aren't enough updated doesn't boot with this kernel even if it use anykernel2
[G2 Android Development] dan3840:
but I use the latest incremental version and works may well be some error in the script
[G2 Android Development] ytgbg:
Report: Beta N4 on Slim6 unofficial - no sim card detected and google playstore fc.
[G2 Android Development] android extreme:
Hipnose n4 flashed on resurrection 5.7.0 fast as hell but i have always the same problem: i'm not able to change the max gpu frequency from 650 to 450
[G2 Android Development] szabyka95:
From where can I get slim rom?
[G2 Android Development] Josh:
Me too,Cm13 nightly. Smooter like butter ,battery is great 72 percent, 2.30 hours on screen just surfing and social networking, no tweaks on kernel auditor.
[G2 Android Development] paul89rulez:
Beta4 is so fast! Using with impulse and GPU OC.
[G2 Android Development] samuele94:
Have you tried kernel adiutor,synapse?

I'm curious about this kernel but i hate oc (cpu or gpu)

Inviato dal mio LG-D802 utilizzando Tapatalk
[G2 Android Development] paul89rulez:
Simply don't oc. You van control freq with kauditor mod
[G2 Android Development] samuele94:
See this http://xdaforums.com/showpost.php?p=67476322&postcount=1109 and http://xdaforums.com/showpost.php?p=67476452&postcount=1111 if freq control works i'll flash this kernel but for now seems ( by reading the comments ) it don't works
[G2 Android Development] Floodland:
Beta N4 working good with Exodus. Now, bricked hotplug does no seem to respect defined values. I like a responsive phone, but hate when CPUs are hotplugged for no good reason (CPU0 at 300mhz, usage under 30% and bricked plugs wake up CPU1 on and off). I adjusted bricked parameters for idle freq to 1728mhz, and it keep waking CPU1 without reason, then I changed Runqueue threshold hotplug for all cpus (cpu1 to 85% to make sure it won't plug without reason), guess what? Cpu1 keeps going on and off without significant load (cpu0 under 30%). I assume parameters are being ignored, or there are other conditions for waking up CPUs.

The phone is wasting battery, cpu cycles and essentially efficiency with this behavior. Maybe something else could be waking up cpus? (Mpdecision is disabled, by default)

Forgot to add, multicore power saving is set to aggressive and schedule workqueues on awake CPUs to save power, on...

Thank you, keep the good work
[G2 Android Development] banjaminicc:
"No UCI support detected"
[G2 Android Development] zizuka:
Review for build N4: save N4 build somewhere safe and keep it safe. This is one perfectly stable build. Battery and performance is just excellent.

N4... If future builds have issues... Go back to N4. Thank you for this awesome kernel! :)

Sent from my LG-D802
[G2 Android Development] android extreme:
I've tried severasl times with kernel adiutor and kernel adiutor mod but the max frequency remain on 650. But don't worry the system doesn't use the overclock frequency too much
[G2 Android Development] samuele94:
thank you! Okay, as soon as I have time I try it very willingly. I was afraid of the OC GPU because in my area there are 30 ° C so the g2 also heats with the clock 450

which settings do you recommend?

Inviato dal mio LG-D802 utilizzando Tapatalk
[G2 Android Development] android extreme:
Hi sam sorry for the delay, the setting are these(on resurrection remix 5.7.0):

-1024 cache buffer and zen scheduler

-impulse governor(enable io_is_busy, lower timer rate to 10000 and highspeed_load to 70)

-enable mpdecision hotplug and disable bricked hotplug

-raise Sync Thredsholt on cpu side to 1.95 ghz

I don't touch nothing other, and for the heat don't worry i'm italian too and in my area i have the same temperatures(il calore arriva principalmente quando la memoria non è messa in condizione di lavorare bene e la cpu per compensare passa piu tempo a frequenze piu alte)
[G2 Android Development] horbolsi:
how enable io_is_busy ?

change the value from 0 to 1 ?

Envoyé de mon LG-D802 en utilisant Tapatalk
[G2 Android Development] samuele94:
Yes, Io is busy 1 = Enabled

Io is busu 0= Disabled

Inviato dal mio LG-D802 utilizzando Tapatalk
[G2 Android Development] Kid Zen5:
[Kernel 3.4.112][CM/CAF] Lambda Kernel ~ Hipnose Support F320 ?
[G2 Android Development] GalaticStryder:
My server is now functional but I need to setup all my stuff back again on KDE this time, install all tools to build Android and my kernel. Compile F320 following my guide if you eagerly want it.

ifdef WANTS_LAMBDA

include <patience. h>

endif
[G2 Android Development] samuele94:
Hello, you know any command to force the GPU to the maximum of 450 instead of 650?

Inviato dal mio LG-D802 utilizzando Tapatalk
[G2 Android Development] blastagator:
^lol.

Built beta 4 for d800. Hang on LG logo like the last one I tried. Can't pull logs (I don't think) when it hangs there, so I'm not really sure what is going on. :crying:
[G2 Android Development] GalaticStryder:
Let's get this clear once and for all. Everything you need to change on Linux is far away much better from Command Line. The GPU complaints are from Adiutor and don't reflect the proper values set in the kgsl driver.

/sys/class/devfreq/fdb*kgsl-3d0 is where you should rely for GPU settings.

450MHz max freq is locked in the hardware_qcom_video_msm8974 code and can't be set to 650MHz without recompilation of the firmware (people say ROM, I don't agree though). To avoid this we simply lock the 450MHz step to redirect to 650MHz step instead.

Usage:

cat time_in_state #will return 650 as most used by default.
cat max_freq #will return 650 by default
cat available_frequencies #will show what steps can be applied to max/min_freq
echo 123456789 > max_freq #they are 9 digit so 450MHz would be 450000000 and so on...
[G2 Android Development] GalaticStryder:
What anykernel branch you using? Shouldn't the init files be 'common' then work on every variant? Use 'init' branch as test and sync latest code in limiter. There's a commit from faux123 that can cause this problem (GPU), view commits by author and change name to faux123 if you have some time or wait some more days until I recap it for the stable release, I'll be cleaning some code.
[G2 Android Development] Kid Zen5:
I hope that he will support the F320
[G2 Android Development] gideonlfc:
After flashing this on my D800 running AICP I'm not getting any sound from my ringtones.

Any idea why and how i can fix it?
[G2 Android Development] rabies876:
Where is the link for the new update for D800
[G2 Android Development] blastagator:
Previous build I used lambda branch for kernel and anykernel. Tried init branch for anykernel this time. Result was still the same - hang on LG logo. Will tinker around with it some more tomorrow night, but for now I need to get to sleep.

For reference to all: latest cm13 nightly - 6/26

.
[G2 Android Development] gideonlfc:
I flashed this https://www.androidfilehost.com/?fid=24499762636005741
[G2 Android Development] AlexVipXDA:
Only sinapse work well for tweking this kernel or is good kernel auditorium too?

Inviato dal mio LG-D802 utilizzando Tapatalk
[G2 Android Development] sherry9873:
pls give me fast charging kernel

can u pls provide me only fast charging kernel i don't need any other things if this is possible pls provide me that kernel (AICP D800) :rolleyes:
[G2 Android Development] Josh:
Can someone explain this,mean in few words? Sorry for noob question. Is it possible to get stuck on 450 mhz ? Great work! ?
[G2 Android Development] aleasto:
Open a terminal window, type (once at a time):

su
cd /sys/class/devfreq/fdb*kgsl-3d0
echo 450000000 > max_freq

If you now type

cat max_freq

you should get 450000000 as response, meaning you did well.
[G2 Android Development] GalaticStryder:
Well explained sir, just missing that 450MHz frequency is a link to 650MHz. The output wouldn't change. All other frequencies are fine, I explained in my previous post why we need to use this "hack". This is a dorimanx hack as well cause it is part of LG MSM8974 code somewhere (closed source).

In Android Terminal emulator you can use Vol up + T to use 'tab' command, which will auto complete.

E.g:

cd /sys/class/dev(vol+T) freq/fd(vol+T)b000000.qcom

And so on.
[G2 Android Development] blastagator:
edit: Found my oops. Rebuilding. Will report back.

edit2: Fixed oops and still hangs on LG logo. Drat.
[G2 Android Development] Josh:
Sorry guys,I can also change Gpu freq to 450 with es file because I'll try it and i done it, change it to 450mhz. I cannot do it with terminal.
[G2 Android Development] astherion:
[MENTION=6175749]GalaticStryder[/MENTION] Are you planning release N4 beta for ls980? Because I'm so tired from pure build and impatiently want to test n4 beta, he-he
[G2 Android Development] samuele94:
Thanks! This fix works for me,kernel adiutor says 650 BUT gpu works at max 450 without problem,now it's time to test this kernel!
[G2 Android Development] Josh:
I change to 450 in es explorer, I don't know is that work? Which app you have to look at that? And question abot terminal. You change it with android terminal app or with computer? I try it with terminal emulator app and I can't get in new row. How to do that? Sorry for noob questions. Thanks in advance.
[G2 Android Development] samuele94:
https://play.google.com/store/apps/details?id=com.quicinc.trepn&hl=it

With terminal app,only copy and paste

Edit: Open Trepn Profiler and touch the symbol ampoule, go to settings -> data point-> enable GPU Frequency and go back after this touch Profile System-> Graph and go to home and launch games or heavy app and after a bit of time go back to Tremp Profiler and see if gpu use 650 or 450 as max.

Instead, for the fix that I found before, I just did copy paste and applied a line at a time.

I wrote just now because I managed to find a bit of time to explain
[G2 Android Development] Josh:
Thank you very much samuele!
[G2 Android Development] samuele94:
I have updated the previous post with the explanation!
[G2 Android Development] Mrondo:
How did you acquire the Android N soft keys in your nav bar? Looks sick asf
[G2 Android Development] samuele94:
Sorry for OT It's Pitchblack theme https://play.google.com/store/apps/details?id=com.resurrectionremix.pitchblack&hl=it /OT
[G2 Android Development] Josh:
I do it,thanks. After copy paste and install game and try gpu doesnt get up higher of 450mhz. Great!
[G2 Android Development] rdNNNN:
Having a little missunderstanding regarding GPU overclock.

As its widely known, in order to achieve higher clocks, most of the time, voltages need to be raised. That is true from desktop CPUs/GPUs to SOC on smartphones. In case of CPU overclock in our device, we can easily see and edit voltage tables for a specific clock using some softwares (like kernel adiutor). So, as you know, "our" adreno 330 defaults as a max. clock of 450 mhz. So, when we set higher clocks, like a 650 mhz, are voltages beeing increased too? I would like to get it clearified so I can further tune my system to avoid excessive throttling. Thanks in advance
[G2 Android Development] szabyka95:
After installing kernel, my phone won't connect to mobil internet anymore. That's weird.
[G2 Android Development] Josh:
Anyone can suggest best tweaks for battery and performance,some balance between those two on kernel auditor or I just leave what is already got. I already put GPU on 450 mhz. Thanks in advance. Edit:Using CM13 latest nightly.
[G2 Android Development] Floodland:
Default settings are good enough.

Now, I found that bricked hotplug switch on and send to sleep CPU1 for no good reason, all the time.

My workaround is to use an old trick: Force 2 CPUs online while the screen is on. This setting improve response times and for my usage, with beta N4, actually saves power (penalty for switching cores on/off as bricked does impact power usage).

I did not played much with schedulers with this build, but in general terms, I like zen, with 512kb buffer, bfq use to play nice too, and SIO is my safe option.

Last but not least, getting out of cm13 is the best way to optimize your phone ;)
[G2 Android Development] pmgnet:
Hi, is ZRAM built into this kernel? Beta? Stable? I'm very interested to apply to my Bliss ROM installation, as my phone can't seem to keep up with my app usage. 2G RAM isn't cutting it. Going to just try it in the interim. Are there "ZRAM Settings?" How might I see the impact?

Edit: Is there a beta for D800? latest appears to be D802 only LambdaKernel-Hipnose-Beta-N4-d802-06242016.zip
[G2 Android Development] Josh:
What you suggest about ROM? I've got 5 SOT on CM 13,works well,no issues.
[G2 Android Development] devraye:
how to fast charge with this kernel???
[G2 Android Development] Floodland:
Exodus is my daily driver. 5hs SOT seems fair though.
[G2 Android Development] android extreme:
Galacticstryder would be possible update the gpu driver with this(https://developer.qualcomm.com/software/adreno-gpu-sdk/tools)? I'm just asking, i'm not pretending anything from you
[G2 Android Development] DvineLord:
is the d800 going to get an update?
[G2 Android Development] android extreme:
Nope but it will have one. Our developer compiled only a version because his building machine has a problem but he said that soon will repair the machine and push a new kernel release

GalactikStryder i've flashed the aicp of 29/06 but when it reboot(the first boot after the installationb of your kernel on data and cache on f2fs)the system ask me a pin to enter. So i rebooted manually in recovery and when i've tried to full wipe the sdcard the recovery show a red written where say that was unable to mount the partition the i select the option to format everything and everything became normal. What could have caused this issue(that gave to me an heart stroke :) )?
[G2 Android Development] murok9042:
Synapse does not work unfortunately. Use Kernel Adiutor instead

Gesendet von meinem LG-D802 mit Tapatalk
[G2 Android Development] xxoscarxx28:
Last time when CM12.1 just came out and became stable enough for use I tried to flash the zip that came from Qualcomm... It works! And you can also feel better overall smoothness (and higher benchmarks) but there are several bugs, like green videos sometimes.

I'm currently testing to see if it is possible for CM13 too ^^
[G2 Android Development] android extreme:
So you are testing this new driver? Could i ask to you how you feel the phone? Smoother faster? Did you encountered any problem? To install i must only flash viua twrp?
[G2 Android Development] xxoscarxx28:
Yeah it is a flashable zip packaged by Qualcomm (for Nexus 5, 6, and 7) and the driver is said to be specifically designed for MOB30M which is what we currently have (or higher since I use an older build) I haven't flashed it yet but I'll do it right now since I made a backup now :D

EDIT: It booted just fine, and there is better overall smoothness (can't perform benchmarks yet) :D
[G2 Android Development] Josh:
I tried Exodus ROM but got wi fi drops ,smoothness is great and response. Clean install,wipe system data cache and dalvik then gapps and after don't got super su I flash again without gapps. Also tried Healty Marshmallow kernel .
[G2 Android Development] thtkidsvm:
On most of the ROMs I've tried when I flash nexus 5 mob30m adreno driver camera always crashes the ROM and causes it to soft reboot. When I try to look at logs or record logcat via adb the log is empty nothing shows at all. All I know is that if I replace the egl files with the egl files that came with the ROM the camera works again but some apps fc from time to time. Other than those issues the ui always feels snappier than the drivers that came with the ROM.
[G2 Android Development] djchru:
Try some of the roms from here. I'm personally on Beanstalk and haven't had any wifi issues (or really any other issues at all except for nfc).

http://forum.yairworkshop.com/viewforum.php?f=16&sid=041fc03dc884cdb91ade489c7e42733e
[G2 Android Development] Josh:
I'm on CM13 ,works well but Exodus is more responsive and smootness is great. What about battery life on Beanstalk?
[G2 Android Development] djchru:
I'm using the Domino Stable kernel with it and battery life is pretty good, roughly 5.5 hours SOT and it sleeps very well.
[G2 Android Development] ramabg:
I confirm that my phone while using this driver also always reboot when I use camera. I will go back to original CM for now
[G2 Android Development] xxoscarxx28:
Yeah that happens to me too and I forgot to edit my recent post xD
[G2 Android Development] samuele94:
LambdaKernel-Hipnose-Beta-N4-d802-06242016 is perfect for me, only a small problem: the gpu fix don't survive at reboot,any way to do a init.d file to set 450MHz after reboot?
[G2 Android Development] pmgnet:
Hi, is there a "recent" build for d800?
[G2 Android Development] GalaticStryder:
#StayParanoid

Two days without touching the kernel, but it's worth the time spent.

G+ post on AOSPA community.

Imgur album with some preview for the ones who didn't see the reviews.

It's way too early for sharing (read UNSTABLE) or creating crazy loud in the community but it's a beginning for sure on this "new base".

#!/bin/dev

Device tree for G2 common -> https://github.com/GalaticStryder/device_lge_g2-common

Device tree for G2 international -> https://github.com/GalaticStryder/device_lge_d802

Vendor for "galbi" platform exclusively -> https://github.com/GalaticStryder/vendor_galbi

Product tree calls -> https://github.com/GalaticStryder/vendor_pa/tree/marshmallow-caf/products/d802
[G2 Android Development] aleasto:
Sorry, does this mean you're building unofficial PA for G2? How is it related to the kernel? :P
[G2 Android Development] samuele94:
Soft reboot ( only bootanimation) while I update the app with google play,screen freeze and it reboot.

(Temasek 9.6 zg85 and beta n4)
[G2 Android Development] idkwhoiam322:
There's already an unofficial pa available on yairworkshop.com :D That guy is amazing, he ports all sorts of ROMs to our g2, including beanstalk,slim6, purenexus,etc.
[G2 Android Development] aleasto:
Yes I know, i'm on purenexus. I'm not really interested on the ROM, just asking why he would post it here ^^
[G2 Android Development] ytgbg:
Hi mate,

Great news. PA was amazing on KitKat. Are you going to be official maintainer for G2?

If you need a tester for D802 send me a p.m.
[G2 Android Development] gozzaa:
Deleted
[G2 Android Development] GalaticStryder:
Faux Sound Control is a proprietary, payed and old app masked to be "material". It means we won't be able to patch custom settings on boot, it will always recover the preset ones at least. One thing I see dorimanx managed to do is adjust the volumes in the source code files for speaker, I'll follow up his changes soon and merge them into this kernel to pass this issue. The sound driver by Faux was one the first alternative back in KK but as kernel developers started "forking" it, we have many other sound drivers like Franco, Boeffla... they are all based on Faux though, no problems at all cause it's GLP licensed. Concerning to the app there's nothing legal to do, unless someone decompiles the app and grab the commands to create another app, that is not fair IMO, but... As part of the free software movement what should I say? Android is a market, money controls everything around here cause people will pay for anything they want no matter if they can control it or not. We'll find a workaround for that.

OBS: Not criticizing the ones who pay for it cause that's capitalism rules.
[G2 Android Development] shaneel1491:
[MENTION=6175749]GalaticStryder[/MENTION]

Thanks for this nice kernel! Could you please add fast charging or custom charging currents, as that is one thing bad I notice about 6.0. Otherwise everything is running great! Thank you!
[G2 Android Development] OT-Xtreme:
adiutor is not saving all settings correctly, it tends to forget them after sometime or reboot (and yes iv ticked apply at boot and i got the successful notification at boot..)

kernel adiutor is just not reliable enough.
[G2 Android Development] Lawlrus:
Haven't had that issue on my vs980 on 6.0 or 5.1
[G2 Android Development] phoenix_rizzen:
Haven't had issues like that with Aduitor with 5.1.1 or 6.0.1 ROMs, built-in kernels, Render kernel, or this kernel.

I prefer the look and layout of Synapse, but have been using Adiutor without issues for awhile now.

Message delivered via crDroid 6 running on an LG G2 (D803).