yashsingh1/xdaforums huggingface dataset:
[G2 Android Development] berezker:
So I just flashed the 20H bootloader and it worked perfectly

Stock is now so smooth

---------- Post added at 12:53 AM ---------- Previous post was at 12:49 AM ----------

It's something called bootloader

I don't know much about it but what I do know is that you must have bootloader 20H to flash this kernel or you'll get bootlooped
[G2 Android Development] dorimanx:
You like to tune the vm pressure activation range? For lmk right?.

I can add this sysfs.

Sent from my LG-D802
[G2 Android Development] duki994:
Yes, sysfs control/module_param for vm pressure activation range for LMK.

Oh, and higher swapiness (higher than stock 60%) makes phone more laggy. And in OOM situations, it'll try to swap too much to zRAM and then recover when LMK kills enough to stay alive.

80% and higher is bad performing in OOM situations
[G2 Android Development] giuoge:
I flash 6.4 version in cloudy 3.3 and my phone reboot every 5 min!.. moreover gmail,playstore doesn't load their contents. why? is it normal?
[G2 Android Development] poluyan_stas:
Why is there no support F320L?
[G2 Android Development] Romagnolo1973:
@ Master Dorimanx

I'm a music lovers so I use my G2 as Mp3 player two hours a day.

Music app (as others ap in Android) are bad coded so they continuing jump from min to max frequency and basically they stay at max 2/3 of the time.

For me your kernel's killer feautere is max screen off cpu frequency that I set to minumum=1036800 so I can save more battery when listen music. 1036800 is a good value but probably is possible to drop it a little more. Can you add more low values? I can test it with 15 differents music apps with and without Viper4Android and I can tell you when music app stop working correctly with screen off because of low cpu value.

I can understand a game but see music app stay at 2400 Mhz just to play a song draining battery fast is a pain, developers didn't pay attenction on it and thanks god with your kernel I can reduce consuption.

Thanks for your great kernel, that is basically the reason why I buy my G2 in July.
[G2 Android Development] dorimanx:
I will add 2 more levels, lower than that will lead to modem crashing and instability in kernel core.

All 4 cores will stay online and burn more power to survive. And crash anyway.

Sent from my LG-D802
[G2 Android Development] dorimanx:
Use stock kernel.

Sent from my LG-D802
[G2 Android Development] dorimanx:
Are you sure? More lag is possible but oom should not happen, as kernel has more ram to work with. More zram comprrssed, more cpu power lost on maintain it, but its not so much. Lag can be in extreme load by some other apps.

Sent from my LG-D802
[G2 Android Development] harkis123:
Just in mind, after my D802 digitizer has broken, so my phone is not usable for daily use, I test the Deep sleep duration.

187 hours and 36 minutes now.

SOT 44 minutes

Still 53% left.

Using now Version 6.0 .

All default profile.

If it will be possible after the phone will get at 0% I will flash 6.4 kernel using Dorimanx OTA.

Keep going!
[G2 Android Development] duki994:
Well, when setting vm swappiness at 90%, it really makes kernel swap more to zRAM, but in the end zRAM usage becomes lower since kernel tends to reclaim back those pages for work. So it needs to pull more pages/decompress them back to working memory and release zRAM in the same time. That's what causes lags.

If I have 300MB free and 150MB cached/swapped to zRAM, kernel is trying to pull swapped pages back, but it hass only 300MB free, and when swap decompressed it takes too much RAM. So free RAM gets lower and LMK starts aggresively killing until it's in OK range and kernel reclaims pages. And when reclaimed/pulled from swap, some will be freed if application that use it become killed by LMK.

Too much RAM pressure in those situations.

EDIT:

I found out that filesystem caches are flooding RAM and making LMK work harder thinking that apps use RAM. zRAM is mostly compressing filesystem caches and UKSM is mostly deduplicating fs cache data. vfs_cache_pressure is 60%

Higher swappiness will make zRAM go to full much faster but will make device more lag. After some use filesystem cache becomes big and zRAM and UKSM can't help anymore. That's when LMK destroys apps. And fs cache may expire. We need more frequent fs cache cleaning/releasing/flushing.

EDIT2:

Hmmmm...

setting dirty expire and dirty writeback to 1000 made phone a bit more responsive in longer high load and mutitasking conditions. But the perfect hit was setting drop_caches to 1. I decided to leave dentries and inodes untouched, so drop_cache would only clean pagecache.

Phone is flying again in heavy RAM multitasking. And CPU is more relaxed :)
[G2 Android Development] mujka:
I noticed that also system uses like 300-350 max dunno how but we should sync zRam and uksm
[G2 Android Development] davjan:
Any f320 build? Remember there was a 4.4.2 build for f320l?

Verstuurd vanaf mijn LG-F320L met Tapatalk
[G2 Android Development] RohanM:
LS980 + Cloudy 3.3 + 6.4 Kernel.

Phone stuck/hang while was on charging. I was not using t, google play was downloading apps updates over wifi. When I took phone it was not responding. Removed from charging but red LED was still blinking...!

LOG attached. Please have a look [MENTION=2376110]dorimanx[/MENTION]
[G2 Android Development] dorimanx:
no support.
[G2 Android Development] dorimanx:
Last Kernel dmesg Info before BUG/Opps/Panic triggered:

there was no /proc/last_kmsg to read from

ROM/GOOGLE killed the system service. kernel was fine.
[G2 Android Development] Wimmme:
Very pleased to be back on a dori kernel :)

Using default settings, my phone (d802) starts to lag sometimes when using Dual intelligent Temp Control for CPU.

No problem at all when using Intelligent Temp Control only.

D802, Somboons' 30b Rom. Xposed installed with Lollipop Memory Leak fix. If a log would be helpfull, let me know

Edit: update from 1.4 to 1.5 without issues with Diechel app
[G2 Android Development] tpike1296:
Hopefully you didn't interpret that as me being impatient and trying to go a roundabout way to get an ETA. I'd rather you take your time, not work yourself too hard, and make a quality kernel, as you have in the past. I seriously was just curious, as I hope to eventually join the ranks of developers such as yourself, I've always wanted to create my own custom kernel. I love the work you do, and appreciate the fact that you release it all for free.
[G2 Android Development] dorimanx:
What cpu temp you see when you have lag?

If only intelli thermal used then max temp is higher... as i didnt changed default rom thermal config files...

But i will. Need to set higher limits...

Sent from my LG-D802
[G2 Android Development] Diechel:
HOTFIX !!!

Should fix the problems :)

V2.61 HOTFIX(13-05-2015)

- Fixed file exist function

- Fixed possible unlimited loop

EDIT:

Picture: Currently active users, since supporting LP it raised like crazy cows :)
[G2 Android Development] iko11:
I have updated from 1.4 to 1.5 no such an issue.
[G2 Android Development] iall5tar:
Hiho guys!!!

I got some lags with Ondemand (governor) playing heavy games, but with intellim (governor) smooth like a hell!

I dont have any issue about the LED.s,

Ram seems to be normal with your awesome "Hack" and ofc with the module.

i cant complain about the kernel cause for me everything works like a charm!

and battery life looks promising.... second cycle and 24h and 5Sot...

Cheers guys!
[G2 Android Development] Wimmme:
Sorry, didn't look for it. Put temp in statusbar now.

Will report back
[G2 Android Development] marco90909090:
I can't find dori folder. I know it's hidden but i can't find it

---------- Post added at 11:57 PM ---------- Previous post was at 11:49 PM ----------

Well done. Downloaded for the third time and now it works. I think was corrupted.
[G2 Android Development] Diechel:
Maybe use DorimanX OTA next time, it checks MD5 code to prevent flashing corrupted version.
[G2 Android Development] minotavros:
It's in data folder. Not in sd card. data/dori
[G2 Android Development] drew150931:
We have the same rom. But i never experience random reboots. So far i don't have any issue using 1.5 kernel of dorimanx.
[G2 Android Development] lordc:
i'm s****d ?. post deleted
[G2 Android Development] smartpr1v4t3:
Hi Dori,

Had 2 times the last days a freeze/crash while incoming call. I dont know if you want investigate i used undervolting in this time.

Stock Rom v30b, d802 and Kernel 1.5
[G2 Android Development] berryman13:
I'm currently on BlissPop 3.2 (self built) d800, so I cant use this kernel till that's supported but regardless, do you guys find stock lollipop to be better than what we can provide? Just because of the camera? :confused:

Really want to try stock if its as good as people say...
[G2 Android Development] dorimanx:
Check UV... if modem crash when CPU has low voltage on some freqs, it's game over. ROM reboots it's self.

Modem chip work on low range freqs.. from 499 to 960Mhz leave that range UV STOCK.
[G2 Android Development] Wimmme:
That's more a Q&A kinda thing. I came from Blisspop too.

Stock isn't better, but at least it's rock stable.

And with dori's kernel it feels kinda complete ;)

Blispop 2.3 was rock stable for me, had some graphic glitches on 3.x and the Dt2w issue made me try stock.

A bit scared to fry my screen.

Just waiting for BP to become stable again. I miss the tweaks. But I would miss Dori's kernel too :confused:
[G2 Android Development] xpasha:
Please tell me, when is intended to support ls980?
[G2 Android Development] iko11:
Please tell me, when will you stop asking this questions ? He has already said he will but it's hard to do, stop asking ETAs and pressure on developer.

Sent from my LG-D802 Quetzal Rom v1.3 & Dorimanx LP Kernel v1.3
[G2 Android Development] xpasha:
I excuse me, but I am unable to follow the theme as English know using google translator. For this I would like to know at least a very rough time.
[G2 Android Development] drew150931:
Battery Drain Fast using kernel 1.5

[MENTION=2376110]dorimanx[/MENTION], I just want to report that dorimanx kernel 1.5 i noticed that battery drain fast. i have only 3 hours and 30 mins of screen on time for dori kernel and from stock kernel i have 5 hours plus of screen on time. i don't know whats the problem. but same usage from dori's kernel and stock kernel. wifi on, sync on, location on, facebook and web browsing checking of e-mails for the same usage from difference kernel. i hope you fix the problem in battery life. my setting in dorimanx stweak are all defaults. waiting for fix. Thanks a lot!!! :)
[G2 Android Development] dorimanx:
drop_caches is ONE TIME trigger. you put 1 and cache cleaned.

as kernel it's reset to 0. but not reflected to sysfs.

so it's help once.

this why we have cron task to clean ram every hour. this is what is done.

just i put 3 and sync before and after, or data can be corrupted.

it's nice that you help, but please make sure you know what are you doing, and how it's actually works.
[G2 Android Development] duki994:
[MENTION=2376110]dorimanx[/MENTION]

Interesting...

Then dirty expire and dirty writeback did make really big difference. Although they get reset after each screen off to 3000 and 500.

Why would expire timeout be so big, and writeback daemon wakeup time so small? Too much dirty data in RAM and it'll wake up to write data almost always. It's like fill the data in RAM, and every 30sec make it expire so writeback daemon will write to disk. And writeback is waking up every 5sec to write data.

Maybe setting expire and writeback closer to 1000 can make them more balanced and balance dirty data RAM usage in heavy multitask?
[G2 Android Development] dorimanx:
this is the default value for screen ON. and longer delay for screen off.

the dirty value is very small it's not more than 1mb and after timeout its close to 0 again. (few kb)

you can inspect it like this:

using ADB

watch -n 1 cat /proc/meminfo | grep Dirty

one more cmd adb shell window

watch -n 1 cat /proc/meminfo | grep Writeback

this will show the dirty writeback cache every 1sec

to stop: ctrl c

then you can do some tests with multu tasking and see how it's goes.
[G2 Android Development] mystril:
Kernel v6.4 breathes life into my lag-ridden LG G2 5.0.2

+ Apps open so much faster

+ Performance is as zippy as KK

+ Multitasker is much more snappier

+ Apps like Chrome, Google Photos, Whatsapp or media-heavy apps like Tumblr no longer hang as much

This is Nexus5-like smoothness. Coming from a Nexus 5 which also suffered memory leak issues. G2 hardware is more pleasant experience with 4-5hr SOT.

This is a must try for all flasholics out there. Stock + v6.4 (Performance Profile) is da beast.

Thanks so much dorimanx!

Edit: Using Stock
[G2 Android Development] salmankhere:
Which rom u r using with this kernel???
[G2 Android Development] duki994:
Yeah. Value only jumps to ~12MB when turning on WiFi.

I turned on process reclaim manually and then phone became much more responsive.

After that I compiled kernel with your latest git changes and added my CPU electrical current control.

Our PM chip doesn't have current control capability. Only current monitoring capability it seems. It adjusts voltage to get setted current. If too low it'll reset to normal.

Also RAM management is better with latest changes.
[G2 Android Development] dorimanx:
Process reclaim should help, but i think we need to tune it.

Now its set normal reclame if below 50

Higher reclame above 90 memory pressure.

I think to get smooth device on wakeup after few days. We need to set both lmk and process reclame to 85% or less for pr reclame.

i will add 3 controls in dorimanx app.

Process reclame on/off and 2 bars for memory pressure reclame boost for lmk and pr reclame.

Also i will set per_swap_size in process reclame sysfs to 512

Now set to 1024 allowing more swap to be created. And add some lag.

With value 512 should be balanced.

I am testing right now.

Sent from my LG-D802
[G2 Android Development] Garfield3333:
@ Dori

Is it possible to make a Cm (Dori) Kernel....?

Im on Ressurection Rom, but the Dori MAGIC is missing.....?

This Rom with your Kernel.......

Have you some tutorials to build your kernel in Cm....and so in

Thx
[G2 Android Development] wisefreakz:
No! Dori's kernel is based on stock while Ressurrection is AOSP.
[G2 Android Development] ghost141:
DELETED
[G2 Android Development] dorimanx:
normally i will not answer such request. but i know you, and you not talking to air.

So it's possible. but much work needed. many hours.

first need to pull all hack changes to kernel from original CM kernel tree.

they made few hacks for modem, tap to wake/sleep, sound driver hacks, and few others.

then big problem is with ramdisk, it's 100% different than stock, so need to take the CM ready ramdisk files.

merge my stuff there, boot scripts, busybox, dorimanx app xml, scripts, and profiles, synapse scripts, cron scripts,

stitch all together and pray that is will boot hahaha...

personally i will not use CM based ROMS. they lack every thing... all stripped out, replaced by something simple and ugly.

I respect CM devs they work hard, and have greatest minds there. but it's not for me.

So, if some CM kernel DEV wish to convert my kernel to work with CM. and not call it his kernel!

I dont mind.

Once it's BOOTING, i will update the source same as stock and release for public.

I just dont have time to sit and do it. then burn hours on testing it, and tune.

let me know if you find any one for that task :)
[G2 Android Development] Garfield3333:
@ Dori

Thank you so much for your answer......

3.4.110....is out !!!!

When the time is coming maybe ill start a project...
[G2 Android Development] tripii:
Reboot last night while I was watching TV series with MX player. Here is a log

http://www11.zippyshare.com/v/WxmgQPW7/file.html

d802 + Cloudy 3.3 + v6.4
[G2 Android Development] dorimanx:
Already added to kernel. Will be in 6.5 change log.

Sent from my LG-D802
[G2 Android Development] dorimanx:
This is not my log.

Sent from my LG-D802
[G2 Android Development] hitardo:
Hello,

I cannot see a form on the But Report section.

The page is blank where it is supposed to have the form for reporting a bug.

Where can I file a bug with the logcats?

Or can you help me (or direct me) to how can I read the logcat in order to debug the situation?
[G2 Android Development] Diechel:
dorimanx app -> kernel stuff -> kernel debug

zip on /sdcard called dorimanx_debug.zip

upload here in post
[G2 Android Development] hitardo:
Hello,

I am having "panics" in a matter of 2 hours.

The phone stops responding and does not auto-reboot itself.

I have to press the power button for ~10 seconds to get it to reboot.

My LG G2 D802 setup:

- CloudyG2 v3.3 ROM;

- DorimanX kernel;

- Xposed framework (v45);

- Performancei Profile module (to save battery I have different CPU, GPU, governor and I/O values);

- Greenify module (to hibernate apps);

- Amplify module (to stop wakelocks);

- MyAndroidTools App (to stop services, like SVI setings).

Logcats:

From DorimanX App

From Synapse

Thank you in advance.

And later on that button :)
[G2 Android Development] dorimanx:
First of all update xposed framework to v75 you have old bugged junk.

Dont forget to update the xposed app from xda forum for xposed.

You need the arm 21 v75

For the logs i will check them too.

I have no problems. So as many many others.

Why all my tuning is disabled?

stweaks_boot_control=no

Without all my scripts, kernel is doomed.

Its will hang.

To fix this, delete folder /data/.dori

Wait 30sec, and reboot.

Dont disable my boot scripts. Or use stock kernel,

Sent from my LG-D802
[G2 Android Development] tripii:
Sorry, here is the one taken from your app

dorimanx_debug.zip
[G2 Android Development] dorimanx:
There is no problem in log. So its was not kernel related.

Sent from my LG-D802
[G2 Android Development] dorimanx:
News Update!

Kernel 6.5

27/10/15

*Merged kernel patch 110, many fixes to different parts in kernel. see GIT.

*Enabled Process Reclaim function, it's will shrink used RAM from apps that in background,

And make if free RAM for something else. also will shrink ZRAM by auto if there is free RAM to spare.

and inflate ZRAM if more RAM is needed.

*Added controls for process reclaim and LMK vm pressure range, read descriptions in dorimanx app. memory tab.

*Merged update to state notifier, now it's running in high priority, as it's very important for wakeup speed.

*Updated touch boost driver to respect min freq set on cores from dorimanx app. it's will not reset it to 300Mhz

If other min freq is selected.

*Updated cpufreq driver to check if min freq is locked to some freq, and not allow to change lower!

So now we can set higher min freq, and it's will stick!

*Updated cpufreq Limiter driver, now more advanced in code structure, and allow to set higher min cpu freq in suspend only, when resume, then set the default selected.

Please note that sysfs path is changed for lock/unlock freq limit. see my ramdisk changes.

*Allowed to use lower freq for max freq in screen off state. 2 more steps down.

*Found old bug in cpufreq stats driver, that was creating kernel panics in suspend. and fixed it.

*Updated main sysfs code from 3.10.y it's critical code for all kernel. some heavy bugs fixed.

*Added process reclaim average efficiency to synapse status.

*Added control for zram swapiness. default is 60%

have fun. and if you like my work, please support it :)

Report any problems with LOG from dorimanx app last tab.

Dont play too much with RAM tab if you dont know what you are doing.
[G2 Android Development] salmankhere:
Sorry .... And the good news is m feeling its more faster than 6.4 (y)
[G2 Android Development] dorimanx:
EDIT:

All good, thanks for understanding and not quoting the change log.
[G2 Android Development] n@vier:
[MENTION=2376110]dorimanx[/MENTION]

Thanks for your work and support

4D841974939214405 ;)
[G2 Android Development] OT-Xtreme:
tnx for 6.5 update, currently testing. any memory related improvements for LP is welcome and exciting
[G2 Android Development] wetbiker7:
Just decided to take the plunge and flash the latest build on my LS980. Superb job on kernel build. Also, the Dorimanx app is one of if not the most thorough kernel apps I've seen.

So far, everything is running beautifully.
[G2 Android Development] adydac:
My device just got stuck (was not responding while sleeping on my desk) and I restarted it by long-pressing the power button.

D802 + Cloudy 3.3 + v6.5

Here is the log.

Thanks
[G2 Android Development] szappan:
Perfect. No.1
[G2 Android Development] salmankhere:
it happened with ,my vs980 too but while starting a game...
[G2 Android Development] dorimanx:
i think i found some possible instability in state notifier. fixing it now.
[G2 Android Development] d_Schizzo:
Hey Dorimanx, :)

there seems to be an bug in the new Synape Stats also. The 2 new Stats are not shown for me there.

Besides that, 6.5 working perfect here. Big Thanks for your Work!

Regards,

Schizzo
[G2 Android Development] Romagnolo1973:
Thanks Dorimanx for the new kernel and the two new steps to cut max freq at screen off.

As promise I test some free and pay player with and without Viper4Android to check if those low frequencies have some impact listen music.

Tested at value 883200 as Max Screen Off CPU Frequency and Somboons Rom Lollipop

Free Mp3 Players that basically are fork of Apollo or Seven from CyanoGenMod: Marine, Pixel Player, Phonograph, MyPlayer (Stable and Beta versions) all with V4A active.

Pay Players: Pulsar+, Stellio, JetMuscic, PowerAmp all with v4A not acive using their own EQ

Everithing is ok, not issue, just sometimes some glitches 5-10 seconds after wake up screen or turn it off with sound distortions but for only one second. This is normal at those low freq with CPU jump bitween max to min different values with screen on\off and lock\unlock.

At value 960000 as Max Screen Off CPU Freq those sound distortions are reduced

At value 1036800 that I was previously used only MyPlayer present this glitch

I use my D802 for basic tasks and if someone use apps in background (whatsapp, FB..) when listen music is better stay at 1036800 or level up to prevent issue.

So in conclusion for me work great and test passed!!
[G2 Android Development] n@vier:
You mean this:
[G2 Android Development] d_Schizzo:
Exactly! Strange, i dont have the stats in Synapse...:confused::eek:

[MENTION=5664999]n@vier[/MENTION]: Thanks Bro, deleted Synapse and installed 6.5 again. Now the Stats are there. Weird... :)
[G2 Android Development] n@vier:
Try to stop synapse before erase cache and data and open it again. If doesn't work unistall synapse and flash again the kernel.
[G2 Android Development] dorimanx:
News Update!

Kernel 6.6

27/10/15

*Fix possible SOD bug in state notifier driver.

*Updated cpufreq limiter driver to have better protection of cpu code during changes.

*Merged update to touch boost driver from Alucard24, speed optimizations.

*Merged updates to FS code from 3.10.y to support new F2FS driver for 3.10.y kernel.

*Merged global kernel fixes from patch 3.10.91 :) only needed parts.

*Merged update to memory code to compact all RAM zones during screen off.

*Merged massive update to F2FS driver from 3.10.y kernel. + F2FS encryption support.

Maybe even fixed the EXT4 Data encryption. need to test.

*Few fixes in dorimanx app CPU tab descriptions. and suspend scripts.

I will remove 6.5 as it's has possible instability in code that can lead to SOD. on very rare cases.

I like to supply fresh awesome stuff! today it's arrived to DEV market :) so here all i can get for me and for you!

F2FS driver should be stable now. we had old junk as it's seems :)

Report if any problems with LOG.

Enjoy.
[G2 Android Development] harkis123:
60B10598Y6388253W

Have a nice tuesday my friend.
[G2 Android Development] tarkil:
5JS56198886938148

Have a nice Tuesday indeed, though it's Wednesday over here already!

:)
[G2 Android Development] immi803:
Display flickering strangely

[MENTION=2376110]dorimanx[/MENTION]

Thanks for your continued efforts

I found something strange with 6.6, display flickering strangely after some use

Regards