yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace II Android Development] ace2nutzer:
i mean for screen ON .. it's optimized for min. 200Mhz..

By Screen OFF is all the same.. but logical min.100 and max.. 400 - 600Mhz

But the important thing is the Value "sampling_rate" for screnn OFF ! Because this Value is different for Screen OFF !!

We need to tweak this Value in the Source Code... and i don't know if it's possible to change this Value for testing via ADB or script...
[Galaxy Ace II Android Development] darorsa:
YouTube application is not working

hello.

I'm using the latest kernel version 1.3 and ROM CM 11 from TC

Do not play movies on YouTube application

Below screenshot
[Galaxy Ace II Android Development] ChronoMonochrome:
Ask google why youtube app don't work, not me. It's not my fault.
[Galaxy Ace II Android Development] fluffi444:
Please read CM11 TC thread and do a Thread-Search for "Youtube" - This quite easy :)
[Galaxy Ace II Android Development] ace2nutzer:
Ok Guys.. i found the Problem why with pegasusq the Sound is stuttering on screen OFF !

- It is because pegasusq hotplug cpu1 when screen is off !

- I've made several tests if it's possible to reactivate cpu1 on screen off via script / ADB .. but nothing !!

I Think the only working way is to disable this directly in Gov. Source Code.. then Stuttering should be left !

In the meantime i'll try to optimize via script another Gov. with no stuttering on screen off.

I found only a way how to hotplug cpu1 and back to online with this command..(only for screen ON)

in pegasusq Folder:

echo 1 > hotplug_lock ---------------> online: cpu 0

echo 0 > hotplug_lock ---------------> online: cpu 0-1
[Galaxy Ace II Android Development] crisis_trustee:
For those who do not work YouTube:

1 Turn off the auto-update in the GP (Google Play) on your phone.

2 Flash zip-files in CWM. (see link below)

3 Done! (background should be transparent, if not - remove update settings - applications - YouTube)

Also you can install one of YouTube apk-files below

YouTube6.apk - https://yadi.sk/d/qIPqY5d2bZjGS

YouTube_5.3.32_com.google.android.youtube.apk - https://yadi.sk/d/MF2CBYibbZk7y

com.google.android.youtube-5.3.32-free-7070-www.apkhere.com.apk - https://yadi.sk/d/CPgn48nubZjJT

youtube-5-3-32-es-en-br-fr-de-it-cn-jp-ar-ru-nl-pl-cz-dk-fi-gr-in-kr-no-se-tr-android.apk - https://yadi.sk/d/5Do2O1yObZjK8

or

OGYouTube6.apk - https://yadi.sk/d/0tHpMT5LbZjKt
[Galaxy Ace II Android Development] nikolas1274:
we can just flash the TWRP from cwm recovery and if we want to go back we just flash a cwm kernel?
[Galaxy Ace II Android Development] ChronoMonochrome:
I have also found some interfaces for hotplug, such as hotplug_freq_x_y, hotplug_rq_x_y; (x = 1 ... 4, y = 0, 1). I still don't know exactly what's the difference e.g. between hotplug_freq_1_0 and hotplug_freq_2_0, maybe some documentation explain it. Worst thing is that I can not test it because I haven't problem of shuttering.

UPD. ah okay, it's probably different freqs for multicore CPUs.
[Galaxy Ace II Android Development] farru1981:
So if I set

echo 0 > hotplug_lock

at /sys/devices/system/cpu/cpufreq/pegasusq/

the stuttering will be gone? This setting would be permanent or this change will be reverted at next reboot?

If you or ace2nutzer create a fix I will test it, for me this stuttering is a big problem, I have it when I am listening music over bluetooth A2DP and arrives any kind of notification (I have tried a lot of governors and it's always happening) :crying:

Regards,
[Galaxy Ace II Android Development] ace2nutzer:
@ Chrono and @ up

Yes.. i found it too.. and i try'ed to set some other freq.. 600000 instead of 200000 etc.. for hopefully that cpu1 don't go off.. but no mattter what i set on all Hotplug interfaces.. the cpu1 goes always off.

Noo.. as i said.. it's not possible via script to activate cpu1 by screen off.. the gov. forces to suspend cpu1.

But no matter.. I've (in the Night) optimized new Governor for us.. it's a very simple Gov. without Hotplug. -----> ONDEMAND

The Good Thing: It's faster and smoother than pegasusq and with that gov. i don't have sound stuttering on screen OFF !

Set in Settings ------> Performance ------> Gov. -----> min @ 200Mhz and max. what u like ! (what is stable for your phone) and Gov. ONDEMAND and check restore on boot !!

Don't use CM power profile ! uncheck this in gov. section.. otherwise the Gov. will be changed automatically and the script don't work !

Just do an init.d script with this content:

#!/system/bin/sh
sleep 90

# Disable GPU Halfspeed on CPU 200-400Mhz

echo 100 > /debug/prcmu/ape_opp

# Set CPU @ 100/400 by screen OFF

echo min=100000 > /sys/kernel/cpufreq/screenoff_cpufreq_limits
echo max=400000 > /sys/kernel/cpufreq/screenoff_cpufreq_limits
echo on > /sys/kernel/cpufreq/screenoff_cpufreq_limits

# Optimize cpu governor "ondemand"

echo 65 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold

echo 10000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate

#

Enjoy !! :D
[Galaxy Ace II Android Development] BlueZ-:
Ok, let's give a try.

Inviato dal mio GT-I8160 utilizzando Tapatalk
[Galaxy Ace II Android Development] farru1981:
I have tried it over ADB and it doesn't change anything to me.

The test procedure was:

- Connect over ADB

- adb shell

- su

- copy&paste every command from the script and execute

- check the new values using "cat /sys/kernel/cpufreq/screenoff_cpufreq_limits"

status: on

min = 100000 KHz

max = 400000 KHz
​

- check the new values using "cat /sys/devices/system/cpu/cpufreq/ondemand/up_threshold"

65​

- check the new values using "cat /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate"

10000​

Over A2DP playback I always have stuttering when a sound notification arrives (i.e. a whatsapp message) and the screen is OFF, if it's ON there is no stuttering.

Maybe it's a problem related to multiple audio playback? If I disable, at whatsapp, the notification sound then there is no stuttering.

Regards,
[Galaxy Ace II Android Development] BlueZ-:
Yes, still stuttering for me too

Inviato dal mio GT-I8160 utilizzando Tapatalk
[Galaxy Ace II Android Development] danny19901:
Just download kernel tweaker and lock in the frequencies it should help also 400Mhz is slight delay in wakeup I recommend 600Mhz for Min

I use lagfree and not a problem at 600Mhz but kernel. Tweaker is amazing help I can upload if people want it
[Galaxy Ace II Android Development] fluffi444:
Yes. With 400 max in screen off the Phone needs long time from sleep to wake up if a call comes in. With 600 its acceptable.

This is for Pegasusq. For other govenors it could be not the case.
[Galaxy Ace II Android Development] farru1981:
No way, this doesn't fix it:

cat /sys/kernel/cpufreq/screenoff_cpufreq_limits

status: on

min = 600000 KHz

max = 800000 KHz

the stuttering when screen is OFF is still there, also setting min to 600 will have a huge battery drain effect :(
[Galaxy Ace II Android Development] danny19901:
Use 1000Mhz max 600Min and try lagfree ;)
[Galaxy Ace II Android Development] farru1981:
Nope:

cat /sys/kernel/cpufreq/screenoff_cpufreq_limits

status: on

min = 600000 KHz

max = 1000000 KHz

Also tried

cat /sys/kernel/cpufreq/screenoff_cpufreq_limits

status: on

min = 1000000 KHz

max = 1000000 KHz

No matter what min or max values are configured it seems to be a problem related to multiple audio channels...

If I permanently set this values I will need a nuclear battery XD.
[Galaxy Ace II Android Development] danny19901:
Ok what ROM you using I suggest download either newer update or older update and flash see if it fixes problem also what music player you using etc...
[Galaxy Ace II Android Development] farru1981:
Tried it on CM11 Team Canjica and MCLaw, also tried default Cm11 and Chronokernel kernels.

At musicplayer side I have tried:

- Apollo

- MortPlayer

- PowerAmp (increasing audio buffering and priority)

:crying:
[Galaxy Ace II Android Development] danny19901:
Very odd I use Liquid smooth on 4.4.4 and ultra smooth but I noticed some ROM 1.2 chrono is better than 1.3 version but it maybe performance profiles that causing this I think cm has them not sure but Resurrection did and few other roms did
[Galaxy Ace II Android Development] farru1981:
I am on r1.2.2 f2fs (yesterday I was on 1.2.2 ext4). Also I have disabled performance profiles in settings.

I have captured a logcat using adb, I attach it, maybe it can be useful for our experts.

Regards,
[Galaxy Ace II Android Development] danny19901:
Ok i will take a look at it in a minute
[Galaxy Ace II Android Development] needo2:
very smooth kernel
[Galaxy Ace II Android Development] ace2nutzer:
I Think it's Sound Driver Issue.

Okk.. my Results:

with pegasusq screen off ---> 200/400 when i'm using OGYoutube app and turn the screen off.. for listenig the sound from a clip, i'have sound stuttering during the Video is buffering... after the clip is fully loaded.. the stuttering was gone.

BUT:

with

ONDEMAND

gov. i've

NO Stuttering

even if i set

200/200Mhz ! for Screen OFF

!!! This is because 200Mhz in Dualcore can handle more Threads at the same time... and 400Mhz in Single Core is badly...

But at the moment i've set 200/400 for screen off with ondemand.....perhaps 200/600 is better for screen off.

@ incoming call delay:

i've tested this delay.. for me, with ondemand and max. 400 the screen go on after ca. 7 seconds ... is perhaps too long.. i will try with max. 600Mhz...
[Galaxy Ace II Android Development] BlueZ-:
After a tons of attempt maybe I found a good configuration against this stuttering music...

Governor: Ondemand (with the script in the page before)

Freq. for screen off 200/400 (maybe 600 it's even better)

Scheduler: VR! (the last one)

I tested every scheduler (yes, I listen to a lot of music xD) seems that there are a lot of differences between each other and the best for screen off seems to be VR...

I mean, stuttering is not completely gone, but it's very rare with this configuration

PS.: I use Apollo with DSPMenager
[Galaxy Ace II Android Development] ChronoMonochrome:
I forgot to mention, I use JetAudio + viper4android with configuration in my signature and haven't shuttering bug. Maybe this problem related to software?
[Galaxy Ace II Android Development] ace2nutzer:
is VR better than Noop ?!

For all people they have anyway stuttering on screen off..please check if both cores are online when screen is off.. logically u can check this only with ADB :D

cat /sys/devices/system/cpu/online
[Galaxy Ace II Android Development] BlueZ-:
In my case it's much better..
[Galaxy Ace II Android Development] dv6661:
v1.3 for sd6 driver ???
[Galaxy Ace II Android Development] ChronoMonochrome:
In r1.3 has been implemented another fix for s6d (I don't prefer a previous one, because if I'm not wrong, it caused graphical glitches on s6d) . I still don't know, if it really works(at least, it caused screen tearing on ws2401 driver on 4.3.x :D like previous fix caused same problem on all OS versions). Some users have reported, that this bug is not completely gone, but became rarely than was before.

UPD. another possible fix - check "Disable HW overlays" in dev. settings.
[Galaxy Ace II Android Development] sleepless9:
I would like to test this kernel with f2fs without having to setup my phone all over again. So, i was wondering if just restoring a CWM backup after conversion will work. Has anyone tried it?

EDIT: I tried it anyway, after I figured I could still use the backup and go back to the stock cm kernel if something went wrong but it worked fine. The only issue I encountered was that F2FS formatting failed on my 10MB cache partition so I had to repartition (again) and resize it to 120MB. It just took a few minutes. I am now a happy user of the Chrono kernel.:cool:
[Galaxy Ace II Android Development] farru1981:
In my case with pegasusq and ondemand:

shell@codina:/ $ cat /sys/devices/system/cpu/online

cat /sys/devices/system/cpu/online

0​

Does this means that one of the cores is offline?

Regards,
[Galaxy Ace II Android Development] ace2nutzer:
Yes.. 0 = Single core and 0-1 = Dual Core. Here is so something wrong because the normally ondemand gov. don't hotplug core 1.

But I've the Stock CM 11 Kernel by TC.. Perhaps the Chrono Kernel have Hotplug for ALL Governors....

So this is the reason for the Stuttering !

@ Chrono : Any Explanation ?

Edit: before u change from pegasusq or any hotplug Gov. to ondemand make sure that with the command above that both core are online.. because ondemand can't take core 1 online !! That means u have single core till u switch to another gov.. or u reboot....
[Galaxy Ace II Android Development] ChronoMonochrome:
It is because of u8500 hotplug driver :) well, because we need at least some governors without hotplug support, in the next version I'll remove hotplug driver.
[Galaxy Ace II Android Development] ChronoMonochrome:
How to migrate to f2fs

Hi! There is a small guide for migration to f2fs/ext4 without loosing data. I decided to write this method, since I plan to add support f2fs in /system in the next version of the kernel.

0) Because this is an experimental method, make sure you have usual nandroid backup

1) Let's manually make *.tar backup (just example for /data partition):

cd /data
tar -cf /storage/sdcard1/data.tar *

2) Go to CWM recovery (in further releases TWRP will support F2FS too), format /data as f2fs

3) Ok, let's restore data:

cd /data
tar -xf /storage/sdcard1/data.tar
[Galaxy Ace II Android Development] fluffi444:
F2FS for System would be nice. Thanks for your work.
[Galaxy Ace II Android Development] farru1981:
Hello, I have been testing previous builds without u8500 driver (according to changelog):

- 18082014 --> the stuttering is also present

- 04082014 --> the stuttering is also present

Also I have downgraded from Cm11 to Cm10.2 and... the stuttering is gone !!!!

By now I will be at cm10.2, it isn't smooth as cm11,needs more ram and doesn't have some features I like :crying: but it's working ok for me.

I hope next release can fix this. I have nandroid backup for cm11 and cm10.2 both using f2fs so I can do more tests easily.

Regards.
[Galaxy Ace II Android Development] ChronoMonochrome:
New build is UP! :)

As some of you have noticed, there is an update file systems from the Linux 3.2. Worst thing I found after upgrading to 3.2, is that in this kernel is still no commits that should be in 3.2.

In fact, here are has been implemented all (or almost, we don't need some of them) the announced updates from the http://kernelnewbies.org/Linux_3.2

and

http://kernelnewbies.org/Linux_3.1 (yes, there are a few changes in FS, but not all)

The problem is that for some reason they have not announced such changes, such as a big update file systems ( https://github.com/ChronoMonochrome/Chrono_Kernel/commit/895af476cc7c21da7adb379518f8e48121969b37 ).

I think for this was the reason (maybe such kinds of update in the order of things?)

Anyway, soon (or not soon) will be merged all changes of 3.2.

I also promised to make TWRP with f2fs support but it is still in development. It's not usable ATM because of TWRP loop.
[Galaxy Ace II Android Development] manthes:
With 1.4 twrp for 4.2 phone is not usable. Keyboard not closed after writting (swiftkey), settings menu appeared all only in landscape, menu and back buttons respond very slowly etc.

I don't know if i am the only with this problems
[Galaxy Ace II Android Development] dv6661:
report

WiFi tethering turn on & of continuously

I'm on cm11 tc, using v1.4 cm ext4

please fix it, I really need that thing

thanks anyway
[Galaxy Ace II Android Development] ChronoMonochrome:
My bad!!! All problems due to file systems update. Also appeared CWM loop.

ATM do not use r1.4. Of course I'll try my best to fix these problems. :fingers-crossed:
[Galaxy Ace II Android Development] str3tch72:
I don't see any issues on r1.4 ext TWRP, strange... :D
[Galaxy Ace II Android Development] ChronoMonochrome:
Ah, ok, it seems that F2FS became broken. Damn it, after update file systems to 3.2, I didn't fix it properly. It still needs to be reimplemented, but F2FS from patches doesn't work at all.
[Galaxy Ace II Android Development] sleepless9:
I am also experiencing the clock issues that others talked about. This morning, my alarm did not go off. Has anyone found out a workaround for this yet? Or what could be causing it? I don't know if it's relevant but I had the governor set to SmartassV2 (first time testing it). Now switched to intelliactive but have to wait till tomorrow to see if it was governor-related, as the issue did not happen when I tried to reproduce it. Unfortunately I lost the logcat but will keep it next time. Please help, missing alarms could result to big trouble...
[Galaxy Ace II Android Development] riyosakura:
Its related to turning off data connection.

Try to turn off mobile data and leave it about 20 minute. You'll notice the clock bugs.
[Galaxy Ace II Android Development] crisis_trustee:
And what? Install or not install your new r1.4 f2fs kernel (chrono_kernel_r1.4_4.4.x_cwm_f2fs.zip)?

What is your advice?
[Galaxy Ace II Android Development] sleepless9:
So, the only way to make sure an alarm will work is to leave data on (which is a battery killer unfortunately, and also wifi turns data off automatically if left enabled). I will try to debug this as much as I can when I have the time. Meanwhile, I disabled all conectivity, set an alarm to ring 1 hour later and did not touch the phone until then. The alarm did ring at the right time, despite data was disabled. Bugs difficult to reproduce are so annoying...

Aside this issue, after one day using this kernel I can definitely notice a positive difference in the phone's speed and responsiveness! I encountered no other bugs (none that isn't rom related anyway) and my ace2 is running overclocked at 1228MHz with no freezes and reboots. Thank you and keep up the good work!
[Galaxy Ace II Android Development] str3tch72:
So EXT4 version working good or reverse to r1.3?
[Galaxy Ace II Android Development] nikolas1274:
Can someone answer to the above question?

thanks
[Galaxy Ace II Android Development] farru1981:
Yes, you can, but be sure that you flasha kernel with the same filesystem type (ext4 --> ext4 or F2FS --> F2FS)

Regards,
[Galaxy Ace II Android Development] sorset:
Hi. Thankyou for new relase

tun.ko kernel module is not loaded in R1.4 , I can't use OpenVPN :(
[Galaxy Ace II Android Development] MarquesYOLO:
Do i need to wipe data to update last kernel version from previous or just wipe caché & dalvik caché? Thanks
[Galaxy Ace II Android Development] ChronoMonochrome:
Reboot from recovery into system doesn't work if you use extended power menu. I mean CWM(TWRP) loop. Old fix for CWM loop doesn't work so it will be not easy to make a working fix.

Wipe cache recommended.
[Galaxy Ace II Android Development] MarquesYOLO:
So, for now, it's not recommended to update ext4 version?
[Galaxy Ace II Android Development] el_polilla1990:
i have this problem . kernel 1.3.3 f2fs cm10.2

[MENTION=5695278]ChronoMonochrome[/MENTION]
[Galaxy Ace II Android Development] el_polilla1990:
deleted
[Galaxy Ace II Android Development] dbts25:
In JB version headphones doesn't work. Sound is still playing from rear speaker
[Galaxy Ace II Android Development] dragos281993:
Yeah, even if it takes me a while, every time I flash a ROM, I wipe everything. I made the usb storage of 172kb and I always wipe that too. I don't mind installing all the apps over and over again. So this would be something usual for me. Thanks for the quick answer !
[Galaxy Ace II Android Development] ChronoMonochrome:
okay, it's my bad. Wait for new release.

isn't needed to format partitions again, if you have formated to f2fs partitions.

@ all:
[Galaxy Ace II Android Development] judas1977:
not booting for me, KK version, latest PA..
[Galaxy Ace II Android Development] ChronoMonochrome:
did you format data and caxhe partitions to f2fs?
[Galaxy Ace II Android Development] judas1977:
no, I didn't see that info in introducing post
[Galaxy Ace II Android Development] ChronoMonochrome:
sorry, it's my bad too.
[Galaxy Ace II Android Development] dragos281993:
"E:Could not format /cache (f2fs). Maybe I did something wrong, but I don't think so. I tried it third times and I've still got the same message.

---------- Post added at 11:03 PM ---------- Previous post was at 10:41 PM ----------

So, I wiped everything again, flashed your latest kernel after I flashed "VanirAOSP [4.4.3] GCC4.9 Linaro [20/06]" and the phone doesn't boot up. I flashed the previous kernel and everything is good.
[Galaxy Ace II Android Development] ace2nutzer:
I will not disturb development.. but i read by zwliew in a past of few days that F2FS can damage the mmc Flash ! Be careful.
[Galaxy Ace II Android Development] ChronoMonochrome:
I don't think that meant that f2fs can damage mmc flash, only potential data corruption.
[Galaxy Ace II Android Development] forbidden8:
I think to go on stock for few days and may use this kernel, but didnt know which is the best build. Can someone that use it, for daily driver share it? Thx.
[Galaxy Ace II Android Development] shanti77:
I have stock 4.1.2 NB1, after install this kernel phone start and hang up, don't work CWM, only DOWNLOAD MODE work. On all version this kernel is the same. Not only I have this problem.
[Galaxy Ace II Android Development] dragos281993:
Yeah, I know. I think so too.
[Galaxy Ace II Android Development] ace2nutzer:
When the Cache Partition is more in Use so as read and write like RAM then it will slowly but secure killed the mmc flash.. but only in this Partition .. because the mmc flash is not a hard drive disk that u can often write and cancelled data before the Disk is death.

The Amount of write / delete cycles are limited on NANDroid Flash.

The same bad thing is to use the mmc flash as swap ... not really good.
[Galaxy Ace II Android Development] ChronoMonochrome:
New version is UP!

http://xdaforums.com/showpost.php?p=53644714&postcount=1

Now you can use CoCore Manager to tweak the kernel settings :)

Use multi mount SD-card app or other similar for UMS. It doesn't work with swapped internal/external partitions. But now the recording files are not becomes broken, as it was with samsung's UMS driver.

F2FS was designed specifically for flash drives, given the limited read-write cycles. According to wikipedia, it have technologies that prolongs flash drives life.
[Galaxy Ace II Android Development] exodius48:
This kernel not working on aosp, I got bootloop.
[Galaxy Ace II Android Development] judas1977:
@up

i think it's because of f2fs. changelog is not precise enough - it says that introduced f2fs support. but it requires formatting to f2fs some paritions in reality
[Galaxy Ace II Android Development] teogepe:
I have no problem.

This kernel makes stock rooms really awesome. Thanks for your hard work.

Im using NB1 on a GT-8160L
[Galaxy Ace II Android Development] shanti77:
@up In this version CWM work, but have errors. When I use "wipe data/factory reset" I see "Formating /data" and after 3s reboot. When I want restore I have MD5 error. I load old CWM (6.0.2.8) , "wipe data/factory reset" work, but not see sdcard and I can't restore system. On this kernel system on but after 3s freeze and reboot, some times I make in time enter pin.
[Galaxy Ace II Android Development] el_polilla1990:
sorry tapatalk error
[Galaxy Ace II Android Development] MrBlackCore:
What the hell!?

I updated to last version and I got a HUGE battery drain ( from 100% to 60% in 1h), random reboots and the device is heating up like crazy.
[Galaxy Ace II Android Development] Master-ZizO:
+1 [MENTION=5695278]ChronoMonochrome[/MENTION] R1.4 TWRP 4.4.4.. pegasusq 200-800 , sioplus

Soft reboots and the apps doesn't open
[Galaxy Ace II Android Development] ChronoMonochrome:
I just wondering, guys, why are you using last version? It's not usable anyways. I'm really sorry I didn't test it

long enough before I release it.

Just wait for a new build, I hope it would be much bugless than previous.
[Galaxy Ace II Android Development] crisis_trustee:
OK. Good luck!
[Galaxy Ace II Android Development] HCDanny24:
Just a question: How can I change the CPU frequency for screen off? :confused: