yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace II Android Development] ChronoMonochrome:
Try to get some benefit from undervolting, this can help with powersaving. Seems that current liveopp voltages is way too high for some phones. There's manual for UV https://github.com/mkaluza/i9070_kernel_CoCore-E/wiki/Undervolting-janice#extreme-undervolting

This is for liveopp <=2.1, but you can set varm via arm_steps (instead of ab8500 registers).

@up, read OP.
[Galaxy Ace II Android Development] ace2nutzer:
There is nothing to fix on 1,2Ghz.. the step is coded correctly :) but if it can't run stable u should try this:

Set vbbx @ 0x9F and varm @ 0x3F then Performance gov. and max. freq 1200 .. if this can run stable then u have a chance to make it stable also on scaling (with right voltages for the other steps..) if not, no way.

BUT if it can't run stable also with 200/1100 on scaling like in my latest kernel.. then there is a chance to fix this..

If yes, it has nothing to do with wrong Voltages.. it's just an Driver conflict between LiveOPP and GPU (maybe... actually testing) ;)
[Galaxy Ace II Android Development] lars85destroyer:
[MENTION=5695278]ChronoMonochrome[/MENTION]

Will you update twrp ? http://www.xda-developers.com/android/twrp-2-8-3-0/
[Galaxy Ace II Android Development] fluffi444:
Just a short report for R2.10:

CPU 200-1200 (-50mV Step 0-3) / GPU 400-600 (-50mV) / DDR 978 / DYNAMIC

(Using LiveOPP DDR/APE 100% for Steps 4 to 16 for max smoothness)

100% working! No problems! Running now 58 hours without any issue!

Finally phone is back again for normal use :) Good Work, ChronoM.! :good:
[Galaxy Ace II Android Development] Devel0per95:
R2.10 Download link please :/???
[Galaxy Ace II Android Development] shaqman89:
As usual, it's in drive.

I don't understand why you can't find it there:

https://docs.google.com/file/d/0B_OwIFfWQnj_d0N3NkNKRi1pV28/edit?usp=docslist_api
[Galaxy Ace II Android Development] Devel0per95:
I just realized that it was the first one

Iwill check from last files :p
[Galaxy Ace II Android Development] nikolas1274:
I confirm our phone is really back,

Same settings for GPU with your script, ddr and CPU without uv.

Running about 2 days and more without problems
[Galaxy Ace II Android Development] xo.en:
w..what? Is this clock of ram? Oo

I stopped tracking any news since there's zero news for 4.3.x users, but this made me thinking..

---------- Post added at 04:21 PM ---------- Previous post was at 04:19 PM ----------

We all do, Sir, we all do..
[Galaxy Ace II Android Development] ChronoMonochrome:
If it will boot, sure :p I don't know why, but 2.8.1.0 didn't worked for me.
[Galaxy Ace II Android Development] mkaluza:
Maybe I can help it ;) for some time now I've been thinking about an application that would solve the issue with kernel settings once and for all and the concept is becoming clear enough for me to start writing. You can follow me either here or on github to be notified when it's out - some initial version should be available within max 4 weeks.

And for now - Merry Christmas ;)
[Galaxy Ace II Android Development] heml0ck:
im using ace2galaxys4 rom.. can i install the 2.10 version? can someone help me..
[Galaxy Ace II Android Development] Asus-Tek:
How to change CPU step 0-3 on -50mV? Your governors is DYNAMIC?

[MENTION=4962787]fluffi444[/MENTION]
[Galaxy Ace II Android Development] fluffi444:
http://xdaforums.com/showthread.php?p=57671348

Post 2013

Posted this already.

Replace 0x18 with 0x14.

Gesendet von meinem GT-I8160P mit Tapatalk 2
[Galaxy Ace II Android Development] xo.en:
Good luck, it would be a nice continuation of what's done for a2(new kernel control, that is).

Like i said, i stopped research when i found perfect set-up with slim 4.3.x(with HEAVY modifications taken from my 4.2.x slimmerbean) and custom kernel.

Merry Christmas, spokojnych świąt, trzymaj się ciepło...
[Galaxy Ace II Android Development] avithohol:
Using 2.10 kernel now (1100 mhz ram, 1200 mhz CPU, 710 mhz gpu) :good: :
[Galaxy Ace II Android Development] Kiras_PL:
Can you post a script with ram oc?
[Galaxy Ace II Android Development] shadow252:
Do You mean this :

?
[Galaxy Ace II Android Development] ChronoMonochrome:
It's in 2nd post, below the '(PLLDDR boost)' spoiler.

Because there are users that OC DDR, I repeat here that too high its overclocking might cause break. since OC actually also touches MMC clocks.

Therefore I decide write here script that allows to underclock MMC. Probably it should be in OP, but I use it only recently and don't know if it's really helpful (only one time I got booloop, don't know if it's from DDR OC or from F2FS/Fsync, but /data partition was surely corrupted. After that it never happened for me).

Use it before you OC DDR (for DDR 975 MHz)

# we set here 975/0xa == 97,5 MHz for MMC
echo 0x0024 0x18a > /sys/kernel/prcmu/prcmu_wreg

(for DDR 1100 MHz)

# 1100/0xb == 100 MHz
echo 0x0024 0x18b > /sys/kernel/prcmu/prcmu_wreg

by default(without DDR OC) MMC freq is 798/8 ~ 100 MHz.

Don't know if second script will work (since I don't set DDR 1100 MHz in daily usage as that script sometimes cause reboot).

P.s. SDMMC prcmu register was obtained from here https://github.com/ChronoMonochrome...w_refresh/drivers/mfd/dbx500-prcmu-regs.h#L29
[Galaxy Ace II Android Development] avithohol:
Hi i'm using :

echo 0x0005018f > Plldrr
[Galaxy Ace II Android Development] mkaluza:
I think it could be a good thing to do this automatically when ddr freq is changed via your interface (keep mmc clk around 100MHz). One, because there are many clocks dependent on ddr it's impractical to change them by hand and two - there 200% probability that someone will make a mistake and crash the phone. When done this way, it would be much safer to use and more objective to test, because it would actually just change ddr clock only.
[Galaxy Ace II Android Development] borkins:
DDR OC Script is updated - 20141227

http://xdaforums.com/showpost.php?p=57395364&postcount=1846
[Galaxy Ace II Android Development] avithohol:
Btw i didn't set back mmc to 100 mhz but the phone is completely stable i have run 3-4 hours of benches last 3 days and didn't see any reboot or force close of apps.
[Galaxy Ace II Android Development] ChronoMonochrome:
Seems that DDR OC isn't unstable itself. But when unexpected reboot happens (e.g. if you overclock/undervolt CPU to freq/voltage, which it can't handle), then it may cause FS corruption.

Okay, thanks for idea. :) At first I thought about testing via shell scripts, but because of

automatic changing mmc clk seems better.
[Galaxy Ace II Android Development] matthias1976:
same preferences as posted above !!

no problems for me.
[Galaxy Ace II Android Development] Asus-Tek:
How to replace?
[MENTION=4962787]fluffi444[/MENTION]
[Galaxy Ace II Android Development] DEMONVoz:
echo varm=0x14 > /sys/kernel/liveopp/arm_stepXX
[Galaxy Ace II Android Development] Alex_Gamer:
What i have to do with the two .cpio files? :(
[Galaxy Ace II Android Development] monstro78:
Wow very fast with DDR at 975...
[Galaxy Ace II Android Development] Asus-Tek:
Thx :)

How to change LiveOPP DDR/APE 100% for Steps 4 to 16? :confused:
[Galaxy Ace II Android Development] avithohol:
Chrono can you add this optimisation in the code :

https://github.com/ssvb/xf86-video-fbturbo

Regards.
[Galaxy Ace II Android Development] blastos01:
I was using chronokernel 1.6 on liquid 2.37 and last three days network signal gone. sometimes signal goes suddenly and only comes back after restart phone. now I flashed chrono 2.2 for android 4.3.1. what do you suggest?
[Galaxy Ace II Android Development] fluffi444:
echo ddropp=100 > /sys/kernel/liveopp/arm_stepXX
echo apeopp=100 > /sys/kernel/liveopp/arm_stepXX

Replace XX with 04 - 16 - This should be obvious.

BUT - And I said it already - Maybe NOT needed for most of you. Could drain battery faster than usual or expected.
[Galaxy Ace II Android Development] xo.en:
..is there 4.3.x chrono? Can i haz link to this miracle?
[Galaxy Ace II Android Development] fluffi444:
You have to built the needed installable zip files for boot and recovery for yourself if you want to use Universal-Kernel R2.10.

Read OP: Universal kernel installation method
[Galaxy Ace II Android Development] Asus-Tek:
Now my configurace is

CPU 200 - 1200Mhz , interactive and noop - without mV (stock steps)

GPU 400 - 600 Mhz - without mV

DDR 978 Mhz

Screen off is disable

Mobile works 3 days without reboots :) but battery drain si greater :(
[Galaxy Ace II Android Development] vacziferi:
Hello guys,

please help me how to OC GPU... there is an error when try to run command from 2nd post (no such a file or directory)

thanks
[Galaxy Ace II Android Development] blastos01:
it is in the first entry. you can acces troug links.
[Galaxy Ace II Android Development] ChronoMonochrome:
Don't know, in what it should be built, and not sure, whether I able to build it.
[Galaxy Ace II Android Development] 10BIT:
Any plans for implementing your kernel for 5.0 ?

Sorry for asking such question.....
[Galaxy Ace II Android Development] ChronoMonochrome:
When 5.0 will be more usable, sure.
[Galaxy Ace II Android Development] 10BIT:
Well,i think its quite usable....

only that phone bug and camera is a little annoying

Anyway,I'm waiting for your great work on 5.0

(The 4.4.x kernel are great,on latest version is very good and stable,keep up the good work man!!)
[Galaxy Ace II Android Development] ChronoMonochrome:
Maybe "is not a usable" a little wrong word. Anyway, as long as that 5.0 does not even have a topic on this forum, I think, we should not rush things.
[Galaxy Ace II Android Development] 10BIT:
Sorry again for asking such question,I'm just curious,it seems that philz touch is better than TWRP,why you didn't use it?
[Galaxy Ace II Android Development] ChronoMonochrome:
Never used it, because had no need to change recovery. Why do you think that it's better than TWRP?
[Galaxy Ace II Android Development] 10BIT:
well,in my case,sometimes i can't flash several roms with TWRP,it just seems stuck while installing.And recently,when i was using OMNI ROM from polish forum,i cannot flash gapps.It only happened when i did the first boot first then flashed gapps,it didn't happened when i flashed it before the first boot.

and the interface of philz touch is better than TWRP in my opinion.
[Galaxy Ace II Android Development] ChronoMonochrome:
R2.11

R2.11 is out :)

Changelog:

Improvements:

ws240: re- added interface to adjust APE/DDR on screen on

usage:

echo apeopp=?? > /sys/devices/pri_lcd_ws2401.0/mcde_screenon_opp
echo ddropp=?? > /sys/devices/pri_lcd_ws2401.0/mcde_screenon_opp

APE25 and DDR25 might be buggy, when used with screen on.

mali: re-added interface mali_opp (switching APE according to mali load)

ab8500-usb: added interface to ignore APE_100_OPP requirement when charger/USB is plugged

echo 1 > /sys/module/ab8500_usb/parameters/ab8500_usb_ignore_ape_req

reduced kernel (631 MB RAM available), decreased boot time (thanks [MENTION=3329816]mkaluza[/MENTION] for most changes)

Build NEON optimization (thanks [MENTION=4832589]cocafe[/MENTION])

Switch to LZ4 ZRAM compressor (again) — thanks [MENTION=3332811]faux123[/MENTION]

Dynamic: sync with Project Zen (thanks [MENTION=3329816]mkaluza[/MENTION])

Bug fixes and other changes:

Removed SELinux support and disabled its dependencies (service audit.d)

Safety fix to PLLDDR OC - now we keep MMC/SDMMC clock <=100 MHz

Re-applied fix to LPA (now it restores previous vape voltage on resume, not the constant 0x16 )

http://xda.mister-freeze.eu/XDA-files/ChronoMonochrome/

Don't forget to update bootscripts, if you use 4.4.x ROM, and recovery, if you use TWRP/F2FS.

Zips in http://xda.mister-freeze.eu/XDA-files/ChronoMonochrome/ramdisk/ are not flashable, use these templates http://xda.mister-freeze.eu/XDA-files/ChronoMonochrome/misc/ to flash them . (extract boot.cpio/recovery.cpio from not flashable zips and put into flashable ones, respectively).

Please not that R2.11 bootscripts are not compatible with ones for <=R2.10, if you want to flash older kernel, then restore previous recovery/bootscripts!

P.s. now development might become slow. I'm working on porting changes from Linux 3.4. It's really crazy job as a lot work would be needed just even to fix compilation errors, but I'll at least try :)
[Galaxy Ace II Android Development] DEMONVoz:
I can`t extract recovery.cpio - broken archive
[Galaxy Ace II Android Development] borkins:
[MENTION=5695278]ChronoMonochrome[/MENTION], is there a difference now with the DDR OC?

Is it necessary to UC MMC/SDMMC with the OC script? If not, I'll remove it from the OC script.

Thanks!
[Galaxy Ace II Android Development] ChronoMonochrome:
Yeah, it's unnecessary now :)

Thanks for report, will recheck it.
[Galaxy Ace II Android Development] mkaluza:
Wouldn't it be easier to forward-port Samsung drivers onto 3.4? Esp that we have 3.4 STE kernel sources already...
[Galaxy Ace II Android Development] ChronoMonochrome:
Maybe, but I don't know what exactly we should change in those sources to get it working. Some people tried to do it in past, unsuccessfully. All my attempts also failed.

UPD. esp, because we can't even retrieve last_kmsg from unbooting kernel, I think it something on low-level. maybe we just should revert some changes in /arch/arm/* , or play with Makefile options, who knows...
[Galaxy Ace II Android Development] Asus-Tek:
Hi i using 2.10 Refresh when i change kernel to 2.11 i must instal again ramdisk, bootscripts , recovery and flash new kernel?
[Galaxy Ace II Android Development] mkaluza:
That's why I'd start with researching better tools...

- try to use kexec (which would make way for a multi-kernel bootloader in the future), - you normally operate your working kernel and boot the development version on demand, so there's always access to last_kmsg

- the other is to enable kernel output to the screen (apart from obvious debugging benefits it would also be sooo geeky ;)) although this may not work if the oops is too long and scrolls beyond one screen
[Galaxy Ace II Android Development] borkins:
These bootscripts and recoveries are for full F2FS FS, right?

Coz I'm stuck on ACE 2 screen, when trying it.
[Galaxy Ace II Android Development] ChronoMonochrome:
Yes, it's. I hope you've installed R2.11 before you've tried recovery/bootscripts as it's fully incompatible with older kernels.
[Galaxy Ace II Android Development] borkins:
No problems. I reflashed the ROM. Also I keep old ramdisk archives on ACE2, so now I'm back to r2.10-refresh.

I'm asking just to be sure. ( Maybe I'm the last man who use partial f2fs. :) )
[Galaxy Ace II Android Development] ChronoMonochrome:
It's possible move fstab file to /ramdisk partition and finally leave it to userspace. :fingers-crossed: I planned to do it few weeks ago, but forgot. Maybe with next build will do it.
[Galaxy Ace II Android Development] BastiZ:
Do I also need the new bootscript/recovery for ext4 and R2.11?
[Galaxy Ace II Android Development] ChronoMonochrome:
It's unneeded to update recovery for ext4. Only bootscripts should be changed, since SELinux was disabled on R2.11.
[Galaxy Ace II Android Development] Asus-Tek:
I need flash this 4.4.x_ext4_codina_for_R2.11.zip or this codina_bootscripts_template.zip and flash last kernel 2.11 ?
[Galaxy Ace II Android Development] borkins:
Download both + kernel r2.11

1. Extract the template zip, go to "ramdisk" folder and delete the archive "boot.cpio".

2. Extract ext4 bootscripts zip and rename the "xxxx.cpio" archive to "boot.cpio" and move it to "ramdisk" folder.

3. ZIP the template back

4. Go to recovery, wipe cache and dalvik, then flash the template zip, and then the kernel.
[Galaxy Ace II Android Development] ChronoMonochrome:
I realized that the installation process getting quite complicated, esp. because of not matching versions of kernel/bootscripts/recovery. I explained some details in OP.
[Galaxy Ace II Android Development] Asus-Tek:
Okey but i need extract this 4.4.x_ext4_codina_for_R2.11.zip and rename the "xxxx.cpio" archive to "boot.cpio"? or extract old ext4 bootscripts from R 2.10 Refresh?
[Galaxy Ace II Android Development] borkins:
If you extract the old bootscripts from r2.10 why is there a bootscripts for r2.11? It's obvious. :)

So you need to extract the ext4 bootscript for r2.11.
[Galaxy Ace II Android Development] Asus-Tek:
Thx kernel works :) but mobile has big lagy.
[Galaxy Ace II Android Development] shaqman89:
Yeah, there are a bit more lags, but not big, I tried dynamic and performance governor and it does lags (sometimes).

Despite of that, I am really happy with the other improvements, eg: Boot Time and also currently stable using 1245 MHz from previously only 1200 MHz (can't say for certain yet, but already using it for half a day, just gave it a try again after a while).

Good job Chrono :)
[Galaxy Ace II Android Development] mars_army:
ChronoKernel Settings

Hi. I develop the app for the ChronoKernel control (on 4pda forum). At the moment app hasn't all functionality of "NTSettings" because it uses the superuser rights instead of the rights "android.uid.system".

1. It is possible to grant the rights by this init.d script (newuid=1000 are rights of system)? This script doesn't work for me for unknown reasons.

2. Somebody can compile my app with the system signature (with the same signature with which all custom roms are signed)?

Regards.
[Galaxy Ace II Android Development] pedroleon99:
Hi thanks for the app. Could you give me direct download link? Seems i can't find it :/
[Galaxy Ace II Android Development] nikolas1274:
any one that oc pllddr at R2.11, and how?

thanks
[Galaxy Ace II Android Development] shaqman89:
Yeah, use the script given in the link at the first page.
[Galaxy Ace II Android Development] nikolas1274:
For me R2.11 is too much laggy and I have black screen too, I return at R2.10, it is great for me
[Galaxy Ace II Android Development] Kiras_PL:
R 2.12 Changelog ? What kind of kernel is that ?
[Galaxy Ace II Android Development] ChronoMonochrome:
It's still testing, and installation method of R2.12 is too difficult and really not very user-friendly. I'm working on simplifying it(R2.12.1). If everything ok with that build, you can install it by simple flashing.

I'll post changelog soon.

Removed CPU freq steps CPU 250, 350,... MHz.

really not needed since the difference in power consumption between e.g. 200 and 250 MHz is negligible. On other hand, it doesn't work well with governors that makes one step up at once during scaling.

Thanks [MENTION=3329816]mkaluza[/MENTION] for explanation.

increased available RAM size to 635,6 MB via reducing SHRM FIFO (don't know exactly what's it. SHRM - shared memory).

fixed interface mali_opp

new interface mali_opp_force_limit - use to force maximum APE_OPP/DDR_OPP states, which requires mali. Don't know however, if there's any benefit from that.

Don't use it along with mali_opp, since both of these interfaces are written for different purposes and won't work correctly along.

apeopp=50 > /sys/kernel/mali/mali_opp_force_limit
ddropp=50 > /sys/kernel/mali/mali_opp_force_limit

fixed DDR OC instability issue(hopefully). Added interface /sys/kernel/liveopp/pllddr_oc_delay_us

- delay between gradual changing PLL DDR. It was reduced to 100 us, as it was in the first implementation. Seems that 200 us is too much.

disabled APETRACECLK and APEATCLK regulators to save power.

As it turned out, these regulators actually was used for debugging some vendor stuff via jtab. Disabling it should save some power.

Warning! Seems that the build doesn't work with CWM + F2FS.
[Galaxy Ace II Android Development] ChronoMonochrome:
So, actually build works as it's expected. Only wifi is broken on 4.1.2 (put 4.1.2.cpio from R2.7 bootscripts into osfiles/4.1.x to fix it).

Feel free to report here about any issues or bugs which you are found or simply impressions / comments. :fingers-crossed:
[Galaxy Ace II Android Development] nikolas1274:
[MENTION=235339]chrono[/MENTION]

What bootscript and recovery we use R2.12.1, and what are the tunable and fstab zips, do we need them?

And please give the new dl link to first message

Edit2: I think I understand now, with R2.12.1, we do not need to install separate recovery, bootcript, kernel but we just flash that 1 zip like the old days, is that correct?

Thanks
[Galaxy Ace II Android Development] Kiras_PL:
I flashed R2.12.1 on R 2.10 and does not work :/ I got bootloop :<
[Galaxy Ace II Android Development] nikolas1274:
I did the same, but my device doesn't boot to system, goes to recovery all the time
[Galaxy Ace II Android Development] ChronoMonochrome:
yes.

Last_kmsg please. Which ROM have you used?

I assume you're using TWRP. If so, update it to latest version "for_R2.11 (seems only TWRP has problems with loading modules).
[Galaxy Ace II Android Development] Kiras_PL:
CM11 from TC, abou last_kmsg i cant now, did restore :/

But You have great idea to do sth like intelligent installation process ;)

Sorry for not helping :/
[Galaxy Ace II Android Development] ChronoMonochrome:
Seems it doesn't work with CM11 (and all 4.4.x ROMs) at all.
[Galaxy Ace II Android Development] nikolas1274:
Nop I am using cwm, any suggestion?
[Galaxy Ace II Android Development] ChronoMonochrome:
Which filesystem do you use? So maybe it can't load modules because it expects EXT4 to be used on /system.
[Galaxy Ace II Android Development] nikolas1274:
F2FS, with carbon rom, and I am at R2.10
[Galaxy Ace II Android Development] ChronoMonochrome:
So, then something broken in bootscripts for 4.4.4. Sorry for saying that it works correctly when it actually doesn't. 4.4.x was untested at that moment.
[Galaxy Ace II Android Development] nikolas1274:
Don't worry, I install twrp for R2.11 and it works for me now, I boot to system and I will test :), but I really like cwm so if you can make it to work I would like it

And what about gpu and ddr oc will work old scripts?
[Galaxy Ace II Android Development] ChronoMonochrome:
You can use script from OP to OC DDR. But OC actually messed up a bit (it works better on first and latest implementation on R2.12).
[Galaxy Ace II Android Development] nikolas1274:
I am taking reboot when I am trying to oc ddr
[Galaxy Ace II Android Development] ChronoMonochrome:
As I said it might not work correctly on that implementation. Too high OC (over 975 MHz) seems to be not working sometimes even with that script.
[Galaxy Ace II Android Development] nikolas1274:
It does not work for 975 too
[Galaxy Ace II Android Development] ChronoMonochrome:
Okay, it's actually fixed on R2.12.x. I'm still waiting tester for 4.4.x, coz I don't know what's wrong with it.
[Galaxy Ace II Android Development] nikolas1274:
All that I am saying above is for R2.12.1
[Galaxy Ace II Android Development] ChronoMonochrome:
Okay then I completely got misunderstood :)

But it's weird that DDR OC doesn't work. Will look into it once again.

BTW, there's also new interface for DDR OC, delay between changing PLL.

echo 200 > /sys/kernel/liveopp/pllddr_oc_delay_us

delay (in usec) by default is 100, maybe it's not enough for some phones.
[Galaxy Ace II Android Development] nikolas1274:
Ok but I have no problem at R2.10, I had problem at R2.11 and R2.12.1 as already told you
[Galaxy Ace II Android Development] zizoumadrid:
we can test 2.12.1 with 4.1.2 stock jb ??

thank's for the hard work bro
[Galaxy Ace II Android Development] ChronoMonochrome:
Yes, but wifi is broken on 4.1.2. Use bootscripts for R2.7 to fix it.

There's also a small update (R2.12.2) with enabled touchboost and new attempt to fix s6d black screen issue(will upload soon).
[Galaxy Ace II Android Development] mkaluza:
Wow ;) that's 5M more mem ;) What did you remove? Does entire 5m comes from this SHRM?
[Galaxy Ace II Android Development] shaqman89:
[MENTION=235339]chrono[/MENTION]

What do you mean by it's not working for CM11 or any 4.4.x?

I am using CM11 built by Ace2Nutzer and just upgraded from 2.11 f2fs+cwm to 2.12.1 (in about page says 2.12, build date on 6th Jan) and after I changed it to twrp, so far it seems working with less lags than 2.11. :D

I am also OC DDR 975 + CPU 1245 (peformance) and it is working without any reboots yet.