yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 Mini Android Development] o0chtm0o:
Thank you. I hope you publish it. That's what we were waiting for! :good:
[Galaxy S 4 Mini Android Development] alexax66:
ОК!
[Galaxy S 4 Mini Android Development] unit999cn:
Best kernel!!!Best kernel!!!Best kernel!!!Best kernel!!!
[Galaxy S 4 Mini Android Development] unit999cn:
Cifs and F2FS will in? :)

Thanks for the Cool Man [MENTION=5925090]alexax66[/MENTION] and [MENTION=5165116]denon480[/MENTION]!!!
[Galaxy S 4 Mini Android Development] alexax66:
yes
[Galaxy S 4 Mini Android Development] unit999cn:
God damn! Happiness come so fast! :)
[Galaxy S 4 Mini Android Development] Loulou-13:
It's strange that this kernel is not "more" known !!! :p

He is a "pure jewel" for our stocks (officials KK , ste ploiki , N5 four mini , S6 lollipop project) !!! :D

Best battery-life and performance ,it's a very good "update" of Silviu kernel ... :p
[Galaxy S 4 Mini Android Development] o0chtm0o:
Hi Alex. How is it going? Any good news about next release? :fingers-crossed:

Thanks for your time and effort on this proyect
[Galaxy S 4 Mini Android Development] alexax66:
I will release new version very soon
[Galaxy S 4 Mini Android Development] o0chtm0o:
Thank you Alex. Those are good news :good: :victory:
[Galaxy S 4 Mini Android Development] silenth86:
Hi someone tell me how cofigure kernel for good battery and performance? I used tjese kernel on N5 rom.
[Galaxy S 4 Mini Android Development] ladislav.heller:
This kernel works only with stock NK5 or also with later releases like OC2 or OG1 ?
[Galaxy S 4 Mini Android Development] denon480:
With any kk stock rom
[Galaxy S 4 Mini Android Development] ladislav.heller:
Yes, now I see!

Thanks for this kernel, [MENTION=5925090]alexax66[/MENTION] !
[Galaxy S 4 Mini Android Development] o0chtm0o:
OMG! I can't wait till next release...! :eek:

I'm counting days and hours... I'm gonna get sick :silly:
[Galaxy S 4 Mini Android Development] azoga:
Hi guys

my phone GT-I9192

I used Russian rom for device

but mywifi not work

[IMG="http://store2.up-00.com/2015-09/1441326685781.png"]http://store2.up-00.com/2015-09/1441326685781.png[/IMG]

[IMG="http://store2.up-00.com/2015-09/1441326685882.png"]http://store2.up-00.com/2015-09/1441326685882.png[/IMG]

[IMG="http://store2.up-00.com/2015-09/1441326685993.png"]http://store2.up-00.com/2015-09/1441326685993.png[/IMG]

Please, what is the solution ؟
[Galaxy S 4 Mini Android Development] alexax66:
I made new betta version, but don't test it

You or anybody can test these versions:

I9190_Custom-Kernel-KitKat-NK5-ALX-0.1.0

I9192_Custom-Kernel-KitKat-NK5-ALX-0.1.0

I9195_Custom-Kernel-KitKat-NK5-ALX-0.1.0

Changelog:

- Motorola MSM memcopy enhancements (memutils) to improve of the memory subsystem performance

- KSM (Kernel SamePage Merging)

- Timer slack subsystem

- Speedup late resume patch for faster wakeup of the device

- F2FS support

- Automatic detection the filesystems type (ext4 or f2fs) for system, data and cache

How enable KSM :

property:ro.config.ksm=true

How enable Timer Slack Controller:

ro.config.timer_slack=true
[Galaxy S 4 Mini Android Development] ladislav.heller:
How to change partitions to F2FS ? Anybody tried?

---------- Post added at 01:16 PM ---------- Previous post was at 01:08 PM ----------

With 0.1.0 version my device doesn't boot, freezes at Samsung logo.

Now I'm again on 0.0.9.
[Galaxy S 4 Mini Android Development] azoga:
There is no one to answer
[Galaxy S 4 Mini Android Development] o0chtm0o:
Did you try more than once my friend? I was exited to try this upd :( :( :(
[Galaxy S 4 Mini Android Development] alexax66:
Try to install this kernel:
[Galaxy S 4 Mini Android Development] alexax66:
ОК!

I will fix it
[Galaxy S 4 Mini Android Development] o0chtm0o:
Thank you Alex. I'm glad you're working on this :good:

EDIT: Could you add the lines to make private mode work?
[Galaxy S 4 Mini Android Development] ladislav.heller:
Tried only once and wait more than 5 minutes for device to boot but nothing happened.
[Galaxy S 4 Mini Android Development] o0chtm0o:
Well, lets wait a little until Alex fix it :o :fingers-crossed:

EDIT: I tried too... Same results
[Galaxy S 4 Mini Android Development] o0chtm0o:
Broth, If I install the Kernel Adiutor, choose my gob, make my configs, and then uninstall the app... Will it keep that config I made or I will lose it when I restart??
[MENTION=5925090]alexax66[/MENTION]
[Galaxy S 4 Mini Android Development] sasank360:
I think the config will be lost. It happened to me with no frills and performance control apps.

Did not try kernel adiutor though...

NOTE :: Is anyone facing random freezes with this kernel ? I am using stock deodexed NH5 rom on I9195.

It runs fine on NK5 deodexed rom... but with any other rom base i face lags and freezes..
[Galaxy S 4 Mini Android Development] o0chtm0o:
I faced lags and freezes when I restart after flash, but when I configured the gobernator and all settings, it works like a charm.

I just have a couple of hours using it, so... Not much to see hehehe

EDIT: By the way, I'm on N5 FOUR MINI rom (based on CNG1), my baseband is I9195UBUCOE1. Everything works pretty fast till now
[Galaxy S 4 Mini Android Development] Loulou-13:
Seem work fine for me ... i'm with the last "open/european" firmware (German DBT ) :o

Why nh5 ??? There are many updates after that...no?! :confused:
[Galaxy S 4 Mini Android Development] ladislav.heller:
0.0.9 works with OC2 without problems.
[Galaxy S 4 Mini Android Development] azoga:
not work man :crying::crying::crying:
[Galaxy S 4 Mini Android Development] o0chtm0o:
Hi...

Emmm... Any advance my friend??

I can't understand why 0.1.0 doesn't work if you were testing it and it was OK... :confused: :(
[Galaxy S 4 Mini Android Development] alexax66:
I can't test last kernel for stock because my friend [MENTION=5165116]denon480[/MENTION] sold his mobile I9190 and I use cyanogenmode.

Over the past two days I have to repair my computer , and I can get back to work on the kernel

Soon to be fixed kernel ;)
[Galaxy S 4 Mini Android Development] o0chtm0o:
Thanks God my friend. I think lots of people will be happy to help you testing this kernel. You just have to ask for some people who are available for this purpose ;)
[Galaxy S 4 Mini Android Development] ladislav.heller:
You can pm me anytime, if there's something new to test for GT-I9195 variant.
[Galaxy S 4 Mini Android Development] o0chtm0o:
There you go my friend [MENTION=5925090]alexax66[/MENTION]

Now you've 1 volunteer for 9195 :good:

I've a little more drain in battery with this kernel in comparison with Silviu's one.

Is that normal??? I'm with SmartMax, is there any "ideal" configuration???

Btw, what's the default settings in your kernel? (Governor, Scheduler)

Thanks a lot
[Galaxy S 4 Mini Android Development] Loulou-13:
Hi everybody !

Wath is your governor and scheduler ????

It's hard to choose ,for a best battery life...but without impact the performance..
[Galaxy S 4 Mini Android Development] ztoldy:
Hi,

Here is a very good interpretation: link
[Galaxy S 4 Mini Android Development] o0chtm0o:
This is the complete article/guide Link
[Galaxy S 4 Mini Android Development] Loulou-13:
Thank ;)

I know this topic ...and it's too hard to choose the best balanced "battery/nice perf"... not for "big" gaming ,but just smooth without lagg ....and princpaly the best for the battery.... :rolleyes:
[Galaxy S 4 Mini Android Development] o0chtm0o:
You can get it just in your own experience, testing, testing, modifying, testing, testing... That's the only way to get what you're looking for ;)
[Galaxy S 4 Mini Android Development] denon480:
My favorite was smartmax with i/o noop fast, and not bad safe battery.
[Galaxy S 4 Mini Android Development] o0chtm0o:
Deenooooooooonnnnnnnnnnnnn!! What happened to you?! :( :( :(

Why did you sell your phone?? :( You started this and now you leave us behind :( :(
[Galaxy S 4 Mini Android Development] denon480:
Yep, sry, i buy motorola
[Galaxy S 4 Mini Android Development] o0chtm0o:
Now your friend Alexax can't test the progress in this project and it could be abandoned :( :(
[Galaxy S 4 Mini Android Development] RuffBuster:
G 2015? Enjoying the move?
[Galaxy S 4 Mini Android Development] RuffBuster:
[MENTION=5925090]alexax66[/MENTION] Long as there is a very low risk of bricking my precious phone I'd gladly be a tester. Don't think I'll ever move from stock based ROMS on this device.
[Galaxy S 4 Mini Android Development] ladislav.heller:
Hi!

Is the development of this kernel also discontinued?
[Galaxy S 4 Mini Android Development] RuffBuster:
Wait and see... Dev did say his computer was down.
[Galaxy S 4 Mini Android Development] Boombastical:
May I ask all of users who already use 0.9 version if this is a stable kernel and good for everyday use, or is there still „space“ to improve, but then much more on this kernel in the next release ? Thanks in advance !
[Galaxy S 4 Mini Android Development] alexax66:
I come back :) and made new release ALX-0.1.0

Downloads

Changelog:

- Motorola MSM memcopy enhancements (memutils) to improve of the memory subsystem performance

- KSM (Kernel SamePage Merging)

- Timer slack subsystem

- Speedup late resume patch for faster wakeup of the device

- F2FS support

- NTFS support with full read/write access

- Automatic detection the filesystems type (ext4 or f2fs) for system, data and cache (Bug of booting)

How enable KSM :

ro.config.ksm=true

How enable Timer Slack Controller:

ro.config.timer_slack=true

I don't test it!!!!

Please let me know about any bugs.
[Galaxy S 4 Mini Android Development] o0chtm0o:
YEEEEESSSSSS!!!! FINALLYYYYYYYYYY!!! :victory: :victory:

Testing... Better performance for the momment.

Thankssssssssssssss!!!! :highfive: :good:
[Galaxy S 4 Mini Android Development] holymoz:
testing, how can I know if timer slack is working? for ksm I just open the files in sys\kernel\mm to see if they are written.
[Galaxy S 4 Mini Android Development] holymoz:
can I use this shell commands to change hotplugs instead of an app?

For Intelli-Plug

echo "0/1" > /sys/module/intelli_plug/parameters/intelli_plug_active

echo "0/1" > /sys/module/intelli_plug/parameters/eco_mode_active

For Qualcomm's MPDecision

start mpdecision

stop mpdecision
[Galaxy S 4 Mini Android Development] alexax66:
Setup Timer slack is implemented in the script /sbin/timer_slack, but you can adjust it

The timer slack controller provides two files:

mount -t cgroup -o timer_slack none /sys/fs/cgroup/timer_slack
ls /sys/fs/cgroup/timer_slack.*
/sys/fs/cgroup/timer_slack/timer_slack.effective_slack_ns
/sys/fs/cgroup/timer_slack/timer_slack.min_slack_ns

By default timer_slack.min_slack_ns set to 0:

cat /sys/fs/cgroup/timer_slack/timer_slack.min_slack_ns
0

You can set it to some value:

echo 50000 > /sys/fs/cgroup/timer_slack/timer_slack.min_slack_ns
cat /sys/fs/cgroup/timer_slack/timer_slack.min_slack_ns
50000

Additionally timer slack controller supports hierarchical groups.

mkdir /sys/fs/cgroup/timer_slack/any_name
cat /sys/fs/cgroup/timer_slack/any_name/timer_slack.min_slack_ns
50000
echo 70000 > /sys/fs/cgroup/timer_slack/any_name/timer_slack.min_slack_ns
cat /sys/fs/cgroup/timer_slack/any_name/timer_slack.min_slack_ns
70000

You can set any value you want, but effective value will the highest value up by hierarchy.

You can see effective timer slack value for the cgroup from timer_slack.effective_slack_ns file:

cat /sys/fs/cgroup/timer_slack/any_name/timer_slack.effective_slack_ns
70000
echo 100000 > /sys/fs/cgroup/timer_slack/timer_slack.min_slack_ns
cat /sys/fs/cgroup/a/timer_slack.min_slack_ns
70000
cat /sys/fs/cgroup/timer_slack/any_name/timer_slack.effective_slack_ns
100000

There is aslo Dynamic management of the minimal timer slack value

This feature provides another file in addition to the above files:

/sys/fs/cgroup/timer_slack/timer_slack.min_slack_suspend_ns

By default timer_slack.min_slack_suspend_ns is 0:

cat /sys/fs/cgroup/timer_slack.min_slack_suspend_ns
0

You can set it to some value that will be used when the system has been suspended:

echo 100000 > /sys/fs/cgroup/timer_slack/timer_slack.min_slack_suspend_ns
cat /sys/fs/cgroup/timer_slack/timer_slack.min_slack_suspend_ns
100000

Instead when the system is active it will use the timer_slack.min_slack_ns.

Yes, you can do it and better use http://xdaforums.com/android/apps-games/app-kernel-adiutor-t2986129
[Galaxy S 4 Mini Android Development] holymoz:
interesting, thanks.

I know about kernel auditor but I want to do some tests before installing it, that app has other feature that I already use with other apps and scripts so I must check phone behaviour first of massive changings.

a question, did you think to enabling ksm is good? our phone has enough ram for every use, ksm frees up much ram but costs cpu usage/load/battery.

anyway for now I'm on intelliactive,fiops,timerslacks,189-1728 range without voltage editing and is very snappy with good battery use.

still have to test intelliplug and f2fs
[Galaxy S 4 Mini Android Development] RuffBuster:
Testing your 010 version for the next few days against V4 by Silviumik. So far it's definitely on par if not slightly snappier which I'm quite happy about. But still early.

Using stock settings provided by the kernel with INIT.D support, Timer Slack Controller, KSM and intelliplug.

Not sure INIT.D support is working though after 2 boots since flashing my INIT.D testing script doesn't seem to have activated. Usually it creates a test.log within root/data folder. Though may need another reboot which I don't want to do just yet while I test battery performance.

Many many thanks for your efforts thus far as I understand you don't own this device and your original target was a friend of yours who also now doesn't own the device. Big respect for that. This is something S4 Mini needed for us stock heads.

After a full battery cycle I'll move on to test some of the other features.
[Galaxy S 4 Mini Android Development] holymoz:
init.d doesn't work for me too, I use universal init.d app on store
[Galaxy S 4 Mini Android Development] alexax66:
Yes, KSM don't needed always

I think that KSM will be useful for heavy apps, or when you want to run at the same time many copies of the application (Chrome and etc)

I test UKSM on CM12.1 and haven't big battery drain.

I don't know how KSM will work on stock roms.

About f2fs:

Stock roms haven't any resources (fsck, mkfs and etc) for f2fs and don't check when booting any partitions (system, data, cache) in this format. Therefore better use it as 2nd partition on sd-card (for exp. Link2SD) that would not lose data

I will try fix it

OK. I'm waiting for the results

I am the owner I9192 but use CM12.1
[Galaxy S 4 Mini Android Development] holymoz:
ok thanks, so better not make f2fs conversion for now :good:

thank a lot for your work on this stock kernel, many use aosp roms but I don't know why but stock rom is better for me:silly:
[Galaxy S 4 Mini Android Development] alexax66:
And more about init.d:

To enable it need to add in build.prop next:

ro.config.sysinit=true
[Galaxy S 4 Mini Android Development] holymoz:
yes already did, I'll check better tomorrow, can't restart whike testing battery stats
[Galaxy S 4 Mini Android Development] RuffBuster:
Same here. Added after first boot.
[Galaxy S 4 Mini Android Development] holymoz:
Two problems

1.Stock samsung email app can't download attachments, a toast message says insufficient memory.

2.the timer slack folder doesn't contain the needed files, only a memory folder

So don't know if timer slack is working
[Galaxy S 4 Mini Android Development] alexax66:
1.It's very strongly. I thing that is bug of memutils

2. Check is there bosybox in /sbin folder (sorry not /xbin)
[Galaxy S 4 Mini Android Development] holymoz:
There is a busybox file in sbin folder, but I already have busybox app installed in system/xbin
[Galaxy S 4 Mini Android Development] alexax66:
ОК!

Try run /sbin/timer_slack and see what happen in /sys/fs/cgroup
[Galaxy S 4 Mini Android Development] holymoz:
Thanks for the answer

Anyway doesn't work, I executed /sbin/timer_slack as .sh but no file was created in cgroup.

I tried to call the script from /system/xbin like an init.d but no work.

Seems script can't create anything in cgroup.

Just for try I executed

mkdir /sys/fs/cgroup/a

Terminal says failed...file exists.

Anyway confirm that this is the script in /sbin/timer_slack

#!/sbin/sh

mount -t cgroup -o timer_slack none /sys/fs/cgroup

echo 50000 > /sys/fs/cgroup/timer_slack.min_slack_ns

mkdir /sys/fs/cgroup/a

echo 70000 > /sys/fs/cgroup/a/timer_slack.min_slack_ns

echo 100000 > /sys/fs/cgroup/timer_slack.min_slack_suspend_ns
[Galaxy S 4 Mini Android Development] alexax66:
Make

ls /sys/fs/cgroup

and send me what do you see
[Galaxy S 4 Mini Android Development] RuffBuster:
Ran this thru terminal emulator and it gives "memory".
[Galaxy S 4 Mini Android Development] alexax66:
OK.

I will fix it
[Galaxy S 4 Mini Android Development] holymoz:
confirmed, only memory folder.

the "insufficient memory" for the attachment download for secemail doesn't affect aquamail but I will be glad if alex can fix it.

I read that alex does not even got this phone, he is a very patient man and have all my appreciation :good:
[Galaxy S 4 Mini Android Development] alexax66:
Send me logcat after appear "insufficient memory"
[Galaxy S 4 Mini Android Development] holymoz:
problems with logcat from adb "adb logcat" says waiting device.

adb devices returns only the shell prompt#

used catlog app, attached log, I made the log as fast as I can (I tried to download attachment and then immediately stopped the log, about 5 seconds)
[Galaxy S 4 Mini Android Development] alexax66:
ОК!

P.S. I didn't find any errors message about "insufficient memory" in catlog

Tell me if this bug will be appear again with new kernel versions
[Galaxy S 4 Mini Android Development] alexax66:
New version ALX-0.1.1 is released

Changelog:

1. Fix Timer Slack initialisation (click for more details)

2. New LowMemoryKiller with management of not killable processes (click for more details)

3. Fast Charge support (default disabled, click for more details)

4. New bootlogo

Download

I don't test it!!!

Please let me know about any bugs.

P.S. I received a message that wi-fi don't works.

This is not a bug, because there is the incompatibility of this kernel and native modules from the stock ROM

It requires the full installation of both the kernel and the modules.

P.S.2. Added versions for full instalations (kernel+modules)

Attention!

Installation of kernel with modules will make a changes to the system

Make a backup before installing

You can install native modules for revert to previous kernel versions:
[Galaxy S 4 Mini Android Development] ladislav.heller:
Has anybody tested the F2FS support using this kernel?
[Galaxy S 4 Mini Android Development] sasank360:
Flashed this kernel 12 hours ago as part of clean flash of deodexed stock rom.

Undervolting works well. Was able to bring down voltages on all frequencies

by 125mV. CPU max @ 1.2Ghz and min @ 81Mhz. Despite that min freq, waking

up the phone from sleep was fast. Performance is smooth. No force closes or

random reboots so far. Used performance control app to enable fast charging.

Attached some stats in pics down below. Tell me if that is fast enough. I do not

usually observe charging times on my phone. Good work [MENTION=5925090]alexax66[/MENTION]

This kernel is for stock based roms right ? are there any stock based roms with f2fs support ?

Is f2fs needed only in kernel ? Or does it need support from roms ?

If kernel supports I can try F2FS on my phone and report. Thanks.
[Galaxy S 4 Mini Android Development] ladislav.heller:
For F2FS you will need a recovery (PhilZ or TWRP) which supports it and a stock ROM in recovery installable format (my stock deodexed for example) and of course this kernel.

But don't forget: Make a full backup first! And move your backup data to your PC ;)
[Galaxy S 4 Mini Android Development] o0chtm0o:
Which governor are you using? Which scheduler? Don't you have any freezes?

Thanks for your feedback! :good:
[Galaxy S 4 Mini Android Development] sasank360:
Thanks for info. I will definitely try and report tomorrow. I will format system, cache and data(if possible).

I am using interactive governor and fiops i/o scheduler. GPU @ 450Mhz. Disabled mp decision. Did not enable

any other settings like intelliplug, or tweak lmk settings.
[Galaxy S 4 Mini Android Development] alexax66:
No, you can't use f2fs for system, data or cache with this kernel.

Need to make some changes in fstab.qcom for this

And more i was try using f2fs for system partition and stock rom not booting with this case

I can to make special kernel version if you want to test f2fs on data and cache
[Galaxy S 4 Mini Android Development] o0chtm0o:
Ok... There is something I missed...

I downloaded and flashed the latest version from the download link. When I arrived home and try to connect on wifi, I can see the networks but I can't connect to anyone. So...

Should I flash the attached file in this post for having wifi connection?? (stock modules)

---------- Post added at 05:17 PM ---------- Previous post was at 04:33 PM ----------

[MENTION=5925090]alexax66[/MENTION] [MENTION=4612760]ladislav.heller[/MENTION] [MENTION=4517909]sasank360[/MENTION] Anyone please??
[Galaxy S 4 Mini Android Development] sasank360:
Download the updated kernel zip. It has modules baked in. Just flash it after dalvik and cache wipes.

For me I have no connectivity issues. WiFi works just fine.

Yes. I was unable to use f2fs on system,data and cache. After formatting and installing rom+kernel

device was stuck at boot screen (samsung galaxy s4 mini screen).

I will be interested if you can make f2fs support. Thanks. :good:
[Galaxy S 4 Mini Android Development] ladislav.heller:
Yeah, please do and we will test it! ;)
[Galaxy S 4 Mini Android Development] Loulou-13:
Hi everybody ! ;)

What is advised on hotplug parameters (mpdecision,intelli-plug...)??? What are these parameters "exactly" ? What's the best choise for battery life (with godd performance ) ?
[Galaxy S 4 Mini Android Development] holymoz:
thanks, the memory problem is gone now.:good:

a question on timerslack:

- still there is no other folders in /sys/fs/cgroup, only memory folder.

/sbin/ timer_slack file doesn't exist anymore but /dev/cpuctl is plenty of described files, it means is working now?

tried some governors and hotplugs, maybe a bug on ondemandplus,frequency is fixed at 1136 without any changing/scaling using the phone.

tried intellimm, very battery friendly, spend most of time to middle/low freqs, but noticed some lags in voice during calls with bt headset.

please if you can explain the intelliplug profiles order from more battery to less battery, don't knwo the position of "prestazioni eco" and "conservative eco".

frandom is default enabled right? what have to do with the entropy option in kernel adiutor?

the rest of features are great, thanks for all:good:

---------- Post added at 11:14 AM ---------- Previous post was at 11:04 AM ----------

hotplug is a feature that turns off/on one cpu core to save battery.

mpdecision is the default type of hotplug introduced by qualcomm, is considered very aggressive and not so battery friendly.

intelliplug is the other type of hotplug available created by faux123, is saves more battery using the 2 cores more smart. this hotplug has some parameters that can be adjusted.

the profile from less aggressive to more. (uses must often 2 cores instead of 1). I use balanced.

touch boost simply activate for few seconds the 2nd core when screen is touched. I disabled and performance is good with intelliactive governor.

histeresis is described, the 722 value dont' know.

max frequency screen off simply doesn't allow freqs to go over the value set when screen is off, I use 1026 that is enough for phone calls and o the screenoff tasks.
[Galaxy S 4 Mini Android Development] Loulou-13:
Thank you ;)

Ok... if i have understood (for Best battery life ,without loose some perf ) :

MPdecision > off

Intelliplug > on

Profile > balanced ( and no eco performance ?)

Touch boost > off

Cpu max when Screen off > disabled

I'm true ?!