yashsingh1/xdaforums huggingface dataset:
[G2 Android Development] GalaticStryder:
Some good news for you.

Input:

su
cd /system/lib/modules
insmod usbserial.ko
insmod ftdi_sio.ko

Output:

[ 1046.815051 / 08-18 12:43:07.022] usbcore: registered new interface driver usbserial
[ 1046.815065 / 08-18 12:43:07.022] usbserial: USB Serial Driver core
[ 1077.375959 / 08-18 12:43:37.582] usbcore: registered new interface driver ftdi_sio
[ 1077.376584 / 08-18 12:43:37.582] ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver

Here's the documentation you may wanna read in order to get some basic usage know-to:

http://ftdi-usb-sio.sourceforge.net/

[B]lsmod[/B]
Module Size Used by
ftdi_sio 37374 0
usbserial 31478 1 ftdi_sio

Once the driver is loaded, you just need to attach your serial in the USB and it should come up on dmesg/be functional as on stock LG kernel.

The only difference is that LG kernel might use built-in support for serial drivers, I don't wanna use built-in to keep the boot free from any specific driver being loaded. So, that's why modules exist.

The only con is that it's only working for Kernels built inside the Android environment (AOSPA for me). I might wanna test some more possibilities but I think the original ROM (firmware) needs the modules enabled in order to make out-of-tree module compilation possible. :eek:

I've sent a PM to dori about this subject, let's see if he can share some info on this foreground.

I'll give you a heads-up on this after some more tests...
[G2 Android Development] Finsk:
That really sounds complicated, take the time you need, i think its a exclusive wish, thanks for the help :) :good:
[G2 Android Development] GalaticStryder:
My idea was very simple, enable most 3rd party support drivers and dump them for download on every stable release. Having module support this would be a breeze, you download only the modules - drivers - you need and insmod them when you need to plug, let's say a serial converter through OTG.

It worked just fine on my tests though would be limited only to Paranoid instead of all ROMs out there.

I'll be trying to sort that out a little more to get this working on next I release. The H merge window has closed so I'm just adjusting stuff.

There's also another priority which is getting D800 to work, all devices booted fine on 2.2GHz locked release (BETA N7) and this one nicht.

Rebasing this for the last time hopefully. I'll start pushing the rebased I release to drive for D800, D801 and D802 today or tomorrow.

Do we have testers? It's gonna be sequential, you'll need to flash them in a row. They don't include anything from H release right out-of-the-batt but will have them merged in waves.

The stable release will be there for this weekend too.
[G2 Android Development] rabies876:
Sign me up for D800 to test
[G2 Android Development] Floodland:
Count me in for D802/6 testing, now on Orion OS working beautiful with N9. No more low memory issues with enable_process_reclaim set to 1 in init.d (thanks for the tip by the way)
[G2 Android Development] CrazyBytesVE:
Thanks for this kernel! D802, BlissPop MM.

Enviado desde mi LG-D802 mediante Tapatalk
[G2 Android Development] berezker:
This kernel is awesome

I can finally have fast charging with my power bank (it used to only draw about 850 mah with stock cm kernel but now, it draws 1000 mah like it's supposed to be).

And I like the ability to control just about everything with my phone especially voltage.

Thank you so much.
[G2 Android Development] thtkidsvm:
I'll test for d801
[G2 Android Development] d_Schizzo:
Thats are great news, count me in for testing d802 on Dirty Unicorns.

Regards,

Schizzo
[G2 Android Development] bamonkey:
As always with D800 here, will test and pull anything you need *if we get past the boot screen :p *
[G2 Android Development] xxoscarxx28:
[MENTION=6175749]GalaticStryder[/MENTION]

DTS (TruMedia) Integration to CAF Kernels
[G2 Android Development] GalaticStryder:
I don't believe this is from official DTS company, there's no commit history, many reverts... old branched from CAF and dirty code copy and paste being called "Upgrade".

The only way to extract something useful from those repos is using recursive diff against the clean CAF they are paired with.

Though code is code, if the code is there I presume it works, at least. I'll see what I can get from there when I have some free time which is probably not going to happen so soon.
[G2 Android Development] Mentor.37:
addon.d script to backup and restore kernel during rom's updates

[MENTION=6175749]GalaticStryder[/MENTION], a suggestion, you could add in the zip an addon.d like 99-customkernel.sh to automatically backup and restore the kernel during the rom's updates.

I'm using the script that I linked and it works flawlessly.
[G2 Android Development] GalaticStryder:
Will be added, I already have one locally that I used for AOSPA updates. I'll merge it on BETA 10.
[G2 Android Development] Jordamo:
does this kernel work for the LG G2 D800 blissrom 6.4??
[G2 Android Development] DvineLord:
i havent found any working d800 builds. one of the betas worked but no one remembers which or if anyone has it.
[G2 Android Development] Jordamo:
i've flashed the kernel, it didn't work, i got bootloop, i had to back to stock blissrom kernel!
[G2 Android Development] android extreme:
GalaticStryder in your next infinito release would be possible to add simple_gpu algoritm and adrenoboost(it this is compatible with our chip)?
[G2 Android Development] GalaticStryder:
I have other plans for GPU and thermal as of now. Simple GPU algorithm is deprecated and removed across most developers, for instance, Adreno Idler is going to be removed as well since the developer doesn't seem to maintain it anymore nor it has shown any benefit on battery.

I do plan to enhance the simple_ondemand governor and backport some code to it. It performs not as great as the Adreno TZ by any meanings but it does a great job in overall user experience like video playback and other tasks, power consumption is quite lower and battery efficiency is sky high even when you use 533GHz or higher clocks.

For boosting the GPU I've switched to another code base and seems promising. I'll update my Github today.
[G2 Android Development] UncleRipper:
I've a problem. In synapse under the tab sound the Headphone PowerAmp setting is stuck at +6.

So I'm forced to listen to music and stuff with the lowest volume possible in the adjust bar.

Moreover this causes an electric disturb to audio.

How to make this setting stick?

I'm on OrionOS 2.5

Thanks

[EDIT]

It sticks in the setting I want but doesn't change nothing. The volume si still high.
[G2 Android Development] GalaticStryder:
You can't control it from UKM/Synapse yet, I've mentioned that the driver was updated and UKM is still expecting 2014 code/structure.

You'll need to select Faux Sound in the app selector and use the proprietary app for now.
[G2 Android Development] UncleRipper:
I've missed that part. Thanks a lot!
[G2 Android Development] ncmz:
Hi there, I'm new to this kernel and I noticed last stable Domino build date is 22-12-2015. It works solid as a rock but I want to know if you guys recommend using any other beta realese or to stick with current version (based on your experience of course). I'm on CM13.0-20160820 SNAPSHOT for D802. Thanks a lot for your work OP!

Cheers.
[G2 Android Development] TSLNL:
For D802 I recommend using the N9 beta Hipnose version, fast and stable as hell for me.
[G2 Android Development] berezker:
I would disagree on that

I feel that N9 is aggressive in terms of battery and overheats easily.

I would recommend N8.

Smooth, fast and battery friendly
[G2 Android Development] ncmz:
Hi guys, thanks for your answers. I will try N8 as [MENTION=4801568]berezker[/MENTION] said, I'm searching for something balanced here, given the fact that this device is my daily one and I need some battery friendly kernel without losing too much perfomance (I know, the dream team, easy to achieve haha). Thanks!

Cheers.
[G2 Android Development] Mentor.37:
I have a d802 and I'm on cm13, I have followed all the previous steps and Synapse doesn't work, I always have the message "Synapse boot cancelled".

I tried with different versions of the kernel, with a clean install of the rom, giving the storage permission to Synapse, following all the steps I quoted but always without success.

Same here on cm13 last snapshot, updating from last pure to last beta I had a bootloop and I had to revert back to the pure version.

[MENTION=6175749]GalaticStryder[/MENTION], what is the correct way to uninstall a lambda kernel and its script for install a different version? I would try removing the pure to test last beta.

Are there other script further those in /sbin, /system/etc/init.d, /addon.d and /data?
[G2 Android Development] lunafag:
Why not just make the kernel rolling release? New people are simply confused and long-time users simply install the latest beta anyway.
[G2 Android Development] neolithicera:
I was wondering if any of you guys knew the best kernel for the d801. Ive tried N6 and N9 however N9 didn't boot on cyanogens latest snapshot and N6 kept crashing. Thanks!
[G2 Android Development] thtkidsvm:
Beta n4 was the most stable. The infinito release works well with my d801 but I don't know what to call it though I guess beta n1. I wouldn't recommend it yet it feels the same as pure release so its stable but not many options since he's just starting to build infinito. If you follow the instructions on galaticstryder's github it's really easy to compile the kernels yourself especially if your like me and always eager to try the latest. I can upload beta n4 here but I want to know whether I should upload using Mega, Dropbox, or Drive.
[G2 Android Development] schneitz:
3.4.112-LamdaKernel-Hipnose-Beta-N9 successfully flashed over

Domino Stable-d802-12222015

Rom; RR r61- MOB30Z

Synapse boot canceled

[MENTION=5422660]Galactics[/MENTION]tryder I have no luck with your solution.

I use Kernel Adiutor... It works

... Just a report

Gesendet von meinem ONEPLUS A3003 mit Tapatalk
[G2 Android Development] neolithicera:
Drive would be great if you could upload it to that. Thanks! Ill give it a go and let you know how it works. The current stable builds are fantastic however, galaticstryder has done a fantastic job so far.
[G2 Android Development] thtkidsvm:
Hipnose beta n4: https://drive.google.com/file/d/0B_42y7_Qsp9oc1FWbE5EUkd4ME0/view?usp=drivesdk

Infinito: https://drive.google.com/file/d/0B_42y7_Qsp9od3I5Z3ZtWGQwUFk/view?usp=drivesdk

I agree really appreciate his time and effort for the kernel he creates.
[G2 Android Development] neolithicera:
Thanks Ill be flashing it now.
[G2 Android Development] berezker:
This kernel is unbelievable

Excellent battery and performance

6.5 hrs SoT with 2 hrs YouTube 4 hrs on Instagram and snapchat and chrome and some medium graphics demanding games for 20 minutes

And listening to some music

At 30% brightness

I'm on Aug 16 snapshot and N8 beta kernel
[G2 Android Development] Mentor.37:
possible fix for the back led power button

Hello [MENTION=6175749]GalaticStryder[/MENTION], do you think that could be possible partially restore the functionalities of the back led power button in this way?
[G2 Android Development] GalaticStryder:
They are actually two LEDs and they are here since ever. What we are missing is the Android code to use it, as far as I could test I was able to use the Samsung backlight key API just adding the LED path to the Android code. Though, it's limited to only a few actions and needs more code to enable/disable because the scale goes from 0-255 of brightness in the two LEDs and the Samsung API only uses 0-1 as switches for a given key.
[G2 Android Development] berezker:
Actually, someone in either the cm13 thread or this one where someone was able to use tasker to enable the rear led and works during calls and notifications I believe
[G2 Android Development] sirdragon:
Hi Can you share your settings? With beta N9 and RR the battery life seems not that great... Also with bricked hotplug the phone is very hot, maybe needs more tweaking? Thanks.

Inviato dal mio LG-D802 utilizzando Tapatalk
[G2 Android Development] GalaticStryder:
Hipnose was targeting performance, maxing out all the values and turning the phone into something that can pair it to either a Nexus 6 or a OnePlus One.

For the next release, I'm trying to reach more conservative and battery oriented values out-of-the-box as the claim for most people but still having the ability to max it out with a few changes.

I'd suggest you to:

Switch to darkness governor on the two main cores and use conservative on the other two cores to restrain the speed.

Use the bricked tuning interface to get more conservative values like reducing the plug/unplug of the two main cores and restricting the other two to something like 45%. The idle_freq can be 422MHz as I set it out-of-the-box.

Lower vm.swappinnes to 20% in order to keep activities in RAM a little more or set to 0% to totally avoid swap and get more battery life due to less CPU work.

For the GPU switch to simple_ondemand and set the max frequency to 389MHz to get more juice if you ain't playing games or benchmarking. This governor is a major goal for the ordinary user that ain't gonna play heavy duty games.

Set the power efficient workqueues to relax the queueing of activities in the kernel.

As I keep fighting, the default preset won't match all user needs but reading 5min of this post can get it partially good enough for the average user.

With those changes, if you got 5h of SOT it will jump to at least 6,5h of SOT and will keep everything working fine.

Your phone, your needs...
[G2 Android Development] sirdragon:
Wow [MENTION=6175749]GalaticStryder[/MENTION] very exhaustive, thanks a lot!
[G2 Android Development] rabies876:
Hoping the next release boot on D800
[G2 Android Development] blakeatl:
So far I've read only one post for D801 on N9 boot issues. Anyone got it to boot or it's a no go?
[G2 Android Development] MarekAG:
This fragment is not so clear for me. Can you clarify this and post some example values for each core?

BTW I noticed that something is messed up in hotplug settings in Synapse. For example there is option to manipulate CPU4 values. But as far as I know we have only 4 CPUs.
[G2 Android Development] GalaticStryder:
You'd probably test this one: https://drive.google.com/drive/folders/0B0kZ4DVPwVcMTnVLOU53ZWFHaDA

It should work on AOSPA, I can't test CM, though.

It's a barely minimal kernel with very a few changes and fixes on top. The real release is meant to go further than the previous H beta releases. The basic point was to add modularity.
[G2 Android Development] rabies876:
It has booted, so far so good. I'll report back with status updates in a few days.
[G2 Android Development] ytgbg:
Hi mate,

If you have any D802 build for testing - I am ready to test.
[G2 Android Development] bamonkey:
Here we go! Can also confirm booting on d800 latest aicp. I was actually a little dumbfounded it booted right up considering our device has had troubles for quite some time then I actually felt bad that was my reaction heh

Anyways yeah so far all stable and as you said minimal release but all cores are going on/offline as they should, deep sleep is good, at this point I'll just keep going to report with any logs should issues come up.

Great job mate!
[G2 Android Development] GalaticStryder:
I brought this release already up-to-date against the previous version and against dorimanx as well. I'm playing with some other cool stuff that I found like BFS, I won't use as it doesn't support most cgroups that Android needs but I wanna know a little bit more how it behaves and works.

I'll see if I can get the BFS tests open for some people, it still hanging on me.
[G2 Android Development] szabyka95:
which one is the latest "stable beta" release ?
[G2 Android Development] Mrondo:
No go
[G2 Android Development] neolithicera:
Just to let you know beta n4 is working fantastic thank you!. I haven't tried Infinito yet, I think Ill hold off until it becomes more stable.
[G2 Android Development] TuấnWeed:
Do I use any 6.0 rom does not recognize the memory card error Equal :(

Please help me
[G2 Android Development] bamonkey:
I actually had to go reading up a bit because when you mentioned BFS i remember the last time that was used was on my old samsung galaxy S1, i didnt realize it was still in development at all! Also took a look at your github source and holy **** so many branches and commits over the last few weeks. And here i sit trying to mess around with the nexus 5 "N" unofficial build trying to port it over to the red headed step child that is the g2. From what i can tell some other people have already started work on it though so i can at least say this device is NOT abandoned yet...even though qualcomm/google/lg have abandoned the msm8974 platform:crying:
[G2 Android Development] GalaticStryder:
Not being petty, but the LG G2 is one of the few MSM8974 with real development still going on for two different firmware options: LGE and CAF.

As well as the OnePlus One and the LG G3, though they are pro versions of the MSM8974 SoC.

I've bought an Alcatel Idol 4 recently as well but it couldn't replace the LG G2, sold it.

I'm waiting for either a price drop on the OnePlus Two or getting a Nexus 6 since I need to replace the LG G2 and make it backup phone sooner or later due to screen problems.

Though I have bought a new original digitizer and panel from retail seller (defective units) and so I need to assemble the panel/digitizer to settle on the phone. Then slap the new gold rear + a Beepak screen protector.

If everything goes well, it's a brand new phone back again.

P.S.: If anyone used LOCA glue to assemble the LG G2 screen and can share some tips on the process because I've done that only once with the Motorola Atrix.
[G2 Android Development] :
Do you think there any chance of adding more controls to the thermal section like in Dori's kernel? Great work BTW. ???
[G2 Android Development] thtkidsvm:
Yea, I still use beta n4 since beta n6 has USB issues for me. Anytime I connect to the PC and switch to mtp the device reboots and same happens when I turn off USB tethering.
[G2 Android Development] GalaticStryder:
I did that 3~4 months ago but it didn't pay off somehow, there might be something else to make it work properly here as everything in-kernel was there.

The thermal wasn't cutting frequencies off properly, it was waiting way too much time and generating extra heat as well as lag when it finally started to lower the frequency.

So, I discard it for now. I'd better go for the do it on my own and see if I can get something out of the old Bricked or using Sony's thermal manager interface.

I'll try to get something next week for thermal...
[G2 Android Development] :
That would be great. I get a bit paranoid about temperature. ??
[G2 Android Development] DvineLord:
D800 I-N1 booted fine. kernel adiutor has gpu max freq set at 100mhz.
[G2 Android Development] bamonkey:
Glad to report everything still good on D800, also someone like ME really appreciates detailed lists and even links to commits like you did above. I'm going to be a bit of a rebel and actually try out the performance setting default on my device. The way i use mine these days is pretty much quick in, quick out...maybe just placebo but feels good :good:

Cant wait to see "Infinito" grow from here, I feel this base is extremely stable already and while I'm sure alot of people will want "X" feature added this shows what patience gets.

Also not to detract from a development thread but you mentioned getting the idol 4 and then returned it i believe? I feel like you may be feeling conflicted on a next device like i am. The G2 *actually the chipset* is proving to be timeless and while not 64bit, not having vulcan, no fingerprint or really ANYTHING modern that all phones come with now is proving what actually matters. Honestly i sometimes wonder what this phone would be like with 1 gb more ram as modern apps seems to pull more.

I too have pondered a few different phones and I'm not sure where ill end up. The nexus 6 looks like it will do the job, but im worried it will immediatley feel old after a year of use and ill want something better. The 5x looks great...but im not liking the battery capacity. Some of these other 'chinese' phones tempt me but im worried about LTE band AND developer support since ill want AOSP right off the bat anyways. I know ill be getting something in the next 3 months and i really only want to spend upwards of like 200 or so on a new device. as much flak as i give this device....i think im going to miss it somehow.

edit: somehow lately im being tempted by the redmi note 3 pro. the internet seems to give conflicting answers on what LTE bands are supported but otherwise it does make me raise my eyebrows
[G2 Android Development] Mrondo:
Just dirty flashed Infinito Beta 1 on my d801 over 8/29 CM13 nightly, hybrid bootstack, booted fine. Will be testing it over the next few days
[G2 Android Development] MarekAG:
On newest beta Synapse looks like screenshot above. Is it by intention or something is wrong?

D802, Ressurection Remix 5.7.2

I flashed N1 kernel over beta N9 and wiped dalvik and cache.
[G2 Android Development] guilledoc1:
Same here
[G2 Android Development] bamonkey:
Based on what i remember in earlier posts I don't think Synapse Support has been added back at this time. Also just to confirm i downloaded it from the playstore just now and only have the "No UCI support" message when loading or reloading the app.

Edit: Also the OP post has been modified and shows that anything related to "Synapse" being crossed out so i think this confirms what i remember.
[G2 Android Development] guilledoc1:
So what do we use for tuning?
[G2 Android Development] Floodland:
Kernel adiutor mod is your best choice.

Using the search function or just looking a few pages back of this forum before asking questions that were answered multiple times also help.

Have fun.
[G2 Android Development] bamonkey:
Personally I'm using kernel adiutor myself. Being this is beta 1 there isn't much to tune yet just an FYI. I used adb to change some settings per the earlier post but that because I'm choosing a bit more performance over battery..or I'm feeling placebo because of it lol
[G2 Android Development] aleasto:
No more CPU OC, Touch Boost (personally don't like it, but still), Impulse governor, CPU UV, Bricked Hotplug?
[G2 Android Development] d_Schizzo:
Buddy, this beta no.1. What do you expect?! A overall finished kernel?

Things will come when they are ready. Patience, young padawan...

Regards,

Schizzo
[G2 Android Development] GalaticStryder:
Read carefully: http://xdaforums.com/showpost.php?p=68436948&postcount=1486

If you want to get all that stick with the previous release, it's not about performance it's about extending support with modules (samba protocol, serial ftdi etc.) and stability.

All the things you want are here: https://github.com/GalaticStryder/kernel_lge_msm8974/commits/lambda-devel

It's my development branch, the ordinary branch is https://github.com/GalaticStryder/kernel_lge_msm8974/commits/lambda

The cpuboot driver is almost the core of any cpu iteration, if you disable it you get lag on simple tasks. The advanced tasks don't lag due to hotplugging.

Bricked hotplug isn't battery friendly and will be removed in favor of blu_plug out-of-the-box. It still can be enabled if you target performance.

Impulse wasn't added because it's not using 3.10.y CPU code yet. Same for CPU voltage control.

I just released this one to confirm that the problem with modules and bootloop on D800 was due to -O3 optimization set. To work around this I've written the fast lane v2 extension that uses -O2 and some of the main optimizations from -O3 + separate GNU GCC optimizations that aren't enabled at no level.

I'll release another release tomorrow with some more fancy from previous releases. After all this time without a stable release, this one seems to be the candidate.

Also, I don't want to update the thread until then because the majority of users only flash those stable releases and that's it. Not everyone is here to test and help with development and that's fine.