yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace II Android Development] Farzin 073:
Hi . Tanx for this amazing kernel . I have an issue .. how 2 repart storages in twrp ?? Ace2nutzer has a repartion script work only in CMW .. For cm13+your kernel is there any way to increas data to 3gb and use only ex sd for other things ??
[Galaxy Ace II Android Development] ChronoMonochrome:
You can repart an internal strorage temporarily flashing to any kernel with CWM. I have a strong feeling it should also work from TWRP (at least repartition scripts from an original CWM reparted topic were working on TWRP 2.8.6.0), but I neither want to mess with the storage right now, nor I ask anyone to check it, so flashing those repartition scripts from CWM would be a safer option.

UPD. It actually won't work on a SergeyL's TWRP, as in this recovery some binaries (parted is a necessary binary for CWM Reparted script to work) were removed.
[Galaxy Ace II Android Development] Farzin 073:
Its too late lol ... I repated internal with ace2nutzer script on cm 13 sergeyl . Till now I don't have problems . I think its ok .

And using your latest kernel .

Just another issue : when I change cpu prformance in kenel app that won't apply and stay on its orgin.
[Galaxy Ace II Android Development] ChronoMonochrome:
New build is up!

Changelog

r5.2

forward port LK 3.0 power management subsystem drivers (improved battery life) *

reverted samsung changes to the wireless drivers

ext4: revert to kernel r4.8.2 release **

fixed an improper permissions of the kernel modules

compiled HID modules (in the case anyone has a HID device that is not working, one can place HID modules in autoload folder to get them loaded at the system boot)

* the Power Management subsystem has changed a lot in LK3.4. Whilst we don't have a proper handling of PM code in our legacy device drivers, it caused a noticeable battery drain instead of an improvements. So this change brings the PM code into what it was in LK 3.0.

** have noticed an instability with a generic android-3.4 code. Reboot the device in a rare cases causes the data corruption. Either it's again, due to an improper reboot (fs sync) handling in the device-specific drivers, or a bug in ext4 FS code, anyway reverting a couple of changes in EXT4 seems to do a trick.
[Galaxy Ace II Android Development] borkins:
I think I've got the mentioned data corruption today, after a sudden reboot (because of not enough memory).

I've made a nandroid TWRP backup, but it keeps the problem. Now I'm trying with TB to restore the apps from the TWRP backup.

Edit: Hmm, I have the same issue with the Wi-Fi on r5.2. :/
[Galaxy Ace II Android Development] ChronoMonochrome:
Can you check if this issue is present in the linked below builds?

http://www.xda.mister-freeze.eu/XDA-files/ChronoMonochrome/misc/chrono_kernel_r4.3.zip

http://www.xda.mister-freeze.eu/XDA-files/ChronoMonochrome/misc/chrono_kernel_r4.6.zip

I don't have r4.4 and r4.5 sources (the relevant tags were lost), so these are the closest ones to r4.5 build in which this bug presumably was introduced.

In the case this issue present in r4.6, can you also make some logs (dmesg & logcat)?

P.s. these builds don't have sdcardfs support, so after installation, the file /ramdisk/.use_sdcardfs needs to be manually removed.
[Galaxy Ace II Android Development] borkins:
No problem. I'll test these builds as soon as possible.

Currently I'm on r4.3, restored with an old TWRP backup.

So far, i didn't experience the issue, but I'll test it a little bit more (to be sure).

Edit: The problem appeared on r4.3 too. :/ I'll check the older builds to find on which one the problem occurs.

Edit 2: I've tested some of the builds from r3.0 to r4.2.9 and didn't got the issue.

Seems it appears with r4.3.
[Galaxy Ace II Android Development] Farzin 073:
Hi , I have 2 problems with your kernel .

1-when I grant root access to choronokernel app device become very laggy and camera won't work anymore .

2-when I make change sth in kernel app .. for ex.. cpu freq changes won't save and after i close the app .

P.s : using cm13 sergeyl +r5.1 ...
[Galaxy Ace II Android Development] ChronoMonochrome:
1. I don't use it, but I haven't heard of this issue so far. Can you check the box "Show CPU usage" in the developer settings when you grant root permissions to CK app?

2. Noted it - the ramdisk for CM13 that is currently used seems to be outdated. As a temprorary fix, use this init.d script:

busybox chmod 0666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
busybox chmod 0666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
[Galaxy Ace II Android Development] Farzin 073:
Sorry . I cant find init.d . Where it is ??

And for ex i want set max freq on 1200MH how i write this command ??
[Galaxy Ace II Android Development] ChronoMonochrome:
/system/etc/init.d - google more about init.d scripts.

Just use CK app (or similar app that can save CPU freq across reboot) to set the required CPU freq.
[Galaxy Ace II Android Development] Farzin 073:
I use ck app and when i change sth about cpu it wont save and remain on stock .
[Galaxy Ace II Android Development] ChronoMonochrome:
New build is UP!

Changelog

r5.3

update to Linux Kernel 3.4.113

fixed an improper device partitions unmount upon reboot

ab8500 charger drivers updates from LK3.4

updated PM subsystem again to LK3.4 *

added a new powersuspend module (credits to [MENTION=3332811]faux123[/MENTION] and [MENTION=2033478]Yank555[/MENTION]), for the better battery life in an idle

update EXT4 filesystem back to LK 3.4

update CM13 bootscripts

various minor fixes

* This change is still currently testing - please let me know if you notice an unusual battery charge drain in a deepsleep!

Enjoy!
[Galaxy Ace II Android Development] msq2:
Can you hide internal memory like in a2n kernel?
[Galaxy Ace II Android Development] ChronoMonochrome:
You can do so by turning off the parameter use_intsdcard in /ramdisk/fstab_specs.txt:

use_intsdcard=0

Then flash the kernel to take changes into effect.
[Galaxy Ace II Android Development] ChronoMonochrome:
Update

New build r5.3.1 is up!

Changelog

r5.3.1

improved battery life in suspend (enabled some missing PM configs)

cpuidle: switch to the mainline UX500 driver and update to LK3.4

zram: updates from android kernel 4.9

added optimized version of int_sqrt function (credits to [MENTION=3329816]mkaluza[/MENTION]) *

TWRP: fixed adb not working on some Windows hosts **

* This function is often used by the CPUidle driver to estimate the guessed time spent in idle, optimizing it hence optimizes cpuidle work.

** TWRP was setting an improper USB vendor device ID thus some Windows hosts couldn't use ADB driver. Setting the proper vendor ID seems to fix it.

Enjoy!
[Galaxy Ace II Android Development] AkosPaha:
Hi [MENTION=5695278]ChronoMonochrome[/MENTION]!

How to install your kernel ?

I used ace2nutzer kernel.
[Galaxy Ace II Android Development] ChronoMonochrome:
@up, you can just directly flash the latest CK build over existing A2N kernel installation. In the case you have encountered problems with the installation (if any), flash odin kernel (from OP), then the downloaded CK build. Don't forget to remove A2N kernel control app and init.d scripts (that are specific to A2N kernel) before to proceed the installatiobn.
[Galaxy Ace II Android Development] ChronoMonochrome:
New build is up!

A new fixup release r5.3.2 is out.

Changelog

r5.3.2

fixed kexec broken by update to LK3.4

reverted ABB charger changes *

* the newly ported driver from mainline appeared to work buggy, in some places (due to porting issues).

This update reverted this driver to an older one from stock.

Enjoy!
[Galaxy Ace II Android Development] Dagalur:
[MENTION=5695278]ChronoMonochrome[/MENTION] hello, i'm using your kernel with ace2nutzer cm11 rom and partition but when i try to offline charge it turn on and boot the os, is there a problem or your kernel doesn't support offline charging?
[Galaxy Ace II Android Development] ChronoMonochrome:
Sounds weird, it works for me on 6.0.1, though I really don't remember if kernel has the proper ramdisk for 4.4.4 with offline charging fixed. Will see if I can fix it by updating ramdisk but I would need some assistance as I don't use 4.4.4 ROMs.
[Galaxy Ace II Android Development] ace2nutzer:
offline charging never worked for me every time i tried to use twrp.
[Galaxy Ace II Android Development] ChronoMonochrome:
But it works here without a problems with 6.0.1 and TWRP 3.1.1. I think I've got a better solution - just to use the same charger binary + *.rc file regardless of OS version, instead of shipping it in each OS ramdisk having to fix it everywhere. This way I can test it on 6.0.1 and be sure it works also on whatever OS version.
[Galaxy Ace II Android Development] ChronoMonochrome:
New release r5.4 is up!

Changelog

r5.4

fixed the battery percentage being not shown in LPM mode

zRAM: revert to previous implementation (LK 3.16)

Fixed performance regression (testing)

PLLDDR OC: moved and built as a separate module*

Rework CWM-bootloop fix

* done in a portability reasons. The corresponding sysfs interface was moved to /sys/kernel/pllddr/pllddr - for those who use PLLDDR OC, add module pllddr.ko to /system/lib/modules/autoload directory and change the path to the sysfs interface if you use scripts to overclock PLLDDR.

Enjoy!
[Galaxy Ace II Android Development] borkins:
[MENTION=5695278]ChronoMonochrome[/MENTION],

I have problems with the Wi-Fi since the r4.3, can you revert the changes to r4.2.9, if they are not important.

It's strange that no one else has such problems, but my Wi-Fi loosing the Internet after some time,

and I must re-enable it to work again (I cannot rely on it).

But everything is fine on r4.2.9 and older.
[Galaxy Ace II Android Development] ChronoMonochrome:
Of course I can try, but are you sure that r4.3 is first build that has this issue?

Reverting those changes from r4.2.8 (the closest to r4.2.9 git tag I have) to r4.3 isn't very straightforward, because they were merged fairly long enough time ago. I've uploaded a test build with reverted changes from r4.2.8...r4.3 (install only over existing r5.4 installation). Not sure it will work fully stably as there was almost no way to revert these changes in a clean way.
[Galaxy Ace II Android Development] borkins:
Yes, I'm sure that the problem comes with r4.3. And I've tested r4.2.9 for a very long time to be sure.

Thank you very much! I'll install first the r5.4 build and then this test build.
[Galaxy Ace II Android Development] :
Bluetooth doesn't work for me when using this kernel.

Anyone tryed undervolting? If yes then please give me the table of undervolting with every CPU steps. :)
[Galaxy Ace II Android Development] ChronoMonochrome:
How exactly did you find that bluetooth is not working?

Is it that it can't be enabled at all, or it gives error when you enable it or send/receive a file? Please provide logs (dmesg and logcat).

You can't use an undervolting table from another phone. Each phone's CPU quality vastly differs, so using one voltages on another phone won't work stably in 99% cases. If you're willing try undervolting, you'll likely have to experiment by yourself. There's an article written by [MENTION=3329816]mkaluza[/MENTION], a good point to start from.
[Galaxy Ace II Android Development] borkins:
Hmm, the issue appeared a few times. What else can be? :/

I'll check r4.2.8 again (but I'm sure that the latest without that issue is r4.2.9 and the older builds are fine).

[MENTION=6973536]bien2004[/MENTION],

You can try to test undervolting with this script here.

It's a little painful, but it's not very hard to use.
[Galaxy Ace II Android Development] :
When I turn on Bluetooth, it instantly turn off and on indefinitely. The only way to exit out of this trouble is flashing another kernel.

I am busy, so I can't post log now.

I am busy, so I can't do each step for that long time.

But I will still try.
[Galaxy Ace II Android Development] ChronoMonochrome:
Which ROM are you using?

If you don't have time to check which voltage can be set for the each step (separately, i.e. undervolting ONLY one step at a time), you can follow some of the next hints:

1) Try first to determine which voltage can be handled at the lowest clocks (200, 400 MHz). You might want do it in the first order if phone is idling most of the time.

2) Instead of undervolting each step one by one, you can try undervolting a several steps at a time. But be sure to decrease the voltage by a reasonable value, e.g. 25 mV or 50 mV (don't try 100 mV and higher). This won't give you maximum possible undervolting immediately, and if you encounter any instabilities, you have to increase voltage for all the steps you have undervolted and try again.

3) It might be not reasonable to touch steps higher than 800 Mhz. The reason is simple, most of CPUs only works with a such frequencies only at the highest possible voltage, decreasing it, will, in the most cases, only hurt stability of CPU overclock. So you only need to determine a lowest voltage for 200, 400, 600 and 800 MHz steps - prioritize them with the regard to CPU freq usage.
[Galaxy Ace II Android Development] :
I am using CM11 from ace2nutzer. But with OmniROM 5.1.1 it still appears. On 6.0 and up this problem doesn't appears.

Ok. Thanks for your hints!
[Galaxy Ace II Android Development] Pdevo:
[MENTION=5695278]ChronoMonochrome[/MENTION] is there a future possibility someone can try an implementation of this updated kernel for S Advance?

Thank you very much
[Galaxy Ace II Android Development] ChronoMonochrome:
If there are testers that debug kernel (e.g. post logs) in the case it's not booting - I'm willing to try.
[Galaxy Ace II Android Development] Pdevo:
Chrono, I will be glad to test and post whatever you need
[Galaxy Ace II Android Development] ChronoMonochrome:
Try the following build:

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

Note that if recovery mode won't work, you have to flash a stock kernel via odin. After you do so, post last_kmsg log - for details on how to do so refer to https://xdaforums.com/showpost.php?p=64043477&postcount=2 .
[Galaxy Ace II Android Development] Pdevo:
Just flashed test build, doesn't boot, just can't go past initial samsung logo screen, but recovery went updated and working well.

This let me to take logs from file manager, hope it's just fine:

https://www.dropbox.com/sh/01k58f7tuefo5ru/AAAp8WaTp7YSi88kky2hDK98a?dl=0
[Galaxy Ace II Android Development] ChronoMonochrome:
Nice! It's normal that kernel doesn't boot into system cause of an incompatible ramdisk (I just took one for 5.1.1 omni provided by [MENTION=4881398]PolishVodka[/MENTION]). What the ROM are using, btw? Now the next step is to test an universal kernel installer.
[Galaxy Ace II Android Development] Pdevo:
I am using a 4.1 stock rom modded by me, running about two years now with a PolishVodka kernel

EDIT:

Effectively, I would from start say what rom were using
[Galaxy Ace II Android Development] ChronoMonochrome:
Can you post a link to this kernel? I'll extract ramdisk from it for testing in this build.
[Galaxy Ace II Android Development] Pdevo:
[MENTION=5695278]ChronoMonochrome[/MENTION]

I am not able at all to find back the place where was posted, I need to find out along threads, but I can by now upload for you flashable zip, if can be of use
[Galaxy Ace II Android Development] ChronoMonochrome:
Yep, you can even dump /dev/block/mmcblk0p15 parition and post dump here. I only need kernel image.
[Galaxy Ace II Android Development] Pdevo:
Ok, here you are also uploaded image and flashable zip, in case:

https://www.dropbox.com/sh/01k58f7tuefo5ru/AAAp8WaTp7YSi88kky2hDK98a?dl=0
[Galaxy Ace II Android Development] ChronoMonochrome:
Uploaded a new build, now with an installer: http://xda.mister-freeze.eu/XDA-files/ChronoMonochrome/misc/chrono_kernel_r5.4-janice.zip

Can't be sure 100% that stock 4.1.2 will work cause it was untested even on codina in a fairly long time. Only added ramdisk from kernel image above, the rest ramdisks are stubs, can add more ramdisks later.
[Galaxy Ace II Android Development] sm_adil:
Thanks Chrono,

As for the ramdisk have a look at mkaluza's builds, he made unified kernel from jb till lollipop

https://github.com/mkaluza/Samsung_STE_Kernel/blob/master/usr/u8500_initramfs_files/init
[Galaxy Ace II Android Development] ChronoMonochrome:
Yup, I'm aware of these ramdisks, though it would be nice to know if the installer itself works on this device.

Btw, I've reloaded release above as I forgot to update assert line in updater-script. Let me know when you install & test that release.
[Galaxy Ace II Android Development] Pdevo:
Ok! everything went fine, phone booted and is working, need some time to test.

First thing I have noticed is about display colours and brightness, that seem different from before, like a bit greyed/obfuscated.

Second aspect is bluetooth, that doesn't turn on.
[Galaxy Ace II Android Development] ChronoMonochrome:
Good to know it's working!

That might be a matter of a display drivers, will update soon those from mkaluza's kernel.

Ok, can you post logcat / dmesg?
[Galaxy Ace II Android Development] sm_adil:
It didn't boot though still stays on splash screen and reboots again!!!

Yet recovery is working fine

Actually I'm on KitKat or did I miss something??

Here's the last_kmsg hope its correct
[Galaxy Ace II Android Development] Pdevo:
For sure!

https://pastebin.com/nwYCNvuP
[Galaxy Ace II Android Development] ChronoMonochrome:
Read a few messages up - no support for 4.4.x yet. You can however test it following way - download CM11 ramdisk https://github.com/mkaluza/mk_kernel-plugins/blob/master/ramdisks/out/cm-11.0.cpio.gz and rename as boot.cpio.gz. In recovery put this file to /ramdisk and reboot.

UPD. also remove /ramdisk/boot.cpio if exists.

Can't seem to find anything interesting in dmesg, please also post logcat.
[Galaxy Ace II Android Development] Pdevo:
Here the logcat [MENTION=5695278]ChronoMonochrome[/MENTION]!

Sorry for the inconvenience of that many log messages concerning the media scenner, I did this after boot time
[Galaxy Ace II Android Development] Pdevo:
Here you are [MENTION=5695278]ChronoMonochrome[/MENTION]!

Sorry for the inconvenience of that too many messages concerning media scenner, I did this just after boot

EDIT: Got a connection error, but message seems to have been delivered, sorry for triple posting
[Galaxy Ace II Android Development] sm_adil:
[MENTION=5695278]ChronoMonochrome[/MENTION]

Actually accidentally i've restored stock Rom so im back on stock Rom and I tried the chrono kernel

The phone booted and yaa even i've observed same bug as Pdevo

One more thing reboot to recovery fails I only tried once to boot into recovery from Rom and faced bootloop

Eventually i had to restore stock kernel..

In attachment i've uploaded logcat, dmsg and last_kmsg(this was before the boot loop)

Edit: Second log is from stock kernel(after bootloop)
[Galaxy Ace II Android Development] :
I installed LineageOS (Android 7.1.2) from 4PDA. Can I install your new kernel too? Because that ROM have r3.1 one :(
[Galaxy Ace II Android Development] ChuckMichael:
Last Lineage (20170718) have lastest kernel inside.
[Galaxy Ace II Android Development] :
Oh may be I installed boot.img for swapping purpose... so the kernel changed too...

Hey ChronoMonochrome, how can you add 100MHz CPU speed? Can you show me how to do that?
[Galaxy Ace II Android Development] ace2nutzer:
100Mhz is too low, it can't hold this freq in idle ....

150Mhz is OK.
[Galaxy Ace II Android Development] ChronoMonochrome:
Sry guys, was busy latest days. If someone wants to help me fixing Bluetooth bug, one can try track down kernel version where this bug appeared. I don't currently have time to flash 4.4.x ROM to check it. If this bug appears on janice as well as on codina, then it's for sure a kernel bug. Will compile a janice universal build when I have time.

[MENTION=6973536]bien2004[/MENTION], makes no sense. 100 MHz is too low for this phone plus it won't give any additional power saving over 200 MHz freq. An optimal minimal CPU freq is about 200 MHz (which is already a minimum CPU freq in these builds).

Can you attach some installation logs?

They are still should remain on a phone unless you flashed three-part stock ROM. Type this in adb / terminal:

There should be files last_boot.txt and last_kernel_install.txt
[Galaxy Ace II Android Development] :
I tried on ace2nutzer's CM11, pure CM11 and even OmniROM 5.1.1. All they have Bluetooth problem. And with stock 4.1.2, bluetooth can't even turn on. But on CM13 and up this problem gone:confused:

Ok, maybe I will use 150MHz instead of 100MHz.
[Galaxy Ace II Android Development] danny19901:
Just normal file system like in CM kernels and I believe same as zwliew kernel just I don't see much difference between EXT 4 & F2FS kernels although my partitions have became more odd since using in normal format when I swap internal with external it shows my SD card as main storage for saving files and when moving apps but since changing to both EXT4 and F2FS when swapped apps will only show as going to internal not SD

This is with everything EXT4 except my SD Card but before on normal format it would show moving apps to SD card with more memory
[Galaxy Ace II Android Development] fluffi444:
You are writing about "normal" format or normal FileSystem (FS) al the time but EXT4 is THE normal one....

3 106MB 748MB 642MB ext4 SYSTEM
5 748MB 2056MB 1309MB ext4 DATAFS
4 2056MB 2377MB 321MB ext4 CACHEFS
9 2377MB 2713MB 336MB ext4 HIDDEN
11 2713MB 2765MB 52,4MB Fota
8 2765MB 3949MB 1184MB fat32 UMS

If there is an problem it's not because of the filesystem (especially not for EXT4) but may be because of "other" kernel settings which are different to stock kernel settings...
[Galaxy Ace II Android Development] danny19901:
Ah OK I just started having the issue after updating past the earliest update with no EXT4 or F2FS I don't know why I have been having these problems but storage space is odd and sometimes phone won't move apps at all when using either EXT4 or F2FS so I'm reverting to other kernels for now

Which is a real shame as they where really smooth
[Galaxy Ace II Android Development] fluffi444:
Today in the morning - After Phone was at charger the whole night - I pulled the charger from Phone and seconds later (wanted to check time) the Phone made blackscreen and was freezed.... 1-2 mins later Phone does a hot reboot by itself....

For some reason Govenour was now "PegasusQ" - And not "Interactive" as it was before....

Before this the Phone was on for more than 40 hours. But this "Over Night Full Charge" mixed-up something...

last_kmsg and logcat right after this hot rebbot is attached...
[Galaxy Ace II Android Development] zizoumadrid:
when i reflash my phone via odin to stock rom 4.1.2

all as happen as normal in odin but when my phone reboot i don't get first setup

just boot to lockscreen like it's just reboot not reflash !

(i do that because i'm lost my signal stay no service i'm trying my sim in another phone work normally)

someone can help me ! thank's
[Galaxy Ace II Android Development] fluffi444:
How to go back from Custom ROM to Stock:

http://xdaforums.com/showpost.php?p=53921158&postcount=8
[Galaxy Ace II Android Development] ChronoMonochrome:
According to log, memory management is very poor. Looks like some system processes was killed and then phone restarted.
[Galaxy Ace II Android Development] fluffi444:
Maybe I should mention that I use Greenify app... Maybe this closes processes?!
[Galaxy Ace II Android Development] manthes:
A request for one and only build with twrp for 4.2 roms
[Galaxy Ace II Android Development] sorset:
I've installed cm11_codina_kernel_18082014_ext4_cwm.zip on TeamCanjica cm-11-20140807-UNOFFICIAL-codina , but stocks on cyanogenmod logo and won't boot.
[Galaxy Ace II Android Development] The wsx:
can i flash 4.1.2 kernel over stock 4.1.2 rom?

-Yes, it is. Let's try and see the difference from stock :)

Mmmm something goes wrong. Phone freezes then everything gets black. Screen goes off , nothing respond. ı'm reflashing stock rom. I'm a noob , maybe i shouldn't try, before learning something about kernel :D