yashsingh1/xdaforums huggingface dataset:
[Galaxy S Advance I9070 Original Android Developmen] ace2nutzer:
Yes.... check this:

https://github.com/mkaluza/Samsung_.../arch/arm/mach-ux500/board-janice-mcde.c#L136

Set both 16 / 16 Parameters @ 1 / 1 and remove the -2.

If u've then some weird scree issues during turning screen on... then set 2 / 2 .. and test again ... for me 3 / 3 works without any issues ... and for the other LCD (ws24) seems that it's even OK @ 1 / 1 .. as nobody complained about Issues with LCD ... but reports that it's smooth and tearings are gone :D

Use Stock LCD Freq for that ... ;)
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
Hi [MENTION=4881398]PolishVodka[/MENTION]!

Thanks for the tips - I don't follow other kernels so I didn't know about those. Will test them in the evening.

[MENTION=5449754]isaak[/MENTION] - there's a problem with your pull request. Take a look at the original commit linked in the xda thread and then at yours - they differ very much. Fix it (use either git's format-patch or cherry-pick commands) if you want. Add for build instructions, I'll update the readme in the evening for you.
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
And can you explain what do those values do? (except that they do the job ;) ) because i really don't like "just changing things" without knowing why...
[Galaxy S Advance I9070 Original Android Developmen] #Henkate:
[MENTION=3329816]mkaluza[/MENTION] : I finally tried your kernel. I'm sorry that i didn't try on jb 4.1.2 as i promised some time ago.

AOSP 4.4 by JTeam + mk kernel (v5.5.0) is working fine until now.

I did an Antutu test with aosp kernel (default settings, don't know what settings were) and one with your kernel (default settings too). I don't care about antutu, but i want to say that i got 9185 points with your kernel and 10429 points with aosp kernel.

In the test which I'm using your kernel, much loss is at:

-ram speed: got 251 points, but lost 520 points comparing to aosp kernel test ( 771 points)

-storage i/o: got 280 points, lost 117 points

-database i/o: got 135 points, lost 115 points

-multitask: got 1972 points, lost 365 points

However, my phone feel much smoother. I will read your whole wiki documentation to change the settings to my needs.

I didn't flash the latest kernel version because you said that you are not happy about HZ value.

If i will encounter problems with this combo (aosp + mk kernel) i will let you know. Until now, everything is fine.
[Galaxy S Advance I9070 Original Android Developmen] ace2nutzer:
It was clear that u'll ask that question :o

U should it know better than me as electronic expert :D

I'm sorry that i can't gave u a precise Answer.. but i can say decrasing that Values is like OC'ing LCD Freq.. that means it's also consume a bit more Battery.. Secondly: increasing that Values result in a slower Playback.. but very sharp and very very smooth !! Maybe u or other really expert guy now know what is that ?! Also it reduces a bit the stability .. i mean: without touching that Value i can OC my LCD from 31Mhz @ 50Mhz .. and with tuned Value only 40Mhz ... But the good thing is: tuning that Parameters founded out by me, don't make the Playback fuzzy ....

U can test this by playing "The impossible Jump" .. very well :)
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
You're doing bad PR here... ;) but seriously, if you want to benchmark the _kernel_, you need to do so with performance governor on both runs - otherwise you're mostly benchmarking the governor, and dynamic governor isn't benchmark friendly - it was never meant to be... (but you can try to set "oc freq boost ms" to 0 if you oc the cpu - the result should be much better)

Yep, that was the goal of it.

Great! But in fact the defaults are set to balance performance and battery usage on general purpose use. The only thing you might want to set (disable) is the aforementioned "oc freq boost ms" to get more performance in cpu heavy apps(like games) at the cost of slightly increased battery usage in everyday use (that is if you oc the cpu at all).

You got me wrong here - I'm extremely happy with the result. What bothers me is that i don't understand completely why it worked, buy otherwise everything is fine and 5.6 is much smoother than 5.5 - go ahead and flash it! You're be happy with it ;)

Glad to hear that ;)
[Galaxy S Advance I9070 Original Android Developmen] marko11071989:
Benchmarks are not relevant but it is nice to see some high scores :D with this kernel, cpu overclocked on 1250 Mhz and performance governor i´ve managed to get above 16000 in antutu, every time i get well above 15000. That is more than awesome score ;)

Definitely best kernel so far. I am using latest build without any problems. And dynamic governor is best for balace between performance and battery life.

Thanks [MENTION=3329816]mkaluza[/MENTION] for excellent work, keep it up :good:
[Galaxy S Advance I9070 Original Android Developmen] Cassiusss:
Hi mkaluza! Thank you for your work.

Just a little suggestion: could be handy to have /system as alternative directory for boot.cpio.gz. :)

Have a nice day!
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
Not really. If anything, [MENTION=5695278]ChronoMonochrome[/MENTION] solution with reformatting Kernel2 partition is a reasonable alternative. But why? What's wrong with /efs? (Besides the fact that it shouldn't be used for this of course ;) )
[Galaxy S Advance I9070 Original Android Developmen] Cassiusss:
Nothing wrong with /efs! :)

I was suggesting /system (as alternative and not to replace /efs) only because boot.cpio.gz would be deleted automatically when changing rom. It's not important, thanks anyway!
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
Using /system is not possible since boot.cpio.gz contains the commands to mount the system, so it must be accessible first. If you flash other room that also contains the kernel then it'll just sit there doing nothing. The only problematic situation is a different room with mk kernel, but for convenience I'll just create a "remove boot.cpio.gz" recovery zip file. This whole overlay system needs a little more polish here and there, but it'll be done soon as I'm working on integrating mk kernel with hasta's lollipop build. Stay tuned ;)
[Galaxy S Advance I9070 Original Android Developmen] isaak:
Ehm, I'm not used to fix cherry-picks conflicts so it could require some time using beyond compare gui because it isn't clear to me the difference between local, base and remote...

Anyway, I have noticed some weird code in original cocafe commit (brihtness instead of brightness):

https://github.com/cocafe/i9070_ker...72/drivers/video/mcde/display-s6e63m0.c#L2349

https://github.com/cocafe/i9070_ker...72/drivers/video/mcde/display-s6e63m0.c#L2359

https://github.com/cocafe/i9070_ker...72/drivers/video/mcde/display-s6e63m0.c#L2370
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
Merging a commit that's already there usually produces a mess like that ;) No worries, I've got it - the clock management code was already there, I've just merged the 'Revert...' part, so the LCD clock rate is as it originally was.

Try this: https://www.mediafire.com/?rxsvt1hfg1dg56f and tell me if the tearing/black screen persists.
[Galaxy S Advance I9070 Original Android Developmen] isaak:
Rotation issue with black screen is fixed, but I have some lags during 720p video playback on youtube even at 1100 MHz (ondemandq + deadline).

In a previous release (5.4.0) I had almost no lag with ondemandq + deadline + max freq 1000 Mhz.

And I noticed a weird occurrence. I use Rom Toolbox Pro -> cpu control to change min freq. In your test version min freq remains stuck at 400 Mhz and I can't decrease it to 200 Mhz in no way. I can just increase it to a greater value like 500 Mhz... :eek:

This didn't happen with max freq.

EDIT2: I can reproduce min freq issue even after flashing kernel again...
[Galaxy S Advance I9070 Original Android Developmen] Epirex:
I have the same problem, Cocafe explained here what is the problem, but I don't know how to disable from source :confused:

I tried this but still active
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
If you qoute - be more specific... respect others' time...

I assume you're talking about the "lock".

you've got a problem with _your_ kernel, not my binary build... I don't know what you've got in there... As CoCafe wrote, this "lock" is usually related to touchboost. Other things that can increase min freq most likely are wifi and mmc... Btw... you've got a sysfs file to debug it - /sys/kernel/debug/prcmu-qos, so maybe go look there...?
[Galaxy S Advance I9070 Original Android Developmen] nss357:
[MENTION=3329816]mkaluza[/MENTION] did you made any changes to dynamic? I just notice the sampling rates now are half of the previous default

sampling_rate 10000
standby_sampling_rate 15000
suspend_sampling_rate 25000
[Galaxy S Advance I9070 Original Android Developmen] ChronoMonochrome:
I guess this is because HZ now is doubled. Nope, just forget, I mixed up two different things. If there is any sense in changing those values, then they probably should be increased instead of decreasing.
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
No I didn't. Probably I forgot something and HZ=100 is hardcoded somewhere... My bad, will fix it.

Thanks for the tip.
[Galaxy S Advance I9070 Original Android Developmen] nss357:
Noted, thanks.

Ok, no problem.
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
Ok, fixed in r5.6.1. It also fixes black screen after rotate issue on stoch JB's
[Galaxy S Advance I9070 Original Android Developmen] isaak:
I have just tested it about 720p video playback on youtube (using the same samples).

Ondemandq with default max freq: still some lag but much less than previous test version.

Ondemandq with max freq to 1100: I don't have lags, but the negative side is a lot of vertical tearing.

Vertical tearing was also present in previous test version, I forgot to mention it.
[Galaxy S Advance I9070 Original Android Developmen] Zouhuo:
Hi!

This version 5.6.1 works well on the Stock ROM.

Before installing boot.cpio.gz generate the file, as you indicated in the corresponding README file.

So far, the navigation is fluid and the screen autorotation goes well.

It remains for me to prove what he says [MENTION=5449754]isaak[/MENTION]

Excellent work and effort!

A greeting.
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
What kernel did you have before? There's already a ramdisk image for jb based on CoCore kernel, so you didn't have to do it yourself, but congratulations on doing it successfully :)
[Galaxy S Advance I9070 Original Android Developmen] Zouhuo:
Before used the kernel adapted by [MENTION=4881398]PolishVodka[/MENTION]. However, when flasheo your kernel, it not worked. I then lacked the boot.cpio.gz. Generated my own boot.cpio.gz because observed than in cocore had few links that did not coincide exactly with my structure, or so I thought.
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
Can you share it? I'd like to have a look at it - maybe I can then improve the one uploaded (or just upload another one)
[Galaxy S Advance I9070 Original Android Developmen] Zouhuo:
If I leave a link to the file generated with the following commands:

cd /

find . -xdev | cpio -o -Hnewc | gzip -9 > /efs/boot.cpio.gz

http://www.mediafire.com/download/12br5m8bn9551y3/boot.cpio.gz

Note: Remember that it is for the Stock ROM 4.1.2
[Galaxy S Advance I9070 Original Android Developmen] Cassiusss:
Woah! There is a huge size difference, compared to JB-4.1-stock-CoCore-cwm-6.0.3.4.boot.cpio!

Your boot.cpio.gz = 191.46 KB

JB-4.1-stock-CoCore-cwm-6.0.3.4.boot.cpio = 1.92 MB
[Galaxy S Advance I9070 Original Android Developmen] Zouhuo:
It is because I am not including the CWM.

Here it seems that what matters are the startup files and initiating structure.

---------- Post added at 02:06 PM ---------- Previous post was at 01:56 PM ----------

In my case it was not necessary that the CWM is included. As I said, the initialization files are only necessary in the boot.cpio.gz
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
All those are provided "as is". I didn't even test them myself, so there may be strange things there. But thanks to the community it'll improve ;)

If someone else wants to give that one a try and confirms it works ok, I'll replace it in ramdisks repo.

Thanks guys :)
[Galaxy S Advance I9070 Original Android Developmen] Cassiusss:
I can confirm that Zouhuo's boot.cpio.gz works with no problems. :)

Ondemandq?

I'm using Mk Kernel 5.6.1 but Ondemandq is not included... how did you set it?
[Galaxy S Advance I9070 Original Android Developmen] isaak:
Kernel Adiutor (Root) or Rom Toolbox Lite (Performance -> Cpu Control button).

They show dynamic, ondemandq, interactive, conservative, ondemand, userspace, powersave, performance.

I don't know why, but other governors like smartassv2 are not included to me.
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
Thanks. I'll upload it to mediafire then.

It's a module not loaded by default - use KoControl, init.d/boot.d script or anything that can load a module.There are many more govs there:

root@janice:/lib/modules # ls /system/lib/modules/cpufreq_*
/system/lib/modules/cpufreq_abyssplug.ko
/system/lib/modules/cpufreq_dynamic.ko
/system/lib/modules/cpufreq_fantasy.ko
/system/lib/modules/cpufreq_hotplug.ko
/system/lib/modules/cpufreq_intelliactive.ko
/system/lib/modules/cpufreq_interactiveq.ko
/system/lib/modules/cpufreq_lagfree.ko
/system/lib/modules/cpufreq_lionheart.ko
/system/lib/modules/cpufreq_lulzactiveq.ko
/system/lib/modules/cpufreq_ondemandq.ko
/system/lib/modules/cpufreq_pegasusq.ko
/system/lib/modules/cpufreq_pegasusqplus.ko
/system/lib/modules/cpufreq_smartass2.ko
/system/lib/modules/cpufreq_zzmoove.ko

I don't use them so I don't even know if they work (let me know if any one doesn't - I'll remove it). Someone asked for one of them so I ported all from Chrono's kernel that didn't required any manual patching.
[Galaxy S Advance I9070 Original Android Developmen] lebidou:
Hi, I have a silly question I can't seem to find a straight answer to (maybe I misread something? ) :

I have the latest hastalafiesta's Lollipop ROM with the boot.cpio.gz on the efs partition. Can I just flash the kernel an no worries or is there any other step I might consider (apart for a backup as safety measure) ?
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
Yes, you can. I've tested it and it worked, although it seemed to boot longer, but I'm not sure - I used my own build of Hasta's rom and I think there was something wrong with it.
[Galaxy S Advance I9070 Original Android Developmen] lebidou:
Testing it. Boot time seems normal. It seems to have better memory management, which is great 'cause we don't have a lot of it.

Overall experience is smooth, it doesn't seem to impair battery life.

I didn't test games or demanding apps, I wouldn't expect different result's from other ROMs.

Thanks for the good work!
[Galaxy S Advance I9070 Original Android Developmen] #Henkate:
[MENTION=3329816]mkaluza[/MENTION] : http://xdaforums.com/showpost.php?p=59424815&postcount=40

Im trying to flash your UKM zip for Synapse, but i cant. It always fail, saying "Installation aborted" ( i have signature verification disabled). My zip file size is: 684 KB (700.528 bytes).

Anyway, i guess you can add AOSP by JTeam to OP at compatibility :p It works without any problems.

And one more question. With dynamic governor cpu freq stay always at max freq which has been set? I used Tasker app to check my actual freq and it always show 1Ghz, sometimes 900 Mhz, while No-frills cpu show lower freq. I checked even after reboot. Is there any command with which i can check my actual cpu freq in terminal emulator?
[Galaxy S Advance I9070 Original Android Developmen] jadega:
Hey! [MENTION=3329816]mkaluza[/MENTION] can you provide me the link of your Stock kernel :)

and step by step procedure to successfuly install it I'am unaware about ramdisk and all that stuf please provide me the procedure to install it on Stock Rom :)
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
Yes and no.

Links are in post #1

Download the kernel (currently r5.6.1) - you want the release_noswp version

Download the stock.zip

Go to recovery and flash them both (order doesn't matter)
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
Honestly... I've dropped it... It turned out I wasn't using it... I still prefer good old shell scripts...

Ok, thanks

Well, that means something is using the cpu :) Use top (the one from busybox, not toolbox) or some fancy task manager application to see it. After a reboot it'll probably be media scanner (runs few good minutes). As for cpu/gov settings I use SetCPU - it has all I need and nothing more :) And also CPUSpy Plus - it has a different view of time_in_state file that is sometimes useful too.

But if load is low the cpu freq should drop... check carefully.
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
Btw is it only me or since r5.6 GPS fix time is considerably faster? Before it was usually around 100 seconds and now it's below 10. At first I thought it was just one time bonus, but it happens every time i use GPS now. Anyway - it's good ;)
[Galaxy S Advance I9070 Original Android Developmen] Cassiusss:
I noticed it too... :)

Your kernel is simply the best thing happened to S Advance. ;)
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
It's nice you say that, but remember that most of it is not my work and wouldn't be possible without TeamCanjica, [MENTION=4832589]cocafe[/MENTION] and more recently [MENTION=5840412]ace2nutzer[/MENTION] and [MENTION=5695278]ChronoMonochrome[/MENTION]. But that's what Open Source does :)
[Galaxy S Advance I9070 Original Android Developmen] #Henkate:
I checked my cpu usage with app called "CPU Monitor Service Lite". It show:

-stock browser: Avg. 30% ; Max 59%

-viber (running in background): 21%; 35%

- aosp keyboard: 15%; 22%

-android.process.media: 13%; 22%

-system_server: 12; 28%

- /system/bin/surfacelinger: 5% ; 14%

- nova launcher: 3%; 6%

Wtf... This cpu usage is normal?

And Nofrills cpu show 200mhz at this moment. Tasker app show wrong freq?

Is possible to check the actual freq in terminal emulator?

EDIT: Check this screenshot:

The graph show that cpu was at 1ghz when cpu usage was low :confused:

PS: this app is not bad.
[Galaxy S Advance I9070 Original Android Developmen] kakorooCF:
bootloop

hye, the rom that I currently use is CM11 by epirex.

i flash this kernel mk-kernel-r5.6.1-release_swp-CWM.zip using CWM and now my phone bootloop. am I miss something?

considere that i noob in flashin kernel. :crying:
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
That is odd - that would be the first cm11 ROM that didn't work with this kernel out of the box...

Anyway tou couldn't do it wrong. If you can, flash original kernel back and all should be fine (have you ever used adb?)

[MENTION=5371721]Epirex[/MENTION] can you tell us something about it? Could you send me the ramdisk image (boot.cpio)?
[Galaxy S Advance I9070 Original Android Developmen] kakorooCF:
i just restore my nandroid backup for now. it's weird that it didn't work. anyway, thanks for the reply!!
[Galaxy S Advance I9070 Original Android Developmen] PeterXStark:
Well I'm on CM 12.1 and I flashed the noswap and cm12 zips of the ramdisk through CMW,now my phone is stuck at the Samsung Logo.

Thing is my home button is not working so I can't get into the recovery now.

Any solutions?
[Galaxy S Advance I9070 Original Android Developmen] Epirex:
I don't have problems installing MK Kernel in my CM11
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
Either use Odin to flash the original kernel or try "adb reboot recovery"
[Galaxy S Advance I9070 Original Android Developmen] PeterXStark:
I Managed to get into the recovery and restored from a CWM backup i took before,That didnt work as well.

So i cleared everything,formatted the /system and flashed the CM12 Rom and everything is good now.
[Galaxy S Advance I9070 Original Android Developmen] PeterXStark:
I figured out what the issue was.

Hastas CM12.1 ROM comes with the Mk swp 3.0.101

So when I flashed the no swap one it was a fail...and soft brick.
[Galaxy S Advance I9070 Original Android Developmen] Kapyszon:
I have bootloop too... :/
[Galaxy S Advance I9070 Original Android Developmen] #Henkate:
[MENTION=3329816]mkaluza[/MENTION] : Check my quote, also these screenshots:

1. These kernel wakelocks are normal?

2. What about these wakelocks ? I didn't even call someone, but there are wakelocks Phone.

I'm sorry for making this post so big, but i can't attach screenshots in post attachments, i don't know why.
[Galaxy S Advance I9070 Original Android Developmen] nss357:
[MENTION=4471434]Force[/MENTION] you should just use BBS lol. It provides enough information to help you.
[Galaxy S Advance I9070 Original Android Developmen] lebidou:
Hi,

I am using this kernel (version 5.6.1 swap) with CM12.1 (21-05-2015). I have an app that makes the phone reboot.

From the logs I dumped, it seems to be kernel related, although the issue happens also with hastalafiesta's kernel.

I attached both logical dump and /proc/last_kmsg.

Here is what happens :

Open the app

Choose a video to watch

Download starts (at this point, the phone might reboot)

Video starts playing. After a few minutes (at most) the phone reboots.

In the last_kmsg, it says "Unable to handle kernel paging request at virtual address 400087ec". I tried disabling KSM, zRam, both. Still happens.

Anyone faced similar issue ?
[Galaxy S Advance I9070 Original Android Developmen] mkaluza:
Any oc/uv? Disable/remove novathor app, reboot and recheck.
[Galaxy S Advance I9070 Original Android Developmen] lebidou:
I use conservative governor, 200-1000 MHz, noop scheduler.

No undervolting.

No novathor app on hastalafiesta's CM12.1

I tried with setting max cpu frequency to 900 MHz, to 1000 MHz, to 1100 MHz --> same reboot.

I tried with sioplus scheduler --> same reboot.

I tried with his kernel --> same reboot.

I tried with and without KSM --> same reboot.

I tried with and without zRam --> same reboot.

I tried with both and neither KSM and zRam --> same reboot.

I rebooted multiple times. And given the nature of the issue (hard reboots), the phone has rebooted aplenty during those tests.

Also, this is the content of the only init.d script I use :

#!/system/bin/sh

## KSM
echo 1000 > /sys/kernel/mm/ksm/sleep_millisecs
echo 50 > /sys/kernel/mm/ksm/pages_to_scan
echo 1 > /sys/kernel/mm/ksm/run

## zRam
swapoff /dev/block/zram0
sysctl -w vm.page-cluster=1
swapon /dev/block/zram0

I have been experimenting with KSM, so I tried with different values. It doesn't change anything.

Puzzling...

The only thing I have left to try is another ROM, but at this point, it feels like it's gonna be a lotta pain for not much.

EDIT :

I reinstalled an older version of the app, and it works OK. From what I know the developers moved to a new library to handle the download. I think that lib is responsible for the hard reboots. (A fork of said app made the same move to that lib and the same hard reboots occur).

So I guess, there isn't a good way to fix it. I contacted the app's developers and they said they won't fix it. I'll just have to stick to the version that works.

Thanks anyway for all the amazing work on the kernel and for the time you might have spent an this likely-unsolvable issue. (If you want more information on that app and library, you can PM me).