yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace II Android Development] xo.en:
Hm, maybe i should make tests after full wipe, usually it's not needed for me, but I still have two issues:

- cannot set anything different that 800mhz,

- damn writebacks,

- lol I noticed total lack of sound now, BUT none of programs using it crashes, sound just do not start.

Gps is working great, no other issues so far, nice speed and quite quick boottime.

Thanks for 4.3.x line.
[Galaxy Ace II Android Development] hmzh:
for 4.1.2 i don't have any bugs and the black screen never happened to me

best kernel ever good jab mate :highfive:
[Galaxy Ace II Android Development] nusko_x:
What do i need to backup before flashing kernel for stock 4.1.2 ? Whole rom ore? Thanks
[Galaxy Ace II Android Development] hmzh:
Even it didn't work you can flash the firmware it jast restore the kernel :)

Sent from my GT-I8160 using A Custom Kernel
[Galaxy Ace II Android Development] zizoumadrid:
what cpu governor and I/O scheduler should i use, i have some battery drain.

and in screen off tooo !

thank's
[Galaxy Ace II Android Development] hmzh:
i use this app (No-frills cpu control)

for freq. min 200 max 800

governor ondemand

I/O noop

fast :silly:
[Galaxy Ace II Android Development] ChronoMonochrome:
New build is up :)

R2.16.2

abb-fg: changed tunables (credits to ace2nutzer )

fixed pllddr_oc_on_suspend issue

removed sched mc/smt tweaks, disabled ARM_CPU_TOPOLOGY (it's anyway broken on LK3.0...)

added new folder /ramdisk/modules/autoload/ in order to fix not loaded governors issue

re-added script /ramdisk/00userinit to allow to run some tweaks at early stage of boot

zenx, interactive: added APE/DDR touch boost
[Galaxy Ace II Android Development] shaqman89:
I tried it using Philz Recovery but it returned satus 7 (something related to set_perm).
[Galaxy Ace II Android Development] YelloneK:
Hi,

I do not know what the problem is, but I noticed that since version 2.1.2 and up 3D performance if dropped.
[Galaxy Ace II Android Development] manthes:
It has problem and with TWRP
[Galaxy Ace II Android Development] fluffi444:
Have during installation in recovery this error:

-> Setting permissions...

set_perm: some changes faild

E: Error executing updater binary in zip ...
[Galaxy Ace II Android Development] ChronoMonochrome:
My bad - remove line

set_perm(0, 0, 0755, "/ramdisk/00userinit");

from updater-script or manually put empty file /ramdisk/00userinit in archive.

UPD. so does it work? I can't check it right now, but I can reupload the archive.
[Galaxy Ace II Android Development] shaqman89:
I tried removing the single line in updater-script. And the installation works fine. Thanks.

Currently phone is still booting up. Boots normally, and now gonna try it out a bit :)

---------- Post added at 11:50 PM ---------- Previous post was at 11:44 PM ----------

How did you come by to this conclusion? If it were from Antutu, I too notice the same thing, but it seems only because of how the benchmark algorithm has changed. Playing out games seems fine.

One strange thing I have noticed is that 3D performance could decrease, if you use a too high of OC in GPU. I'm not sure whether it's stability issue, or more of a bus limitation, but I came to this conclusion by setting up the highest stables GPU frequency for me (730) and played Temple Rush. It lagged, by a lot. And then I started to decrease it one step at a time and found that 690 works flawlessly for me.
[Galaxy Ace II Android Development] fluffi444:
Which file do you use to install Philz Recovery?

EDIT - R2.16.2

Nice! Again 1 MB more for RAM! :)

EDIT2

OC works very good! 975 was set right after first automatic suspend (only after 1 minute after boot) - Good job!
[Galaxy Ace II Android Development] shaqman89:
I'm assuming it is the default recovery for Chrono's kernel :D

Since I usually try both [MENTION=5695278]ChronoMonochrome[/MENTION] and [MENTION=5840412]ace2nutzer[/MENTION] kernel, I never really cared about what recovery to use, so I just flashed it as it is.
[Galaxy Ace II Android Development] YelloneK:
Do not overclocking the GPU more than 600Mhz.
[Galaxy Ace II Android Development] shaqman89:
Would you mind to elaborate the reasonings?
[Galaxy Ace II Android Development] YelloneK:
Sorry I wanted to say that I did not overclock the GPU clock more than 600Mhz.
[Galaxy Ace II Android Development] ace2nutzer:
A too high GPU / CPU Clock can cause only less performance if those high clocks are not running 100% stable without miscalculations.

To test if it's 100% stable u've to run "stability test" "cpu gpu test" for at least 4 hours.

Note: Do this Test only with plugged Charger and put the Phone on an could place with coul d surface like marmle or granite. ;) because the heat is not well for the li-ion battery.

The Stability app show u the batt. Temperature.. Keep this in eye ... Abort the Test if it goes over 45° C
[Galaxy Ace II Android Development] fluffi444:
No - Chrono and Ace are using TWRP and/or CWM... Philz Recovery is something else (scroll down for some pics)

http://xdaforums.com/showthread.php?t=2201860
[Galaxy Ace II Android Development] shaqman89:
Yes, I am aware of the difference between TWRP, CWM and Philz. :)

I could confirm that I am using Philz Touch 6.58.9. But if it's confirmed that it isn't from chrono's, I honestly don't know where it could have come from. The only kernel's I've been using these last few months are from both Ace's and Chrono's. When I use Ace's kernel, it would be CWM, but if it's from Chrono's, it would be philz. I can't really be sure when, but I think it might have started around 2.14.5 version of chrono's.

Update:

I'm quite sure it's the default from Chrono's Installer. (Is this correct [MENTION=5695278]ChronoMonochrome[/MENTION] ?)

Just took a peek inside this file: https://github.com/ChronoMonochrome/ChronoKernel_Installer/blob/master/recovery/recovery.cpio

and I found Philz assets that shows in the recovery I am using.
[Galaxy Ace II Android Development] ChronoMonochrome:
Yep. I have added it since someone here asked :)
[Galaxy Ace II Android Development] mkaluza:
[MENTION=5695278]ChronoMonochrome[/MENTION] Then just set the other one to zero (oc_freq_boost_ms). Tried it-works.
[Galaxy Ace II Android Development] ChronoMonochrome:
Thanks, I tried again and now it works with max_non_oc_freq=1200000 and oc_freq_boost_ms=0. Dunno why it didn't work before.
[Galaxy Ace II Android Development] fluffi444:
Thank's for this Info... Because I never changed Kernel (to not Chrono) my TRWP was not changed with the one from installer I guess...
[Galaxy Ace II Android Development] manthes:
It is my idea or 12.6.2 is the fastest build?

And one question. How can i make ddr oc permanent? I am using a script i have found in this topic but after reboot it goes to default speed
[Galaxy Ace II Android Development] ChronoMonochrome:
You can add this to init.d:

This works, higher freqs causes reboots sometimes.
[Galaxy Ace II Android Development] fluffi444:
sry for late answer - Yes - with twrp_2.7.1.0_for_R2.12 both SDCard are useable via file manager... ADB is also working... but no SDCard access via Windows...

I think its TWRP 2.7 itself - I read somewere that MTP was introduced in 2.8... Found it: http://teamw.in/project/twrp2 (What's new in 2.8.0.0 )
[Galaxy Ace II Android Development] manthes:
Can you explain it a little more? init.d is a folder. I have to make a file with this command in this folder?
[Galaxy Ace II Android Development] shoxieJESUS:
@up.

Use Root Explorer for creating file.

Create flie in init.d with name, for example 90pllddr with this code.

#!/system/bin/sh
# sleep 60(u can don't use this comand, if use this comand, DDR boost enabled in 60 secs after boot)
echo 0x5017f > /sys/kernel/liveopp/pllddr_oc_on_suspend
Permissions-0755.
P.S. Sorry for my bad English.
[Galaxy Ace II Android Development] manthes:
I did it but again i have 798mhz after reboot. Permissions is ok

#!/system/bin/sh

# sleep 60

echo 5017f > /sys/kernel/liveopp/pllddr_oc_on_suspend # 975 MHz
[Galaxy Ace II Android Development] ChronoMonochrome:
Seems that various TWRP version have various bugs - MTP is not working in <2.8, and restore of /data doesn't work in 2.8.0.0. I can backport only recoveries which are compiled for an u8500-based devices, other won't work(latest one for s3mini is 2.8.0.0 if I'm not wrong).

Btw, philz seems a good replacement for TWRP :) It only needs to edit default colours, since it looks too fancy IMO :)
[Galaxy Ace II Android Development] fluffi444:
Yes - tried it and it seams to be ok - but no ADB for me :(

There is an TWRP 2.8.1 from 8190 - for F2FS and EXT4 - maybe an possibility?

http://xdaforums.com/showthread.php?t=2748327

http://xdaforums.com/devdb/project/?id=4100#downloads

Up to now 100% working is only codinap_cwm_5.0.4.9_full_f2fs for me...ADB/Mount USB/F2FS support etc

kinda old style but working...
[Galaxy Ace II Android Development] shaqman89:
Strange, adb works fine for me.

It was how I got the screenshot of the recovery.

---------- Post added at 09:40 PM ---------- Previous post was at 09:28 PM ----------

That should have worked, when did you check it?

If I remember correctly, it would be set only when cpu is idle, so it might not be directly after a reboot.

Alternatively, have you tried using the script from here http://xdaforums.com/showthread.php?p=57395364?

Worked fine for me so far.
[Galaxy Ace II Android Development] fluffi444:
You are right - works also after second try... Don't know what happend on first run... Sorry for confusion....

So Chrono is right... This could be a good option for further releases..
[Galaxy Ace II Android Development] manthes:
i checked it after 5 minutes and later after 30 minutes. Could it be a problem with the rom? i am using liquid 2/8
[Galaxy Ace II Android Development] ChronoMonochrome:
Have you also checked pllddr_oc_on_suspend? It should print selected frequency, if it still trying to do OC, or will print nothing in opposite case.

This behaviour was removed since R2.16.1. You only need to make sure that nothing spinning in background(like media scanner or something that reads/writes on SD) and press power key.
[Galaxy Ace II Android Development] manthes:
The file is empty
[Galaxy Ace II Android Development] ChronoMonochrome:
Then it means that value wasn't written to pllddr_oc_on_suspend - make sure that this file and init.d script has proper permissions(644 and 755, respectively). Do you have some script that sets 444 permissions to pllddr_oc_on_suspend ? (like "chmod 444 /sys/kernel/liveopp/*")?
[Galaxy Ace II Android Development] ChronoMonochrome:
TWRP 2.8.1.0

An update for TWRP is available!

Should work with codinap as well as with codina. :)

I haven't tested f2fs recovery. Mtp is also untested. If you have found any bugs, report here.

Note. Internal sdcard available in filemanager at /intsdcard. I haven't found how to mount it to /sdcard (old fix with /ramdisk/00recovery didn't worked).

These recovery are only for latest build (R2.16.2).

In case if you still use something else, extract twrp.cpio.gz from /tmp folder, unpack it via:

gunzip twrp.cpio.gz

put twrp.cpio instead of twrp.cpio.gz, and replace line

cp /tmp/twrp.cpio.gz /ramdisk/recovery.cpio.gz

in /tmp/install_recovery.sh with

cp /tmp/twrp.cpio /ramdisk/recovery.cpio

http://xda.mister-freeze.eu/XDA-files/ChronoMonochrome/recovery/TWRP/ (flashable)
[Galaxy Ace II Android Development] S.AMU:
I got a strange behavior with latest kernel 16.2.

Somtimes it is like if the CPU frequency is not clocking up, but stucking at 400mhz.

I'm using dynamic and 400-1230mhz.

I attached two screenshots where you can see that the phone spents a lot of time in 400mhz, even while I was making a lot of load on it (installing apps and a lot of multitasking)
[Galaxy Ace II Android Development] shaqman89:
If this doesn't make your phone unresponsive, then it is expected. From what I understand about dynamic governor, it won't scale up unless necessary. The necessity is defined by user interaction, so as long it's still snappy and responsive, that this behavior is actually expected.

One plus for this is the battery consumption is lower.

After 18hrs mine mostly uses 200 MHz, but it's still snappy and fast.
[Galaxy Ace II Android Development] manthes:
pllddr_oc_on_suspend has 644 and the script 755. As i said before if i use a script that have been posted in this topic (OC_DDR not OC_DDR.sh which it was in the zip file ) it changes ddr values but this is temporarily
[Galaxy Ace II Android Development] S.AMU:
Let's say, the phone gets really slow. Its still responsive, but very slow. On the older kernel (15.x) where I also used dynamic it was ok.
[Galaxy Ace II Android Development] shaqman89:
Did you try putting oc_ddr file in in init.d folder and rename it to something like 90ocddr?

---------- Post added at 09:08 AM ---------- Previous post was at 09:04 AM ----------

I can't say that mine got slower. In fact, in my case, it seems that it's more snappy. Especially when I multitask, it somewhat feels better.
[Galaxy Ace II Android Development] ChronoMonochrome:
Did you use latest kernel version? In fact, I messed up touchboost on builds after R2.15, but it should work properly on R2.16.2.
[Galaxy Ace II Android Development] S.AMU:
Jep its 2.16.2
[Galaxy Ace II Android Development] manthes:
This one it works without renaming.
[Galaxy Ace II Android Development] shaqman89:
That's good. I renamed it just to ensure it works last.
[Galaxy Ace II Android Development] pfbatista:
Hi Chrono,

I'm sorry to bother you.

Does You're custom kernel works on stock TW rom 4.1.2?

I'm talking about you'rr thread for Ace 2.

Thanks,

Best regards
[Galaxy Ace II Android Development] monstro78:
Hey chrono.... What did you do to latest version????

The device is faster than ever...

Incredible... Never seen this before...

I'll wait to post battery consumption...

PS I have not boost ddr
[Galaxy Ace II Android Development] fluffi444:
Wow - that was fast! Big thx! :good:

TWRP 2.8.1.0 runs perfect (up to now) - on CodinaP F2FS (R2.16.2)

- SDCards are mounted immediately.

- ADB works

- Starts fast (faster than older versions, imho)

- General stuff is also working - but not further mentioned (Wipe cache/dalvik F2FS, ZIP Installation. etc...)

not tested (if there is time on weekend I will do it)

- backup and recovery

- EXT4/F2FS conversion / formating

- ???

Best TWRP I've seen for our device up to now :good:

EDIT

some additional words regarding ADB:

This works also without activating MTP - But for this I had to choose the driver manually:

In Decice Manager of Windows it was recocnized als GT-I8160P (for me) under "Other devices" but without installing drivers by itself...

Go to update driver and search on computer - pick from list - Samsung Andriod Phone - Google Inc and Android ADB Interface OR Samsung Android ADB Interface - Done!

With MTP activated another ADB driver was installed (Android Composite ADB Interface) - But this driver installation was automatic...
[Galaxy Ace II Android Development] ace2nutzer:
I'm not so sure if that is completely related to latest "reduced kernel size" by me ... this is why u've on latest builds here +1MB RAM ... or did u something additionally [MENTION=5695278]ChronoMonochrome[/MENTION] ? :D :good:
[Galaxy Ace II Android Development] fluffi444:
LoL - this sound like if you want to have flowers... OK here you are... :highfive:
[Galaxy Ace II Android Development] ace2nutzer:
lol , that was not meaning that :) I'm just asking if that Performance boost is coming really only from that commit.. or if i just missing something "special" because, then i like to have it also in my kernel... :) More Performance, stability and powersaving is always good to have ;)
[Galaxy Ace II Android Development] ChronoMonochrome:
Could you pls check, which governor do you use? I changed default one to ZenX, because I had unresolved (at that moment) problem with fps drop on Dynamic. Of course it's not so good on powersaving as Dynamic(but at least it doesn't drain battery like Interactive). so it's mainly supposed to use when playing games etc. Now it also has APE/DDR boost that should make it faster than ever.

It didn't add +1MB RAM. It was already nearly 631 MB (don't remember how many it was before).

Nope, it doesn't support custom ROMs, based on stock. But you can do as following to get ramdisk:

cd /
find . -xdev | cpio -o -Hnewc > /sdcard/boot.cpio

This should work with all not supported ROMs (like MIUI 4.2.2 etc).

If you also want to make it support f2fs(but stock doesn't support it anyway), you can manually replace file fstab.samsungcodina with symlink to /ramdisk/fstab:

mount -o remount /
rm /fstab.samsungcodina
ln -s /ramdisk/fstab /fstab.samsungcodina

Then make *.cpio as described above.

P.s. please don't quote OP wholly.
[Galaxy Ace II Android Development] monstro78:
Dynamic CPU 1200 GPU 700,

Going to test zenx too...
[Galaxy Ace II Android Development] borkins:
[MENTION=4365971]manthes[/MENTION], after reboot the pll ddr clock is default - 798 MHz, that's why we use scripts, to set it again

after reboot

.

I know, that I'm not a specialist ( dev it's not my profession ), and I can make some mistakes in the scripts. :\ But that is not a script problem.

I just want to make the OC process more stable and safe with these scripts, but the OC of PLLDDR is a quite specific process.

Between I'm working on new update of OC_DDR scripts...( but i can't promise that would not be a new mistake... ).

What to expect:

The init.d scripts ( OC_DDR ) will be controlled with Smanager's scripts ( OC_DDR.sh ).

- You'll be able to choose the init.d OC ( 975 or 1098 MHz ), also to disable - enable the script.

- init.d will check the last OC in a log file, and will disable itself, if the secret magic word is missing in it.

- init.d will check the governor, and will set temporarly "Lionheart", or "conservative" if the first is not available.
[Galaxy Ace II Android Development] ChronoMonochrome:
Okay then it should be fix to APE/DDR boost or maybe this change https://github.com/ChronoMonochrome/Chrono_Kernel/commit/3212f1526afe07a5f17dd0795c356adccac8ec15 (gonna to read wiki).

P.s. isn't GPU 700 MHz a bit high for daily usage? :D

For now I use 256/400 MHz and switch to 400/716 MHz when needed :)
[Galaxy Ace II Android Development] ace2nutzer:
I also use always the Settings from my Signature.. and no Problems.. i've checked many times the GPU freq.. if it goes @ 690Mhz .. by normal Phone Usage.. but NEVER.. only if i start a 3D Game it switches up to 690Mhz ... this is working very well since [MENTION=3329816]mkaluza[/MENTION] added some MUTEX Support to the mali driver..

My used Mali Config:

Mali_boost_high: 128

Mali_boost_low: 16

And mali Utilization .. = Stock TC .. (i've never touch this)

256/400 ??:D , in IDLE u'll have @ APE50 = 128Mhz(!) :o
[Galaxy Ace II Android Development] ChronoMonochrome:
Have you tried to use 256/690 MHz ? The problem is that this results worse gaming performance. That's why I use 400/716 MHz when playing game.

P.s. mutex is only to protect Mali utilization routine from multiple running(i.e. race condition) or am I wrong?

I can say even more. In idle I use APE25(even with screen on) and it's not so worst as it was few months ago. Can't see any performance worsening since I use APE touch boost. But of course, default APE state used with screen on is APE50, just to avoid any possible problems with it.
[Galaxy Ace II Android Development] ace2nutzer:
Dunno exactly.. but maybe this is related for me because i'm using min_400Mhz for CPU Freq.. that's maybe the reason why the GPU don't switch too earlier at 690Mhz.

Now i'm confused, u say first APE25 for screen on .. and now again APE50 for screen on ? :D:D What's right ?

For me, i've also tested ape25 and ddr25 with screen on ... and also only ape25 or ddr25 .. but not matter with wich configuration of Gov. and so on.. i had all the time Screen tearing during scrolling .. therefore i came to the conclusion that ape25, and ddr25 is only useful for screen off. (i gave up)
[Galaxy Ace II Android Development] ChronoMonochrome:
I actually meant that by default is used APE50. But this requirement can be disabled via sysfs interface to use APE25 instead. I think that problems with APE25/DDR25 occurs only on some phones... I can use it even with extreme CPU undervolting (but to some extent. for example varm=0x03 @ 200 MHz cause screen blinking with DDR25 when varm=0x05 doesn't). And also haven't had blackscreens which theoretically could be caused by CPU/GPU undervolt.

UPD. but I think that this can be explained simply why I don't have problems with APE25. I looked at liveopp table and it turned out that APE25 is only used with 200MHz, that simple mean it used only on idle. Enabled APE boost also doesn't allow to use APE25 e.g. during scrolling.
[Galaxy Ace II Android Development] ace2nutzer:
Well, okay thanks for great explanations.. u do it really hard complicated, but if this works for u, it's even ok. :)

I believe that Kernel is really only for freaky Power Users.. i admit, even i, i didn't understand some things on this Kernel :laugh:
[Galaxy Ace II Android Development] ChronoMonochrome:
I think this is normally :D I also understand not all things - maybe only Linus Torvalds, Russell King and others understand it wholly :laugh:

And esp. about our u8500 platform - only STE devs can understand all things, which are specific for our platform.

Is it so hard? It is no more complicated like governor tuning. If you touch one parameter you should also care about some others. The same thing here...
[Galaxy Ace II Android Development] ace2nutzer:
Oh yes.. i saw this Users from your GitHub ... i mean Linus .... really freaky person :D Hin brain has surely like 100TB of Used Space :laugh:

Yeah u're maybe right.. and we should not forget we are here on a developer forum.. and not noob-forum :good:

But the reality: Many Users here are really noobs... they even (!) don't know how to edit an init.d script or also even how to install a kernel and so on.. i mean really easy things ... figured if they can change such things like APE:eek:PP States, DDR OC or whatever :highfive:

Some user asked me seriously if it's needed to root CM 11 or if it's needed to use Superuser.apk (don't remember exactly) :laugh: :crying:
[Galaxy Ace II Android Development] shaqman89:
Yeah, you are right. But on fairness, some of those noobs did intend to learn. :D

I for one did started blind on these forums, but it took me quite far (at least I could now build a kernel to make it run, though not enough time to actually develop for it). Yes those geeky conversation like you guys had sure helped a lot, at least finding the correct way, so you guys do have my gratitude and respect. Thank you for it [MENTION=5840412]ace2nutzer[/MENTION] and [MENTION=5695278]ChronoMonochrome[/MENTION] and others of course.
[Galaxy Ace II Android Development] monstro78:
To be clear ... I see this difference in speed with 1.15 kernel. That's was my previous kernel. I hope I didn't confuse you.
[Galaxy Ace II Android Development] ChronoMonochrome:
Thanks for report :highfive: Only one thing confuses me - we have two completely different reports about UI performance on Dynamic on a latest build - S.AMU have experienced strange behaviour with stuck at 400 MHz and few opposite reports about better performance (in compare with R2.15) :confused:

But I have looked at changes introduced in https://github.com/ChronoMonochrome/Chrono_Kernel/commit/3212f1526afe07a5f17dd0795c356adccac8ec15

tweak standby_threshold_freq = 100000 is for more powersaving (the phone can enters in standby mode earlier. Don't know if it's supposed to use with min freq 400 MHz).

And sampling_down_factor_relax_khz = 400000 probably for more performance (this parameter isn't described in wiki).
[Galaxy Ace II Android Development] monstro78:
Maybe S.AMU clear cache and dalvic cache and try again... I'm with dalvic and ext4 by the way...

Also more users must respond with feedback..