yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace II Android Development] ace2nutzer:
I suggest to all people with random reboots, freezes and black screen to set varm=0x24 for 100 - 800Mhz and set the min/max CPU freq @ 100 / 800Mhz..

Just to see if the problems are gone.. if yes, this is all related to UV / OC, just post here your experiences.. then Chrono can adapt.. CPU Voltages...
[Galaxy Ace II Android Development] borkins:
In my codina ace 2 (r2.02-kernel), screen off freqs below 100 Mhz not working - can't wake up the phone and must reboot it.

I don't have random reboots with cpu range 200-800 MHz, pegasusq. But for some reasons it's not stable with 1200 MHz, like on r1.6 kernel.

I had problems with the modules loading. Got errors in smanager, "can't open the file/*.ko", so i change the autoload script a little bit, to load the governors. I removed the mount lines and the permission line (because directories got 644 permissions like the files) from the script. Also the script looks for *.ko files, but the modules downloaded from google drive are with *.o extension. So, to load the governors i change the permissions of the directories to 755/files to 644 and these lines in the script to:

MODULES="/system/lib/modules/autoload/[COLOR="grey"]governors[/COLOR]"
set -x
for i in $MODULES/[COLOR="red"]*.*[/COLOR]
do
insmod $i
done

I got instant reboot, but at least after the reboot, the governors were loaded.
[Galaxy Ace II Android Development] ChronoMonochrome:
It seems that freqs lower than 100 MHz can't work properly with APE_25_OPP, all the more with governors with hotplug support. I will remove 25-50 MHz steps - APE_25_OPP is enough for saving power.
[Galaxy Ace II Android Development] ChronoMonochrome:
Could anyone test this build? http://rghost.net/58634907 [4.4.4, f2fs] Especially those, who encountered random reboots on latest build.

Feel free to report about any bugs/issues, some of commits are untested. If needed, download logger.ko from https://drive.google.com/#folders/0B_OwIFfWQnj_cWlDdWJ3SmQ2Rm8 , I forgot to include it into build.

Changelog: My github (built from aa0bde8)
[Galaxy Ace II Android Development] shaqman89:
I am trying it now.

So far it's working okay, and I feel it to be more smooth than previous build.

Will report if any random reboot happens.
[Galaxy Ace II Android Development] ChronoMonochrome:
I just wondering, if there is really any difference in smoothness between previos build, because I don't feel anything - probably because of my settings(Interactive 300/1200 MHz - it's anyway will be smooth :D ). Howewer, I just reverted one commit, and seems that it works :)
[Galaxy Ace II Android Development] ace2nutzer:
@ Chrono

do u know how to change in Source the "mali_gpu_vape_50_opp" Voltage ? Actually i see 0x18 ....

I Can't find it ....
[Galaxy Ace II Android Development] shaqman89:
Might be biased then lol.

But it might be coz I cleared the cache after the install.

Anyway, no random reboots till now, but battery drain seems a bit worse. It went from 60% to 15% in just 3 hours. This happens despite of me barely using it at all.
[Galaxy Ace II Android Development] ChronoMonochrome:
May relate to multimedia (background media-scanner) CM11 bug... It may be run constantly, forcing CPU to work at max freq. Check CPU usage, please.
[Galaxy Ace II Android Development] shaqman89:
If it helps, I am using LS Rom, with Governor OnDemand, Max: 1230000, Min: 100000 and sioplus and I/O scheduler.

I attached the latest CPU usage and battery usage.

Thanks :)
[Galaxy Ace II Android Development] manthes:
Is it possible 300MHz to help us with black screen problem? I changed settings to check it (but with pegasusqplus)
[Galaxy Ace II Android Development] ChronoMonochrome:
You probably can't find it because it is a stock value. If you want to change it at boot, you need to put somewhere(maybe after mali OC initialization, dont know exactly) function

prcmu_abb_write(AB8500_REGU_CTRL2,
AB8500_VAPE_SEL2,
&vape,
1);

(but you can use init.rc instead..)

https://github.com/TeamCanjica/Sams...edrv/mali/platform/ux500/mali_platform.c#L460

Varm voltage may be calculated using following formula AB8500_VAPE_MIN_UV + (raw * AB8500_VAPE_STEP_UV)

(AB8500_VAPE_MIN_UV=700000 uV, AB8500_VAPE_STEP_UV=12500 uV, raw = 0x0...0x3F).

I don't know if this may help. I only can guess it is relate to APE_OPP settings (or at least I encountered blank screen even on ws2401 screen due to using APE_25_OPP, LulzactiveQ and 25 MHz as min freq for screen off. Then I changed settings to these ones from my signature, and governor to Interactive, and problem is gone).

For now, I added APE_50_OPP QoS requirement to s6d, when screen is on, although don't know if that will help.

UPD. I will add some debug entries in near time, to find out what exactly happens when blank screen is appears.
[Galaxy Ace II Android Development] Andrewbons:
As i said in lots of other post, TWRP is not working good for me, as i can't mount external SD (no matter how many guides i follow, it's not working)

Still i cannot use this kernel anymore because there aren't CWM options...
[Galaxy Ace II Android Development] borkins:
I don't know much about r2.1, but it holds 1200 MHz on my Ace 2.

CPU 200-1200 MHz, ondemand / varm=0x37, vbbx=0x8f ( for all steps ).

I forgot to load the modules, so I used "ondemand" governor.

Now I'm even more curious about what makes my phone stable with r1.6 and r2.1 kernels, but not with r2.0.2, for example.

I think the answer is important for all codina/codinap devices. I hope such tests can confirm something.
[Galaxy Ace II Android Development] lewsa17:
super extreme energy drain using 2tapwake, in deep sleep 0 apps in background, battery from 100-0 % in 12h + 0.5h on screen, is it normal with kernel on TC source?
[Galaxy Ace II Android Development] Kiras_PL:
Where are all modules ? I wanted to download some governors and nothing there :D
[Galaxy Ace II Android Development] ChronoMonochrome:
Of course it will drain battery. Because of doubletap2wake.

Check zip-package. All governors and some I/O schedulers modules should be there.
[Galaxy Ace II Android Development] ace2nutzer:
@ Chrono

THX... I just asking... for just in case, I've no Problems till now @ stability... but if u say that is Stock Value and not Custom.. then we can leave it so. Because my Minimum for APE Volt is = 0x1d. ;)
[Galaxy Ace II Android Development] str3tch72:
Where can I download modules? I'm interested into pegasusq or lulzactive governor.

Wysłane z mikrofalówki.
[Galaxy Ace II Android Development] ChronoMonochrome:
But as far as I know, LulzactiveQ is cause lags on waking up - if APE_25_OPP is used. Very sad, but I don't know if there's any work arounds besides of change governor to other. I don't want enable constantly APE_50_OPP again..

Btw, I don't see any problems with Interactive or even Abyssplug.
[Galaxy Ace II Android Development] shaqman89:
Hi [MENTION=5695278]ChronoMonochrome[/MENTION],

I just experienced a reboot on the 2.1 version..

I attached the last_kmsg if you wanna check into it..

I used Andy Log to get the log, is that okay?

Thanks.
[Galaxy Ace II Android Development] ChronoMonochrome:
May relate to small update from Novathor 3.4 kernel. For now I reverted these changes - some of them should be backported more accurate.
[Galaxy Ace II Android Development] nikolas1274:
[MENTION=235339]chrono[/MENTION]

At your opinion what is the best governor/scheduler for the last 2.1.5 kernel, i was using abyssplug/sioplus till now

thanks
[Galaxy Ace II Android Development] ChronoMonochrome:
Since I got few lags with LulzactiveQ, I changed governor to InteractiveQ, and so far it works good. I'm using SIOplus also.
[Galaxy Ace II Android Development] forbidden8:
Works great here. On mf1 too.

---------- Post added at 08:48 PM ---------- Previous post was at 08:47 PM ----------

Samsung live updates , maybe...
[Galaxy Ace II Android Development] shanti77:
I try MF1 firmware and still I see only "Enter Pin Window" and freez and reboot. This kernel has any bug, not all Ace 2 phone have the same hardware. All CM works good on maine phone, I use stock beacuse Ipega Gamepad works only on stock.
[Galaxy Ace II Android Development] dragos281993:
You'll find what version of 4.1.2 you want at Sammobile. Create an account then download the ROM. You'll also be given some instruction and the latest version of Odin..
[Galaxy Ace II Android Development] dragos281993:
[MENTION=5695278]ChronoMonochrome[/MENTION] , I tried every possible way to make this latest kernel work on my phone , but no luck. I installed stock 4.1.2 with MF1 baseband but I was still unsuccessful. The thing is, as I said before, the build from 27.05 works fine on any custom ROM, so there must be something wrong with the changes you made in the kernel in the last 2 builds. If my device had been the one that didn't allow this installation, none of your builds would have worked on it as well, including the one from 27.05, but that works fine, so I cannot think of anything else but a possible change in the kernel that is not compatible with my device. Now, I've got no idea how to try and find a fix for this "incompatibility" problem, so I hope that the next build will work on my device.
[Galaxy Ace II Android Development] INFERNO777:
http://www.samfirmware.com/
[Galaxy Ace II Android Development] ChronoMonochrome:
Hello. Can anyone test these kernels:

http://d-h.st/W9f (4.4.x, EXT4)

http://d-h.st/yoE (4.1.2, with MF1-based ramdisk from 27.06 build)

?

Also now is supported 4.3.x ROMs:

http://d-h.st/wuI (4.3.x, EXT4)

http://d-h.st/wDH (4.3.x, F2FS)

I tested all of these and never got a bootloop.

but if it happens, follow the instruction:

1) If you can boot into a CWM, go to step 3

2) flash this kernel http://d-h.st/oCa via odin as PDA, but don't boot into system

3) boot into recovery, flash Aroma File Manager and give me last_kmsg log.
[Galaxy Ace II Android Development] shanti77:
I test 4.1.2 kernel and I see only "enter pin window" but any key dosen't work after a while reboot. CWM doesn't work black screen and reboot. Work only Download Mode.
[Galaxy Ace II Android Development] ChronoMonochrome:
[MENTION=5070597]shanti77[/MENTION], can you give me last_kmsg log by following instruction above ?
[Galaxy Ace II Android Development] shanti77:
I have Aroma File Manager where I find this file last_kmsg log ?
[Galaxy Ace II Android Development] Alwer:
In aroma options tap show hidden, and now in main directory You will have proc folder and there will be last_kmsg

PS [MENTION=5695278]ChronoMonochrome[/MENTION] here is my log, I install kernel on XBN1 but I can test it on MF1.
[Galaxy Ace II Android Development] shanti77:
Ok I have last_kmsg log .
[Galaxy Ace II Android Development] ChronoMonochrome:
I found something horrible in the log:

[2.794982] EXT4-fs (mmcblk0p3): re-mounted. Opts: (null)

for some reason, the system tries to remount the partition /system that causes that no files in this partition is not available. Unfortunately, I have no idea why such a scenario occurs only on some phones.

According to your log:

[ 2.040283] kernel BUG at /usr/local/arm/Samsung_STE_Kernel/mm/slub.c:2959!
[ 2.040313] Internal error: Oops - undefined instruction: 0 [#1] PREEMPT SMP
[ 2.040344] dbx500_dump notified of crash
[ 2.042999] Modules linked in:
[ 2.043029] CPU: 1 Tainted: G W (3.0.101-CyanogenMod-g6a8feaf-dirty #0)
[ 2.043060] PC is at kfree+0x1b4/0x1c4
[ 2.043090] LR is at sel_write_load+0x634/0x700

looks like there is some bug in mm/slub.c
[Galaxy Ace II Android Development] hafizulpijul12:
Should I reinstall pure performance x after flash this kernel?
[Galaxy Ace II Android Development] shanti77:
This is normal, check this last_kmsg log from orginal kernel NB1.
[Galaxy Ace II Android Development] ChronoMonochrome:
Okay, i see this... But anyway the system can not access any file on the partition /system in the kernel, that I uploaded.
[Galaxy Ace II Android Development] hmzh:
is it stable or we should wait to new update

i am on (5.07.2014)
[Galaxy Ace II Android Development] shanti77:
System see files i /system directory , system work , I see "enter pin window" and after 3 sec phone hang.

I think this is a problem:

[29.611267] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[ 29.611297] pgd = c0004000
[ 29.611328] [00000000] *pgd=00000000
[ 29.611358] Internal error: Oops: 5 [#1] PREEMPT SMP
[ 29.611358] dbx500_dump notified of crash
[ 29.614044] Modules linked in:
[ 29.614074] CPU: 0 Tainted: G W (3.0.101-CyanogenMod-g6a8feaf-dirty #0)
[ 29.614105] PC is at mmci_request_end+0x6c/0x94
[ 29.614135] LR is at mmc_request_done+0x20/0x1b4
[Galaxy Ace II Android Development] ChronoMonochrome:
As long as some users report about boot loops, it can not be called "stable". Anyway, why should not we expect a new versions? I think the work on the kernel - an endless process.
[Galaxy Ace II Android Development] dragos281993:
The base for a new kernel should be the kernel from 27.06. That version is awesome, almost perfect, so if you wanna work and improve something, you should use that as base. It's just a suggestion.
[Galaxy Ace II Android Development] hafizulpijul12:
deleted
[Galaxy Ace II Android Development] nikolas1274:
Thanks i will try it
[Galaxy Ace II Android Development] fluffi444:
Will there be an F2FS for codinap as well? Only ext4 is online... Thanks for your work.
[Galaxy Ace II Android Development] shaqman89:
Is the 2.1.5 version the same as the 2.1 yesterday?

It seems the build date is the same for the f2fs version.

Thanks for your work :D

Sent from my GT-I8160
[Galaxy Ace II Android Development] ChronoMonochrome:
Nope, more commits from Tuna kernel has been merged ;)

I'm trying to upload it but my internet sucks ATM :D
[Galaxy Ace II Android Development] shaqman89:
Somehow the 2.1.5 is not flashing right then, since it's still says I'm on 2.1 version. :D
[Galaxy Ace II Android Development] ChronoMonochrome:
Forgot to change version number - as far as remember - only on TWRP/F2FS build..
[Galaxy Ace II Android Development] shaqman89:
Noted.

This last version seems to decrease my boot time a bit from 8160 to 8080. Great job. :D
[Galaxy Ace II Android Development] Glpcha:
Adding governors

Sorry for such a noob question, but I'm trying to add interactiveq governor but i'm having problems loading modules. I've installed the latest kernel for codinap and I can see the governor in system/lib/modules but adding it to autoload folder does nothing for me. Am I missing something here? Can anyone write a step-by-step guide to add governors?
[Galaxy Ace II Android Development] shaqman89:
Reboot is still happening for me with latest flash (2.1.5).

Here is the kmsg.
[Galaxy Ace II Android Development] nikolas1274:
For me happen only one time, when i set max freq 1230, at 1200 max it is all good
[Galaxy Ace II Android Development] shaqman89:
I should've thought about that.

Gonna give it a try. :)

Thanks :D
[Galaxy Ace II Android Development] borkins:
I have lags on waking up with the most governors ( r2.1 kernel ),

but only when waking up with "home" button

.:confused:

With power button - there is no lag, and the phone waking up normal.
[Galaxy Ace II Android Development] soko3:
Which kernel do you recommend for Russian 4.1.2 JB (MG2) stock rom?

october 9th, or october 6th?
[Galaxy Ace II Android Development] ChronoMonochrome:
Could you try following script:

echo apeopp=50 > /sys/kernel/liveopp/arm_step00
echo apeopp=50 > /sys/kernel/liveopp/arm_step01
echo apeopp=50 > /sys/kernel/liveopp/arm_step02

and report if lags during wakeup still occurs? Thx in advance.

Btw, can anyone confirm if there's a mentioned bug?
[Galaxy Ace II Android Development] shaqman89:
Yeah, it seems that it does happens. I usually use the power button, so I didn't notice it at first.

I'll give the script a try.

Update:

It seems the lags do noticeably disappear. Previously, it would take around a second or two for the screen to react when pressing the home button, now it doesn't have a different between power button, and home button.
[Galaxy Ace II Android Development] ChronoMonochrome:
Thanks for test. :) I have to do something with APE requirements logic, - otherwise I'll have to remove APE_25_OPP..
[Galaxy Ace II Android Development] manthes:
300MHz minimum frequency didn't help for black screen. For some reason problem started with build 1.5 and after. With 1.2 it is fine

I am back to 4.2 roms so i can't test latest builds
[Galaxy Ace II Android Development] Eselter:
chrono_kernel_r2.1.5-refresh_4.3.x_twrp_f2fs.zip

E:Unable to wipe '/cache'.

E:Error changing file system.

Can't change FS to F2FS on /cache partition, on /data working without problem.

Please help ;)

Edit: With chrono_kernel_r1.5_4.3.x_cwm_f2fs.zip also can't format to f2fs :/
[Galaxy Ace II Android Development] borkins:
No, it's the same with ape_opp 50. :\
[MENTION=5701712]shaqman89[/MENTION], try to wake the phone after some pause of time. I'm waiting at least 10-15 sec on screen off,

before wake the device.
[Galaxy Ace II Android Development] shaqman89:
Hmm.. Could it be that it's a charging related thing? I did try it again now, and it is lagging again (I tried it plugged before), but when I plugged in and waited even for a minute, it is okay.

Does this happens to you to?
[Galaxy Ace II Android Development] fluffi444:
codinap R2.1.5 F2FS

up to now it works great! :highfive: :good:

[MENTION=5695278]ChronoMonochrome[/MENTION]

But the 00autostart script do not run because of ownership/rights

I suggest to add in Kernels updater-script

Should look like this - marked the new lines in red/bold:

...
package_extract_file("boot.img","/dev/block/mmcblk0p15");
[COLOR="Red"][B]set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");[/B][/COLOR]
unmount("/system");
...

This will also correct all the other scripts in init.d if there are some with wrong rights....

This could be the reason why some reported that modules in folder autostart are not loading....

I suggest to move the needed modules in folder autostart before flashing - change the updater script as mentioned and you are fine after first reboot....
[Galaxy Ace II Android Development] ace2nutzer:
@ Chrono

u don't have problems with CPU Min / Max freq ?? Since latest LiveOPP Driver.. the CPU Freq. got back to min / max. 200/800 after screen off and on (200/800 is my default on kernel..) and sometimes the min. freq. stuck at 400Mhz.. i can do nothing.. only reboot solve the problem.. i think i will remove the newest commits on my kernel... it was working perfectly.. also i can say that don't improve OC Stability ! My max. is still 1150Mhz.
[Galaxy Ace II Android Development] ChronoMonochrome:
I'm sure I added something similar to updater script

run_program("/sbin/chmod","755","/system/etc/init.d/00autoload");

Although I'll try 'set_perm_recursive'. :good:

Maybe due to enabled ARM_KHZ requirements? I never encountered this problem since I got rid of all ARM_KHZ req.
[Galaxy Ace II Android Development] borkins:
Isn't be better, if the permission lines in "00autoload" script are:

mount -o remount,rw /system
[COLOR="DarkRed"]find $MODULES -type d -exec chmod 755 {} \;
find $MODULES -type f -exec chmod 644 {} \;[/COLOR]
mount -o remount,ro /system

because otherwise all directories inside "autoload" have the same 644 permissions like the files?

I don't know what I'm doing inaccurate, but I always got the error "failed (Exec format error)",

and can't load the modules in the "autoload" directory.:confused:
[Galaxy Ace II Android Development] fluffi444:
Sure - this also works - but it will set the rights only for 00autoload... But its OK and will leave the rest like it is in init.d folder...

Recomented for every file in init.d script is root (0) : shell (2000) and 755.... But root:root 755 also works...

set_perm_recursive willl set the folder init.d and all its files in it to the spesific ownership/rights...

Second set_perm will set only the folder init.d back to root:root (0:0) and 755... (second is not really needed but I like it 100% :o)
[Galaxy Ace II Android Development] ChronoMonochrome:
IMO, it's not very comfortable always set 755 for all scripts - I have a habit set permissions 644 for scripts which I want leave in init.d folder, but for some reason don't want to run at boot :o

May be it's better. I'm really not very familiar with Bash, this script I actually wrote after a little searching on the Internet, and therefore I can not say that now is used ideal variant of what should have been.

I can guess, you trying to load modules from previous versions of kernel - it won't work anyway (as I experienced). Try to replace those modules with ones from zip-package.
[Galaxy Ace II Android Development] fluffi444:
This came to my mind on my way to work (few hours ago) that some user are using rights as switches in init.d folder :)

So setting of correct rights on 00autostart only would be better! Agree!

BTW: Kernel R2.1.5 run awesome good! Better than everthing before! Love it! :good:

It is possible to stripp even more gov's and i/o's out of the kernel? Maybe one standard of each is enough :confused:
[Galaxy Ace II Android Development] ChronoMonochrome:
Sure, it's possible for most of those governors which still built in kernel. But I think we should leave powersave/performance in kernel due to some possible problems which may cause moving those governors to modules(as example, powersave is usually is used on LPM, but what will happen if this governor won't be loaded?). And at least one governor(maybe ondemand), which will be used as default.
[Galaxy Ace II Android Development] Bastiary:
[MENTION=5695278]ChronoMonochrome[/MENTION] please make a CWM version for 2.1.5, your changelog is seems very legit especially for 628 ram available:D
[Galaxy Ace II Android Development] ChronoMonochrome:
Will do it asap. But for now I'm little busy with LiveOPP 2.2 - still testing it. And I finally realized that laggs during wakeup is relate to fact that CPU1 is onlines too long on governors with hotplug - I testing ondemand, and it seems that so far no problems with this. Will try to do something with this, but I still need to learn a much... :)
[Galaxy Ace II Android Development] Bilgets:
Hey, clock issue are gone in 215, thanks a lot!
[Galaxy Ace II Android Development] ace2nutzer:
Nothing ! But u just need to change this Gov. in Ramdisk ---> boot and recovery .. the lpm.rc:

on boot
# set cpu governor to conservative while in charging mode
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor conservative

That's it !

It is anyway the same.. powersave is 200Mhz.. and offline charging with conservative.. the phone will stay even on 200Mhz.. because of no load .. ... .... ....

Also i changed Kernel default Gov. Performance @ interactive so that when the Phone is in Recovery Mode (cwm) the CPU freq is running in idle @ min. cpu freq kernel default ---> 200Mhz .. instead of max. freq ---> 800Mhz !
[Galaxy Ace II Android Development] Kiras_PL:
nope :P it's still present :D
[Galaxy Ace II Android Development] Bilgets:
Yeah sorry to put your hopes down guys.. it happen again when my battery is low
[Galaxy Ace II Android Development] zipperX:
Why there isn't cwm f2fs on 2.1.5 ? I prefer cwm than twrp
[Galaxy Ace II Android Development] crisis_trustee:
Dear ChronoMonochrome,

Why have you deleted your two last kernels r2.2_refresh_4.4.x_twrp ?
[Galaxy Ace II Android Development] fluffi444:
Maybe some problems with this release... This should be obvious...
[Galaxy Ace II Android Development] ChronoMonochrome:
Because of annoying bug with screenoff max cpufreq. It won't be restored sometimes after wakeup.