yashsingh1/xdaforums huggingface dataset:
[G3 Android Development] mostafaz:
2457 > 1005

2768 > 1085
[G3 Android Development] suljo94:
are you sure because mine defaults at 1080 after reboot but I am getting random reboots the cpu hits 2457 then reboots while I didn't touch 2457 when undervolting
[G3 Android Development] mostafaz:
Yup

If u get random reboot so this is it

Reflash the kernel.it will reset

Before that make sure kernel app doesnt apply setting at boot ?
[G3 Android Development] suljo94:
but it only Happens sometimes and the cpu ticks 2457 without problems but sometimes it crashes I reflashed it a few times already

btw I haven't undervolted 2457
[G3 Android Development] engine95:
Stock voltages are here. http://xdaforums.com/showthread.php?p=59681419
[G3 Android Development] mostafaz:
Last kmsg?
[G3 Android Development] suljo94:
https://www.dropbox.com/s/x0f9nyogyo6sngq/last_kmsg?dl=0

a few kernel oopses
[G3 Android Development] mostafaz:
Seems ok but at last you were at charge and it's 1500 ma

I think u were at usb with fast charge on or maybe I'm wrong

If so turn it off and monitor your usage
[G3 Android Development] suljo94:
nop just regular charging

1800 mah - wear and tear on charger sounds in the ball park, I never use fast charge
[G3 Android Development] bleuxeon:
Maybe it is Navel stock, but LG's voltages depend on your CPU bin and PVS ;)

Even a CPU with PVS 8 has lower stock voltage than one (like mine) with PVS 7.

I would post it toomorow if you need.
[G3 Android Development] engine95:
V2.1 is in the OP

I'll do change log when I'm back to civilization. Camping for a few days.

Test for OC, GPU over/under clock. Charging.

Should be more compatible with Roms. Changed ramdisk.

Huge thanks to [MENTION=5175597]mostafaz[/MENTION]!!!
[G3 Android Development] Idol400:
[MENTION=1280108]engine95[/MENTION] Nice work Sir. I like Your kernel.
[G3 Android Development] mandroid717:
just for my knowledge what is the reason for 'Make sure you disable "set on boot" if you have it!!!!!" love the kernel.
[G3 Android Development] engine95:
It depends on the kernel tuner. Because it's a different kernel, the tuner may not adapt to the settings until you redo them.

It's just a precaution.
[G3 Android Development] suljo94:
oké so I had a random reboot again

and this time the last_kmsg is

https://www.dropbox.com/s/d0bsihi1kzd2obx/last_kmsg.text?dl=0

wncc crashed and that leads to my problem
[G3 Android Development] Marcovanbasten:
Hi All,

I am on cloudy 2.2 with stock kernel. How using this rom could give me a better SOT ?

What would I need to tweak (UV ?) ?

Best regards.
[G3 Android Development] iam_delan0:
This is not a ROM, Its a kernel. You can flash this kernel and tweak it to your liking. The battery life would be depending on your settings.
[G3 Android Development] Marcovanbasten:
Thanks Dell, it was a "typo", I wanted to write "How using this KERNEL could give me a better SOT" ?
[G3 Android Development] iam_delan0:
You could try the settings given in the second post for a start and then on tweak as you find it suitable.
[G3 Android Development] leomak:
Does this work on d858HK? Really wanna try..
[G3 Android Development] Silver Wx:
#engine Your kernel is the best for me, thanks a lot man, have a good camping ;)
[G3 Android Development] suljo94:
[MENTION=1280108]engine95[/MENTION] so It happened again, random reboot with your voltage values, https://www.dropbox.com/s/d0bsihi1kzd2obx/last_kmsg.text?dl=0

also my vibration Engin went on full strenght when crashing
[G3 Android Development] engine95:
Is anybody else having these issues?

It seems like we'd hear more about it if this was a common issue.

It's funny how picky each phone is. But it could be the ROM also.

Either way, I'll look into it when I get back. It's too hard to do it on my phone.
[G3 Android Development] suljo94:
I am on a the unmodified version of 20p but It seems only happen because that thing keeps crashing
[G3 Android Development] bleuxeon:
its very possible that you don't have the same CPU as me or as [MENTION=1280108]engine95[/MENTION] .

CPU are all different for a same model and are mostly characterized by a number that define their capabilities.

This number is PVS it theoricaly goes from 0 to 15

Higher PVS = lower voltage at the same frequency than lower PVS

For example my G3 has PVS 7 and here are default min-max voltage :

300MHz--> 775mV

2457MHz-->1050mV

An other G3 with a CPU with PVS 15 would only need :

300MHz--> 750mV

2457MHz-->970mV

of course all frequencies are impacted.

If [MENTION=1280108]engine95[/MENTION] 's CPU has a PVS of 8 and you have a CPU PVS 2 then its very likely than voltage that are stable for [MENTION=1280108]engine95[/MENTION] are NOT on your device.

In order to get the info on your CPU's PVS the simplest way it to use a root explorer and open the file as text :

/sys/module/clock_krait_8974/parameters/table_name

On my device here is what I get :

qcom,speed3-pvs7-bin-v1

Hope it helps.
[G3 Android Development] suljo94:
pvs 4 but it crashed with the voltages that were applied before trickster Changed anything, I had it crash a couple of times at bootup too, it only takes place when cpu is under stress or a touch input is detected, but I will see what happens with the latest version on voltages that my cpu phone chose itself
[G3 Android Development] Idol400:
My pvs9. -75mV all is stable
[G3 Android Development] engine95:
This is very interesting. Sprint/mine is pvs6. I had no idea about this.

Maybe if people increase the voltages, things will work better. I can't think of any way to make it work for all phones. If I increase the voltages, and people don't apply any tweaks then they fry their phone. I think this is gonna be a dilemma.
[G3 Android Development] bleuxeon:
I guess it should be possible to read the CPU PVS before installing the kernel and install the kernel with the default stock voltage for this PVS.

I don't know.
[G3 Android Development] lexman098:
It won't fry the phone. Just because a transistor is faster doesn't mean it's weaker if that makes any sense. You'll need a much higher voltage to fry it. The downside is power consumption.
[G3 Android Development] pikachukaki:
simply dont overundervolt your phones...there isn't any significant gain from undervolt...
[G3 Android Development] Black-Angel1:
The navel - Kernel is not working with the NewRom v3.1 from HTC Mania. After flashing in Recovery, phone not starting. I became a Security Error.....
[G3 Android Development] bleuxeon:
the G3 is prone to heat up very quickly.

- Having undervolting capabilities would help to reduce heat production from the CPU and so you would have less CPU throttling.

- less battery drain for the same usage.

You can't just state "there isn't any significant gain from undervolt..."

Off course if you only do an undervoltage offset for all frequencies, you won't get signifiant results since it will be maybe -25 or -50mV

But if you undervolt frequencies one by one, you would probably end up with much signifiant undervoltage at lower freqs.

My 300MHz step need 775mV @ stock.

After some testing I can lower its voltage to 600mV

So its a massive -175mV for the frequency that is the most used when screen is ON and idle.
[G3 Android Development] suljo94:
do you want to know something weird I used the voltages my phone chooses and it still heats up but less than it would with what used to be the max undervolting values for it, If I even undervolt - 10 it crashes while I used to go-50 without problems
[G3 Android Development] bleuxeon:
Your PVS 4 is not the best and needs more voltage than average PVS 7.

Now sometimes when you do undervolting, weird things can happen, and not only crsh or reboot.

You can see for example one or more cores blocked at high frequency even when idle. But unless you look at each core frequency individualy (using Kernel aduitor or other tools), you wont noticed it. This could explain your overheating problem while undervolted.
[G3 Android Development] Marcovanbasten:
I have PSV 3 :( :(
[G3 Android Development] bleuxeon:
I am so so sorry for you :crying:

Kidding ;)

Some CPU even with low PVS can also do good undervolts.

There is no rules but usualy lower PVS CPU need more voltage to boot but when its done they can be undervolted nearly as easier as higher PVS CPU.
[G3 Android Development] suljo94:
My last kmsg showed unable to put core x in idle but I am not defeated yet it used to work so it will probably work again I am just going to take bzby steps(low undervolting on lower frequencys)
[G3 Android Development] bleuxeon:
So...I wasn't far away of your problem I guess :o
[G3 Android Development] pikachukaki:
anyone see this?? http://xdaforums.com/lg-g3/general/thermal-paste-to-cooling-g3-t3130752

My hands itching me to do it!! ^_^
[G3 Android Development] Silver Wx:
this man was a genius !! thanks for sharing ;)
[G3 Android Development] ebautista:
Love to try this kernel but I get security error on bootup after installing this. Did download twice to see if the file was corrupted. My device is d855 with pvs 8.
[G3 Android Development] engine95:
I may put out another with the 20p ramdisk. It may work better for you and everybody.

Changelog updated in OP
[G3 Android Development] flick36:
Another way to know your PSV

For Stock-Rom users:

1.- Open the dialer and enter 3845#*855# (replace the 855 with your device code)

2.- Tap "Settings"

3.- Tap "Version Info"

4.- Your PVS bin does now show up under PVS bin.
[G3 Android Development] qWantUS:
a very good find! Will be doing this tomorrow! Thanks for sharing!
[G3 Android Development] niko626:
I got PVS 10, any undervolt recommendation?
[G3 Android Development] ebautista:
Are you talking about v2.1? I flashed it and it just turned off my phone after lg logo apeared.
[G3 Android Development] mandroid717:
Does this hold true for any kernel or just this one?
[G3 Android Development] suljo94:
you lucky ba#*ard, yeah you can undervolt
[G3 Android Development] niko626:
Can I use your undervolt pictures? or can I tweak them a little bit more and can go down like -4 to all voltage?
[G3 Android Development] engine95:
Yup. It may just be the voltages. Or settings from a previous kernel. See below

Yup. If the kernel doesn't like the settings from the previous kernel, it may do any number of random things.

So as a minimum, you should be turning off all the "set on boot" options.

It really may just be easier to uninstall the tuner app, flash the new kernel, then add the app back in.

This, an Gabriel kernels are pretty heavily modified now. And it makes me wonder if some of these issues are actually from old kernel settings.
[G3 Android Development] suljo94:
jeah you can go further but try downloading stability test from Google play to see it it will work
[G3 Android Development] niko626:
Thanks man, I know I should press the button and I've already done it, but just saying thank you.

I'll be reporting again

With love from PVS 10

Ohh and btw guys, if you have read my posts, you don't know what horror it is that I suffered from a custom kernel, and this is with my G3, but no worries, the developer took care of me. Turns out that the device does not like the applied settings and just put my battery to sleep, I just bought a new battery and have not used my phone for around 2 days bcs of that. Anyways, just a reminder that by being manual, you're being safe, than setting it always on boot :)
[G3 Android Development] marikamonteleone:
I tried the 2.1 kernel and I do not start the phone, but I tell them to test before the kernel, mah. Claudy 2.3

Inviato dal mio LG-D855 utilizzando Tapatalk
[G3 Android Development] pikachukaki:
im wondering what the hell is happening...cloudy didnt boot and lion rom boot??freaking ramdisks!!
[G3 Android Development] empulse92:
the heck? :confused: cloudy 2.3 is working fine! i am using it with this kernel atm ;)

pvs7 btw
[G3 Android Development] marikamonteleone:
I do not go with the 2.3 clody

Inviato dal mio LG-D855 utilizzando Tapatalk
[G3 Android Development] suljo94:
weird I didn't have any problems with lion or cloudy new and old ramdisk, maybe it is the kernel settings

last_kmsg ? emergency remounts?
[G3 Android Development] Silver Wx:
+ 1
[G3 Android Development] rseke:
Not work on stock 20p rom, after installing my phone up get to screen when optimizing apps and after that my phone reboot.
[G3 Android Development] suljo94:
disable your kernel editor because it works here ?
[G3 Android Development] rseke:
You mean i need uninstall kernel editor?
[G3 Android Development] engine95:
Op updated with a 20p ramdisk. Same 2.1 kernel with the 20p ramdisk. This is a one time deal for now. We'll see what happens.

Use this for booting issues, different ROMS. I'm just curious.
[G3 Android Development] suljo94:
yep and also undo your settings
[G3 Android Development] markerenzb:
Can i flash this kernel on version v20g
[G3 Android Development] Silver Wx:
Yes but have a backup in case ;)
[G3 Android Development] niko626:
[MENTION=1280108]engine95[/MENTION] does your kernel support USB Fast Charge? And does it affect battery in the long run? Don't worry, i've searched and searched and I just really want to know why my battery is slow at charging, im using the stock lg charger, 1.8v blah blah.

Btw, if you read my previous comment, I'm asking this because I bought a new battery cause my battery got damaged either because of undervolt(most likely not) or faulty usb cable from charger. So i really want to be safe.
[G3 Android Development] markerenzb:
Thanks m8 :D
[G3 Android Development] niko626:
So I tried your values and did a stability test, it crashed. ;( I think different PVS have different default values :(
[G3 Android Development] suljo94:
be gentle with the +2000 frequencys
[G3 Android Development] Wraithraiser:
I tested some values, tried undervolting all -25mV,-30mV,-50mV,-70mV, and it would eventually crash sometime in the day, and i thought, wow my cpu is pvs 8 and it completely SUCKS at undervolting. Then i decided to do a good undervolt, try the specific voltage in the specific frequency, one by one, stress test etc. Then i discovered an interesting thing, my G3 was really good at undervolting the lower frequencies (until 1574), and then it would be less and less effective as higher as the frequency was. That explains why i was getting crashes, my MSM8974AC Snapdragon 801 CPU couldn't handle the lower voltage on higher frequencies as it could on the lower ones.

For all people interested in undervolting the g3 with this kernel (specially if you're having crashes) look at this link right here:

http://xdaforums.com/oneplus-one/general/info-cpu-binning-concept-overclocking-t2817105
[G3 Android Development] engine95:
It's installed, but not working on the 990. It's only going to 180mv. I think I broke it somewhere along the way. I haven't heard about it on the 855. Can someone check?
[G3 Android Development] niko626:
I already checked it and its working, im charging it fast now. May i know what's the default usb and ac mA's for the G3? cause mine's broken. it was set to 500mA even after I just flashed a new rom with clean wipe. (this is the issue i had on another kernel where it broke my battery).

I just fixed the slow charging by setting the AC charge mA's to 1900. Should I choose between 1400 and 1900, what would I choose? I have 1.8A charger from G3
[G3 Android Development] suljo94:
tectas said it needed driver Mods but on the lg g2 they fixed it maybe you could replicate the changes they did to fix it

---------- Post added at 05:06 PM ---------- Previous post was at 05:02 PM ----------

where did you set it higher (which file did you modify)

[MENTION=4462941]pikachukaki[/MENTION]
[G3 Android Development] engine95:
If you look in /sys/kernel/fast charge/info, you'll see your settings and options.

Faux tuner has a good read for it.

So you have fast charge on USB, by upping A/C? Because I thought it was usb charging that was broken.
[G3 Android Development] niko626:
I modified it using FauxClock, it's just right there, just set it to custom. Btw, what's ur current USB Charge and AC Charge setting, I need it so I can get back on my defaults, after installing faux clock ,send me a quick screenshot. Cheers!

---------- Post added at 11:28 PM ---------- Previous post was at 11:27 PM ----------

I'll send a screenshot. wait

---------- Post added at 11:31 PM ---------- Previous post was at 11:28 PM ----------

Sorry for the quality, was using twilight to rehab my sleep cycle.
[G3 Android Development] suljo94:
lol my charge time went from 3+h to 40 minutes, after enabling will charge it and will disable it after(bad for almost everything)

weird on my phone it keeps reseting it to 1000 is this the failsafe or... it accepts 1000 and 1900 but 1900 it won't touch with the failsave on
[G3 Android Development] niko626:
Ohh. I thought it was only me. Yep. It always reverts back to 1000. But 1900 works well. I searched and searched and its fine if the device wants 1900 cause our charger only provide 1.8A which is 1800. I just wanted to know what stock LG has. Is it 1450?
[G3 Android Development] suljo94:
on another phone I blew up a charger by asking more then the charger could handle soo be carreful. tablet charging on phone charger and mustafa said my phone wass charging at 1500 without fast charge so 1450 Seems like a good bet
[G3 Android Development] engine95:
These should be the defaults. And the 990 can't even do those. That's why I need to know if it's working for you guys.

Read the pic also. If you charge too high, too fast, too often, you can hurt your battery/phone. Or at least there's the potential.
[G3 Android Development] pikachukaki:
What are we talking about???fast charge??
[G3 Android Development] suljo94:
and regular charging voltages ?
[G3 Android Development] pikachukaki:
I'm not sure if they actually work...
[G3 Android Development] suljo94:
well fast charge works, if i'm to believe my phone
[G3 Android Development] niko626:
If I'm using those settings my phone charges way too slow. It took me 1 hour to get +2% when using those. Also after charging for about the whole day with those setting my battery drains way too fast.

Thanks for sending the defaults. I'll try it and report again. but I now confirm that 1900 and 1450 is working. It doesn't heat up my battery and my charger that much so I'm not worrying, I also read at XDA General, I can't link it right now cause I'm on mobile, but even if you set your phone to ask for 2.1A, as long as the charger's maximum output is at 1.8A, it won't go as high as 2.1A. Also, very slow/very fast charging will hurt your battery in the long run (some said it won't hurt Li-ion).

---------- Post added at 07:33 AM ---------- Previous post was at 07:31 AM ----------

Fast charge worked. Cause mine is set to 500mA and I have to charge it the whole day it got drained in 2 hours. After setting it to 1900, right now I'm having 3 hours SoT and with 64% left. Im only using Wifi, browsing and some youtube vids.

I almost forgot to say, yes its charging + 10% every 8min.
[G3 Android Development] suljo94:
could you select 1900 and does it stick (after fully closing the app) also you could check sys/kernel/fast_charge/info does the 1900 stay and does it get selected in the sys file because on mine it won't stick without deisabling failsafe
[G3 Android Development] niko626:
It doesn't stick also. It reverts back to 1000. I think failsafe is just for chargers with 2A or over. If u know u charger has 1.8A. You can disable it. It wont output anything larger than that.

Also we have a 2014 flagship phone. My mom's S3 has 1100mA charge rate. I dont think 500mA would be our optimal one. Considering qualcom quick charge 1.0 is flying around on our device time (development).
[G3 Android Development] pikachukaki:
It doesn't matter how fast you charge your phone... 1900mA is only AC charger... Not exactly but it's 2.0A... Usb 2,3 can give only 1A... Mine is usb 2 with 500mA power... It can't give above this... Fast charge is for old usb that give 500mA.... So it doesn't matter how much power will you give to your phone the drain is the same...
[G3 Android Development] niko626:
Thanks for clearing that up man.
[G3 Android Development] pikachukaki:
For more info you can download ampere to see exactly how much juice you get while charging...
[G3 Android Development] suljo94:
ampere doesn't work for the g3, it is listed as unsupported.

but with your niko and engin their permission lets move on from voltages and amps to praising mosytafaz and engin;)
[G3 Android Development] pikachukaki:
its working in a way that you see the amps...but now that your saying its unsupported maybe someone needs to see if the ampers on the app is the same as the amps on a voltmeter!!
[G3 Android Development] niko626:
I think we should close the topic about the fast charge if it really is unsupported. But me and [MENTION=5570332]suljo94[/MENTION] experienced the fast charging.
[G3 Android Development] jochem86:
I have to say with the latest kernel installed on my d855 it works like a charm. No reboots so far... Looking good :)
[G3 Android Development] StevenYSC:
Need some help

Hi guys I am relatively new to kernels.

I have flashed the latest navel kernel but it doesn't seem to do anything.

I tried to look for the CPU settings but didn't find that in the settings.

Any help would be appreciated:)
[G3 Android Development] motoralbi:
I know that,but i also know that the charging Amperes can be changed with the kernel...
[G3 Android Development] 5k0tt:
Works great on VikingWay 1.1! Next steps could be freq overclock and kexec support for MultiRom.
[G3 Android Development] motoralbi:
I see that there's the stock oversharpening...please add the oversharpening fix! [emoji120]
[G3 Android Development] engine95:
I can't remember if I've answered this here, or PM's. Anyway, once I get this caught up to Sprints version, I'll try to add more things.

As for KCal, it's based on AOSP, not stock. So I'll see what I can do.

You can adjust the voltage with Faux Tuner. If your charger can handle it.

Overclock is in the works. Undervolting should already be in this version.

Faux sound and CPU frequency limiter also. Which is part of the over clock.
[G3 Android Development] muppetmaster916:
Will donate for D850 support, we have absolutely no kernel devs.
[G3 Android Development] engine95:
As for over sharpening. I won't put it in the kernel. It seems to create more problems than its worth.

But on the plus side, use this script.

http://xdaforums.com/showthread.php?p=57144978. I like it better because you can set it to your preference.
[G3 Android Development] engine95:
I don't do this for donations. That's your option.

But if it'll build with either of my build sources, then I'll see what I can do.

If it won't build, I can't put more time into starting from scratch again.

We'll see.
[G3 Android Development] empulse92:
throws up "security error" right after the splash (the part where the android boot should begin and the led is blinking)

it's not shown up in the left upper corner but centered below the LG logo

i didnt mess up with SElinux or smth, wiped cache and dalvik to be sure and installed twice but no luck unfortunately :eek:

p.s. the link for the original thread is 404ing my friend :)
[G3 Android Development] motoralbi:
So,i noticed this kernel behaves well in gaming. Using GTA San Andreas,with robshr thermal mod beta 3,and it was fast and enough smooth.(miles better than rin,that is so laggy,also a bit better than stock)
[G3 Android Development] Silver Wx:
Thanks a lot man for this new kernel !!!!!!!!!!!!!!
[G3 Android Development] mostafaz:
hey good job

keep going.it's amazing to see a stock modified kernel =)
[G3 Android Development] jojobans:
I used stock rom 20p and kernel bumped 20p when install this kernel bootloop why ??
[G3 Android Development] xDrAcHeNx:
its working great on my phone, same setup.
[G3 Android Development] sofir786:
Same setup and its working fine,did you have se linux mode changer installed, if so did you follow the instructions
[G3 Android Development] cjfrias:
Same problem here... im on 20p, kernel stock, with twrp, and give me "security error" when booting.

Any help :confused:

Thx.