yashsingh1/xdaforums huggingface dataset:
[G2 Android Development] dorimanx:
News Update! NEW BETA

New Beta kernel 4.7.3 for all models.

16/08/15

*Merged all SLUB code from 3.10.y + all it's friends!

This code is the heart of memory code, and now we have it 3.10.y!

Many things fixed, many optimizations, and more.

*Merged Vmpressure code maxed to 3.10.y, allow smooth memory performance giving us smooth UI!

*Merged new code for process reclaim that help to reduce memory leaks. and speed up kernel.

*Merged Alucard hotplug and Nightmare,Darkness,Alucard CPU govs updates from DEV.

*Upgraded my build machine to MAX, latest GCC 5.2 and latest python 2.x for kernels. + many other.

*Merged update to LMK, new function added that use vmpressure to kill memory leaking apps when there is high

pressure on ram, for now it's OFF. i need to test it for some time, then i will add new control for it.

This update should be stable! and provide real improvement.

4.7.2 was solid rock for me, 97 hours of work! no single problem. then rebooted to test new stuff! :)

@duki994

your input is good, but let me say what i will add and what not, in next release...

1) i will not add the disable CRC, it's too dangerous, and people may loose there data. and blame me...

2)echo "0" > /sys/module/lge_touch_core/parameters/debug_mask YES! good find. we dont need that.

you can use this simple function to set debug to 0 for all drivers!

for i in $(find /sys/ -name debug_mask); do

echo 0 > $i;

done

find /sys/ -name debug_mask

/sys/devices/fe12f000.slim/debug_mask

/sys/module/smd/parameters/debug_mask

/sys/module/smem/parameters/debug_mask

/sys/module/rpm_regulator_smd/parameters/debug_mask

/sys/module/ipc_router/parameters/debug_mask

/sys/module/event_timer/parameters/debug_mask

/sys/module/smp2p/parameters/debug_mask

/sys/module/msm_serial_hs_lge/parameters/debug_mask

/sys/module/powersuspend/parameters/debug_mask

/sys/module/msm_hotplug/parameters/debug_mask

/sys/module/cpufreq_limit/parameters/debug_mask

/sys/module/rpm_smd/parameters/debug_mask

/sys/module/smd_pkt/parameters/debug_mask

/sys/module/xt_qtaguid/parameters/debug_mask

/sys/module/qpnp_regulator/parameters/debug_mask

/sys/module/binder/parameters/debug_mask

/sys/module/msm_show_resume_irq/parameters/debug_mask

/sys/module/alarm_dev/parameters/debug_mask

/sys/module/mpm_of/parameters/debug_mask

/sys/module/msm_pm/parameters/debug_mask

/sys/module/spm_v2/parameters/debug_mask

/sys/module/alu_t_boost/parameters/debug_mask

/sys/module/lpm_levels/parameters/debug_mask

/sys/module/ipc_router_smd_xprt/parameters/debug_mask

/sys/module/x_tables/parameters/debug_mask

/sys/module/lge_touch_core/parameters/debug_mask

have fun and report if any kernel crashed, not ROM mem leaks... we still have it, maybe now kernel will be stronger!
[G2 Android Development] donalberto17:
Holy crap! My device has 1.5GB of free RAM! , that's amazing! Stock kernel not even close to that quantity. You are a god, good job.
[G2 Android Development] EvilKing009:
4.7.3 maxed out smoothness.Even at lowest clock speed 1.2ghz. Thanks! :D
[G2 Android Development] dannycellestio:
if I get 9h SOT again with this one, you are certainly a f**king God of kernel development. nothing more to say
[G2 Android Development] Eminemiero:
Change your G2 for a Nokia 1100, you wont even notice it
[G2 Android Development] shaneel1491:
Which one did you get it with, 4.6?
[G2 Android Development] duki994:
[MENTION=2376110]dorimanx[/MENTION]

I've disabled debug for almost all drivers (powersuspend and cpufreq_limit debugs are left on for sanity and debugging if problem occurs). No crashes or anything both on 4.7.2 and now on 4.7.3.

I enabled new lmk function to see how it works.

Is vmpressure_file_min autoset value by driver, or do I need to set manually? I understood description of parameter, and entire code that's around using vmpressure in lmk, but I didn't understand in which range this var goes.
[G2 Android Development] g.paganini:
I know I'm one of few here who has reboots with this kernel. I would like just a hint or an answer or solution for because I had reboot again and the log was all about chargelogo and processor 5,6,7,8. If I recall correctly, it's a bug connected to moded roms, and mine is stock kdz, not even a stock zip.
[G2 Android Development] duki994:
Use any root explorer and delete chargerlogo binary from /sbin folder.

Or you can use this in terminal:

rm -f /sbin/chargerlogo

Or, as third option (maybe best and automated) make init.d script with this:

#!/system/bin/sh
rm -f /sbin/chargerlogo

And enable init.d control from dorimanx app :)

It will delete chargerlogo when android has booted(chargerlogo must not run with android fully booted), and stop this annoying bug. Don't worry, it won't affect chargerlogo mode when needed (offline charging).

I've added it to my own script for any case. To delete it on every boot and not make problems :)

EDIT:

I suggest init.d script on boot. Chargelogo gets copied every boot in /sbin folder. So init.d script will kill it every boot.

And make sure it has Unix line terminators or it won't work. That means either you write it on phone (in some decent text editor) and put in init.d directory, write in any text editor in linux, or write in text editor that supports Unix line endings in Windows.
[G2 Android Development] dorimanx:
it's already deleted. see your kernel, it's not there.

this BUG is UNKNOWN, and not will be fixed, ever.... i didnt seen it happen to my device...
[G2 Android Development] dorimanx:
i think it's set to optimized value. no need to change.
[G2 Android Development] dorimanx:
do a test.

make backup to your ROM.

WIPE ALL. (no need to wipe storage card)

install stock 30B and 20H bootloader.

install my kernel.

do not install any APP. (well install only stable apps as facebook, and few other ALL have them apps)

use for 2 days.

if no reboots, then something that you have in your backup, is helping to reboot your device :)

if still reboots, use stock kernel or other.
[G2 Android Development] renzo090513:
He could also use the script that delete the charge logo. Script that [MENTION=3441913]duki994[/MENTION] gave.

Enviado desde mi LG-D802 mediante Tapatalk
[G2 Android Development] duki994:
[MENTION=2376110]dorimanx[/MENTION]

Strange...

I've deleted my script, disabled init.d control, rebooted device and waited for ~40sec to stabilize.

There is chargerlogo binary in /sbin folder... although it's not being called and making my phone reboot.

That's why I added rm to my init.d script to delete chargerlogo.

It wasn't being deleted from ramdisk post boot scripts as it should.

I don't know why. I'm using somboon's stock ROM.

Also there is chargerlogo binary in full stock rom and stock kernel in my friends rooted phone.
[G2 Android Development] g.paganini:
I will sure have o try this .. no other options for me.....I mean , in general i have no other issues... i dont even play games... top apps that i use are fb , messenger , viber ,tapatalk , 9 gag , textra... , what i could think of is some of te exposed modules like amplify , greenify , powernap , cooltool , inteli3g ...... well , thans for the tip dorimanx.... im gonna backup an test it in a couple of days
[G2 Android Development] Lycidias:
Today i bought a motorcycle 2.1A charger but my d802 only charges between 50-250mA. My dad's Galaxy S5 charges up to 1,2A, but stable. Someone knows Why my lg charges so Bad? On normal charger i have no problems with it. Thx

Gesendet von meinem LG-D802 mit Tapatalk
[G2 Android Development] donalberto17:
In my case I have a vs980. There is a chargerlogo folder in /persist-lg folder and inside of the chargerlogo folder there are two files called batt_reeboot_hist and noautoboot. Are this files related with the reboot bug?
[G2 Android Development] Nigglenuts:
Just checked.. Same thing here with d800. I would also like to know the purpose behind these files.
[G2 Android Development] sheikhramnuj:
+1 D802 here.
[G2 Android Development] Rachid.Ala:
I don't have the chargerlogo binary in /sbin folder using latest stock 30b and dori 4.7.3
[G2 Android Development] Computoncio:
Dorimanx kernel removes the chargerlogo binary on booting.

Phone: LG G2 D805

Kernel: Dorimanx kernel v4.7.2 LP D802

1st ROM : QUETZAL ROM v1.3 Base30E

2nd ROM : Waiting for custom recovery ;)

MODS: Still searching
[G2 Android Development] donalberto17:
Had a reboot, seems like kernel panic or something like that.
[G2 Android Development] dorimanx:
and yet some have it intact...

this only say that my script exit before finish, something kill it, or something stop it.

my boot, finish to last line in boot-init.sh script, and chargerlogo is deleted from /sbin/

if you do reboot, and wait 1min after first lock screen, and binary is still in /sbin/

then something is wrong! and mess is just started for you, my kernel will fail, soon or later.

investigate what can stop boot script. i cant do that...
[G2 Android Development] dorimanx:
ROM memory leak, kernel tried to release RAM, but main thread failed.

set OOM to aggressive, and enable clean ram cache every hour in cron tab.

this helps to maintain RAM, and not hit critical low ram.

Also what really helps is to use recent menu and clear open apps with CLEAR ALL.
[G2 Android Development] nidzaaaa:
[MENTION=2376110]dorimanx[/MENTION]

I have 800-1200mb free all the time, and reboots, stockLP/g2 3.3, intellidemand..

Kernel is fantastic, btw.. Just those reboots..
[G2 Android Development] runekock:
Try measuring the resistance between the D+ and D- pins on the usb of the charger when disconnected. It should be less than 200 Ohm, that signals that the charger is capable of high currents. If not, the correct thing for the phone to do, is to stay below 500 mA.

Your charger may be designed for Apple, or just be plain weird.
[G2 Android Development] Nigglenuts:
Honestly I think intellidemand may be your problem. Try another governor and see if the reboots persist. :schiksquid:
[G2 Android Development] donalberto17:
I thinks it's not, Im having a lot of free RAM and reboots. its weird.
[G2 Android Development] nidzaaaa:
The same thing happens with ondemand, everything else default..

Every new kernel gives me first 3-4 days without reboots... I tested them all..

Roms are bare bones debloated....
[G2 Android Development] Lizzacore:
How you all get so much free ram ? I only have about 80 to 200 mb ram free all the time ?!

OOM is on default screen on/off and 20% and 30% ,it's too much ?

Device : LG-D802

Rom: Stock 30b 16 GB

Kernel : DorimanX
[G2 Android Development] tehbigbug:
Clear your recent apps, uninstall apps that you don't use, disable unnecessary running services that you don't ever use, and remove all of those apps from start-up that you don't use often.
[G2 Android Development] Rachid.Ala:
Or just use greenify
[G2 Android Development] Lizzacore:
Can you write me an tut for rhis all ? Some things I all ready done like clear the recent apps or uninstall apps and stop services .. So I mean I done that :/

You can write me an PN so we don't spam here with this topic.

Thank you very much !

Cheers,

Device : LG-D802

Rom: Stock 30b 16 GB

Kernel : DorimanX

---------- Post added at 11:08 PM ---------- Previous post was at 10:56 PM ----------

Now everything is fine !

Thanks for your help !

Cheers,

Device : LG-D802

Rom: Stock 30b 16 GB

Kernel : DorimanX
[G2 Android Development] MuzakaTheBeast:
I was happy when I got Dorimanx Kernel working for my D802 (running on CloudyG2 3.3), but I noticed that my battery drains way tooooooooo fast. When I checked the battery tab on settings, it says that most of the power consumption comes from Android System. I'm not actually using the phone. I just got an app running while the screen is off. The App uses GPS. Before, I could go on for 12 hours with the app running. But now, It only lasts for 5 hours. Can you guys share some settings?
[G2 Android Development] kevindontcare:
Make sure you don't have a sketchy or knockoff wallplug/USB cable, I have an amazon 2mAh wallplug & a ps4 controller charger & it charges my phone in a about an hour & 10-15 minutes o:
[G2 Android Development] berceniqgil:
I wake up this morning with the sound of my alarm clock, tried to dismiss it but in my surprise my phone system is frozen ?, that really wakes the hell out of me, 4.7.3 cloudy 3.3 default dori app settings and its the 1st time i had this issues.
[G2 Android Development] dorimanx:
please use my log system next time.

in log i see that rmnet modem driver failed.

then venus (camera/2d video driver failed) and ROM stuck.

can be app bug or other problem that not shown in log.

thanks for report.
[G2 Android Development] n@vier:
First freez and reboot using WhatsApp (v.4.7.3 cloudyg2 3.3 performance profile)

In attach the log maybe it can be useful.
[G2 Android Development] purpleraintoxicity:
I feel that I have less ram on daily usage with the 4.7.3 rather than 4.7.2.

Am I feeling wrong?
[G2 Android Development] pipyakas:
i dont know if this is the right place to ask for this or not, but can you make a voltage control tab in dorimanx app?
[G2 Android Development] Diechel:
Answering for dorimanx:

No, i would not let people change their voltages within dorimanx app because of stability.

Use an other app for that like 3C toolbox but don't post that your device got stuck.

Thank you!
[G2 Android Development] dimakolenko:
i dont know if this is the right place, but let me try to ask: what are functions of Synapse app and what will be if I delete it or frozen with Greenify?

Is it for statistics only and will my settings stay ok without this app but just with Dorimanx stweaks app?

I cant understand if i really need Synapse app?

Thank you!
[G2 Android Development] Rachid.Ala:
It's used only for cpu live stats, I've greenified it since the first day with 0 issues
[G2 Android Development] dimakolenko:
And what will be if I just delete it? Will everything be fine? Or i must not do that for some reason?

I think that i dont need it at all, but not sure.
[G2 Android Development] jeyd02:
Not sure why but my phone has been going black and doesny wake up forcing me to hardreboot
[G2 Android Development] OT-Xtreme:
Why to greenify it its doing nothing in background and no cpu at all
[G2 Android Development] Diechel:
Safe to delete :)
[G2 Android Development] pipyakas:
i think a big alert should be ok then? since touching the current settings in dorimanx has already been sth that affect stability

using another app just make it conflict in some unpredicted ways
[G2 Android Development] christiano88:
Where can I get older versions of this kernel? Which version is the last one that didn't give reboots? I am an Uber partner and phone rebooting while using the Uber application is gonna kill my profits and get me 1 star feedbacks...
[G2 Android Development] Rachid.Ala:
Latest stable version is 4.7.2 but even 4.7.3 don't give reboots for me

You can download them here http://dorimanx.shine.sk/LG-LP/
[G2 Android Development] smartpr1v4t3:
4.7.3 is stable as hell for me.

Last versions are more unstable.

Post logs then we can tell you if it is really a kernel problem. In future please use q/a for such questiins
[G2 Android Development] sheikhramnuj:
4.7.3 give me no reboots. As always the most powerful kernel created by master [MENTION=2376110]dorimanx[/MENTION] :D
[G2 Android Development] Kemby13:
+1

A big red alert would keep off the less experienced users from tampering with

settings they don't understand, while at the same time it would give more advanced

users some extra controls for tweaking this allready wonderfull kernel...

Anyway, 4.7.3 is fast and very stable. Haven't had any reboots yet...
[G2 Android Development] Diechel:
Every CPU has its own voltage table, with dorimanx app its not easy (or not possible) to make it device specific. If he would add it it will cost a lot of time.

http://xdaforums.com/lg-g2/developm...anx-1-0-lg-t3102512/post61000915#post61000915
[G2 Android Development] pipyakas:
when he said there are 6 CPU chips for d802, did he mean that the pvs bin are different or sth?

back when i was using i9100 with dorimanx kernel and STweaks, it did support uv, and when i move to g2 with dorimanx kernel i dont see it anymore, so that question comes into my mind

I know that any system stability problem caused by uv is not kernel's fault, and every chips has it own voltage table, only means that if i want to uv my cpu i cant just copy another one's voltage table, right?
[G2 Android Development] duki994:
Yes. He meant pvs bins.

Binning 0 (for our chip) runs 2.26ghz at 1.1volt

Binning 6 runs 2.26ghz at 0.95volts :)

AFAIK cpu binning is most influential when booting/starting up CPU. Then lower binnings, due to different silicon quality, need more voltage to boot. I'm not talking about low power modes, but full CPU boot when it was previously without any power.

After booting each individual chip reacts differently. Some PVS1 can undervolt -75mV and be perfectly stable.

I have PVS0 and right now I'm testing -50mV on frequencies > 1.19GHz and -25mV on freqs below 1.19GHz.

From my experience, all of instabilities in all PVS bins are due to heavier undervolting of lower freqs (lower freqs == bigger dynamic impedance of CPU == needs higher voltage)

Anyway, if kernel crashes due to UV/OV you will see it in log but don't report here.

UV doesn't make big difference in battery life an our devices, BUT makes big difference in overheating. Especially if you live in 50°C areas.
[G2 Android Development] pipyakas:
Yes, if it's due to uv ofc i wont report here, the kernel is stable for me in almost every build

I dont line in 50°C area but only 42 and when i'm using 3G the phone is quite hot, and i've been told that overheating cause the g2's touch panel/cable to panic and malfuntion, lead to various touch scrren issues
[G2 Android Development] Kemby13:
Yes, i know. But i'm just saying if you dont wanna use any UV than simply don't use it...

I also believe there is no harm in having the option available if you ever choose to try it.

In another words, at least we would be using Dorimanx app instead of some third

party app and by doing that, we would avoid any and every possible conflict... Like duky

already said, it's not about extending the battery life but lowering the temperature and by

doing that we're making the phone and the battery more cool/stable in very hot areas...

NHF, just my opinion...
[G2 Android Development] OT-Xtreme:
+1

by the way [MENTION=2376110]dorimanx[/MENTION] and [MENTION=3970210]krija[/MENTION] can have a more dark theme to our app, like holo dark or like synape/old stweaks? that way it looks even more professional and easy on the ?
[G2 Android Development] dorimanx:
News Update!

Kernel 4.8 STABLE

18/08/15

*Merged all remaining Memory code from 3.10.y

*Enabled LMK Adaptive feature and added it to Dorimanx App.

It's allow to quickly remove ram draining apps from RAM when free RAM is needed for something else.

without delay. this helps with LOW ram problems, and kernel crashes from too slow ram release process.

It's ON and best to leave it like that.

*Tuned min free RAM before LMK start to clean apps from RAM, now allowed to clean more than before.

LP drain RAM for ROM stuff and block kernel from removing system apps from RAM, now kernel will not ask...

If ram needed, we have it.

Have fun. this kernel is marked STABLE, as it's is. works great for me for 1 day.
[G2 Android Development] gozzaa:
Hey [MENTION=2376110]dorimanx[/MENTION]

LMK seems to be great

i did some ram tests in the last few days with different setups (my setup, clean stock, CM12.1)

the test looked like this:

i used ram filler from playstore to fill the ram until its full.

with 4.7.3 there were lags when the ram was low and after some time the app was killed and ram was free again

with 4.8 the lag is gone and the app is killed straight away when the ram is low

i know its not a realistic test but its something that improved in my opinion :)
[G2 Android Development] Adinaky:
One question though, how did you test with CM 12.1?
[G2 Android Development] gozzaa:
I tried stock, dorimanx and cm12.1 kernels to compare the behaviour

Doris kernel doesn't work with cm... O_o
[G2 Android Development] purpleraintoxicity:
[MENTION=2376110]dorimanx[/MENTION]

I thought maybe in my little spare time I'd try to build you a new DorimanxOTA app.

First, I need your permission

Second, I need to no if you even want to :)

You can always pm me for more private talk
[G2 Android Development] dorimanx:
Well, thanks for offer. but why? we have good OTA app, and much hard work invested for it.

Is there a reason to create one more?

And what type of app you want to create? our OTA is based on tasker.

any way i dont understand much about apps build.
[G2 Android Development] Djsam92:
Reboot while i was playing fallout shelter, cloudy g2 3.3 - dori 4.8 , hope the log helps! Thanks Dorimanx :D

https://www.dropbox.com/s/11lv1soulzfvajp/dorimanx_debug.zip?dl=0
[G2 Android Development] Rachid.Ala:
I think it's again this weird chargerlogo bug, our phone don't have cpu4 cpu5 cpu6 and cpu7

This bug ever happened on stock rom or it happens only on cloudy g2?
[G2 Android Development] duki994:
It happened for me on stock. Stock USB MTP driver can induce bug sometimes (although rare).

You can use my init.d script/command to delete chargerlogo binary after boot if dori's script didn't do it :)
[G2 Android Development] Rachid.Ala:
As you can see on the screenshot I don't have chargerlogo binary in /sbin folder using 30b and dori
[G2 Android Development] krogoth:
Does it work on G Pro 2 LP port?
[G2 Android Development] PhoenixNLx:
Again, i don't blame the kernel... guys don't defend dorimanx, it's not nessasary because this is not an attack on him. I just wanted to give my experience about my phone. I told before, it maybe not related to the kernel, or my settings, but maybe it was. I don't know.

I have an original G2, no eaby or so... Never have noticed it. Now with stock kernel, it hasn't come back.. maybe will be when it's more hot again. We will see.
[G2 Android Development] dannycellestio:
I got it, keep calm. I was just kinda sarcastic. We support each other here, either being serious or how I was. Cheers. :D
[G2 Android Development] Closed Force:
Also, keep in mind that you were driving, which means switching between radio stations, this causes lot of heat. This, and charging, and direct sunlight at black phone... man, be more careful with your property. Idea is to have miniature white towel to mantle the phone while it's in car holder, I've seen people do that, they are not stupid.

Also these white spots tend to come back, use your warranty if you have it.

sorry for ot
[G2 Android Development] PhoenixNLx:
I get it, but strange thing is. I have used the phone in Marocco. Which means alot of more heat on the phone, never had a problem with the heat before.

Well, will try the kernel again later. Thanks guys.
[G2 Android Development] DerSpatz:
Direct sunlight is an important point... My G2 once had to shut down due to heating problems, but it was only lying in the sun for like 10 minutes without even being used.

Using your phone in sunlight produces even more heat, as the display will use a LOT of energy.
[G2 Android Development] mucski:
I'm not sure why Would you guys overclock an already very fast phone. Whenever I can I'm looking to underclock it lol. No wonder your phone's heat up and drain battery.
[G2 Android Development] PhoenixNLx:
Not really necessary indeed. But i wanted to test the profile for Dorimanx and myself ;)
[G2 Android Development] Kemby13:
+1, well explained...

My 2 cents on v1.4b. I coulden't keep my profile in stweaks,

every time i rebooted my phone the app would load the default profile.

Default clocks, msm hotplug, darkness on all cores, no uv. I can't provide

a log because i disabled logging but if it occurs again i will... Besides that

everything else is top notch... Waiting for 1.5 and hoping it will help with mem leak.
[G2 Android Development] Tinchoska:
On the stock one there's no modems on aroma, just the rom.... There's another robaste on 30e wich has three modems d802/805/806 but it's just the same I am using right now... Will try the modem that gave me here