yashsingh1/xdaforums huggingface dataset:
[G2 Android Development] dorimanx:
well it's already in kernel, ready to be used.

but! you need to understand this.

when you turn off your screen, phone enter pre sleep state that last max 30sec

if no apps that hold wakelock and report to kernel that they need CPU active!

so in that time, cpu is active and working as on screen on but only with 1 core!!!

when pre sleep time is over and no wakelock held, kernel put cpu 0 to sleep mode!

Sleep mode, cpu 0 has no freq! and nothing is "moving" on that state...

but on any need, kernel wake cpu 0 to do jobs, counters, crap apps, sync, all kind of other things that brake the sleep...

all this happen in Milliseconds!!! we cant even understand the speed of the cpu.

so there is no point to have any freq control for deepsleep state.

only for state when you listen to music! with screen off!

then it's can be useful, but need for it is very low, as cpu already have only one core active! cant enable others...

and freq is max/min as set for screen ON...

i will add controls in STweaks for max freq on Pre sleep state, when wakelock is held by some app.

then max freq will be the one that set.... it's can save maybe 5% power when listening to music... if set to 1.5Ghz max... or lower.

EDIT:

Added to Stweaks control! CPU CORE Tab :)
[G2 Android Development] dorimanx:
yes! speaker can be louder, but it's has limits! hardware limit... on too high gain

+3 to 10 it's start to distort... as sound bad. also can be damaged in time...

so from 0 to 3 it's really boost the loudness of speaker... but no more.
[G2 Android Development] nexus_vl:
Thanks very instructive explanation!
[G2 Android Development] markus4000:
I checked with a version of htop for Android (within terminal ide):

After that I locked my phone, unlocked it (no fix) locked it again unlocked it and voila:

I produced CPU load by scrolling up and down as fast as I could ;)

And I am pretty sure it's no detection error because the phone feels way slower when only one core is supposedly active. This is not just placebo, it's a big difference.

I will wait for next version and test again.

---------- Post added at 10:39 PM ---------- Previous post was at 10:33 PM ----------

What exactly was your reason to select 300MHz as max GPU? Did you experience any kind of slow gaming with 200MHz? Or did you set it just because it's lower than 450 and higher than 200? :P

I really would like to see someone have lower fps in a game when using only 200MHz because I find it hard to believe that even dead trigger 2 doesn't have lower fps with 200MHz :-/ but it could be some kind of heat limitation on the CPU/GPU.
[G2 Android Development] xtynekk:
In GTA san Andreas i can see huge difference in frame rate between 200 and 450mhz

Wysłane z mojego LG-D802 przy użyciu Tapatalka
[G2 Android Development] Velogr1992:
great explanation!

one interesting question.

since our SoC has a built in pedometer,and they said that they dont cause wakelocks or battery drain.....

If i have a pedometer app(i know it is based on the app) (i currently use lg g3's health app which has pedometer)

does it wake the whole phone?

p.s i use pedometer apps for about 5 weeks and i havent seen any major battery drains
[G2 Android Development] markus4000:
Ok so I used 3DMark's Ice Storm Unlimited test and 200MHz vs 450MHz was 30 vs 60 fps, so there is definetly a difference. I guess I'm lucky that I don't have/play any game where I can see the difference :D
[G2 Android Development] dorimanx:
if you dont see wakelocks in better battery stats app that came from this app or sensor usage.

then it's not waking the CPU for long... only for seconds in one minute, that is not counted and considered OK...

but more apps in RAM, more power wasted on sleep... as CPU process there needs and sleep, then again and again... non stop in ultra fast speed Msec..
[G2 Android Development] dorimanx:
thanks for report.
[G2 Android Development] Ace42:
I was wondering why you have the msm governor for the GPU, but not msm-dcvs for the CPU?
[G2 Android Development] SPBoss:
Now no one can complain about benchmarks lol [emoji14]

Sent from my LG G2
[G2 Android Development] fuxmen:
I'm not gamer, only sometimes watchin fullhd moveis or 4k, is 200mhz will be enough for that?
[G2 Android Development] milogen:
Boss total how many apps running at the background ?
[G2 Android Development] markus4000:
I think yes, but try it out yourself and see ;)
[G2 Android Development] SPBoss:
tapatalk, chrome with a few tabs and apex launcher is locked in memory.

Sent from my LG G2
[G2 Android Development] reas0n:
Is that a huge performance difference between 3.4 and 3.15?

Btw, Cloudyfa is releasing his G3 port in 15/06, if You released Your v5.1 in the same day, it would be like HOLY F*CKING SH*T :laugh: :laugh:

I'm impatiently waiting for Your new update because setting two cores always on will for sure make the battery life better, at least in my opinion
[G2 Android Development] jeyd02:
Dormí I hope you carry out your awesome work to g3. Maybe you'll the phone in your mail, who knows? :)
[G2 Android Development] demilenos:
it seems stweak can't change GPU mx frequency.

i checked

/sys/class/kgsl/kgsl-3d0

but there is no change at all.

from LG G2 - F320S
[G2 Android Development] dorimanx:
This is not right place to check, gpu controlled by devfreq not by kgsl.

Look in my stweaks scripts for path to devfreq there you will find all you need.

Sent from my LG-D802
[G2 Android Development] dorimanx:
If i get one for free, sure i will build kernel for it :)

Till then g2 is more than i need right now.

Sent from my LG-D802
[G2 Android Development] dorimanx:
Well kernel is ready. I am testing all i can and will upload to storage today.

No eta for time... check the thread every 2hours :)

Sent from my LG-D802
[G2 Android Development] jeyd02:
Awesome!
[G2 Android Development] reas0n:
[deleted] (sorry)

[MENTION=4619759]SPBoss[/MENTION] [MENTION=4782115]d_Schizzo[/MENTION] please delete quote of me, didn't want to be rude
[G2 Android Development] SPBoss:
always let the developer announce releases, it's rude what you did

Sent from my LG G2
[G2 Android Development] d_Schizzo:
Buddy, its the honor of the dev to announce his work:rolleyes:
[G2 Android Development] mazroui:
Hey [MENTION=2376110]dorimanx[/MENTION]

What are the possibilities of having future work of let say "dual boot" added to the works? I've been looking around and found a possibility on the market.. An app called multirom manager but only works with nexus 4~5~7 (dunno if lg g2 could be added based on lg hardware or is Google's official phones a must for support? )

Anyways another thread by [MENTION=4316709]savoca[/MENTION] here http://xdaforums.com/showthread.php?t=2704155

Talks about the same matter...

Don't wanna be rude or anything but simply asking if it's possible
[G2 Android Development] levizx:
It's possible but since we don't have unified kernels for AOSP/LG UI, it would require flashing boot.img automatically every time you switch.
[G2 Android Development] dorimanx:
Maybe one day, we need new recovery and fixed bootloader.

Any way kernel 5.1 removed, do not announce before me, as i still check when uploading.

I have found bugs, and fixing now.

When i will post change log, then its safe to install, not before that.

Sent from my LG-D802
[G2 Android Development] alienware231788:
5.1 is out

thanks [MENTION=2376110]dorimanx[/MENTION]
[G2 Android Development] demoncamber:
/facepalm

Sent from my LG-D801
[G2 Android Development] johnbeetee:
...read...OMG
[G2 Android Development] dorimanx:
News update!

14/06/14

Kernel 5.1

*Updated with 3.4.92+93 upstream updates.

*Updates to All CPU HotPlugs!

much changed for MSM and Intelli! Alucard updated with fixes by DEV.

*Now it's possible to set 2 or more CPU cores non stop online.

*Now it's possible to set screen OFF max freq.

to save power when listening to music and phone is not in deepsleep.

*Updated Linaro 2014.05 GCC 4.9.1 self compiled.

*Added option to disable logcat or use other options for it, see STweaks Other tab.

*Fixed low MIC/Speaker gain. now other side will hear you loud and clear.

if you have FuaxSound app you will see that mic gains are higher than app can set!

that is OK! that is what we need, app 0 = 24 for us,

app 10(max) = 34 for us! this is for MIC/CAM MIC only.

you can tune the level from 0 to 10 in app, then exit, and load again

and you will see that setting is your set + 24 :)

*Merged many updates to kernel CORE functions.

*Merged updates for NET and RAM.

*Merged updates for camera and sound.

*Merged updates for GPU and LCD.

*Merged updates for touch CPU boost.

*Merged updates to support Linaro GCC 4.9.1

*Merged updates for all CPU Govs.

*Merged update for safer boot with JB bootloader and LCD boot commands.

Now risk to have fried LCD panel that people speak about is eliminated!

*Updated ExFat driver.

*New options added to profiles, so they will be reset on first boot after install.

*Fixed MIC gain bug, now OK.

*Added new sound controls to STweaks.

you can now set MIC and SPEAKER gain.

In FauxSound app MIC/SPEAKER now only SHOW the value set by STweaks.

it's will not change it. use STweaks for that.

Many developers helped me with this build!

Big thanks to:

@myfluxi

@neobuddy89

@Alucard24

@dr87

have fun testing and report :)

please check that MIC now working as should, and other side hear you loud and clear.

Camera video rec is also loud now.
[G2 Android Development] demoncamber:
Another awesome update. Big thanks.

Sent from my LG-D801
[G2 Android Development] iko11:
You are one of the best developers, you are doing impressive things !

Sent from my LG-D802+CloudyFlex 2.4+Dorimanx Kernel v5 a.k.a jinjin
[G2 Android Development] butthurtlocker:
good battery settings

I dont know much about kernel's or voltage or settings etc. my G2 has been smooth as heck with v5, i am just upgrading to 5.1 now. Am wondering if anyone can tell me if I underclock if that actually affects battery at all? Like by habit when i flash a new kernel i usually go right to trickster mod and lock frequencies at 300MHz and 1.9GHz, turn MP Descision on and MultiCore power saver to 2. Is there a better set up for battery, or is what I'm doing chill? I dont care too much about performance so dont mind sacrificing it for better batter. thanks in advance!
[G2 Android Development] 60nine:
[MENTION=2376110]dorimanx[/MENTION]

a little typo spotted... maximux > maximum...

and thanks for keeping it up... respect
[G2 Android Development] dorimanx:
Dont use this app for hotplug and cpu settings.

You have stweaks this is the kernel controls, all the rest are trying to be them....

You have msm hotplug by default, and you enable the crap rom hotplug

Then you have 2 controllers that fight for cpu cores.

That is stupid, sorry but you need to know what you are doing before you do.

Dont know ask, dont want to ask, dont change.

Simple logic.

Sent from my LG-D802
[G2 Android Development] dorimanx:
MaximuX sounds good :)

I will correct thanks.

Sent from my LG-D802
[G2 Android Development] cdfreak:
Thnx [MENTION=2376110]dorimanx[/MENTION] for all your hard work with this great kernel. After this words, time to Flash ?......

LG2 powered with Dornimanx
[G2 Android Development] Pritt0:
Ok man....you rock with this kernel. Awesome work. Thanks mate you have putted 2 wings on my G2

Inviato dal mio LG-D802 utilizzando Tapatalk
[G2 Android Development] Floodland:
Thank you very much! Much appreciated feature. I used to manually change this feature before (two cores always on while on while screen is on) and noted improvements on both battery life and response.

The logic is: if the screen is on, load is expected: So having to turn the second core on/off actually waste more energy than letting it active at minimum speed for the time the screen is on. It seems to work.

It is nice to have it on Stweaks now!

Keep ruling Dori! :good:
[G2 Android Development] princenoob:
Im really happy with default settings. Great performance and good battery life on 5.1

Sent from my LG G2
[G2 Android Development] dorimanx:
it OK to have 1.9Ghz limit, as long as all smooth for you, then GOOD,

yes it's will save battery.

but you can just select battery profile! in stweaks! it's has that limit set :)
[G2 Android Development] FAFE ANDROID:
Testing 5.1, this option of force cores on, great, now my phone is smoth and in bench dont turn of cores... The previous version when make a test of antutu only used 2 cores, now whit this option forces the 4.... Perfect, dont ever erase this option.... Thanks.... Dori my man.....
[G2 Android Development] lemach:
Thanks for 5.1 kernel. All works very well but camera it close slow when i press back button and also it is slow switching between front and rear camera
[G2 Android Development] xenix96:
And what us your antutu bench score now? I got around ca. 25600 +-1000

Should it not be over min 32000 ?

Cheers
[G2 Android Development] dorimanx:
If you set intelli thermal than its OK nothing can be done.

If you will set lg thermal camera will close fast.

Next time use search, this was posted and answered 10 times.

Sent from my LG-D802
[G2 Android Development] 60nine:
dunno why, but 4.9 is still better for me than 5.x...

i skipped 5.0 because i felt bigger battery drain and a bit hotter device, i thought this would be gone in 5.1... but it drained 12% in the last 60 minutes - 100 to 88%... (and i even have 2.0 uc, lowered touch boost freq and gfx to 389mhz)

yes, i played csr racing for 20 mins, but on 4.9 that would drain only around 3%

(brightness is on 30% as well)

other stuff - browsed xda app, little bit of fb...

should i give it a recharge cycle or two to settle the battery calibration?

one thing i also noticed before:

when i leave the phone to charge itself fully and leave it connected for another 30 minutes or so - 100% battery charge stays for 20-30 minutes (even with gaming) when i disconnect it from charger...

and battery seems to go down quicker below 40-50%
[G2 Android Development] lemach:
Ok.
[G2 Android Development] dorimanx:
For me all cores used always in test apps.

Dont enable core control in thermal section in stweaks.

Make sure no other app select it.

Cpu will hold all cores online during test.

When you force min 4 cores online you overwrite others settings, and its then work for you, but that will also burn power, as cores always on.

Sent from my LG-D802
[G2 Android Development] AnteusFogg:
Sorry for the likely noob question, can anyone explain in a few words what is the CRON used for? I did a bit of search on the topic, I see some people saying "cron ON" but no real explanation on what they use if for

I mean I now what a cron is (I have some basic Unix understanding) but I'm not sure what it can be used for.

Thanks :)
[G2 Android Development] galpec:
[MENTION=2376110]dorimanx[/MENTION] I installed your kernel 5.1, first cleaned dalvik, and cache, I played myth defense 2 for about a half of an hour and my phone almost get fried. I left the default settings, and I have the CloudyFlex 2.4. hope that it helps in some way.

I installed the D803 version.

Best Regards

Aleks
[G2 Android Development] ldsteele:
VS980

Hi, for the first time had to roll back to 5.0 as fauxsound even when set to "0" gain or "24" cause feed back echo on both sides. Sometimes app shows 24 and sometimes 0. Make an adjustment to other sliders and app might now show back to 24 on mic gain maybe. "Followed use instructions in change log".

VS980 with Malladus 2.02
[G2 Android Development] theefim:
First Dori thank you very much for your hard work.

You spend your free time with making other people happy.

With your kernel I'm feeling like I have the Best phone I've ever had.

Realy good battery life don't know what the others complain about but big LIKE Button:)

Your hard work is apprenticed ;)

Greets out of Germany.

Ps. Sry for non Delveloping Stuff and Dori your New Kernel 5.1 is just to keep it simple. AWESOME!!
[G2 Android Development] Robshr:
OK I have to say kudos on the latest build with the improvements to stweaks you've almost done away with my need for android tuner it took me a day to get them both working in sync so I could tweak the interactive governor without stweaks setting it back to the original settings but I got it and I must say great work

---------- Post added at 10:23 PM ---------- Previous post was at 10:15 PM ----------

Cron if I'm thinking correctly and someone correct me if I'm wrong it's basically a tasker cron will perform the tasks you have checked at the times specified like clearing the ram every hour
[G2 Android Development] garywojdan81:
Yep, it's a kernel level scheduler for specified tasks.
[G2 Android Development] Robshr:
One thing I've just noticed is that after installing 5.1 version my speaker volume decreased dramatically I even reflashed my volume booster mod and the Bluetooth and headphone jack volumes are boosted but the speaker volume stayed the same very low volume anyone else experiencing the same

Update: yes my booster mod now has no effect on the speaker volume it still boosts all other volumes so reverted back to 5.0 and now I again have a loud speaker volume oh and viper also had no effect on the speaker volume with 5.1 just an FYI maybe something you'd want to check on

One other thing and I don't know how it could be kernel related but after flashing the latest version quickboot plus app stopped working I restored my backup with version 5 and everything worked again
[G2 Android Development] levizx:
No, it's not "kernel" level. It's a plain old daemon/service.
[G2 Android Development] Andrew_han:
wow 5.1 flies, great work. Any real difference between intelliactive and ondemand. I thnik I read that faux123 put in some way of the governor to detect if a wakelock was keeping the frequency up so that the governor could scale down when that happens, Is that the case?
[G2 Android Development] NOSTALGIA:
i dnt know but on v 5. i was able to fix the low mic gain by using the faux sound app.. is this normal? now im afraid to flash the latest version.
[G2 Android Development] Manbot27:
Disregard silly question I figured out on my own.

Phone is noticeably snappier, now to see battery life.
[G2 Android Development] g.paganini:
I accidentally changed something and lost 50% battery during sleep on 5.1. Not sure what I did, because I use your kernel since the JB days. Reverted back to 5.0 until I figure out what I did. I think I messed around sleep frequency. ?
[G2 Android Development] dorimanx:
50%??? That can be only app that hold wakelock and burning cpu, because its stuck.

Nothing else in settings can cause that.

Sent from my LG-D802
[G2 Android Development] dorimanx:
You will not need to fix it.

Its should be fine.

Sent from my LG-D802
[G2 Android Development] dorimanx:
Sound code is changed, and speaker controls changed to correct path, and checks added for keeping speaker safe from mods that burn it in time.

Kernel has exposed control to change the speaker, i will add to next stweaks in next build, for now you can get fauxsound app (paid) and tune it.

control for speaker:

echo "1 1" > /sys/kernel/sound_control_3/lge_speaker_gain

set can be from 0 to 10! but dont go above 3! only if it's really low for you...

when i set 3 my speaker screaming!!!

control accept stereo set but we have one speaker, so just set same value for each channel "1 1" (LEFT RIGHT)

report what is best for you.

Sent from my LG-D802
[G2 Android Development] dorimanx:
First you need to set custom profile in app.

Then you can change mic gain.

People with vs980 always posted about too low mic, and now too high...

Get your things together already, i need to know exactly the number to set for your phone, i cant test it my self, so just tell me what is good set, and i will do the changes.

I suspect that for vs980 mic gain is not 24 as default, its more like 12.

Find control named lge_mic_gain in /sys/

And echo to it the number 12

Then test.

EDIT:

do this

echo "12" > /sys/kernel/sound_control_3/lge_mic_gain

control accept from 0 to 40

Sent from my LG-D802
[G2 Android Development] BLiNKT:
Dori i means this verison is same like a 4.9 have good battery and work all fine for now i hope be that version OK

Oh i see people have problem with drain battery when sleep so i lose only 1% and this is ok so i dont know what people do whit stweaks and than have havy battery drain

Poslano z mojega LG-D802 z uporabo Tapatalk
[G2 Android Development] dorimanx:
Its has protections, so no problem.

And games stress cpu and gpu, phone get hot, i have allowed more 10c to max heat to gain performance. (Long time ago)

So its ok :)

Sent from my LG-D802
[G2 Android Development] dorimanx:
No its should not. Who said that this app is the true test? Some dev that made it?

Did LG officially aproved the app and agree to its standards?

No...

So dont spam my thread with junk.

I dont care about this stupid app.

Or scores you get using it.

Sent from my LG-D802
[G2 Android Development] g.paganini:
Thanks for the swift answer, I'm not sure what I did but can't think of an app that I used, because I flashed the kernel, went through stweaks to see new options, but the only thing I can think of that I touched it zipalign apps., so maybe it could be that.
[G2 Android Development] BLiNKT:
people stop for once to talk about antutu because it is just an application that shows the kind of results that do not have any role many times I have also looked antutu but now I found that in many cases even if it shows bad result it seems to me that the phone works as a rocket so I do not think any more applications which measure the strength of the phone in some points it is only symbolic results

Those who are watching it but it all depends on the settings but there is one thing you can try to prove that these are only just a point and otherwise do antutu test when it is completed, wait a minute or two and do the test again and you'll see quite a significant difference in the results

by the way Dorimanx you're the best
[G2 Android Development] ChrisM75:
Having terrible trouble with anything past 4.9 on my D802. Im using Cloud Pro and even after a reset 5.0 caused freezing. 5.1 locked one core to max speed so the battery ran down fast and even a good charger only gained the phone 1% in 8 hours. No app was claiming responsibility in the stats.

I use the Hyper governor, its the only one that makes the phone truly smooth at all times. With 4.9 I can get 2 days use.
[G2 Android Development] dorimanx:
cant help you, your post is empty for me, no real data to check.

stay with one that work for you.
[G2 Android Development] galpec:
Ok, thanks for your response, I am new user/tester of your work, but in this short period my phone has better performance, no sudden rebooting, great in every sense. But this kind of temperature has never happened to other phones or my LG G2, I will be testing your 4.9 version for a while, then the latest and will post my findings, also I will learn how to use the tweak app.

Best regards

Aleks
[G2 Android Development] MKh979:
With 5.1 and pardus 7.3 I think now there are an infinite battery life here!!!! That's grate and incredible!!! Thank you [MENTION=2376110]dorimanx[/MENTION]! Works fantastic the last kernel!

Inviato dal mio LG-D802 utilizzando Tapatalk
[G2 Android Development] Velogr1992:
Awesome update,

i Had 6% battery ,and just to check if there are any drains or wakelocks i left it like this all the night ...

Woke up today after 9 hours and it had still 4% !!
[G2 Android Development] garywojdan81:
5.1 running great on vs980. Quality profile in fauxsound works well to boost speaker volume.
[G2 Android Development] g.paganini:
Reflashed 5.1 again after that huge battery drain, now works like it should as it always did. The drain stays a mystery

?
[G2 Android Development] crazylife:
Awww lucky u 9 hours sleeping!!!

Dori can u help about make me sleep 9 hours!! i dont care about battery lol ???

Sorry back on topic
[G2 Android Development] :
Hey dori, or anyone else :

I use battery profile, and everything default, except i set max frequency 2250.. (both oc max frequency control, and max cpu frequency) in stweaks..

But i see in cpu spy that cpu never goes beyond 1958 mhz.. Why? Thanks.