yashsingh1/xdaforums huggingface dataset:
[G2 Android Development] bleached45:
I realize sound control is kernel side. I'm curious about regular sound drivers and such. When Dr87 switched to the N5 drivers, was that just in the kernel, or was it elsewhere in the ROM? Say I had a kernel using the LG G2 audio drivers (assuming they are in the kernel) and flashed it on a ROM that was built with the N5 drivers (in kernel or ROM, wherever they are) will it work? I see there are audio drivers in the kernel, are those in control of all audio in the ROM? Sorry for confusion, I hope this makes sense.

I believe it is the way KK handles the SDcard is broken (well, it works as intended, but google is trying to remove SD card support to move to cloud based stuff, or so I've heard).

If you have Xposed, you can try this. No promises as I don't have an SD card.
[G2 Android Development] Raagh:
Audio drivers need to be switched on both sides. Rom and kernel

Take for example bart's dorimanx has lg audio, vanir rom also.so in order to use it on n5 audio roms like mahdi. You need to flash the audio patch bart made that replace all audio blobs in the rom for the lg ones
[G2 Android Development] kgian2007:
It worked!!!

Thanks a lot
[G2 Android Development] RenderBroken:
I just love how the people on this thread are so willing to help each other. This is what I am trying to achieve. I different level of Dev interaction that spurs others to want to help their peers.
[G2 Android Development] MaluNoPeleke:
First crash with R19: https://www.dropbox.com/s/yk6tlb1wwc8y5tc/2014-09-11_23.18.zip?dl=0
[G2 Android Development] RenderBroken:
Thanks!

I will be building using my new rebase shortly. It has been completely stable for me with now micro errors I was seeing before. Also I had added the I2c changes that should help with screen on time as well! I am looking at any last minute changes to be added.If this is as stable as I believe it ism the fun will begin. I need to start sharpening my source so I don't have to keep dealing with weird ass issues all the time!

Render
[G2 Android Development] Raagh:
Cant wait for it. A render release without those nasty reboots :)
[G2 Android Development] abby_nitewolf:
I have been running r19 with mahdi 9-8 with no problems so far. Awesome! :)
[G2 Android Development] mhajii210:
Vanir AOSP and R19

Hi guys. I recently switched to Vanir AOSP on my D801. The latest Mahdi was still giving me sound distortion. I pretty much got fed up. I have zero sound issues with Vanir AOSP [http://xdaforums.com/showthread.php?t=2494756] on the latest 9/8/14 build, but I get no media audio with Vanir AOSP and R19. I had to switch back to the Dorimanx kernel. Any fix for that so I can run R19 on that ROM?

mhajii210
[G2 Android Development] 1ceb0x:
yes - run Liquid smooth :)).

have you tried to flash the audio patch from Vanir thread?

Namaste! Sent from Orion Galaxy.
[G2 Android Development] Raagh:
Mmm vanir uses lg audio(dorimanx also). Render uses n5 audio.( i think) so it might no be possible.

You could try making a patch like bart did (but instead of replacing n5 audio for lg in the rom,do the opposite)
[G2 Android Development] phoenix_rizzen:
Last I checked, Vanir was using LG audio drivers, while Mahdi and other ROMs moved over to Nexus 5 audio drivers. And, I believe Render uses the N5 audio drivers in his kernel. Mix audio drivers in the kernel and the ROM, and you get all kinds of audio issues. :)

This is also why using bart's version of Dorimanx on Mahdi causes audio issues (LG vs N5 drivers).

If you want to use Vanir, then you are basically limited to Dorimanx kernel.

If you want to use Render's kernel, then you are basically limited to all AOSP ROMs except Vanir. :)

[Edit: Seems a couple of posts appeared while I was typing mine all saying the same thing. :D ]
[G2 Android Development] bleached45:
Based on what I saw in Render's git, it is the N5 drivers.

Which makes me wonder, the G2 was supposed to have HiFi audio while the N5 didn't say that. So it seems like the G2 should have better audio. Though, I understand the N5 is easier to work with. I just wonder if we are loosing something.
[G2 Android Development] RenderBroken:
I dont believe we are missing anything but when I get back to a solid base and start adding in features again, I will be re-working/overhauling the sounds drivers and sound control. I will be enlisting your help because you are the audiophile here and I need someone who can tell a difference. Would be up for testing? Just let me know. I plan on starting this endeavor next week or even this weekend!
[G2 Android Development] bleached45:
Of course! I'd love to help. I look forward to it. I always wondered about if there was an audio quality loss going to AOSP from stock but never felt like going to a stock ROM just to check as I am happy with faux and viper. Interestingly enough, I found out on R17 after every reboot I have to go in to the faux app with audio playing and move the poweramp slider and it seems to set once. It is wonky if set to boot. But this may very well be an issue with fauxsound, as I've seen some other stuff in the past. Either way, I figured out how to work it for now. So I'm happy. Would love to help though.

Good luck with yet another start from scratch. I can tell these phones are so picky.
[G2 Android Development] reas0n:
[MENTION=5438598]RenderBroken[/MENTION]

Here's the kexec hardboot patch for G2, it's needed for MultiROM which will be released on days. Please add it if u can. All thanks to [MENTION=4814653]patrik.KT[/MENTION] for this work.

https://gist.github.com/PatrikKT/50faf32e8931d51c0c9a
[G2 Android Development] Raagh:
multirom on the g2. AMAZING :)
[G2 Android Development] RenderBroken:
Great! The rebase went way smoother the second time around! Way less merge issues. So when I start working on Sound Control and such, I will be getting in touch with you for help.

Thanks for the info and support! I will add it in ASAP. Cant wait to give this kind of support to our fellow G2 users!

I know!!!
[G2 Android Development] ThatKidDrew:
We're getting MultiRom?!?

VS980 running AICP 4.4.4
[G2 Android Development] Matze060906:
I hope I understood it right: Is multirom on a phone like on a pc with Windows and linux?
[G2 Android Development] RenderBroken:
Looks that way

Its a function at a very low level in the kernel. It is a switch really. You need the software in TWRP to actually make the switch. This patch just allows the change to be made and such. Because Kernels are setup for only its own Operating System in mind and only allocates resources accordingly. This is an issue because you cannot share the kernel resources like you would need. That is where the Kexec patch comes in.
[G2 Android Development] bleached45:
Does that essentially mean there would be 2 kernels built into 1 and multirom switches from one to another? Either way, cool idea.
[G2 Android Development] 1ceb0x:
No. One kernel and two roms. Multirom is like grub.. You can boot windows or Linux.

Sent from Orion! Namaste!
[G2 Android Development] bleached45:
But grub launches 1 of multiple kernels. Anyways, gives me something new to look up. I really want to see if I can build an xposed module to theme Kii KB more extensively. But I've only built 1 app before and it was just a test. And my java is just about nonexistent.
[G2 Android Development] jriv:
Does this mean we can boot an aosp ROM then a stock ROM or does it have to be 2 different aosp roms
[G2 Android Development] 1ceb0x:
I might be wrong though :)

Sent from Orion! Namaste!
[G2 Android Development] RenderBroken:
No because the kernel has to support both roms.
[G2 Android Development] RenderBroken:
Some interesting news, I have been able to unpack my stock ramdisk files so . . .I plan on building for stock LG roms next time I build which should be tomorrow if everything goes right. I am just pumped I stumbled upon the right info! So soon I will be supporting Stock Roms with the same kernel source!
[G2 Android Development] ghost141:
Update the thread name please :P
[G2 Android Development] bleached45:
Oh, based on what Render said, it sounds like multirom works if both ROMs would have worked on the kernel individually, then they can be used with multirom. So, ls and aicp, or aicp and mahdi. That makes the news of Render possibly getting this kernel to run on stock as well very interesting.

But, this is just what I have inferred.
[G2 Android Development] NEO2598:
I can't wait to see on XDA TV:"LG G2 gets MultiROM, thanks to recognized developer [MENTION=5438598]RenderBroken[/MENTION] "

???
[G2 Android Development] Matze060906:
Can anyone tell me, what's the advantage of multirom? For me, I see no reason to install 2 roms.
[G2 Android Development] 93fuelslut:
For me it is. I love aosp and absolutely hate stock. But have to BC of GPS at work. So switching back and forth would be a breeze if it's the same set up as ROM slots for safestrapp

sent from your moms phone
[G2 Android Development] RenderBroken:
Thanks! But it is really [MENTION=4814653]patrik.KT[/MENTION] who created the patch, someone else will be porting over Multirom, I am just adding the functionality to use it with this kernel! Thanks for the awesome support though!
[G2 Android Development] RenderBroken:
Also another good reason would be to have a daily driver rom and a work rom. For example on my N7 2013 I had a daily driver and I had Ubuntu desktop as the other. I would just dock it and have Ubuntu desktop everywhere.
[G2 Android Development] MaluNoPeleke:
Just because I am curious: why isn't this thread located in the Original Android Development Forum? Shouldn't it belong to that instead of this one?
[G2 Android Development] RenderBroken:
Felt crowded. Also nothing in this kernel is originally my work so I will feel bad taking credit for it in that way.
[G2 Android Development] RenderBroken:
I had to manually patch in KEXEC support but its done so we will be ready for when MultiRom comes around!

So, who wants to test my kernel on a stock rom? Just need one person so first one to agree, let me know your phone model.
[G2 Android Development] patrik.KT:
[MENTION=5438598]RenderBroken[/MENTION] please also add this to defconfigs: https://github.com/dorimanx/Doriman...2c0bbf7b0e689a5e47bd8d161e4356c5451c36#diff-2
[G2 Android Development] RenderBroken:
Thank you kindly! Will do.
[G2 Android Development] RenderBroken:
Will you be porting over MulitRom or do you know anything regarding that? Just curious of an eta or whatever. Thanks again.
[G2 Android Development] patrik.KT:
I'm porting it and it's done. I'm creating a thread now.
[G2 Android Development] glacies:
I'm here. On OptimusG3 right now (does that count as stock-ish?). Model 802.

Edit: I'm sure others would love to test your kernel, Render. You sure you only want one tester?
[G2 Android Development] jameseytickner:
On D802 it works fine, signal is a little shaky but I think that's because AOSP is missing half the LG Framework but eh. I'd sacrifice that for this Kernel with Mahdi. Super stoked for R2. Also, if you need another tester for D802 for upcoming builds I'm willing to volunteer!
[G2 Android Development] RenderBroken:
Not sure lol. I am building zips now . . .
[G2 Android Development] RenderBroken:
Uploading now! Enjoy . . .
[G2 Android Development] pottyvick:
I dont see v2 for d801
[G2 Android Development] jamesd1085:
Its not there...
[G2 Android Development] Raagh:
Doing a fresh install of mahdi 's new build and render kernel r2. Both dr87 and render release it at the same time great ahaahah

Sent from my D806
[G2 Android Development] pottyvick:
Fast charge does't seem to be working on latest release (on latest mahdi).. im using the recommended app to change the settings
[G2 Android Development] 1ceb0x:
its like christmas here... mahdi and render kernel releases in the same day. i feel like a kid! thank you Zach!
[G2 Android Development] RenderBroken:
Thanks for letting me know. I will re-address it. Thanks for reporting.

Thanks! Also love the sig by tha way . . . :D
[G2 Android Development] jeff5347:
Is anyone else experiencing this. Both r1 and r2 work great except for one thing....sound. Everything works minus sound. Not sure why. Running vanir but had it on aicp as well.
[G2 Android Development] 1ceb0x:
because vanir uses N5 audio blobs and this kernel uses lg stock sound drivers. not sure about AICP. Try to use mahdi - it works beautifully.
[G2 Android Development] jeff5347:
I thought Dr changed the g2 to n5 audio as well? I understand why it won't work now though..thanks
[G2 Android Development] Lawlrus:
Mahdi uses n5, all other Roms use lg

Edit: Or wait, now I'm confused. Since all Roms are built using his source, I'm not sure if they are lg or n5.

I know the vanir dorimanx uses lg that's why it explodes speakers on Mahdi. And they used dr87's source, so I don't know lol

Sent from my Vs980 running Jackpotclavin's Cm11 4.4.4
[G2 Android Development] count_martin3z:
Guys what kernel settings you have to keep the same smoothness and bit better battery? I was trying with the same settings what I had on kernel from dr87 but finaly always see small glitches in UI... I gave up today...
[G2 Android Development] 1ceb0x:
this kernel and stock settings. it works splendidly. :)
[G2 Android Development] count_martin3z:
Will try.
[G2 Android Development] Raagh:
Probably because those roms use lg audio and this kernels is basically for mahdi(n5 audio).

---------- Post added at 09:09 AM ---------- Previous post was at 09:07 AM ----------

The other way around men

---------- Post added at 09:13 AM ---------- Previous post was at 09:09 AM ----------

Vanir uses lg thats been confirmed by bart.

Some roms are build using his source and others just in part.

For example temazek is using his full source(even simplekernel).

Vanir used the same displaycaf as lg and dr87, but aproached the echo problem in an other way keeping lg audio.
[G2 Android Development] RenderBroken:
I hate the fact that there is so much fracturing going on. Not only is it a pain to Dev for but its a pain for the users to keep track. I will try to find a simple way to swap audio drivers. I am not familiar with them for the G2 so if anyone knows the files pertaining to Audio please let me know. Also if there are different files for both N5 and LG Audio let me know. I will be researching as well. Thanks Ladies and Gents!
[G2 Android Development] reas0n:
Wouldn't it be easier to just please the devs who use LG audio drivers? I see that's only Vanir and maybe PA and CarbonROM but i didn't test. N5 drivers are just better.
[G2 Android Development] Raagh:
Agreed,since dr87 switched to n5 everything is much better.

Is a basic compatibilty issue. Lg g2 and nexus 5 has the same audio chipset, lg uses their own drivers that highly depend on lg framework and n5 drivers are naturally more AOSP compatible as they come from a nexus device
[G2 Android Development] Matze060906:
Could you post the link here please?
[G2 Android Development] mazroui:
Lol everyone wanna test
[G2 Android Development] patrik.KT:
Check the original development section. It's there...
[G2 Android Development] RenderBroken:
OK Then

I will release my new build for everyone shortly. It will be MultiRom Ready! Thanks!
[G2 Android Development] RenderBroken:
For stock, yes just one right now to confirm my setup will work. I will build for the D802 and release to all users of D802. Thanks!
[G2 Android Development] Matze060906:
You have tested the new build on your phone? You run liquid smooth right?
[G2 Android Development] RenderBroken:
yes, the new build runs great. No booting issues or any problems for that matter.
[G2 Android Development] Matze060906:
Ok! You have to upload and I have to download. Ready for testing, hope it runs great as stock kernel on liquid smooth or better...
[G2 Android Development] c_brown93:
So [MENTION=5438598]RenderBroken[/MENTION] will the new version be for stock and aosp?
[G2 Android Development] RenderBroken:
Uploading new builds! R20!

Really not a whole lot different than R19 except completely stable. At least I had not had a single hiccup. May be different after a few hundred people download and test but it has been very solid for me. Some changes of note:

* New Thermal Driver from Franco. Just plain simple and fast! Since our phones heat up so incredibly fast I would feel negligent if I did not have thermal protection enabled by default. This one kicks in as soon as you boot the phone up so even during the boot process you are protected! If you think it slows you down then just increase the temp from 70c to whatever you feel. At least I know out of the box you are protected.

* Added Kexec Hardboot Support - This just added the ability to use this kernel with Multirom! Thanks [MENTION=4814653]patrik.KT[/MENTION]

* Reduced i2c clock rate to 19.2 MHz - This should help with battery while screen is on! Thanks [MENTION=2376110]dorimanx[/MENTION] !

* Re-added Powersuspend to act as a replacement for Earlysuspend in certain subsystems. Main example is Wifi. Now we can save battery while screen is off an you are using battery.

Upcoming Builds:

Sound Overhaul! I know some of yall are really looking forward to this one!

My subsection bring-ups! I am really aiming for this kernel to be THE AOSP kernel. Just plain stable and just plain fast. Thanks guys for your continues support. If it wasn't there then I would be content building for just myself! lol But you guys make it fun and interesting!
[G2 Android Development] RenderBroken:
AOSP right now and when I am done building for AOSP I will be a single test build for Stock Roms/D802s.
[G2 Android Development] Matze060906:
Time to go to bed for me and the battery have 3%. Tomorrow is flashday. I hope the build runs without any issues, but if I have one, how can I go back to stock kernel of liquid smooth? Reflash the rom without wipe anything?

Btw: your kernel will be THE AOSP KERNEL in the near future. You're on the right way. Thanks for your hard work...
[G2 Android Development] RenderBroken:
Yea just re-flash the rom. I am working on a way to backup your boot.img and restore it if you want. My kernel sip would back it up and another zip would look for the file to restore. I am playing with the idea at least. I already have a way to do just that.
[G2 Android Development] RenderBroken:
So no comments on the latest build? To me it is just as stable as R17 but with more goodies. Let me know if you guys have any issues.
[G2 Android Development] jhorton014:
Won't boot on ls980.
[G2 Android Development] Raagh:
Flashed R20 . testing :). Hope its a R17 with steroids ;)

Edit: phone didnt wake up. After a few seconds reboot.

Gonna provide a log the next time
[G2 Android Development] RenderBroken:
Can you give me a little more info like what Rom you are trying to flash it ontop of? Thanks.
[G2 Android Development] RenderBroken:
but it flashed and booted fine? Let me make sure my build script changes didn't jack something up. Thanks brother.
[G2 Android Development] goast:
Better then 19 no reboots... smooth and fast ls980 boots fine.. Liquid smooth smooth
[G2 Android Development] RenderBroken:
Glad to Hear! That must mean the other user was trying to use an incompatible ROM. Thanks for the kind words and confirmation that it works properly!
[G2 Android Development] jhorton014:
Yea. Sorry. I'm using official cm 11 latest nightly. It just gets stuck at the LG boot logo. It doesn't repeat or anything like when you flash a wrong radio. It just stays at lg. And I tried this with all of the ls980 radio versions. I'm also using the PA Gapps. (Latest) thank you.
[G2 Android Development] pqee:
Had a reboot shortly after flashing r20 on LiquidSmooth when trying to dbl tap to wake the device. Multiple tries and couldn't wake it up even with power button.

Cleared cache and dalvik when I flashed it too. Double tap is working again after the reboot.

D803, Here's the log...
[G2 Android Development] RenderBroken:
Sorry, My kernel does not work with Official CM becasue they are using 4.2 kernel sources. Try to see if there is an unofficial build for your model and then my kernel should work.

Thanks bud. Only 2 things it could really be and they are:

Quick Wakeup

Retention sleep state.

But help save battery but My next build will have one of them disabled. If I have to take the "middle of the road" approach so a few people don't have reboots then I will. I can have all sleep states enabled and my phone is fine. The same cannot be said for others. That's just how it goes. Thanks for the log!
[G2 Android Development] 1ceb0x:
CM11 official is still in 4.2.2 sources. This kernel is on 4.4 KK sources. It will not boot - no support for CM for the moment (unless is cm11 unofficial for D802).

Sent from Orion! Namaste!
[G2 Android Development] jhorton014:
OK. Thanks for the info. Think this will work on either AOKP or PAC ROM?I might switch to one of those to try this out.
[G2 Android Development] HueyT:
Nope, cuz AOKP and PAC are also 4.2.2.

This kernel is 4.4.2 and up only.
[G2 Android Development] RenderBroken:
AOKP I believe, PAC I am not sure. You can try and let me know though! Thanks!
[G2 Android Development] bleached45:
Yeah, it can be tough to know what AOSP ROMs use what sources. Anything using official CM should not work.

I would strongly suggest AICP if you were thinking of doing AOKP, it has the AOKP ROM control options in it with many additional features. And it seems very stable for me (D800). Others seem to like LiquidSmooth. I haven't used it since a JB build for my tablet maybe a year ago. But last I saw, Render uses LS so it may play the best with this kernel.

Try them both before deciding if you have time to. :)
[G2 Android Development] jhorton014:
Thanks for the answers ppl. I'll try these out tomorrow.
[G2 Android Development] pqee:
Just had another reboot trying to wake it up again. Would changing the governor or scheduler help at all?
[G2 Android Development] sai777:
LG G2 - D801 Update

So far RenderBroken, ur right R20 is similar to R17 in that I have no problems with it. Idk if others are seeing this but the battery life has improved quite a bit too. No reboots and it's buttery smooth. Will update after a few days to see how its going. Thanks man :D
[G2 Android Development] Lawlrus:
A log would help

Sent from my Vs980
[G2 Android Development] pqee:
Yeah, I already provided one for the same symptoms a few posts up so didn't bother with a second log. I can post the second log if it's really wanted. Was just curious if I should bother trying different governors / schedulers or if it has nothing to do with them.
[G2 Android Development] goast:
Maybe it would help try these settings I haven't had any reboots on liquid
[G2 Android Development] RenderBroken:
I believe its because your phone does not like retention sleep state. I think I am going to create some init.d scripts that you can either flash to enable/disable retention. It sucks because it works fine for most but not for some and when you report your reboots it scares others away from even trying this kernel. That is not your fault but I think there is a better way and will see what I can do. I the mean time you can use ES Explorer and change some settings to 0

/sys/module/msm_pm/modes/cpuN/retention/idle_enabled

Change it from 1 to 0

This will disable retention. Also you will need to do it for cpu0 through cpu3.

I will try to come up with an intuitive way to enable/disable these settings without having to juggle numerous zips. We will see. I have even thought of using the nightmare that is Aroma.
[G2 Android Development] pqee:
I guess it's bitter sweet. I posted logs quickly to help out and possibly ended up scaring some people away at the same time. *shakes fist at the world
[G2 Android Development] RenderBroken:
lol no I was not saying what you did was bad. I was just saying that there are many out there that see something like that and it puts a bad taste in their mouth and that is all they will remember when they think of this kernel. You did the right thing actually and without someone telling you to.