yashsingh1/xdaforums huggingface dataset:
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
added CWM theme by [MENTION=5743624]pictorul20[/MENTION] to plugins folder on mediafire

just drop it to /efs/recovery/ folder (warning - didn't test this as I don't care much how cwm looks like as long as it's not pink)

feedback requested
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
Ok, found the UKM as well. It's a bit crude, but just gimme some time ;) Al least the hardest part (GUI) is done. Generating a config for it is a piece of cake...

Janice profile is commin ;) Stay tuned ;)
[Galaxy S Advance I9070 Original Android Developmen] pictorul20:
Confirmed that cwm theme is fully working without an issue. Hope U will like it. Enjoy.
[Galaxy S Advance I9070 Original Android Developmen] Jtfk:
I'm using the kernel and it's performs well but I have some concern.

It is safe to store the 'files' (like recovery.cipo) in the efs partition?

Btw, thanks for maintaining this device.
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
it's just ext4 filesystem, so the only unsafeness there can be is you removing something by accident... I don't know what happens if you fill it up, but so far plugins are <1M, and there's like 6M free space, so you should be fine. Anyway - think before you do and you'll be safe

just do

tar -zcvf /sdcard/efs.backup.tar.gz /efs

to store contents of your efs partition "somewhere else"
[Galaxy S Advance I9070 Original Android Developmen] nss357:
Well Synapse is the UI, UKM is bunch of scripts that generate all the tunables of certain kernels, then it will be displayed in Synapse. Damn, I missed posts again lol. Should've read first before replying. Anyway, looking forward to it :good:

I'll try with cache and preload first, won't touch system and data yet. Probably won't ever lol. Well, I'll give it a try later.

Thanks :)
[Galaxy S Advance I9070 Original Android Developmen] nss357:
So I did that, and it boots fine. Is this about right? I'm not too sure since had some problems following the wiki

/dev/vg00/cache /cache ext4 rw,nosuid,nodev,noatime,user_xattr,acl,barrier=0,journal_async_commit,stripe=1024,data=writeback 0 0

Filesystem Size Used Free Blksize
/cache 587.3M 16.5M 570.8M 4096
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
Looks good ;)

What problems did you have with wiki? Can you improve the guide (you can edit it if you have github account - don't worry about breaking something - it's git versioned as well :))?

btw

Did initial UKM setup for our phone (UKM actually sucks). It's on my github. Synapse isn't bad, but it's nothing to write home about... but much better than nothing and might be a good base to start with (depending on what's inside... haven't looked yet)
[Galaxy S Advance I9070 Original Android Developmen] nss357:
I don't have a github account. Well, in command section, for the mke2fs you wrote /dev/vg01/cache. It was supposed to be /dev/vg00/cache? Because it doesn't work so I change it.

So you haven't run it yet? Needs to add Janice on .device in device folder and use one of the config file there AFAIK so it'll show in Synapse. I did run it before using maguro config file, of course only the general tunables present. That's all I know lol, better ask the UKM dev since it's his stuffs so he would know.
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
Then get one... :)

Yeah, it was a typo of course (did I say something about paying attention to partition numbers before??:)

I did, but I completely bypassed what you say... UKM needs a complete rework - right now it's anything but universal... :/

RIght now I have cpufreq, liveopp and mali. Good enough to look around...

The configs need to have some smarter structure - right now it's all or nothing. But 99% of all settings is common to all linux kernel, so they should work ootb. Also then 99% of TC kernel settings is also common to all our custom kernels, and so on... the system must allow for easy overrides of individual items and inheritance... I need to think about this because getting it right ain't easy. I imagine that writing such configs should be easy enough that not-too-techy people could write their own (or at least reorder a menu). And kernel authors should have an easy way to adapting it to their kernel without first getting Phd in bash...
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
[MENTION=5656837]Reinkaos[/MENTION]

I've added instructions on moving dalvik-cache to /cache. You can test them. And basically "that's it" :)
[Galaxy S Advance I9070 Original Android Developmen] nss357:
I could make one, but I doesn't really need it though.

yeah you did :p

Yeah it's only made for specific kernels. Well, I'm just letting you know about those stuffs. Thought it might help. Can't help you with coding, since I'm no good with that lol. Anything else I probably could. Or not :silly:

Great! I'll try it right now :good:

EDIT: Works good, now more free space in /data!
[Galaxy S Advance I9070 Original Android Developmen] ace2nutzer:
RAM Management

[MENTION=3329816]mkaluza[/MENTION] [MENTION=5695278]ChronoMonochrome[/MENTION] [MENTION=4962787]fluffi444[/MENTION]

Hey Mkaluza,

thank u very much for the Tips for better RAM Management.

I've done many many tests with different Values.., now i'll tell u my best Results for greatest Ram Management:

Under "Settings" ----> "Performance" ---> "Ram Management"

nothing

checked.

Ramdisk, Custom Minfree Values for daily Usage:

in device_tunables.rc:

write /sys/module/lowmemorykiller/parameters/minfree 10470,13178,15887,37554,42972,53442

zRam with LZ4 Compressor in Ramdisk:

fstab.samsungcodina

# ZRAM (624MB)
/dev/block/zram0 none swap defaults zramsize=654311424

And this Commit:

https://github.com/ace2nutzer/Samsung_STE_Kernel/commit/7fece38f066f85cde4b6bde417de1328d6f4146e

As u can see, i've disabled the things with Resource Counters again.. it was not efficiently ... but it was nice to test it.. and u said first page_cluster @ 0 then @ 1 .. i've also tried here Values from 0 - 5 .. but 1 - 2 seems best.. so i've set it both .. 1 and 2. (Kernel default was 2 and 3)

( [MENTION=4962787]fluffi444[/MENTION] if u like to test, u can also change this Value over scripts.. just do: echo 1

or

2 > /proc/sys/vm/page_cluster

And for extremely Gamepower like "Real Racing 3" is use additionally these Minfree Value with TASKER:

echo 5120,6400,7680,156160,157440,158720 > /sys/module/lowmemorykiller/parameters/minfree

With all that this really big game works fast and smooth ... :D

ENJOY !! ;)
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
I don't have LZ4 - for now I'm focusing on building android L, then if perf will be low, I'll get back to the kernel. And my tablet needs some tuning as well.

Maybe something's missing somewhere... Again, if Lollipop will be laggy, I'll get back to that.

well that's strange - Android/zram manual claims 0 should be the best settings. Btw - don't put those settings in the code... since those tunables are accessible from userspace, just place it in a init.d/rc script. This is an ugly practise...

It's great everything works fine :) Somewhere in the future I'll test this large zram setting because it's really interesting.

Have a nice day :)
[Galaxy S Advance I9070 Original Android Developmen] ace2nutzer:
Yeah.. it's maybe strange.. but tested also @ 384MB zRam give me big lags on that game... but @ 512MB zRam works fine ... but i decided to set 624MB ... because from 512 @ 624MB the difference is not much .. and fail-safe if we need much ram. ;)

btw: Why not hard-coded page_cluster ??

The Code said:

/* Use a smaller cluster for small-memory machines */

And i did that... default was 2 - 3 ... and now (smaller) ---> 1 - 2

And the User can change this Value over script anyway or i'm wrong?? :)

Thanks, have also a nice day ! ;)
[Galaxy S Advance I9070 Original Android Developmen] ChronoMonochrome:
It sound great if it works :) but for now I'm too busy with merging samsung/ste changes onto LK3.1 - I even don't know how long it'll take(Btw, it actually works, but kernel has some major issues). When I'll finish, I definetely will try full zram :)
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
Hi!

Thanks for so precise anaysis. The problem is I never used mtp, so I never tested it. Ask user [MENTION=5656837]Reinkaos[/MENTION] - he reported an error very early, I changed the config and it was supposed to work (at least nobody reported the problem anymore). And I don't recall changing anything anywhere around mtp from that time on.

But from what you say it's definately the kernel or ramdisk and .rc files... I'd vote for rc files, because if you can launch usb tethering it means that usb/kernel part is working (and in fact I might have removed something from rc files by accident).

If it's not very urgent, I'll look into it later, as I'm wrestling with my tablet atm. In the mean time, if you can, try to get a logcat from the moment you switch mtp on and plug in the cable (you need to load logger module with kocontrol). And look into dmesg for some error messages (or just paste it somewhere).

And if possible - post such things in the main kernel thread, so others can get involved too. It's not a private matter of any kind to use PM's for it.
[Galaxy S Advance I9070 Original Android Developmen] nss357:
After the fix, never had that problem anymore, both mtp and mass storage are working fine here. Never use ptp though.
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
And what ROM are you using?

Also are you using ramdisk overlay?

And which version of my kernel?
[Galaxy S Advance I9070 Original Android Developmen] nss357:
The last Vanir rom, build 112414, kernel r5.4.0 noswap, and just that LVM
[Galaxy S Advance I9070 Original Android Developmen] TPD-21:
[MENTION=5067035]lozohcum[/MENTION]: Try the last build on this thread, if you want to give a second lives for your sister device's. Combine with the last kernel of [MENTION=3329816]mkaluza[/MENTION] (Suggestion).
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
Although this never was the goal, r5.4.0 is slowly reaching 500 downloads :) I'm happy you find it useful :)
[Galaxy S Advance I9070 Original Android Developmen] nss357:
Whew thats a lot, considering how dead our device section looks :D
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
Good work!

[MENTION=4982868]hastalafiesta[/MENTION] - explain yourself :)
[Galaxy S Advance I9070 Original Android Developmen] hastalafiesta:
To be honest I've always had that problem on every cm based rom (also cm 10.1) so there's something wrong somewhere (I didn't change nothing about this stuff so I really don't know), and personally I don't care since this can be simply fixed reeanabling the debug option :)
[Galaxy S Advance I9070 Original Android Developmen] isaak:
[MENTION=3329816]mkaluza[/MENTION]:

Can this script be ported to this kernel without issues?

http://xdaforums.com/showthread.php?t=2571555
[Galaxy S Advance I9070 Original Android Developmen] jfreak27:
Can I flash this in AOSP 4.4.4 using UKF?
[Galaxy S Advance I9070 Original Android Developmen] PolishVodka:
But why? You can swap storages in Novathor app/Advanced.
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
Hi guys!

I sad to tell you that probably there won't be any further releases in the upcoming months, if ever. I had a job offer in Belgium on a construction site which I took because I was running out of money :/ I don't have a pc here, just a tablet, so my ability to experiment is limited. But I think that the kernel is fairly complete :) There are over 500 downloads :) It's a lot and a little, depending on how you look at it.

But I'm working on another project - community building and distribution of custom roms.

I intend to stay in Belgium until june/july, but I'm not sure how things will turn out...

Thank you all! :)
[Galaxy S Advance I9070 Original Android Developmen] #Henkate:
[MENTION=5656837]Reinkaos[/MENTION] : As i know that you tested mk kernel, which version of this kernel do you recommend me and also what settings ( i would set same settings like you because i kinda don't have time to read all the stuff these days). I'm on AOSP, and im quite satisfied with it's kernel, but if this kernel is better, why not... :D
[Galaxy S Advance I9070 Original Android Developmen] nss357:
The latest version r5.4.0 works fine, and there's no swap and swap release. If you use swap, then go for the swap release. I use the no swap release, dynamic governor and deadline. Check mkaluza's wiki here, even if you don't have the time to read, there are some settings you can use:

For some Dynamic settings:

https://github.com/mkaluza/project-zen/wiki/Dynamic-governor

Janice performance settings:

https://github.com/mkaluza/project-zen/wiki/Janice-performance-settings

Check the OP too, some useful stuffs you can use are there.

Here's my settings anyway, more to powersaving:

Dynamic:
down_differential 5
high_freq_sampling_up_factor 4
sampling_down_factor 1
sampling_down_factor_relax_khz 300000
standby_threshold_freq 100000
up_threshold 95

Mali:
boost_low idx=2 (299520)
boost_high idx=9 (480000)
boost_low threshold=48
boost_high threshold=230
boost_delay 2000
mali_utilization_sampling_rate 300
mali_utilization_high_to_low 48
mali_utilization_low_to_high 160
mali_debug_level 0

And I use apeopp 50 for 900 and 1000 too, touchboost off.

One other thing, you can combine cache and preload partition, to have more space for cache. But that would need reading. You can check it out here anyway, only for KK and up.

https://github.com/mkaluza/Samsung_STE_Kernel/wiki/Converting-Cache-and-Preload-to-LVM

All those stuffs are there in mkaluza's wiki, you should go through it when you have the time.
[Galaxy S Advance I9070 Original Android Developmen] isaak:
Interesting, one question. Can you run with the settings you applied a youtube video like this one without lags?

I know some people having troubles when dynamic is selected as governor, but not with ondemandq or pegasusqplus.
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
Yes, I can. With nearly default settings for dynamic. But governor isn't everything, especially with video (I think...). Probably Mali settings count as well (swap on/off?). And most importantly, ROM must not be messed up :P I use Vanir - it's my own build (3 months old now), but with very little changes. I've been using my current setup/config for over two months now without any changes and I'm quite happy with it.
[Galaxy S Advance I9070 Original Android Developmen] nss357:
You got your own Vanir build? Share please lol
[Galaxy S Advance I9070 Original Android Developmen] isaak:
I'm using mk kernel for stock rom ported by [MENTION=4881398]PolishVodka[/MENTION]:

http://xdaforums.com/showpost.php?p=59296246&postcount=28

My stock rom is clean, lag issue seems related only to youtube 10.11.55 because the same video doesn't lag in supertube app and in mxplayer too (except a little hesitation when i rotate the video during playback).

I read your wiki here:

https://github.com/mkaluza/project-zen/wiki/Janice-performance-settings

But I'm not sure if I need to edit mali_boost_high UPthreshold, mali_boost_high idx or some dynamic setting...

Any help is appreciated.
[Galaxy S Advance I9070 Original Android Developmen] iso188:
Loop Device Support

Does this kernel support loop device?
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
CONFIG_BLK_DEV_LOOP=y

Yes, although you may need to create device files manually if mount -o loop fails
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
It's not that simple ;) I have to find it first :P I haven't touched my pc since mid february... Besides, my kernel isn't yet integrated with the build, so I consider it incomplete :P and it's nearly 3 months old now... When I have some free time, I'll try to do a new build, include my kernel and then I'll push it somewhere.
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
Well, then it's not my kernel anymore - I don't know what/if he changed something.

Btw my kernel works with stock roms without any porting - you just need to add proper ramdisk from mediafire.

since I don't use stock, I can't even test it, so I can't help you much. Ask other people with stock if they have the same problem.
[Galaxy S Advance I9070 Original Android Developmen] didije:
:good: on Omni (4.4.2)
[Galaxy S Advance I9070 Original Android Developmen] isaak:
Unfortunately, no source code.

I know 2 guys with my same issue. How can this help me to fix it?
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
Which means we don't know what was changed...

It can't... I meant someone with the same issue who might have already fixed it ;)
[Galaxy S Advance I9070 Original Android Developmen] nss357:
[MENTION=3329816]mkaluza[/MENTION] are you busy? My device sometimes soft-reboot, with this same error:

1737 1737 F libc : Fatal signal 11 (SIGSEGV) at 0x000001a4 (code=1), thread 1737 (surfaceflinger)

except sometimes it would be GC, system_server, systemui and etc. Still happens sometimes even after I've wipe everything and made a clean install. Rarely now though. Do you have any idea why? Got the tombstone if you have the time to take a look at it.
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
The error itself means that something got messed up and the application tried to execute code from a memory that does not contain it (SEGment Violation), so it's quite vague... There can be many reasons for this, but since it's random (different app each time), it's a "systemic" problem - bad oc/uv (on the edge of stability), kernel or system library bug or a hardware failure.

First as usuall - disable all oc/uv on cpu/mem/gpu/whatever_else_you_messed_with ;) that includes disabling (or temporarily removing if disabling is not possibe) NovaThor Settings - this app just tries to be smarter than it should be... Double checking all "tuning" applications for any checked "set at boot" options is also advised.

What kernel, cpu gov and rom are you using?
[Galaxy S Advance I9070 Original Android Developmen] nss357:
Oh I see. I'm still on Vanir and the latest mkkernel, and using dynamic. I haven't change the cpu/gpu voltage though, still the same values which I had no problem using previously. No NovaThor settings app either. Well, thanks for the info, I'll try disabling all my init.d scripts, and see if it still happens. I probably had messed up around somewhere that I can't even remember lol
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
Well, if it used to work and it doesn't now then either you changed something and forgot about it or the hardware is failing. However init.d scripts are a likely cause...
[Galaxy S Advance I9070 Original Android Developmen] isaak:
I'm having some problems to enable logcat feature using this manual method:

Translated: I need to write logger in a /system/etc/modules file. I did it, but it doesn't work, even after a restart.

This is my logcat content:

Unable to open log device '/dev/log/main': No such file or directory

Debug usb is enabled. Any idea?

I'd like to not use Kocontrol, it's buggy and in this case I would receive another error: Can't open modem device
[Galaxy S Advance I9070 Original Android Developmen] nss357:
You can put logger.ko in /efs/boot/overlay/modules. It'll be loaded on boot. I put it there so I can use Liveboot app.
[Galaxy S Advance I9070 Original Android Developmen] isaak:
It doesn't load anything here. I'm on stock rom, but the kernel should work the same I think.

I'm trying to disable some init.d script... no, nothing. It still doesn't work.

UPDATE:

Now it's ok after flashing mkernel again.

I just have some "Can't open modem device" warning in my logcats, is it a normal behaviour?
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
release 5.5.0

Yo guys!

Never say never :)

Version 5.5.0 is out :) The significant change is thanks to [MENTION=5840412]ace2nutzer[/MENTION] who showed mi one config option I missed. The new version should have ~15% more i/o performance.

Well.. technically speaking it's not 15% faster - it just stopped being 15% slower, but anyway, it's better ;)

Btw, r5.4.0 had over 1400 downloads ;)

More goodies are comming, stay tuned ;)
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
Ramdisks for other version than KK

Hello guys,

Thanks to [MENTION=4982868]hastalafiesta[/MENTION] there are now recovery-flashable ramdisks for every cm version for the kernel - thanks!

To use it, download the mk kernel zip file and appropriate ramdisk zip file and then flash both with recovery (order doesn't matter, just flash them both).

If anyone makes use of it (esp on stock JB), drop a line here. If you're using the "old" cpio.gz version, there's no need to update - they're the same, just the delivery mechanism is more user friendly.
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
version r5.6.0

Hi!

Ver 5.6.0 is out. Thanks to [MENTION=5840412]ace2nutzer[/MENTION] for the tip on HZ value - changing it dramatically increased UI responsiveness (with no noticeable cpu usage increase). I don't know why this worked (and I'm not happy about it), but it worked... It's much smoother now...

Enjoy ;)
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
The script had small glitch, but it should be fine now... sorry ;)
[Galaxy S Advance I9070 Original Android Developmen] Pavan l:
thank you!

Can u please make a flashable zip for [MENTION=4982868]hastalafiesta[/MENTION] 's lollipop with ur new implementations and fixes? please! and I still have that boot.cpio.gz in /efs ... Please help!

I'm asking this because I'm doing a fusion of polish's rom and [MENTION=4982868]hastalafiesta[/MENTION] 's rom... polish's installer and graphic stability with [MENTION=5371721]Epirex[/MENTION] new novathor with gpu oc and its compatible with ur kernel! and all with the very stable base of [MENTION=4982868]hastalafiesta[/MENTION] 's rom!

hereby I'm requesting permission to do this (for all metioned devs ;) )

Thank you! :angel: :cowboy:
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
It's already possible - flash the kernel and then flash cm 12.1 from ramdisks folder and you should be fine.

As for the rest, ask in the right threads, don't make mess...
[Galaxy S Advance I9070 Original Android Developmen] Zouhuo:
Hi!

Someone tried to see if it works on the stock ROM?
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
probably - there were 36 downloads of "old" cpio.gz for stock. Just try it - flash kernel, flash ramdisk and that's it. If it doesn't work, simply reflash your old kernel.
[Galaxy S Advance I9070 Original Android Developmen] isaak:
Overall It works, but screen rotation causes a black screen issue easy to reproduce on stock.

I'm creating a pull request for you on github. :)
[Galaxy S Advance I9070 Original Android Developmen] PolishVodka:
[MENTION=3329816]mkaluza[/MENTION] you should revert this https://github.com/mkaluza/Samsung_STE_Kernel/commit/834b9be63ae5d9dacee83612fbf582e4a87a329c

, because of this causing screen issue's like above and this tearing fix draining more battery.
[Galaxy S Advance I9070 Original Android Developmen] isaak:
I already reported it to mkaluza on github.

All this mess because you're not used to share your source code.
[Galaxy S Advance I9070 Original Android Developmen] PolishVodka:
[MENTION=3329816]mkaluza[/MENTION]

And for screen tearing, if you see on Janice, maybe better is to check this commit from [MENTION=5840412]ace2nutzer[/MENTION], on codina is really working so try with your phone in board.janice.mcde

https://github.com/ace2nutzer/Samsung_STE_Kernel/commit/3b8983c381e88568cb0c8ea951219a2ad42724d3