yashsingh1/xdaforums huggingface dataset:
[G2 Android Development (D802)] Ropb:
;) all right,

guys sorry for those stupid questions,

but we all know, that there are lots of weired people in Threads,

so i just want to be sure.

And my questions werent so beside the point or absurd. ;)

anyhow, thanks!!

will try it now.
[G2 Android Development (D802)] :
Ah...? :p:silly::D

Who? Who? Who? We want some names :laugh:
[G2 Android Development (D802)] widezu69:
Love the kernel and rom combination. I've been playing round with governors. I know ondemand is recommended and it's a great governor but I'm more interested in the conservative governor. Theoretically this governor ramps up slowly according to usage demand then quickly dials things down when things quiet down which is very interesting to me in terms of finding the best balance between responsiveness and battery life. I'm working on some settings. I'm aiming for three days of battery life regular browsing use.
[G2 Android Development (D802)] htcm7:
Yeah, i played around setting cpu freq in system tuner, but i am pretty sure that i have reseted to max freq, and if but mistake i did set it to lower freq, than my antutu scored would be higher :)

Will test again later.
[G2 Android Development (D802)] suhiiii:
I played asfalt 8 now ,and turn on fps meter,got average fps from 20 - max 25 ,is thath normal ? How much you guys get ?
[G2 Android Development (D802)] :
Hi,

I think it's due to Simple GPU governor...,more efficient about battery life/performance than Ondemand in day to day use but maybe less efficient in term of performance in heavy games...

Try this and see:

echo ondemand > /sys/devices/fdb00000.qcom,kgsl-3d0/kgsl/kgsl-3d0/pwrscale/trustzone/governor

EDIT: try this one instead of the one above:

echo ondemand > /sys/class/kgsl/kgsl-3d0/pwrscale/trustzone/governor

And with Simple GPU governor we don't have the tunable settings in this kernel like with Faux123 (the creator of this GPU governor) to play with for more "performance", like "simple_laziness" and "simple_ramp_threshold".

:)
[G2 Android Development (D802)] g.lewarne:
I can tune those in the source, but will look for how he exports them to userspace for app control
[G2 Android Development (D802)] suhiiii:
Tnx I am not games addict,just was curious :D

And what about GPU rendering ,is better to put it on or off ?
[G2 Android Development (D802)] :
For me, always ticked, it avoids lags in poor coded apps like XDA app... :D

:)
[G2 Android Development (D802)] suhiiii:
I don't know a lot about tweaking governors but you can just tweak interactive for better preformance in games , and leave ondemand for battery.
[G2 Android Development (D802)] livadaki:
Where is that setting please?
[G2 Android Development (D802)] :
In settings/developer options/force GPU rendering...

:)
[G2 Android Development (D802)] widezu69:
Simple GPU Governor settings can be tweaked in the Faux123 app from the App Store.
[G2 Android Development (D802)] nic85:
so this kernel is compatible with faux clock?
[G2 Android Development (D802)] noppoer2:
Is it possible to change the kernel that you can also change the gpu govenor by trickstermod, and can you implement gpu voltage settings?
[G2 Android Development (D802)] :
It's not yet compatible with Trickster Mod because the apps needs to be updated to support the new Adreno 330, already asked to the dev and he's working on it...

It's not kernel related, the app needs to read the correct path for the sysctl interface from the kernel (the paths are not the same as the Adreno 320).

So wait and see...

:)
[G2 Android Development (D802)] cruzargel:
Any negative effects on batt life if it's on?
[G2 Android Development (D802)] nic85:
so for now faux clock is better?
[G2 Android Development (D802)] :
Hi,

Nope..., at least nothing that I could notice... And even if it was the case I don't care about because you gain smoothess in XDA app (and Tapatalk based apps) and maybe other apps.

:)
[G2 Android Development (D802)] g.lewarne:
mine is never turned off so i have no basis for comparison, but with it on i cant say im not impressed with my battery life
[G2 Android Development (D802)] suhiiii:
Yep,battery is rly good, 6h screen on time with 30h stand by time. Enough for me :D
[G2 Android Development (D802)] screenager:
yes
[G2 Android Development (D802)] nic85:
tried it but I don't know how to set various options, so I revert back with trickster for only UV
[G2 Android Development (D802)] screenager:
What exactly did you have problems with? To me the APP is pretty much self explanatory.
[G2 Android Development (D802)] nic85:
[MENTION=1768899]g.lewarne[/MENTION]

in 2.06 you set CPU sync to 1190mhz from 960mhz

I don't know if it's related but in ondemand controller governor in trickster mod I can see 960mhz
[G2 Android Development (D802)] LenAsh:
[MENTION=1768899]g.lewarne[/MENTION]

Since you are now quite intimate with this LG kernel (to say the least), could you advise whether there is a driver for the FM Radio within the kernel or is it wholly external?

Nice kernel, thanks!
[G2 Android Development (D802)] g.lewarne:
The driver is in th kernel but not in th usual secton. LG were quite untidy with their additions
[G2 Android Development (D802)] LenAsh:
Oh crap. Probably not in the CM kernel then...
[G2 Android Development (D802)] screenager:
can someone confirm that you cant go under 700mv?
[G2 Android Development (D802)] g.lewarne:
700mv is the lower limit i set in the kernel so no, you wont be able to
[G2 Android Development (D802)] screenager:
allright, so thats the limit for now. thx!
[G2 Android Development (D802)] g.lewarne:
i am currently downloading the LG G-Flex F340L kernel source to see if there are any differences or useful goodies inside.

exciting times!

p.s., in all honesty, I would imagine its virtually identical to the G2 sources but you never know.
[G2 Android Development (D802)] Pelide:
Hi! When I was on gnex, I loved boype's fancy kernel and his ondemandplus (fast and battery friendly, a mix of ondemand and interactive) and his sioplus. Maybe they are interesting to you...

Another thing I'd like to see in your great kernel is the ability to set a max % of battery charge to preserve battery life ;) since our phone has a non removable battery this could help

Thank you for your great work!

LG G2 D802

Ringraziate solo col tasto thanks ;)

Oh, so sorry, didn't read "please do not" in OP :(
[G2 Android Development (D802)] metalboy94:
Yeah, it would be nice to be able to activate a maximum limit of 95% charge. A charging toggle would be even better.

I know we shouldn't request features, we're just dreaming.
[G2 Android Development (D802)] screenager:
Could you explain how this would hell protect the battery?
[G2 Android Development (D802)] widezu69:
Modern Lithium batteries are not like old fashioned rechargeables. Every time a lithium battery is charged when completely depleted, or charged to completely full, the cells degrade. The best type of charge is from about 10-20% up to around 95%. A buffer either end of the charge helps maintain the longevity of the battery. A deplete every now an again, less than once a month is good for the battery to re-calibrate itself but no more.
[G2 Android Development (D802)] nic85:
I've set scheduler to ROW and buffer size 3072 as Acer73 suggesfions :good:
[G2 Android Development (D802)] onim21:
I don't think so, I had +5 phones with Li and I charged it for all night and after ~18months batteries are still like new.
[G2 Android Development (D802)] robogo1982:
Why would you implement "fixes" for problems that do not exist? Li-Ion batteries have circuitry onboard that cut charging power whenever that is needed.

Battery calibration is an archaism, a remnant from the Ni-Mh times.
[G2 Android Development (D802)] g.lewarne:
I would image handset manufactures have something like that already built into the regulator chip inside the batteries, and it isnt something i want to get into really
[G2 Android Development (D802)] Pelide:
batteryuniversity.com/learn/article/how_to_prolong_lithium_based_batteries

My Samsung notebook has a "battery life extended" mode that cuts charge at 80% (m.samsung.com/us/article/tips--tricks-extending-notebook-battery-life)

Ok, thank you

LG G2 D802

Ringraziate solo col tasto thanks ;)
[G2 Android Development (D802)] EdForce1:
Is it easy to revert to stock kernel?
[G2 Android Development (D802)] onim21:
Yes, you must only flash stock kernel again.
[G2 Android Development (D802)] nic85:
[MENTION=1768899]g.lewarne[/MENTION]

what's your suggestion about scheduler and buffer size?
[G2 Android Development (D802)] g.lewarne:
Sometimes you need to read more than the first post..........
[G2 Android Development (D802)] EdForce1:
Oh, so sorry. The search function didn't work and i was in a hurry... Hopefully the D802 10b International will work even if i have D802 10a, if it's ever needed.
[G2 Android Development (D802)] rubino25:
Can you explain what's the advantage of this changings?
[G2 Android Development (D802)] :
Hi,

I tested and it works...

:)
[G2 Android Development (D802)] nic85:
I'm asking it too.. but g.lewarne didn't answer..
[G2 Android Development (D802)] g.lewarne:
I feel that going above 768 is wateful, most files abd called resources are actually small and forcing large readahead is inefficient
[G2 Android Development (D802)] suhiiii:
Anything good in G Flex source code ? :D
[G2 Android Development (D802)] nic85:
I am the only that thinks 2.03 had better battery life?
[G2 Android Development (D802)] suhiiii:
Hmm I think thath too :D xD

But cant say for sure,because I play aspfalt 8 all day and didnt play it before ,so cant compare xD

But I loosed last night 7-8% for 7-8h stand by time. wifi on
[G2 Android Development (D802)] nic85:
2.03 givme about 10/15% battery life.. I think I go back with it

no wakelocks here :good:
[G2 Android Development (D802)] g.lewarne:
v2.20 released

as usual, download and changelog in OP

(should improve battery to 2.03 levels again)
[G2 Android Development (D802)] nic85:
great thank you!
[G2 Android Development (D802)] g.lewarne:
nope, is basically identical to the G2 kernels source with only a couple configuration changes of no real consequence.
[G2 Android Development (D802)] htcm7:
Downloaded & testing, firewall log still not available, I am using Droidwall, error message: klogctl function not available.

But, thanks anyway for this kernel :)
[G2 Android Development (D802)] robogo1982:
Just had a random reboot with 2.06. Out of the blue, my phone was on my desk in deep sleep and all of a sudden a wild LG logo appears! :D

Downloading 2.20 :)
[G2 Android Development (D802)] sahidmiah:
Kernel v2.06 big issue. On playing hd racing games,real racing 3

Graphics stutters. Game freezes.
[G2 Android Development (D802)] 1stichiban:
Thanks for the update.

Flashed and running good so far.

will report back if there are any issues.
[G2 Android Development (D802)] onim21:
On 2.20 no problems with Mc4.

Wysłane z mojego LG-D802 przy użyciu Tapatalka
[G2 Android Development (D802)] tysklai:
2.20 battery life is amazing, only 5% drop over night (8 hrs)
[G2 Android Development (D802)] onim21:
Yeah, just look on this :

Wysłane z mojego LG-D802 przy użyciu Tapatalka
[G2 Android Development (D802)] widezu69:
The new kernel is great trying to eek 3 days of battery out of this. I'm on a pvs_bin 4 chip undervolted 50mv so my top voltage is 950000 and undervolted lowest freq to 700mv which is awesome.

Thanks G!
[G2 Android Development (D802)] tysklai:
15hrs on battery, 80% left. Amazing
[G2 Android Development (D802)] sahidmiah:
Have you tried playing car racing games. Real racing3
[G2 Android Development (D802)] tysklai:
no gaming, 8hrs idle and other is just whatsapp, facebook and web-browsing and few calls less than 5 mins, screen on time is 1hr
[G2 Android Development (D802)] htcm7:
You can UV it up to -75mV, try it, mine, also bin 4, runs stable.
[G2 Android Development (D802)] dukat0s:
I.run 937500 with no prob psv 4 here too
[G2 Android Development (D802)] robogo1982:
Works superstable, everything seems good :) will report back once I charge it up. Which might take a while :D
[G2 Android Development (D802)] suhiiii:
got 7h sreen on time (surfing,fb,twitter,viber,15min asphlat 8,a few benchmarks) 23h standby time ..amazing work lewarne
[G2 Android Development (D802)] bigup7:
Awesome!

what ROM are you using? Stockmod?
[G2 Android Development (D802)] suhiiii:
Rayglobe 3.2 ,and this stats are with 45min audio wakelocks (will be fixed :P )
[G2 Android Development (D802)] dukat0s:
I got 20hours standby and 10hours 21min screen time with wifi fb xda etc,no wakelocks here all work smooth
[G2 Android Development (D802)] suhiiii:
[MENTION=1768899]g.lewarne[/MENTION] One OT question.

I saw thath you developed hydracore kernel for GT n7000.

I have one friend with thath phone and I was explaining him last night how to root ,flash etc via skype xD

Phone is rooted now ,and I give him sweetrom 10.5 JB 4.1.2 ,flashed ,everything ok,with stock kernel ( philz kernel with CWM)

But still phone is little bit slow,so I checked kernels and saw yours and is it safe to give him V7 link to download and flash in recovery.

I guess your kernel is much faster then phliz stock ?
[G2 Android Development (D802)] widezu69:
Restarted and did that. Thanks! Runs great.
[G2 Android Development (D802)] assdeadmtal:
has anyone tried playing asphalt 8? The first time it runs very smooth but the second time it freezes.

I used kernel 2.06 and 2.20.

Can you fix it?
[G2 Android Development (D802)] dukat0s:
Hey g.lewarne !thanks for new update smooth as always.i ve got a new wakelock.cant find any solution .can u explain me what is bam_dmux_wakelock and how can i solve it?it s the second biggest wakelock after powermanagerservice.something around 4min21sec.x121 times .is that normal?i never use bt
[G2 Android Development (D802)] g.lewarne:
Interesting. Bam is a data movement system in the kernel, but it isnt on my wakelocks list.
[G2 Android Development (D802)] g.lewarne:
Wow that was sonw time ago but im afraid it provably wont work with 4.2.2 roms unless the guy who took over [maxfu) is still developibg it
[G2 Android Development (D802)] g.lewarne:
I this these graphical slowdowns may be related to the simple gpu governor that is now default. Tomorrow i shall release a new versiin which restores the original gpu governor as default
[G2 Android Development (D802)] :
Hi,

It's what I said about Simple GPU governor a few posts ago (HERE)... but (there is always a but :D) now with Ondemand GPU governor it's the same thing :confused::eek:

I think your VM tweaks are playing a role too (little), when I restore the stock values it's a little better but there is always some FPS drops. And when I play with my own values as before it's the same thing, it was not the case before you introducing the Simple governor as the stock GPU governor.

I remember that when Faux123 introduces his Simple GPU governor somewhere the Ondemand GPU governor was "broken" when you go back to it (poor performance in games/benchs, FPS drops), it's fixed for now but maybe something is messing here?

In general UI the Simple governor is smoother than Ondemand (it wasn't the case before). When we have Ondemand as stock it was always smoother in general UI and it gives better performance in games/benchs, but since it's Simple governor I can not find the smoothess/performance from Ondemand :confused:

Maybe there is not only the GPU governor/VM tweaks wich are the causes (compiler flags?), but I mainly noticied this since the V2.06...

Don't get me wrong, I'm not complaining, I just try to understand or give my feedback after some tests ;)

V2.20 runs great, but it's right that in intensive 2D/3D operations it's not perfect. It's based on benchs, but not only, I tested with some heavy games and it's noticiable too.

:)
[G2 Android Development (D802)] suhiiii:
I had my first random reboot yesterday ,using xda app xD
[G2 Android Development (D802)] :
Hi,

Post a log, /proc/last_kmsg... And give more informations (undervolt?). XDA app crash often, maybe not related to the kernel... :rolleyes:

EDIT: I don't remember if it's desactived in the kernel or not :confused:, because I don't have it (nor kmsg).

:)
[G2 Android Development (D802)] suhiiii:
I don't know how to take log :o UV -25 ... Didn't have it before,maybe its just app related.
[G2 Android Development (D802)] :
Read my post above... Go to /proc with a file explorer and see if you have a last_kmsg file, if yes post it here (upload it, don't copy it by quoting the whole log or at least use the

tags)...

:)
[G2 Android Development (D802)] suhiiii:
Nothing,just a lot of folders with numbers and a few normal names :D
[G2 Android Development (D802)] :
Ok, so it's disabled... What is your rom? check your init.d folder, /system/etc/init.d (if you have one) if there is not an init.d script that delete some logs at boot.

Check also your build.prop file if there is not a line that disable some logs, but I don't think it disables the last_kmsg from build.prop.

Otherwise it's disabled from the kernel...

:)

EDIT: maybe this:

Try this: https://play.google.com/store/apps/details?id=com.nolanlawson.logcat&hl=fr or https://play.google.com/store/apps/details?id=org.jtb.alogcat&hl=fr if the crash come back.

:)
[G2 Android Development (D802)] suhiiii:
I am on Rayglobe and cant find anything in build prop :/
[G2 Android Development (D802)] g.lewarne:
Ok chaps and chapesses

Please give feedback on this beta kernel, specifically if it resolves the not-quite-smooth UI and Games issue

Beta 2.50

- Compiled with Os

- Built on my "Baseline" git, fewer source changes

- Ondemand GPU governor (like stock)

- Less agressive VM settings

- Quite a bit more crud removed from config

I have been running this for a couple days and think its the best yet, not necessarily massive benchmarks but im not after that, im trying to really smooth out the phone and reduce all those microlags
[G2 Android Development (D802)] :
Hi,

Thanks for the update ;)

It's not that I said here: http://xdaforums.com/showpost.php?p=47989067&postcount=468, maybe I misspoke... 2.20 is smooth in general UI, no issue with smoothess with Simple GPU governor, it was just about Ondemand governor in term of smoothess compared to the previous versions.

I try to do my best for feedbacks but as English is not my native language, sometimes it's hard to explain.

As a guideline to test the "performance" in games: http://xdaforums.com/showpost.php?p=47984147&postcount=52384 (I don't speak about the device, kernel and settings, I mean for the test conditions)...

It's like benchs if we know how to run and interprete them, sometimes benchs are useful...

:)

EDIT: what is this?:

This: https://github.com/glewarne/LG_G2-D...mmit/f6abd070c440664b3a9e40dbf7c25d03593522a8 ?
[G2 Android Development (D802)] micr0g:
Thanks for this kernel mate,the 2 latest versions are really smooth on my phone,especially i can see the laggy facebook app scrolling better.
[G2 Android Development (D802)] g.lewarne:
Dont worry about your English, i understand you fine and always appreciate your feedback :laugh:

To answer a few of your questions

There are three basic compiler flags that are used when compiling the kernel. Os O2 and O3. In basic sense, Os is produces the smallest size kernel, but does not perform quite as many optimisations as O2 which produces a bigger kernel. O3 performs even more optimisations but produces the largest kernel.

There is a tradeoff between heavier code optimisations (eg, O3) compared to its larger code size - although the code *may* be more efficient, it takes longer to read the code into memory because it is bigger, which takes longer than reading smaller-but-less optimised code into memory.

As a general rule, O2 is the default level and known to work well for everytyhing. Trying Os, as i did in v2.50 beta is an experiment to see if there are really any real world losses / benefites for just having a smaller kernel. I think there are some improvements with Os, but it is a very subjective thing.

That commit you linked to is just setting the compiler to optimise for Cortex-A15 cpu, which has a similar architecture to the Krait processor in our phone and allows the compiler to generate some specific instructions the only exist on these class CPUs. To be honest, in the baseline git repo (used for v2.50 beta) I havent enabled it as i saw zero benefit compared to what has worked well in previous builds

As for benchmarks, we all know they are not 100% indicitive of actual performance and there are always variations between identical tests. When i am testing a kernel, I always ensure the benchmarks I use are "in the general area" of what I expect but i dont go by results alone, i test various other things and always run for at least a few hours to check some games and general UI resposiveness. When im testing, Im generally looking for Quadrant around 20200, Antutu around 35000 and 3d Mark at least 15k, as that is what i seem to max out on with my phone.

Hope that helps!
[G2 Android Development (D802)] :
Re,

Thanks ;)

Perfect for me :good:
[G2 Android Development (D802)] suhiiii:
Fast feedback :D

Antutu = same ,even better little bit

Quadrant = same

Geekbench 3 = in last 2 version multi core score was about 2800 in perfect temp ,30 and bellow, versions before thath give me scores from 2200 -2500,this lattest version can't go more than 2500

FPS in asphalt 8 seems to be improved,I get 3-4 more avg fps then before ,now is about 25fps ,before was 20-22 ..at least on this fps metter thath I use

EDIT: I have strange problem,probably is rom related.(Rayglobe) But When i start asphalt 8 play some time,quit it,after thath i start it again and can't select aynthing in game . Must close game ,clear data and run it again. Same heppening after flashing rom,or kernel . Rly strange
[G2 Android Development (D802)] :
Re,

I noticied something since you introduced your VM tweaks: now I can't set my own values via init.d scripts, before I could...

I checked on my side and I changed nothing (permissions, correct paths and correct structures of each line like spaces, > and so on), the values are reset to yours.

I tested also with an init.d script to enable sysctl.conf file then I wrote my sysctl.conf file, put it in /system/etc, set the correct permissions, checked the correct path but nothing (was working before)...

Even the values you have not modified can't be changed, always revert back to the stock values after a reboot...

They can be changed in "live".

:)

EDIT: it works with some apps with the option "set on boot completed" but I didn't want to use another app to set my own VM tweaks :D
[G2 Android Development (D802)] assdeadmtal:
Thanks to your efforts. I flash new kernel 2.50 on my g2 and I already reinstall game but it seems the problem has not been fixed. I have the same issue like [MENTION=4575226]suhiiii[/MENTION].
[G2 Android Development (D802)] nic85:
how can we pay you a beer?
[G2 Android Development (D802)] :
Hi,

You are blind :laugh:

:)
[G2 Android Development (D802)] g.lewarne:
I can sort that ;)
[G2 Android Development (D802)] g.lewarne:
Guess ill have to buy this game to check myself ;)
[G2 Android Development (D802)] suhiiii:
It's free :silly::D

EDIT: I think this started to happening wih 2-3 lattest version of kernel,I think before thath everything was ok.
[G2 Android Development (D802)] assdeadmtal:
Oh don't worry, it's free on game store :D
[G2 Android Development (D802)] :
Hum... No bear for g.lewarne... :laugh::laugh::laugh::D:D:D

Great, thanks :good:;)

:)
[G2 Android Development (D802)] nic85:
no, simply I'm using XDA app.
[G2 Android Development (D802)] sahidmiah:
Which game is it?
[G2 Android Development (D802)] :
Re,

Ah, sorry (you never use a PC or the browser on your phone maybe?)... It was just a touch of humor, "perdu".

:)
[G2 Android Development (D802)] g.lewarne:
Gimme a few hours and ill have something up, going to look closely at some things and rebase from scratch.