yashsingh1/xdaforums huggingface dataset:
[G3 Android Development] ppajdek:
It's because this version don't support exfat, I have to make new build with exfat support.
[G3 Android Development] arbrib86:
That would be great, it's the only thing holding me from using Oreo. BTW your aex build was great.
[G3 Android Development] ezantera:
I installed G3_laos_xtended_slim_o8x on crdroid oreo 8.1: . Nothing extra setting, just flash. Everything good , for a day... in evening phone shut down duel low battery and I ended in bootloop when I tried to power it on on charger.. I had to recover stock kernel from twrp to get phone working.
[G3 Android Development] sanguinesaintly:
What result do you get with G3_laos_xtended_o8-n7x or G3_laos_xtended_slim_o8-n7x ?
[G3 Android Development] ezantera:
I did not try... now I moved on. But it happened again with stock xceed kernel too. This bootloop is not probably XTD kernel fault. I went into latest multiboot d855 twrp and reboot button from there and it booted. I dont know why it wont on charger when I tried normally to start it. I tore myself apart from all of this kernels and roms. Sorry for inconvenience, I will retest everything.
[G3 Android Development] Spaceboy60:
Dunno it's oreo in general or need to set different governor but battery life is awful in all 3 oreo ROMS I've tried and this kernel certainly hasn't improved that.
[G3 Android Development] sanguinesaintly:
You don't have much luck with battery life do you ?
[G3 Android Development] Spaceboy60:
Maybe my phones on way out. Gonna try a nougat build to see if any difference.
[G3 Android Development] sanguinesaintly:
Maybe bad battery or bad apps somewhere - no-one else has complained about Oreo battery life as you have. Hope you resolve it.
[G3 Android Development] Spaceboy60:
Bought new battery (supposedly genuine) but no difference there. Only thing gsam battery shows a lot of the time is most battery consumed by held awake/doze . Apps drain is minimal according to the app. Majority of apps are greenified too.
[G3 Android Development] sanguinesaintly:
It's OT here but maybe clean flash - run with minimal apps, stock kernel, no mods etc and add apps every few days to see if something particular is causing the problem. Tedious but that's the nature of the beast. You need a few days to let any battery or ROM settle into its charging cycles.
[G3 Android Development] Spaceboy60:
will have to do that I did clean flash but I did restore a load of my apps with Titanium Backup. Can I just do a factory reset and then restore apps one by one? Only did clean flash couple of days ago.
[G3 Android Development] sanguinesaintly:
You can try that. I've never had problems restoring apps with TiBu but some folks have .
[G3 Android Development] ppajdek:
From my testing N has better battery life than O and works much smoother.

O on G3 need some time to fine tune.
[G3 Android Development] Tarhana:
I agree. Nougat is way better optimized , I tried all oreo roms and kernels still noguat is just better. For me (d855) on oreo roms device is getting kinda hot doing basic things like social media etc. And on nougat device stays cool while using same apps
[G3 Android Development] arbrib86:
So I flashed the kernel again with the new build of aex, and after the lg logo I get a screen telling me that there is an firmware update, do not unplug the usb connection until the process is complete. and there is a progress bar at the bottom that stays at 0%
[G3 Android Development] ppajdek:
Probably you flashed wrong kernel version (binder) and the phone booted to download mode.
[G3 Android Development] arbrib86:
Well, I flashed the 64 binder first, and it didn't pass the rom's boot animation. Then I tried the other one, and it did gave me the screen.

Edit: After a bit of reading I think it's probably the selinux mode of the rom that's preventing the boot. I will try again tomorrow.
[G3 Android Development] ppajdek:
Yep its selinux, set it permissive and it will boot.
[G3 Android Development] arbrib86:
Hey there. I tried again today, I changed the selinux mode with kernel adiutor app, and it still didn't boot. Probably is because KA changes the mode after the boot.
[G3 Android Development] ppajdek:
Flash this
[G3 Android Development] arbrib86:
Thanks! Should I flash this before the kernel or after?
[G3 Android Development] wutangkillabee:
Before

If your doing a clean flash with a ROM you need to flash the ROM & gapps "magisk if your ROM calls 4 it" LET IT BOOT UP w/Stock Kernel, then go back into recovery & flash that file, REBOOT to home screen, then go back into recovery & flash kernel
[G3 Android Development] arbrib86:
Got it to work, thank you.
[G3 Android Development] Muhammadsoli:
[MENTION=6948251]ppajdek[/MENTION] Thanks for your support. Could you please build your kernel for G3ds too? Would be great if you did
[G3 Android Development] ppajdek:
I merged g3ds to my kernel, test version in a day or two :)
[G3 Android Development] ppajdek:
Test version of my kernel for G3DS - for Oreo 8.1 with 64bit binder.

Let me know if it works
[G3 Android Development] vanko11595:
Is it matter if we use the latest official Kernel adiutor app or xtdkernel adiutor app, which come with kernel?
[G3 Android Development] ppajdek:
xtdkernel adiutor app has more options like wakelocks, ram speed, etc., and is specially made to support my kernel, but you can use official KA if you wish.
[G3 Android Development] ahmlet:
Hi, color profiles wont stick, once i turn off screen it defaults to stock one
[G3 Android Development] ahmlet:
hhmm, weird after a couple reboots now it works fine. Great kernel it remove lag in video recording
[G3 Android Development] vanko11595:
This kernel removes lag in video recording. Which ROM do you use?
[G3 Android Development] ahmlet:
resurrection remix 6.0, and I think that also fixes it in crdroid 4.2. This is with my lg g3 d855
[G3 Android Development] ArmadaSot:
Hello. ROM **crDroid**[4.2. D855. 8.1] which comes in four variants ? Thank you.
[G3 Android Development] ppajdek:
G3_laos_xtended_o8x_2018-05-02.zip
[G3 Android Development] Šəmûʼēl:
Yaahhh, it's working on with LGD856 crDroid 4.2.

Your kernel has normal batt usage in comparison with default kernel.
[G3 Android Development] stolikat:
Which one of these kernels do I want to use with Liquid Remix?
[G3 Android Development] dudzky:
It works in my g3ds but I suggest can you add spectrum
[G3 Android Development] tonije:
pleas what rom you are use.and any kernel you flash it??
[G3 Android Development] wizzardsk:
I tried to flash it on my G3ds, D858KH, crDrdoid 4.3, Android 8.1, and I got Unsupported device message.
[G3 Android Development] ppajdek:
https://xdaforums.com/showpost.php?p=76532549&postcount=247
[G3 Android Development] wizzardsk:
Thank you very much, it works :)
[G3 Android Development] ppajdek:
New version is ready

Release7 (12-06-2018):

G3DS support - feedback please

Inline with other msm8974 lineageos kernels

Security patches

Bugfixes

Updates

Permissive zip is not needed anymore after flashing kernel on selinux enforced rom, this new version will switch to permissive automaticly.
[G3 Android Development] vanko11595:
D855. CrDroid 4.4. When reboot with charger plugged in, the phone boot loop at lg logo.

More often when battery level is low.
[G3 Android Development] vlonethuggish:
To update this kernel do I just flash the new build over the old one?
[G3 Android Development] ppajdek:
Im doing that myself, no issues, if you want to be completly safe restore boot.img backup that was created when you flash previous version.
[G3 Android Development] ppajdek:
Btw, yesterday i uploaded fixed R7 version - there was some derp in init.rc script that could make 2 hotplugs active at the same time.
[G3 Android Development] vlonethuggish:
Will restoring the boot IMG restore my settings and apps I deleted too?
[G3 Android Development] ppajdek:
Boot.img contains only kernel and ramdisk, there's no apps or settings
[G3 Android Development] MaverickNextDoor:
Hi all,

Please, can someone do a kernel tweak guide similar to this for our device:

https://forums.oneplus.com/threads/...insane-battery-performance-for-op3-3t.568812/

...or, share a link to one?

Thanks a lot.
[G3 Android Development] L1p1c1:
Can you improve battery life? its worse than stock. Tested only profiles zzmove and conservator.

2.5 hours sot versus 3 hours stock kernel.

when i go to sleep battery level its 51 %. When i wake up is still 51 % but goes to 30 % in 5 minutes.
[G3 Android Development] ppajdek:
I got over 3h sot, i got reports of even more sot, its all matter of config, try yankactive governor, lover cpu and gpu frequencies, enable adreno idler, etc, my kernel i highy customizable, make your own profiles.

About sot, how you measure sot? There is no standarized sot benchmark/test, so sot is pretty inaccurate.
[G3 Android Development] vanko11595:
Yes, highly customizable. But that might be a problem. Too many things to change without knowing the impact over the system. Could you upload configuration file or post some settings.
[G3 Android Development] Landloord:
Great work, Dev. Been using the latest build for two days and thanks to your kernel, this vermin has managed to stay cool while browsing in chrome and fast charging at the same time. Thumbs up.
[G3 Android Development] L1p1c1:
the one that shows in settings. brightness is always on minimum.
[G3 Android Development] ppajdek:
The default settings are set to be balanced, then you can tweak it to your needs.

There are many topics on xda about custom governors, hotplugs, etc, it isnt really that hard to figure it out for yourself.

But if you want to flash & forget and have great perf and battery life, the sorry this kernel is not for you.

There are other kernels like artx, moun, solid, gabriel to try.
[G3 Android Development] Marcos OC:
This kernel works nicely, finely tuned settings and entirely customizable, keeps the gpu on low frecs unless necessary.

Great effort op, and thanks.

Enviado desde mi LG-D855 mediante Tapatalk
[G3 Android Development] MaverickNextDoor:
I'm no expert but here are my profiles (specifically, profile "Twelfth") for SOT improvements, plus a GIF of CPU frequencies and SOT (due to this profile).

Note that my battery is almost 2 years old (so improvements may be better for newer batteries).
[G3 Android Development] ppajdek:
Nice, thx.
[G3 Android Development] mahmmoud1231:
Hi Mr Developer

I am using cr droid ROM 8.1 my varient is d855 I cant download the whole file one time so can you please tell me which one I have to flash the slim Oreo or just the Oreo one.

Thank you for your time.
[G3 Android Development] ppajdek:
Slim veriosn has less hotplugs and cpu governors, otherwise its the same as Oreo one.
[G3 Android Development] juviko:
Charging not run

Hallo guys, this could explain why? Charging not run and stopped in 64 %. Will go after in restart it

Thx

Kernel lineage XTD-R7

Rom lineage 15.1

D855
[G3 Android Development] MaverickNextDoor:
I noticed this too.

Seems to occur with and without this kernel on LG G3 Oreo ROMs (I use crDroid 8.1) when you are doing something intensive/heavy-current-drawing (like LCD at full brightness while gaming) while plugged in.

Letting your phone sit alone while charging or light usage while charging gives no issues.

Enabling Fast Charging in XTD alleviates this somewhat.
[G3 Android Development] HardStyl3r:
I had the same issue. Cool your phone down and reboot.
[G3 Android Development] Sealant:
Any recommended settings for d855 with crdroid 4.4? Ofcourse with LineageXTD kernel? ;D
[G3 Android Development] ppajdek:
Could you elaborate this?

Whats so great about my kernel? What did you like the most? What to change?

Any sugestion?

I see you tested many roms, which one works best with my kernel?
[G3 Android Development] arbrib86:
Mine does not charge even after that
[G3 Android Development] juviko:
So problems in of the kernel or rom ?
[G3 Android Development] ppajdek:
Seems more like device/battery problem.
[G3 Android Development] Skippy12359:
Flashed the Nougat slim to RR 7.1 and also the Oreo slim to Crdroid 8.1 on different LGG3 vs985's and both lose LTE data. They boot fine and appear to work OK, but all normal resets and checks to restore data don't work. Once I flash back to a backup with stock kernel, LTE is restored no problem. Just wondering if I'm missing something or other?. Thanks
[G3 Android Development] ___m0d_:
Try clean fresh install with stock kernel. See if the same issue happens.

I can't say for the rest but after clean wipe with fresh install, i can't seem to replicate this issue except after flashing your kernel. Just an FYI
[G3 Android Development] arbrib86:
The same here, I charged my phone overnight in recovery mode, and it was charged.tinight I will try again to charge normally and post the results
[G3 Android Development] ppajdek:
I have three G3 and none of them have this issue.

Anyway if you want help, i ask you to provide logs, G3 model and rom info.
[G3 Android Development] vanko11595:
I load those profiles but there is no startup commands. So I have to load manually profiles after every boot.
[G3 Android Development] MaverickNextDoor:
Try loading the profile then enabling Apply on Boot for the relevant sections. Then check to see if it applies by selecting "Test" under "Settings" of XTD app.

Yeah, I changed GPU (Adreno Idler), Fast Charging, Vibration strength, IO Scheduler.

You can apply the profile, then disable Apply on Boot for those sections you don't need.
[G3 Android Development] majeste42:
thank you for awesome kernel but screen color is so vivid. people faces seem red :) How can we fix it or can you release normal screen display mode of kernel?:o
[G3 Android Development] eric93se:
ppajdek, can you check if fast charge is working on your device. I have D850, latest kernel, latest XTDaduitor, and latest official LOS 14.1 Both PC connection and wall charger are charging regular slow. :)
[G3 Android Development] L1p1c1:
Fast charge on pc connection isnt enabled by default , or atleast at me is turned off. Reflash again kernel and test. Should work.

You have color profiles at display settings. Open a picture and kernel with dual window and change until is ok.
[G3 Android Development] orilan:
Got a log of the chraging problem. Connected my charger, then disconnected, about three times.

I'm using hardstyler's rr, d855

[MENTION=6948251]ppajdek[/MENTION]
[G3 Android Development] vlonethuggish:
Overheating problem, it happened after flashing latest build of CrDroid, I'm on G3 D851. I provided logs even overheats when using duo (which never happened before) while charging, and while watching YouTube. When using duo it gets so hot it burns my finger to the point where it stings.
[G3 Android Development] L1p1c1:
I can confirm that too. For slow charging and heating. D855 here
[G3 Android Development] ppajdek:
The log is kinda short, theres nothing bout battery and charging there.
[G3 Android Development] ppajdek:
The highest temp from logs is 51 for batt, really high

07-17 22:02:20.512 395 457 I ThermalEngine: TM Id 'battery_monitor' Sensor 'xo_batt' - alarm raised 5 at 51.0 degC

07-17 22:02:20.512 395 457 I ThermalEngine: ACTION: BATTERY - Setting battery charging mitigation to 307

Could you post /proc/kmesg since its not included.
[G3 Android Development] orilan:
I simply opened catlog, connected and disconnected the charger a few times and then saved the log. What did I miss?
[G3 Android Development] vlonethuggish:
Here you go. Also does that mean it's the battery's fault? I can change it as I have another spare one.
[G3 Android Development] ppajdek:
Post kmesg
[G3 Android Development] orilan:
Sorry, here it is:
[G3 Android Development] vlonethuggish:
So? What's the problem of the overheating situation? Will it be fixed soon or is my phone faulty?
[G3 Android Development] degsterr:
[MENTION=6948251]ppajdek[/MENTION] mistrzu bakterie mi coś wpieedala za mocno na Twoim kernelku... Może coś zjebałem lecz po wgraniu twrp nic nie tykałem... Czy to może kwestia ustawień - szukam zbawień ;)
[G3 Android Development] satcomranger:
Can you please use english? I really like these forums, but have to get it translated is just a little much .. Thanks!
[G3 Android Development] Vicious.:
I have a strange problem. I flashed this kernel two days ago. Everything was great but last night all my settings were messed up for some reason. I reverted them back but my screen settings doesn't stick. I change the screen preset to stock, then a few mins later it reverts back to the default "red faces" preset. Also I had great sot the first day, now my battery drains like crazy. I have D855 with RR 7.1.2. Any ideas?
[G3 Android Development] 42n4:
With fast charging set in the XTD adiutor battery section and the connected to power my phone I wait till the battery is charged (one hour time) and run programs disconnected.

Without fast charging it gets less heat.

Additionaly i have a thermal mod on my G3 made of thermapod, a thermal paste and a metal shim, which in a few seconds can cool cpu in a hibernated inactive phone, which remains hot, but only outside with the thermal mod.

Choose also one of good cpu managers e.g. yankactive, turn on all features in XTD manager with some changes (mentioned cpu manager, XTD profile in low memory, thermal cpu manager, gpu soft mods). In Android maybe set some pixel percent turned off every a few minutes. Install Greenify and hibernate all apps from time to time (except XTD adiutor, wifi) with a screen shortcut.
[G3 Android Development] Šəmûʼēl:
Dear

.

Please, update installer script to resolve the issue with installation in TWRP 3.2.3 for device name "g3ds" - this is synonym for lg d856.
[G3 Android Development] elhennig:
I am using your kernel R7 with the latest 6.2 release of RR built by [MENTION=6880495]HardStyl3r[/MENTION]

Since a week I am running this combination now and I observe more random reboots as before and I am still trying to figure out, what is the cause for those reboots.
[G3 Android Development] ppajdek:
Did it happend on previous version of RR?

Besides provide logs.
[G3 Android Development] elhennig:
No with previous version from time to time the UI started again, with the latest release the system reboots completely.

I am using zzmove profile 11, I will try switching to 5 as mentioned in the RR thread.

What logs do you need and where do I find them?

Currently I am still not sure if it is ROM or kernel related.
[G3 Android Development] HardStyl3r:
I had no issues on zzmoove, level 9
[G3 Android Development] ppajdek:
After reboot get last_kmsg

You can get it via terminal: cat /proc/last_kmsg or copy it with any file explorer with root support.
[G3 Android Development] jimmmysil:
On aosp extended latest version it can't boot at all. I get bootloop, ofc I flashed the permissive file after the kernel flash
[G3 Android Development] serij951:
You need to flash permissive file before the kernel flash
[G3 Android Development] elhennig:
I tried with zzmoove profile 3 and the number of reboots was less. At least that was my impression.

So now I am trying with 5 and then maybe 9...
[G3 Android Development] ppajdek:
New version is ready

R8 is only for OREO/PIE Roms

Nougat and slim versions are EOL.

Release8 (04-10-2018):

PIE ready

Inline with other msm8974 lineageos kernels

Security patches

Compatibilty with G3DS and D856 variants

Some minor changes
[G3 Android Development] mirsaris:
:good:
[G3 Android Development] persmash:
How can I flash this to my phone which is on bootloop. I'm not familiar with LG phones. Normally I do this via Odin for my Samsung phone. How to do that with LG?
[G3 Android Development] ppajdek:
I recommend first to take care of the bootloop, then flash it with latest twrp.
[G3 Android Development] kerimcem:
The default stock has been colors ... more beautiful.thank you ...

Vivid color red human face...:(
[G3 Android Development] Dallaztz:
D850 Zzmoove...profile 5....thank me later
[G3 Android Development] ppajdek:
Use xtd KA and adjust colors as you need.
[G3 Android Development] hastalafiesta:
Is someone running this kernel on latest aospextended oreo? Last time I've tried to flash (permissive first and then kernel) and I had bootloop. Hope someone could help here
[G3 Android Development] TrueFaith:
Hey,

I am looking for the best ROM on G3, I mainly care about stability. Currently I have Lineage 16.0 + Kernel XTD, but the phone sometimes does weird things and the diode is flashing all the time, as if there was an error. Google play does not work for me on 8.1 and 9.0. On Fulmics, the phone works quite slowly and misread the battery level ...

//crdroid + xtd kernel works great, but my battery indicator still not working :( probably hardware damage
[G3 Android Development] Dallaztz:
Anyone knows any good setting for pie based roms...using kernel auditor
[G3 Android Development] Easy_as_Pi_3.14:
Question about int division patch

Hello, I was looking at the Krait 400, and because it is based off the Cortex-A15, unlike other ARMv7a processors, it supports integer division (sdiv and udiv).

Because those instructions are not supported on most other ARMv7a CPUs, the compiler uses the slower __aeabi_idiv and similar functions from libgcc to maximize compatibility.

This patch appears to short-circuit the libgcc functions to use the faster native division when it detects the wrapper code.

For example, using Google's benchmark suite, I made a test, and using sdiv over __aeabi_idiv results in a 3x speedup:

Yes, the code is the same, but the flags make Clang treat the code differently.

bench_idiv.c

// compile with -O3 -mcpu=cortex-a9
int divide_idiv(int x, int y) {
return x / y;
}

Assembly:

.globl divide_idiv
.p2align 2
.type divide_idiv,%function
.code 32
divide_idiv:
.fnstart
b __aeabi_idiv
Lfunc_end0:
.size divide_idiv, .Lfunc_end0-divide_idiv
.cantunwind
.fnend

bench_native.c

// compile with -O3 -mcpu=cortex-a15
int divide_native(int x, int y) {
return x / y;
}

Assembly:

.globl divide_native
.p2align 2
.type divide_native,%function
.code 32
divide_native:
.fnstart
sdiv r0, r0, r1
bx lr
Lfunc_end0:
.size divide_native, .Lfunc_end0-divide_native
.cantunwind
.fnend

bench.cpp

#include <benchmark/benchmark.h>
#include <climits>
extern "C" int divide_idiv(int x, int y);
extern "C" int divide_native(int x, int y);

static void benchmark_idiv(benchmark::State &state) {
int x = INT_MAX;
// Give it an annoying number to divide and don't go to zero
for (auto _ : state)
x = divide_idiv(x, -13) * 13 - 1;
}
BENCHMARK(benchmark_idiv);
static void benchmark_native(benchmark::State &state) {
int x = INT_MAX;
// Give it an annoying number to divide and don't go to zero
for (auto _ : state)
x = divide_native(x, -13) * 13 - 1;
}
BENCHMARK(benchmark_native);
BENCHMARK_MAIN();

Makefile: (note: tabs are replaced with spaces):

CFLAGS := -O3 -g
OBJS := bench.o bench_native.o bench_idiv.o
bench: $(OBJS)
$(CXX) -O3 $(OBJS) -mcpu=cortex-a15 -lbenchmark -o $@
bench.o: bench.cpp
$(CXX) -c -O3 -mcpu=cortex-a15 $< -o $@
bench_native.o: bench_native.c
$(CC) -c -O3 -mcpu=cortex-a15 $< -o $@
bench_idiv.o: bench_idiv.c
$(CC) -c -O3 -mcpu=cortex-a9 $< -o $@

What I got (clang 7.0.0, Termux):

benchmark_idiv: time: 53ns, iterations 13303137
benchmark_native: time: 17ns, iterations 41875355

Could you check that out? Because I found that int division is very slow, and this patch seems to be a cheap speedup.

I don't have the time, computer specs (I still have a Core 2 Duo), or storage space to build the kernel myself, but if I did, I would test it myself.
[G3 Android Development] ppajdek:
Ok, thx for info, will look to it.
[G3 Android Development] Marcos OC:
For those who use the 2gb ram version, try enabling zram and the performance and multitasking get a lot better.

Enviado desde mi Moto E (4) Plus mediante Tapatalk
[G3 Android Development] MaverickNextDoor:
Though I use the 3GB variant, what values for zram do you recommend for the 2GB G3?

Thanks.
[G3 Android Development] Marcos OC:
Well, i haven't tested a lot but currently using 420MB with swappinnes of 65.

Enviado desde mi LG-D855 mediante Tapatalk