yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] vadonka:
after many tests...

original:

#define NVRM_CPU1_ON_MIN_KHZ (503000)

#define NVRM_CPU1_OFF_MAX_KHZ (216000)

#define NVRM_CPU1_ON_PENDING_MS (1500)

#define NVRM_CPU1_OFF_PENDING_MS (1000)

patched:

#define NVRM_CPU1_ON_MIN_KHZ (912000)

#define NVRM_CPU1_OFF_MAX_KHZ (912000)

#define NVRM_CPU1_ON_PENDING_MS (2000)

#define NVRM_CPU1_OFF_PENDING_MS (1500)

this will be activating the second core when the cpu freq reach 912Mhz and deactivated right after if dropped below and also raise a delay a little so the second core activated only is the cpu freq 912Mhz or higher for a 2 second at least, and deactivated if the cpu speed below 912Mhz for 1.5 second at least.

decreasing the lcd backlight voltages also a good option and safe.

changing this three parameter to lower levels will cause instability:

/// Default low corners for core and dedicated CPU voltages

#define NVRM_AP20_LOW_CORE_MV (950)

#define NVRM_AP20_LOW_CPU_MV (750)

/// Core voltage in suspend

#define NVRM_AP20_SUSPEND_CORE_MV (1000)

so i not recommended to play with this, some phone tolerate the lower levels others not, so its better to not change this, its not gain extra battery life anyway.

default cpu voltages are:

#define IRONVOLT_216 800

#define IRONVOLT_503 825

#define IRONVOLT_655 850

#define IRONVOLT_912 900

#define IRONVOLT_1100 1000

#define IRONVOLT_1312 1075

#define IRONVOLT_1408 1250

#define IRONVOLT_1504 1350

only the two highest level can be changed safely

#define IRONVOLT_1408 1175

#define IRONVOLT_1504 1275

the lower freq levels voltages better to not lowered, the reason is, some phone tolerate others not (its still can be lowered from any cpu pimper app)

the stock ironkernel drain the battery only when heavy use, so the second core tweak and the high level cpu voltages tweak should be enough.

now i tested the stock ironkernel tweaked like this what i write and no problem for now, i have currently a second o2x for testing (thx for my friends) what is different from my phone. its good for the test because my phone tolerate the lover levels but this second phone not.

this tweak gain a good performance and stability along with a fair battery life, so i think this should be fine.

im also adding the cifs module, its just a module dont doing anything wrong but its very handy and working perfect.

i do some test before i build for every ramhack.

by the way setiron make a 112M hack version (leave only 16M for the gpu) but he never publish this, i wonder why mmmm :) but if anybody crazy enough that try this i will build this version too :) i think above the 64M version is unusable, but this dont take off your spirit :)
[LG Optimus 2x] vadonka:
as i promised...

powersaver modestly undervolted version

no ramhack CWM update

16M ramhack CWM update

32M ramhack CWM update

48M ramhack CWM update

64M ramhack CWM update

80M ramhack CWM update

96M ramhack CWM update

if you crazy enough :) 112M ramhack CWM update
[LG Optimus 2x] Medizinmann:
Hello!

Thanks a lot - I will download 32M ramhack Version right away and test it.;):cool::):D

Have a merry merry X-mas and a happy new year!:):)
[LG Optimus 2x] apolloFER:
This is the first time I see a 16MB version. Is it closer to 0MB or 32MB ie. does the reboot work with 16MB version? Tnx
[LG Optimus 2x] Medizinmann:
BTW: Install script says 64M ramhack with the 32M ramhack – but info is correct.;):):D

…and WOW reboot does also work in this version!?!:eek::cool::D

...and I don't need to pull battery on 1st boot!:eek::cool::D
[LG Optimus 2x] miina_tokiha:
I'll try the 64mb ver.

a good thing the 2nd core activated at 912MHz.

1,1GHz is too high.
[LG Optimus 2x] vadonka:
i think not, but try it, i made this ramhack option.

---------- Post added at 06:48 PM ---------- Previous post was at 06:42 PM ----------

i forgot to change the ui_print notice line :) i reuploaded with fixed ui_print now :) btw: about/kernel version show the correct version now with every build

---------- Post added at 06:53 PM ---------- Previous post was at 06:48 PM ----------

im on 64m version playing with the new gta III android version, game run smooth

everything is ok now. endcall bsod seems to be raleted some of the lowered voltages. now its fixed and this issue is gone too. free ram around 190mb

im running zoner antivirus, system panel with monitoring enabled, weather widget and still have a quite lot free ram:

well this is good while SetiroN in away :)

merry christmas for all of the xda members!
[LG Optimus 2x] hakankarani:
Thanks vadonka
[LG Optimus 2x] miina_tokiha:
after few days of testing, I like the original ironkernel better.

I can always uv myself to safe power.
[LG Optimus 2x] vadonka:
this is not just about the undervolt, the original version activate the second cpu core too soon, this version not, and also use less power to the lcd screen backlight. this two tweak really help to save battery.

of course the original version maybe a little faster, but this powersaver version is a good balance between power and battery life.

its up to you :)
[LG Optimus 2x] Medizinmann:
Hello!

Did further testing...

GL-Benchmark isn't working with this kernel (not with 00/16 or 32M ramhack).

But An3DBenchXL is working fine and all the games I tested so far (Asphalt 6 HD, Sentinel 3 HD, Pinball HD, Galaxy on Fire 2 HD, Starfront HD) – all with 32M ramhack.

I will use this for now…:D

Keep up the good work!

BTW: An3DBenchXL scores 41012 (@1,3Ghz) which brings my phone up to 4th place of 15260 tests...WOW.:eek::cool::D ...only a tweaked S2 @ 1,5Ghz is considerably faster.
[LG Optimus 2x] Barnabe619:
Can we set the undervolt like the "normal" version?
[LG Optimus 2x] vadonka:
voltage levels:

currrently im using in my mod the UV_1 (its safe for everyone)

my phone can handle the UV_3 levels, but my friends phone sometimes freeze with the UV_2,so its different in other phones, maybe the hw is not exactly the same. i dont know.

__FREQ_____IKRNL DEF____UV_1______UV_2______UV_3_

216 MHz_____800 mV_____800 mV____770 mV____770 mV

503 MHz_____825 mV_____825 mV____770 mV____770 mV

655 MHz_____850 mV_____850 mV____800 mV____770 mV

912 MHz_____900 mV_____900 mV____900 mV____870 mV

1100 MHz___1000 mV____1000 mV___1000 mV____970 mV

1312 MHz___1075 mV____1075 mV___1075 mV___1070 mV

1408 MHz___1250 mV____1175 mV___1175 mV___1170 mV

1504 MHz___1350 mV____1275 mV___1275 mV___1270 mV

---------- Post added at 09:59 PM ---------- Previous post was at 09:48 PM ----------

you can download the original version from SetiroN github page, and undervolt with setcpu for example
[LG Optimus 2x] yukkio:
I'm using 32v and It works ok :) Min uv at 216mhz -> 770 :)
[LG Optimus 2x] vadonka:
like i sad before not every optimus phone hardware are the same, there is an assembly factory in europe and that phone what is assembled in there not the same what is assembled in korea.

of course the phone hardware part factory in korea, but exported the parts to the other country too. this is only a business thing, the stock parts cheaper like the assembled phone (for the manufacturer company of course, not for the end users) and some big phone company want to know what is in the box (the big one with the magenta logo, haha). its possible that assembled from different way like the koreans. but i dont know more..

my phone is assembled in korea, but my friend phone assembled in germany. my phone will work with the lower cpu voltages, my friend phone not, so it is certain that the two phone hardware it not the same. its enough that some of the chips not the exactly the same. for example the 7400 ic is a logical nand gate ic, 74LS00 (low speed), 74LV00 (low voltage), 74HS00 (high speed), etc.. all of this do the same job but not at the same condition (the military model tolerate the extreme heat or freeze). the high speed model dont work at low voltages, however the low voltage model working but its slower. this different is enough that two same type electronic device act different. its something like that about our phones too.

i really need to disassemble two different o2x for the details, but its not an option for now :)

my original profession is electronic engineer :)

ps: damn i really need to learn english more, sometimes hard to translate what i want to say. sorry for that guys, its my bad. i hope you understand :)
[LG Optimus 2x] yukkio:
Mine has "made in korea" behind battery.

BR.
[LG Optimus 2x] mags014:
Guys you have any idea what happened here?

I was using the old 64 version the powersaver, last I did was set setcpu to powersave and deleted all profiles on there, voltage would be you recommended which is 770mv on 216mhz

Now flashed with the new 16PSUV and hope it work, do I even need setcpu, it might be the cause here or something
[LG Optimus 2x] fuxmen:
Im using 64mb version and have sometimes bsod after call. I turn off profiles, what i can do to prevent them? I know about that I need to put out phone fro ear before the person I caled shuts down call. But I want to be able to not thinking about that every call...
[LG Optimus 2x] vadonka:
damn, this endcall bsod annoying me.

i tested many times, on my phone no problem, only my friend phone was having the endcall bsod if i dont put out the handset from my ear before the call hang up.

i figured out that the powersaver settings have to low voltage in the core definitions, so raise them to the ironkernel default and endcall bsod gone in my friend phone too.

i always test a full wiped fresh installed rom.

now i have incall and screen off settings 216-216 and my friend phone handle this fine too. no endcall bsod.

of course using the stock voltages (800mV) for that freq.

so some voltages is still too low or you have something else what is causing this.

my latest version of modded ironkernel tweaked only that the cpu core tweak, lcd backlight tweak and undervolt in high level freqs.

the cpu core tweak is only matter if the phone reach the 916Mhz, the high level undervolt also when the phone in heavy use. in call conditions is not match that, so when you have an incoming call its like that you have the original ironkernel. without powersave. maybe this issue for you related to the rom..

im using the latest cm7 kang.
[LG Optimus 2x] fuxmen:
I will try this profiles as U do and set up 800mV instead of 775mV like i have right now
[LG Optimus 2x] mags014:
Thanks vadonka for the latest kernel!! The phone didn't had any BSOD on sleep and incall, thing is reboot does not work but reboot recovery does which is odd...

Using the 16MB SUV

EDIT: Spoke too soon, just got a SOD while I was charging...changing the settings now to keep awake while charging here, hope it works...
[LG Optimus 2x] mujju85:
Can I use this kernel with miui
[LG Optimus 2x] fuxmen:
offcourse U can use this on miui :) im using it right now :)
[LG Optimus 2x] komedol:
What should I do if I want to change the boot animation file from ironkrnl to something else? I've tried replacing boot animation file in system/media with SU660 boot animation but I still got the iron kernel animation.
[LG Optimus 2x] miina_tokiha:
replace bootanimation.zip from:

ironkrnL32-20111214h1547.zip\tmp\ironkrnL\files
[LG Optimus 2x] Medizinmann:
Hello vodonka!

I did further testing... ;)

Maybe this also helps your friend’s phone.

A while ago (around end of August) I bought an Andida battery that claims to have 1980mAh and I felt it gives me marginal better/longer battery life - so far so good.

After last update of your kernel-mod I changed back to the stock battery(fully loadad in external charger and wiped battery stats - of course) and got SODs - especially when activating/deactivating Bluetooth and/or wlan but also out of the blue...:( I tried it for 2 battery cycles - but I got SODs at least 2-3x a day - very annoying.

After changing back to the Andida battery didn't have SOD/BSOD or end call issues again - it seems the battery gives me more stable voltage - I assume...

Best thing is it isn't expensive since you can get it for US$8.99 including free shipping.:)

http://www.obostore.com/1980mah-andida-spare-battery-for-lg-optimus-2x-p-1305.html

...so may be give it a try!?!

BTW: Merry X-mas to everybody.
[LG Optimus 2x] vadonka:
i use stock battery for the testing, i also have a mugen power battery but the latest modestly undervolted version not causing sod or bsod on my or my friend phone.

but i look out the battery what you used :)
[LG Optimus 2x] mind_challenge:
I flashed this kernel, but voodoo sound didn't work so I flashed vorkkernel back. Now I have a problem, bootanimation from this kernel is persistent. I tried changing it in system/media but it stayed the same. Then I flashed latest Kang and vorkkernel again but bootanimation is still the same. What to do?

Sent from my Optimus 2X
[LG Optimus 2x] komedol:
I have the same problem, but thanks to Miina there might be a solution to our problem. Check this thread: http://xdaforums.com/showpost.php?p=20691877&postcount=418. I believe we need to replace the bootanimation file with our preferred bootanimation in ironkernel zip file and then re-flashing the kernel.
[LG Optimus 2x] mind_challenge:
I don't think it is the only solution. Maybe the bootanimation from this kernel is not only in system/media but hides somewhere else. I've disabled the bootanimation for now, and I will wait for setiroN's reply.
[LG Optimus 2x] salisbury_steak:
I don't use this kernel so I can't check. But has everyone checked both system/media and data/local?

(data/local actually takes priority in boot animating compared to system/media.)
[LG Optimus 2x] apolloFER:
ironkrnL installs the boot animation in data/local. I just checked the install script. That's probably the issue:

cp $basedir/files/bootanimation.zip /data/local/bootanimation.zip
[LG Optimus 2x] salisbury_steak:
Knew it. In that case, you can just delete the boot anim zip in data/local. You phone will then default to using the boot animation in your system/media.
[LG Optimus 2x] vadonka:
anyone else notice that with the latest cm7 kang the ramhack not working?

i flash the latest kang release and the 64m ramhack version but the memory size is not fit. its like the 0m version, reboot also working.

there is some cm7 update in the past few days what prevent that use ramhack?
[LG Optimus 2x] hakankarani:
Using temasek kang 20, looked at and yes same here :(
[LG Optimus 2x] Kostja_V:
vadonka,

You know, maybe I am wrong, but it doesn't look like KANG's fault.

I have tried all your ironkernel**PSUV kernels, with temasek's KANGs from 18 to 21. And nowhere ramhack is working. BUT with earlier kernel builds such as ironkrnL**-20111214h1717 everything is OK, even with latest KANGs.

Maybe the problem is in mkbootimg.sh script you are using? As I understood, in your kernel builds cmdline is taken from the original kernel, but in SetiroN's builds cmdline was changed according to amount of ram in ramhack.

ironkrnL32-20111214h1547 cmdline:

mem=415M@0M nvmem=96M@416M

ironkrnL80-20111214h1547 cmdline:

mem=463M@0M nvmem=48M@464M
[LG Optimus 2x] vadonka:
update: you right, its seems to be the problem.

thanks for the tip, i will modify the updater script.

who is using the original setiron updater no need to modify anything, just the anykernel updater working bad.
[LG Optimus 2x] Kostja_V:
--- del ---

I was late.
[LG Optimus 2x] vadonka:
i was updated all of my CWM update script, now all working fine. i try every version. even the 112M hack is still booting, however the camera app cant be run, and many more thing not working, but have above a 300M free memory :)
[LG Optimus 2x] vadonka:
with linux abootimg command, you can build a boot.img and with that the update process is much more easyer.

here is the way:

you need the stock cm7 kernel boot.img and the compiled kernel zImage file

this will be updating the boot.img kernel image part and leave intact the initrd part:

abootimg -u boot.img -k zImage

this will be updating the cmdline part, if the ramhack option is present, you need to adjust the mem and the nvmem parameters:

abootimg -u boot.img -c "cmdline = mem=383M@0M nvmem=128M@384M loglevel=0 muic_state=1 lpj=9994240 CRC=3010002a8e458d7 vmalloc=256M brdrev=1.0 video=tegrafb console=ttyS0,115200n8 usbcore.old_scheme_first=1 tegraboot=sdmmc tegrapart=recovery:35e00:2800:800,linux:34700:1000:800,mbr:400:200:800,system:600:2bc00:800, cache:2c200:8000:800,misc:34200:400:800,userdata:38700:c0000:800 androidboot.hardware=p990"

then you can flash the new boot.img
[LG Optimus 2x] hakankarani:
Where can I download the updated kernels? :)
[LG Optimus 2x] vadonka:
the kernel image is same, i only update the cwm script. same links what is posted before.
[LG Optimus 2x] coldfear00:
can sum1 plz explain wat this step is

- rm /system/etc/init.d/70zipalign_defragdb using adb (remember to remount first) or your favorite root file manager

i always get bootloop using this kernel(32mb ramhack)
[LG Optimus 2x] fuxmen:
can't turn on wifi with 64mbL1 version ;/ it says error

done clean dalvik and cache and done two reboots

edit

tryied Your update zip and everything works :) thanks at lat have 64mb more ram :)
[LG Optimus 2x] coldfear00:
i cant seem to use compcache. how to activate compcache? where to place that zImage file its not included in ur example file.

the kernel works really good :D
[LG Optimus 2x] vadonka:
like i sad, the update file what i included needed the boot.img file. you can find it in the zip file.

you need to copy the modules folder to the update or else is the wifi module maybe not working. thats why that i included the modules for every build.

the zimage file needed in the setiron update, the modules need to be updated too.

you can activate the compcache, i posted that too how :)
[LG Optimus 2x] coldfear00:
ive included zImage in the ironkernel update with the modules, added your script in int.d folder and flashed the kernel sucessfully. all works fine but the swap is not there :(

can any1 plzzzzz post a step by step guide to activate swap.
[LG Optimus 2x] vadonka:
what is the output the 'adb shell free' command?

you should see something like this:

C:\Users\vadonka>adb shell free

total used free shared buffers

Mem: 447896 335220 112676 0 20380

-/+ buffers: 314840 133056

Swap: 102392 0 102392

this values are in KB

if you dont see that swap row try this from an adb shell:

echo 1 > /sys/block/zram0/reset

setprop persist.compcache.user 1

setprop persist.service.compcache 1

sync && sysctl -w vm.drop_caches=3

echo 52428800 > /sys/block/zram0/disksize

mkswap /dev/block/zram0

swapon /dev/block/zram0

then try the free command

if you see that an 50mb swap space then working fine, and the init script also will work. if not try to enable the compcache in cm settings, use any percent what you want, then reboot.
[LG Optimus 2x] coldfear00:
thanks that worked but just shows 50mb swap i need 300mb wat command should i add thanks a lot for ur help :D
[LG Optimus 2x] vadonka:
300 mb????? what for? :)

but if you wish, echo 314572800 > /sys/block/zram0/disksize
[LG Optimus 2x] vinylakos:
need 00 ramhack kernel the undervolted

where can i find this kernel ?

no ramhack CWM update

the existing link is down i dont want ramhack
[LG Optimus 2x] vadonka:
fixed, you can download the new hybrid kernel no ramhack version from this link
[LG Optimus 2x] hakankarani:
Thanks man I ll give them a shot as soon as return to cm7
[LG Optimus 2x] SetiroN:
- Updated.

ALWAYS REMEMBER TO WIPE CACHE AND DALVIK CACHE

Dec31

Improved 2nd core behavior for both interactivity and battery usage

Enabled swapfile (200MiB in /data) AND compcache (use CWM performance options to enable the latter as a percentage of RAM)

added SIO I/O scheduler

lowered default voltages

misc small tweaks

added new optimized compilation flags

reworked scripts so that formatting /system should no longer be necessary (might break MIUI compatibility if default init.d scripts are different)

included bravia engine

fixed bootanimation

implemented periodic caches drop

Swap management takes a while (30 or so seconds) at the second LG screen, wait
[LG Optimus 2x] miina_tokiha:
thanks :D

great new year present.

HAPPY NEW YEAR 2012 !!!
[LG Optimus 2x] ron_gangte:
Downloaded the whole zip that included all_kernels, I presume.. but couldn't quite figure out which ones are which. I mean.. which ones are the ones with RAM Hacks and which ones are without RAM Hack.

Would appreciate some guidance on that and, please tell me how to make the files CWM flashable files.

Thank You. :-)
[LG Optimus 2x] vadonka:
happy new year for everyone!
[LG Optimus 2x] liubangde:
Welcome back SetiroN

their is no new 00 version，why？
[LG Optimus 2x] eyronic:
It almost has the same function as the 32 version. Only the reboot doesn't work but you could live with that.
[LG Optimus 2x] morckx:
Thanks, vadonka and a happy new year to you and everybody!

Running very well so far and no after-call-BSOD so far even with the L3 version.

Could you post/upload a diff against the original ironkrnL sources?
[LG Optimus 2x] ron_gangte:
Anyone? :-\ :-\
[LG Optimus 2x] hakankarani:
LPSDef,LPSL1,LPSL2,LPSL3 are without ram hack. The others you will figure out now I think :)
[LG Optimus 2x] Thief777:
Happy New Year :-D
[LG Optimus 2x] vadonka:
hy guys!

i applyed SetiroN latest commits to my hybrid version of ironkernel.

i attach the diff file compare to the SetiroN version ended with this commit

i included many tweak from the swiftextreme kernel and make a kconfig option to the kernel for the ramhack and the undervolt levels.

this patch will create the compile file what i made. that file compile the kernel and create a boot.img, zimage, modules files in a specifyed space. look out inside this file for further information.

i reduced the undervolt levels to one, because SetiroN lowered the ironkernel default voltage levels, so its not needed so many levels any more. i only use one undervolted levels for now.

currently building the 64m version...

update: the last two diff tag is a reject file, just ignore this, i forgot to delete :)
[LG Optimus 2x] orlox:
I feel like an idiot :-P Can you elaborate a little bit more?

You can use you're signature for download links but you already know that :-)

Happy new year and thank you both for the great kernel
[LG Optimus 2x] vadonka:
64m version up and running :)
[LG Optimus 2x] hakankarani:
Could you share a 32M version ready to flash via CWM :)
[LG Optimus 2x] Inkdrop:
I'd appreciate that also very much! :)
[LG Optimus 2x] vadonka:
here you go:

32MB ramhack no undervolt

32MB ramhack undervolted (previously this was the L3 version)
[LG Optimus 2x] lucfig:
Thanks and happy new year.

Can you detail the behavior of the 2nd core activation an deactivation?

EDIT: Having BSODs with the new kernel(maybe undervolting fault?). Went back to 20111214
[LG Optimus 2x] orlox:
32MB hybrid gives me DC with some 3d games.

Can you please upload and a 00 hybrid kernel?
[LG Optimus 2x] vadonka:
its strange, i can play the modern combat 3 even with the 64m version.

you know that some 3d games not completely compatible with the tegra?

try to install chainfire 3d and enable the powervr or qualcomm emulation with hide cf3d flags and try the game again.

if its vorking you can create a profile in cf3d, that the emulation only applyed when the game is running.

dead space for android not working good with tegra, having many texture error and other problems, so i can only play with this game when i use the qualcomm emulation.
[LG Optimus 2x] Thief777:
I used kernel ironkrnL00-20111210h2053 with undervolt and within 2 weeks, there were no hang\freez:

1100mhz-925mv

912mhz-825mv

655mhz-775mv

503mhz-775mv

216mhz-775mv

But with the latest kernel ironkrnL32-20111231h1740 not I get a reboot, and freeze the screen. This is manifested in the games.

I changed the voltage:

1100mhz-950mv

912mhz-850mv

.....

216mhz-750mv

And now the phone is stable. This is strange ...
[LG Optimus 2x] vadonka:
SetiroN lovered some other voltages too, but the voltage levels what was you using is below the minimal safe level. most of the o2x phones cant handle this.

by the way +-10-20 mV not matter
[LG Optimus 2x] vadonka:
for request:

latest powersaver version noramhack: link

latest powersaver version noramhack, undervolted: link