yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace II Android Development] isaak:
I'm using [ROM] Lineage OS 11 [4.4.4] 10/10/2017 [STABLE] [F2FS] [GT-I9070/P].

I noticed that it doesn't save (min and max) frequencies after a reboot.. as a workaround I have to use this init.d script:

https://xdaforums.com/galaxy-ace/ace-2-develop/custom-kernel-t2793420/post72254514#post72254514

Besides, I tried all possible combinations among different governors, schedulers and frequencies, but all youtube videos, especially in fullscreen mode and landscape mode (regardless of the quality) are painfully laggy.

Probably AutoBoost GPU doesn't work at all. Using ChronoKernel Settings app, I tried to disable it and set as static GPU clock speed 300 or 400 MHz. Forcing these values I can achieve something but at the price of multiple crashes.

It's a pity there is no opensource code for ChronoKernel Settings app...
[Galaxy Ace II Android Development] ChronoMonochrome:
You might want to adjust min/max GPU usage thresholds, either via CK app or with init.d script.
[Galaxy Ace II Android Development] isaak:
1) When I try to use landscape mode on a youtube video (viewed on youtube app, not on the browser), the video becomes black while the sound continues to be reproduced.

This is the logcat I obtained during the operation:

https://pastebin.com/13pscJm6

Most errors are in these lines:

2) When I try to view a youtube video on mozilla firefox, it was so slow to reproduce the video that I had to hard-reboot my phone

I obtained this during the operation:

https://pastebin.com/zGYFMKFF

Most errors are in these lines:

I'm using Zenx governor 200 MHz - 1000 MHz

Autoboost gpu disabled, static clock speed = 400 MHz

Mali Low Threshold = 120 - Mali High Threshold =240

Mali Preallocated memory size = 48MB
[Galaxy Ace II Android Development] ZjemCiKolege:
I build for janice and works very good on stock :P nice to see :p twrp little outdated 3.0.2 :P
[Galaxy Ace II Android Development] ChronoMonochrome:
New build r6.0 is up!

Hey guys!

Since I've started kernel upgrading project, awhile there were no news regarding this.

In the fact, I was having some issues with LK 3.8 (was latest stable, but without working Internet) and LK 3.10 (has working Internet but not very stable) sources. Thanks to commits from Android 8 kernel, now this issue with the Internet was resolved, so I've merged updates upto android-3.10.

Changelog

r6.0

upgradred to android-3.10

merged (mostly) all the stuff from r5.6 kernel

Please let me know if you find any unstabilities with this release. For now I'm considering of this build as an experimental, so it's possible that r5.x build series might be continued later.
[Galaxy Ace II Android Development] mirhl:
Hope you can find the time for an android-3.10-clean branch :p
[Galaxy Ace II Android Development] ChronoMonochrome:
No, this time there is no android-3.10 clean branch. It can be found, though, that master-3.10 branch is based upon android-3.4 branch (further linux kernel releases are merged on top of it): https://github.com/ChronoMonochrome/Chrono_Kernel-1/commits/master-3.10/Makefile .
[Galaxy Ace II Android Development] Pdevo:
Wow, so many things went on, really a surprise as always [MENTION=5695278]ChronoMonochrome[/MENTION], thank you.

Tested janice build on stock 4.1.2 and works very well, no bugs at all excepts from the bluetooth not working, I took some logs:
[Galaxy Ace II Android Development] ChronoMonochrome:
Dmesg log doesn't contain any bluetooth-specific errors. Logcat seems to be not full, this is because reading a full log requires superuser permissions (type 'su' in terminal before you type logcat).

If possible, please verify that bluetooth is not working on other ROMs. It might be helpful also to check a loaded kernel modules via lsmod command.
[Galaxy Ace II Android Development] Pdevo:
I will provide full log then and loaded modules. Now I had to switch back to mk kernel because I experienced a major issue: answering a phone call causes phone to freeze. I think a last_kmsg would do job, right?
[Galaxy Ace II Android Development] Mr.Adalbert:
[BUG] On stock 4.1.2 ROM with your kernel (4.8.2 was last stable so i used it) my bluetooth headphones stutter and looses audio, especially when i turn down the screen. The bug exist in A2N kernel as well. Today i have flashed stock ROM from the scratch and audio works fine. If you dont have bluetooth audio device i can provide logcat.
[Galaxy Ace II Android Development] ChronoMonochrome:
No, logs are not needed, this issue is known. It should be that bluetooth audio is broken again by cpuidle driver changes - will fix in the next bugfix release.
[Galaxy Ace II Android Development] ChronoMonochrome:
New build r5.6.1 is up!

Changelog

r5.6.1

cpuidle: revert to 3.0.101 stock implementation

* issues with bluetooth devices on earlysuspend now should be resolved. [MENTION=5456769]Mr.Adalbert[/MENTION], can you check if it fixes your issue with bluetooth audio device?
[Galaxy Ace II Android Development] ace2nutzer:
I guess this Config is needed:

CONFIG_UX500_SUSPEND_DBG_WAKE_ON_UART

Right ??
[Galaxy Ace II Android Development] ChronoMonochrome:
CONFIG_DBX500_CPUIDLE_DEBUG is needed for sure, CONFIG_UX500_SUSPEND_DBG_WAKE_ON_UART probably too. I've just reverted all the cpuidle changes to the stock defaults now.
[Galaxy Ace II Android Development] ace2nutzer:
CONFIG_DBX500_CPUIDLE_DEBUG is enabled on my latest build, so if the BT Audio didn't work on latest build then CONFIG_UX500_SUSPEND_DBG_WAKE_ON_UART is really needed.
[Galaxy Ace II Android Development] Pdevo:
[MENTION=5695278]ChronoMonochrome[/MENTION] I took the full logcat and the lsmod for the bluetooth issue, hope can help.

Now I need to take a log for the incoming call freeze: I can't simply run a logcat from terminal on android because if I reproduce the issue it would not save the log to sdcard, guess I need to use adb, right?
[Galaxy Ace II Android Development] ChronoMonochrome:
It doesn't look like a kernel bug, an issue might be with the ramdisk. Check if a bluetooth bug appears on other ROMs if possible.

I wouldn't think such telephony issue is a kernel-related. You can though, go ahead and anyway attach logs (just start logcat in terminal before you receive an incoming call).
[Galaxy Ace II Android Development] Pdevo:
Then has something to do with the ramdisk, on los 11 there is no bluetooth issue and is working fine, this is confirmed also by [MENTION=7779223]sm_adil[/MENTION] .

I tryed just for fun replacing the ramdisk with the one provided by mkaluza for the stock rom but this doesn't work, maybe you would say "obviously" :D

Is there a different ramdisk I can test for 4.1.2?

I managed to take log, when accepted incoming call phone freezed and only let me apparently use long pressed power button to select shutdown option, which then wasn't effective at all, so took off battery .

Thanks Chrono for your support

EDIT:

I know would just be easier to go with a updated rom like kitkat or better than sticking with such an earlier stock rom, but the main reason is that for a moderate usage and with no pretentions of having latest apps and features jellybeans still works pretty well and grants good battery backup and not so bad performance if patiently optimized. In addition to this and probably the really major obstacle keeping me here is that I unfortunately need the wi-fi direct function, which is working only on stock roms, otherwise I would gladly switch to newer os. Hope you can understand.
[Galaxy Ace II Android Development] Mr.Adalbert:
[MENTION=5695278]ChronoMonochrome[/MENTION] On kernel v5.6.2 (I havent tried v5.6.1 yet. If you like me to try it i can do that) from FTP audio over BT plays wonderful. Rage and stability is even better than on strock kernel. Problem is that v5.6.1 and v5.6.2 i coudnt switch BT on on stock rom. On v6.0 my phone couldnt get even to boot animation.
[Galaxy Ace II Android Development] ChronoMonochrome:
Understandable, but I'm afraid there's a little I can do to support stock ROM as I'm not stock user.
[Galaxy Ace II Android Development] Pdevo:
Thank you anyway Chrono.

By the way, in my logs all that recursive sets of:

Are they fine or something is messed up?

I am having these not only on your kernel
[Galaxy Ace II Android Development] ChronoMonochrome:
Probably, modem log interface is removed in this kernel, which is anyway unused by a non-stock ROMs. You can just try removing this noisy binary and test things out - maybe this binary is not that important on stock too.
[Galaxy Ace II Android Development] ChronoMonochrome:
[MENTION=4688910]Pdevo[/MENTION], [MENTION=5449754]isaak[/MENTION],

Continuing the PM conversation here, since below are some technical details.

@ everyone: thanks to [MENTION=5449754]isaak[/MENTION], [MENTION=5514090]enkflr[/MENTION], [MENTION=4688910]Pdevo[/MENTION], [MENTION=5399825]prometej-zg[/MENTION], I have received Samsung Galaxy S Advance, who have donated it to me, so now I can work on both Janice and Codina kernel / ROMs! :highfive:

Sure thing, already started to work on this. Fortunately I've resolved some issues I've found previously (specifically, there was misconfiguration of Contiguous Memory Allocator that lead to almost all camera apps not to work).

I'll keep here the list of other mentioned issues, for the convenience:

1) min and max CPU freq set to 800 MHz by some ROMs

2) slow video playback in Youtube app

3) bluetooth not working on stock

(is there anything I could accidentally miss?)

I've started reviewing these issues, results so far:

1) Should be fixed now, a temporary workaround to disable this optimization. Normally, the kernel does ramdisk patching to restore min CPU freq to 200 MHz after the boot process is complete, but this doesn't seem to work properly everywhere (on LOS 11.0, e.g.), so the solution for now just disable this feature and restore the original behavior.

2) Couldn't reproduce so far. The ROM and app I've used were different from yours (UltimateROM 6.0.1 + OGYoutube), planning to repeat this on LOS 11.0 with Youtube app to be sure. The GPU load during my tests so far was too small to force GPU driver to use a freq boost (15-20% of load with 400 MHz freq). My guess so far that the real issue is related to SW playback, which will require much more CPU resources to use (and under a severe memory pressure things will only get worse). But I'll check this guess soon.

3) Unfortunately, I haven't started to investigate this issue yet, as I have flashed a custom ROM as soon as I've received the phone. I have some new ideas, though. During the kernel development, some Samsung's bluetooth stuff was replaced with the generic code. It seems that stock ROM rely on this original Samsung implementation that was removed. For now I'll try to re-add this code back, but I'll only know if that worked when I flash stock ROM again (or when I release a new kernel build and someone with stock ROM test it).
[Galaxy Ace II Android Development] Pdevo:
As I already stated, you really deserved it and I am not waiting for something at all, just happy you can now play around, let's say this, with another device and improve your project, that went on for so many years and became so big. Obviously still very happy to see stuff for janice.

For the third point I will be glad to test fore sure sir! Very excited :)

EDIT:

I am currently using sdcard exfat support on cocafe 4.1.2 kernel with fuse module, would be possible to still get similar support in a future? Also, the powersave mode on stock rom work well, with init I can set two different frequencies for powersave and normal mode, cocafe in his thread refers to some fake interfaces he made to get this tricky thing working, would be possible the same?
[Galaxy Ace II Android Development] PolishVodka:
I was tested on other phone throttling and because of two days ago, I put to my old Ace 2 thermopads (on memory and cpu chips, body is from aluminium and now eventually heating should be minimal), the same test I done on this phone. Using cpu throttling test app from GPlay, setting max frequency to 1220Mhz (1245Mhz is not stable probably because of too low voltage for this freq choosing by me, but this doesn't matter) I was see how bad performance this phone has on "dynamic" governor.

Don't know why, but on "dynamic" frequencies of processor are decreased without any reason. Best resoults I've got on Zenx, where phone may working on max and almost max frequencies for a while.
[Galaxy Ace II Android Development] ace2nutzer:
Dynamic gov is optimized for battery and not for performance.

Anyway i found it too slow and tuned it to be a high performance gov.

Chech the tunables .. it's the best gov in terms of customization and fine-tuning, things that all the other govs can't handle!
[Galaxy Ace II Android Development] UnOrdinary:
Hello Bro

I need a answer

Can Help me please

This Ace 2 Device Same as Galaxy S3 Mini Hardware So If I Try to build Your Kernel Or Roms It Will Work?
[Galaxy Ace II Android Development] ChronoMonochrome:
They aren't having exactly same hardware. The kernel sources used by S3 mini are different from those that use Ace 2 / S Advance.

I'm too busy with latest two now, anyway, and I don't own S3 mini, so building anything for this phone would be difficult.
[Galaxy Ace II Android Development] UnOrdinary:
Thanks for Reply
[Galaxy Ace II Android Development] Muhammed Suhail:
It's better to hit the thumbs up button than replying
[Galaxy Ace II Android Development] -=Guybrush=-:
I apologize in advance should my question be a dumb one. I currently have Sergey's Lollipop on my Ace II and I'd like to change the kernel. By what I've understood this one is the best one available for the Ace II but I've noticed that some versions where linked to particular Android versions (at least, when I look for let's say a Nougat UltimateROM I find in the same directory the version 5.6.2). Maybe it is only a coincidence but I'd like to rule this out. My idea is "the newest, the best" (not always true but usually it is so) so I'm going to stick with chrono_kernel_r5.6-2-g382c000.zip which seems the latest version available on ChronoMonochrome's repository.. Is if fine for my setup or will I screw everything up?

Also, I'd like to add Sohamsen's performance tweaks and init.d support is needed: by what I know if I can find /etc/init.d (I can't check right now because my Ace II is at home now) then the kernel has it. Am I right? I'm almost certain that chronokernel has it anyway.

Thanks in advance to everyone for your replies and have a good day! :)
[Galaxy Ace II Android Development] ChronoMonochrome:
It's better to update to at least LineageOS 13, lollipop one is not the best choice (not only because outdated but rather because of poor performance compared to Marshmallow). Also the current kernel release got obsoleted - it's either not the best idea to use this build - expect an update soon. So just stick with the stock ROM kernel for now (no matter which ROM you choose).
[Galaxy Ace II Android Development] -=Guybrush=-:
Hi and thanks for your advices. The problem with all the Marshmallow roms I've tried on my Ace II was storage running low. After repartitioning according to the guides, I managed to solve this issue but I've got issues with telephony with more or less all the Codina MM roms I've tried. The recurrent one was that when someone was calling me he/she could hear the dialing tone while my mobile stayed quiet like if anyone wasn't calling. This (and other slight issues I don't even remember because too much time has passed) had forced me to revert back to Sergey's Lollipop which I agree is quite sluggish (that's the reason why I'm looking forward to use Sohamsen's scripts) but at least works reliably.

Except for Vanir Kitkat (which is great but unfortunately quite outdated these days), what rom do you think is the best one for Codina? I suppose your Ultimate 6.0.1 ;) but, if I remember well, I had that strange problem exactly with it. I've seen there are also Nougat roms around here but I think Codina has too low resources for Nougat, just my idea!

I know this is an OT and I apologize but I don't think opening a new thread for such a simple question would be anything better.

For what concerns your kernel, I'll wait for newer updates! Thanks for everything! :)
[Galaxy Ace II Android Development] ChronoMonochrome:
Hi to everyone!

Long time no see here :cyclops:

As you probably know, I was working on Galaxy S Advance kernel (which shares the same codebase as Codina), and as there were implemented some significant changes to the kernel sources, I've decided to release a new build here too.

One of such major changes is getting LowMemoryKiller to work properly. Finally device hangs (when memory is low), stutterings and so on should be fixed!

Changelog

R5.9

Memory management hugely improved (finally LMK works properly)

Fixed bluetooth issue on 4.1.2

Fixed powersave interface on JB 4.1.2 stock

Dynamic: Squash-revert GPU-related code

J4FS module code cleanup

Reverted forcing minimum CPU freq to 800 MHz

Enabled CONFIG_CPUSETS (required by Android 6.0.x+ ROMs to function properly)

LiveOPP: removed some CPU freq steps

Dynamic governor: parameters are tuned for the better performance
[Galaxy Ace II Android Development] fonzacus:
missing both storages on a2n cm11 324 and biens repart CWM_ReParted_SY900_CA130_DA2750_SD0_20

currently switched back to 5.6.1 (it looks the newest sorted by date on the ftp)
[Galaxy Ace II Android Development] ChronoMonochrome:
New build r5.9 is up!

Changelog

R5.9.1

Resolved (hopefully) deepsleep issues *

* It seems that the latest release have introduced some bug causing wakelocks not to allow device go to deepsleep. Tested in about 24 hours so far with ~6 hours of deep sleep on UltimateROM 6.0.1 without any issues with wakelocks.

Hi, unfortunately, I don't have any 4.4.4 ROMs installed on Codina (on Janice both storages are working on r5.9). You can provide more debugging information with copy / pasting the output of the following commands:

mount
lsmod
cat /ramdisk/fstab_specs.txt
cat /ramdisk/fstab

Also attaching dmesg and logcat could help.
[Galaxy Ace II Android Development] :
What do you mean "both storages"?
[Galaxy Ace II Android Development] ChronoMonochrome:
Reinstall the kernel using inbuilt TWRP recovery.
[Galaxy Ace II Android Development] fonzacus:
tried reinstalling 590 and 1 many times over along with clearing dalvik and cache. both still undetected by system. in twrp (thankfully) both are running fine.

wonder if anyone else running custom partitions are having this issue, or is it only kk related.
[Galaxy Ace II Android Development] :
Did you install the reparted ZIP in TWRP ir CWM?

If in CWM then was that the temp CWM or A2N's kernel?
[Galaxy Ace II Android Development] fonzacus:
it was via a2n kernel cwm. i followed your repartitioning guide for los15, except with installing sergeyl cm13. now im back on a2n cm11

the storages are running just fine with 561, but the battery drain is insane. 'awake screen off' is almost 100% active. i guess ill try 562 and 607.
[Galaxy Ace II Android Development] :
Which ROM is having battery problem?

If you can you should give a logcat...
[Galaxy Ace II Android Development] fonzacus:
im currently using a2n cm11 with chronokernel 562. im just testing how battery usage is like because 591 changelog said 'fixed wake lock'. 561 had issues with 'awake screen off' on both a2n cm11 and sergeyl cm14.

what rom/kernel are you using? are you using a custom partition? are your storages working fine?
[Galaxy Ace II Android Development] :
I'm in stock ROM as it's very good at wifi tethering.

When I'm in LineageOS 15.1 and all the custom ROMs, the storages always work fine.
[Galaxy Ace II Android Development] ChronoMonochrome:
New build r5.10 is UP!

Changelog

R5.10

Reconsider not to include some recent patches *

Interactive: performance improvements

Camera issues should be fixed now

Fixed charger mode issue (thanks to [MENTION=1508790]SergeyL[/MENTION])

* I had to reconsider on regard of what patches to include in kernel builds, because some of recent changes appeared to have some negative effects, performance-wise.
[Galaxy Ace II Android Development] :
Is this kernel have mount namespace creation?

I just asked it just for using Magisk... ;)
[Galaxy Ace II Android Development] ChronoMonochrome:
AFAIK, there is no support of Magisk on codina cause of unsupported boot image format.
[Galaxy Ace II Android Development] :
The installer said "Sony ELF32 format" :confused:
[Galaxy Ace II Android Development] ChronoMonochrome:
Ah, ok, then the boot image format support could possibly be added, but there is still no way to use it due to a way how the ramdisk is stored (it's stored in the dedicated partition so Magisk has no clue about that).
[Galaxy Ace II Android Development] :
The installer said that we can use BootBridge to install Magisk.

Maybe we can still get some luck ;)
[Galaxy Ace II Android Development] fonzacus:
thanks for the update. my 5.9 missing partition is almost fixed. my 20mb sdcard0 is mounted, but hidden, and sdcard1 (external) is sdcard0.

im having a permission bug now, many apps cant read/write their settings, like the playstore. also system settings like the date and time cant update. i can delete and download just fine.
[Galaxy Ace II Android Development] PackElend:
I would like to pickup that discussion as my banking apps and token generator apps requires, in addition I've learned that Lineage requires to have SELinux in enforced mode to make an ROM official, don't they?

Would be SELinux Switch a compromise?

In the LOS thread it was mentioned that

but the OP says

so what is the truth now?

by the way, where can I find those moduls:
[Galaxy Ace II Android Development] :
Check my thread again... I explained it ;)
[Galaxy Ace II Android Development] mirhl:
Isn't that supported since last year?

And nevertheless shouldn't ELF bridge supposed exactly to cover that?
[Galaxy Ace II Android Development] ChronoMonochrome:
Thanks for the links, looks interesting indeed.

I've checked myself the bootbridge scripts but it seems that this has nothing to do with the extended support for such a custom kernel format like used by our device. But if someone wants to check whether it works, then it's better to use a kernel included in LineageOS builds (as it's even less doable with custom kernels like this one).
[Galaxy Ace II Android Development] unknown_one:
I installed this on stock 4.1.2, but now I can't continue on the setup process because it fc's all the time. Any fix?

Edit: fixed it by reparting the device. Works now!
[Galaxy Ace II Android Development] fonzacus:
i had an issue with a2n cm11 build 901 with your 5.10. the date and month are correctly set but the year is stuck on 2005 (even on manual date set).
[Galaxy Ace II Android Development] :
:confused:
[Galaxy Ace II Android Development] ChronoMonochrome:
@up,

latest release is not compatible with pre-Oreo ROMs due to some unintended changes. Try older release for now.
[Galaxy Ace II Android Development] RAPXT:
Hello [MENTION=5695278]ChronoMonochrome[/MENTION],

could you please add support for FM radio?
[Galaxy Ace II Android Development] ChronoMonochrome:
Hi,

As far as I can recall, FM Radio should be already supported with Spirit radio app.

In the case it's somehow not working I'll have look on it as soon as I can.
[Galaxy Ace II Android Development] Mohammad Jebreeni:
[MENTION=5695278]ChronoMonochrome[/MENTION] Hey there :D Hope you're having a good day / night. Sorry in advance if my question has already been answered, but I couldn't find any answer: I'm using SergeyL's LOS 14.1 due to it being less sluggish than the LOS 15.1 (would like your opinion on that and what you think is the fastest, most gaming-friendly ROM around is atm), and I'd like to know what is the latest version of your kernel that I can use with it :)

Thanks in advance!

Update: So I tried flashing chrono_kernel_r5.9.1.zip and my phone got stuck at the Cyanogenmod (Lineage OS) logo boot screen and I have waited for more than 40 minutes :-/ Am I doing something wrong by flashing it after flashing the LOS 14.1? :?