yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9500 Android Development] lukair1983:
Hi maxfu

Using your kernel at this time, since this is the only kernel which seems that gives me seamless music while screen is off. However, since I'm also developer, a logcat is very important for me. When I enable the logcat (with stweaks), this is what I see constantly in a loop:

Any comment on that? Just to give more insight, I checked with Perseus Kernel, and this kernel gives a familiar logcat output without above errors.
[Galaxy S 4 i9500 Android Development] lukair1983:
One more thing, that I need to ask is about "Android OS" battery usage. On Jelly Bean, both Android OS and Android System were kept under 10%, and when the phone idled a lot it was around 5% for both of these. However, right now it's not the case, especialy for Android OS, which takes usually between 25 and 35%, even if the phone idles. Take a look at below screens. As you can see from them, the screen was not on at all, and the phone was idling for the whole time since I charged it to 100% and removed the usb cable. Also, as we can see, there is no constant wakelock problem, as the phone was asleep for most of the time (probably over 95%).

Even after longer period of time, this does not change:

My question is why is the Android OS have such big battery usage when the phone is idling? To give more information, the above was taken on the fresh rom instalation (factory, cache, dalvik wiped), stock 4.4.2 (SLK-I9500XXUFNE4-20140526202333). Only couple applications installed (like root explorer, wakelock detector), and a lot bloatware removed (most of samsung apps, and others).
[Galaxy S 4 i9500 Android Development] Nuwairi:
+1
[Galaxy S 4 i9500 Android Development] rohanchrome:
Recovery does not flash the kernel but flashes twrp... Flashing boot will flash the kernel...
[Galaxy S 4 i9500 Android Development] stellaignis:
It's not the total percentage, it shows the percent of the total drained battery percent. So let's say you've drained 2% of your phones total battery and Android OS says 49%, it's 49% of 2%. Therefore; 49%*2%=0.98%. It's very normal. What phone shows you is actually the percentages of the total drained battery. If you really wanna test how much juice Android OS consumes accurately, test it within normal usage until battery drops to 10% and then check it again. Correct me if you see anything wrong pls.
[Galaxy S 4 i9500 Android Development] lukair1983:
I know how it works stellaignis, believe me. What you said is true, but it doesn't change anything. Whether it is Android OS at 35% over 20 hours, or over 20 minutes is irrelevant, unless this number will change if I leave the phone idle for 20 hours instead of 20 minutes. But I did many tests like that in the past (phone idle for 5-10 minutes vs phone idle for 10-20 hours), on my s4 as well as my previous android phones, and those numbers were very close to eachother no matter the time it spent on idle, so I ommit now from checking those numbers over a long idle time, since it's just a waste of time, the principle does not change.

If the phone is idling for x period of time, the number 1, and number 2 positions on this list, should be phone idle, and cell stand by. That's how it was with gingerbread for me, all the way to jelly bean 4.3 on galaxy s4, and it came to the levels of around 70-80% for phone idle. Whenever this was the case, I got great battery life. As soon as something pops up there unexpectedly, especialy if phone idle is not number one on that list, it is bad sign, that something was wrong. But here, the Android OS is on first place, despite the phone being idle almost 100% of the time. The stats should reflect it, that's what "Phone idle" position is there for, to represent it.

So to sum up my reply to your response. Yes, Android OS took 49% of the 2% of the battery that was drained. But the point is, it took 49% of those 2%, and it shouldn't. If everything (from what I know about android) was in order, the phone idle should show over 50% there, while android OS and system should be below 10%.
[Galaxy S 4 i9500 Android Development] stellaignis:
Hmmmhh... Now I understand what u mean. Though I've never seen Device Idle in top 10. But my battery doesn't die before other S4s. Do you have a short battery life problem in daily usage? It shows cpu and wi-fi i/o in use details of Android OS. Try undervolting your cpu maybe? But I think this usage is normal.
[Galaxy S 4 i9500 Android Development] lukair1983:
I need to mention, that I'm aware of the fact, that google changes their platform from release to release, so in 4.4.2 there might be some migration of different processes between kernel, Android System, OS etc, but I doubt it would lead to this effect.

As for undervolting, I undervolted a lot with Perseus Kernel under 4.3, but the first step was always for me to make "Android System" and "Android OS" be fairly low on the list of battery usage, especialy when idle.

To give you some idea, this is one of the old screenshots I did, when I was testing something specific, it shows Android OS higher than it usually was, but still you can see how high Cell standby and Device idle are, which allowed the phone to lose only 1% of battery every 3 hours, if the phone was left untouched. This is impossible for me to replicate on whichever kernel/Custom Rom since Kitkat was introduced to i9500, and from what we were told, KitKat should bring us even better battery life.

And another point I want to make is that if it was only that, and I got say 1% every hour instead of 1% every 3 hours, that would not be bad in itself. The problem is that if Android OS and Android System take too much while the phone is idle, it translates even more to when the phone is not idle.
[Galaxy S 4 i9500 Android Development] lukair1983:
Ok, right now I'm at 77%, and the top place in the better battery stats+, has a process named "ksmd" (second is wakelocks).

After googling a bit, I found some entries which say, that this has something to do with "paging in the kernel". Does this sound familiar maxfu?
[Galaxy S 4 i9500 Android Development] nahum.rozen:
There is an application to kill KSMD. I used it and saw no performance issues at all. and the battery life improved.
[Galaxy S 4 i9500 Android Development] maxfu:
ksmd is daemon service for Kernel Samepage Merging. It is enabled to improve the efficiency of the ram usage. It is brings no performance difference and worse battery drain, I will consider disabling it next time, or make it to a module.
[Galaxy S 4 i9500 Android Development] aashuG:
i also noticed that android system os consuming high usage under battery stat firstly i though its rom problem then to check i switch the kernel 2 omega found Android os usage drop under 10% previously was 45% in my case

.this problem only comes in v14 only never exprienced it in previous versions. may some bug creating problems.
[Galaxy S 4 i9500 Android Development] lukair1983:
Switched to Perseus Kernel for the time being (will try to somehow find the solution for this problem of music while screen is off), and just to show you the difference, and what I would expect from "Android System" and "Android OS". This is what you expect, when the phone is laying on the table, screen off, and idle all the time. Android OS at ~30% all the time is not right and shows some problem (probably something is stuck and is trying to do it over and over again without succeding ever, which make this Android OS so high)
[Galaxy S 4 i9500 Android Development] i_takeitall:
Dude.. this screenshot..does it for your first battery cycle after flash kernel and wipe everthing?is yes..its expected in any kernel or condition.. i believed u know n realised evrytime after fresh flash..android will keep scanning media n memory even in sleep..its appear very normal for me..unless if this is after 3rd or more battery cycles...believed me..i had use multiple devices..almost all rom and kernel here i try...peace.:)..

---------- Post added at 12:45 PM ---------- Previous post was at 12:32 PM ----------

I had use v14 maxfu for about 1 week..same battery life or performance with omega persues n stock..had multiple screen freeze.random restart and unresponsive by itself..sometimes after deep sleep its takes take to wake..like 5 to 10 sec to screen on...quiet impressive with unlocked freq..but cannot understand why he make same volt like 100 150 200 250..so they just use same volt n amp..better just use 250 for lowest..i tried it multiple time..100 make my device laggy..not increase juice at all..deep sleep not impress..with 10 hours sleep..its just deeply sleep 3 hours+..with nothing running app n minimals installed apps...if stock kernel can deeply sleep 8 to 9 hours..i use it for a week and returned to stock..btw good luck..
[Galaxy S 4 i9500 Android Development] lukair1983:
I checked those stats over couple days, not just one, on many roms. So the Android OS stayed there all the time, at around 25-30% range.

I got to be honest, and did the same as you did. I appriciate all the work everybody is doing for the scene, with custom roms and kernels, but somehow with kitkat it's quite a hassle. I could not find a combination (custom ROM + kernel) which would satisfy me. Either it was music stuttering, or problems with logcat, or "Android System"/"Android OS" taking too much battery, or random restarts... I remember with Jelly bean, I just flashed custom Rom, Perseus Kernel, and that was pretty much it. Didn't have to do anything else, or occupy my mind. This time around, I flashed 4 kernels, and 5 different custom roms, and yet all had some problems.

I flashed stock ROM and stock Kernel on friday, and no random reboots, no music stuttering while screen is off, no problems with logcat, no excesive use for "Android System/Android OS". The battery overall will be a bit worse, since I cannot undervolt, but it's pretty good never the less to be honest. Unless things get better in "custom world" I'll stay as it is.

If someone is interested, below is the screenshot of my phone after all night. The first is PowerAmp since I listened to the music for around 1 hour till I fell asleep. I will not beat on this anymore, just want to wish maxfu good luck in mastering his kernel.
[Galaxy S 4 i9500 Android Development] robertostorm:
That ubuntu font doe
[Galaxy S 4 i9500 Android Development] dlegric2:
Any download for stock kitkat kernel?
[Galaxy S 4 i9500 Android Development] maxfu:
For everyone feel not good with the Android OS battery consumption, I believe that it is due to the ksmd, the daemob for Kernel Samepage Merge.

来自我的 GT-I9502 上的 Tapatalk
[Galaxy S 4 i9500 Android Development] dlegric2:
Any fix for this? ?
[Galaxy S 4 i9500 Android Development] dlegric2:
Is this issue present in stock kernel? If not how to incorporate into your kernel? I love your kernel. It works great for me.
[Galaxy S 4 i9500 Android Development] KnifeHead:
[MENTION=4438995]lukair1983[/MENTION], for stuttering music when screen off, the culprit is vm swapiness.

Lower it to 50 or 60 (default stock 60)

Sometimes roms/kernel dev raise it to 80/90 to gain more free ram.
[Galaxy S 4 i9500 Android Development] kamiar1:
last time I installed this kernel it bricked my phone and costed my around 100$ and three weeks to fix it!!! :( and yes, I did it on my own responsibility.

but since this is the only kernel for i9500 (correct me if I'm wrong) I'm going to try it again. just want to know how is this kernel for daily usage? is it stabe ? how is battery life?
[Galaxy S 4 i9500 Android Development] modyt:
It wasn't because of the kernel for sure, since all of us are using it without issues.

It's stable. Nothing broken. Battery life at par with stock.

Sent from my GT-I9500
[Galaxy S 4 i9500 Android Development] kamiar1:
actually it was, sometimes it happens, that's why they always say "Do it on you own responsibility".

...

anyway, whats the boot file in download section? should it be installed with the kernel?
[Galaxy S 4 i9500 Android Development] dlegric2:
Standby battery life is excellent. Normal day usage as per stock kernel. Stable and error free now for a week.
[Galaxy S 4 i9500 Android Development] modyt:
Boot.img is the kernel. It is to be flashed in recovery..

Sent from my GT-I9500
[Galaxy S 4 i9500 Android Development] Paolonicus:
Disabling KSM via Kernel?

I dunno if this is possible, but can KSM (Kernel Shared Memory) be disabled at the Kernel level? Though there is 1 app already available in PlayStore, but unfortunately, automatically disabling KSM Daemon at every reboot requires you to buy the premium version. Can this feature be implemented possibly on the future updates of MaxFour Kernels?
[Galaxy S 4 i9500 Android Development] Droidcore:
You can use fauxcpu control for disable ksm :)
[Galaxy S 4 i9500 Android Development] blow_lk:
Hello,

Today i've flashed this kernel but cann't oc. kernel tuner and stweaks both shows 1.6 as max frequency. as mentioned in 1st post i opened file: /sys/devices/system/cpu/cpu0/cpufreq/UV_uV_table but there is no 1.7, 1.8 and so on frequencies the last frequency is 1.6, I've flashed this kernel over stock kernel. How can i get these missing frequencies?

Thanks
[Galaxy S 4 i9500 Android Development] ameshiya:
This Kernel is no more Overclocked

So the Max frequencie is 1.6

If u want to OC U Can use v12/13

Sent From My MobiLe Phone
[Galaxy S 4 i9500 Android Development] blow_lk:
Thanks for fast responce.

Tried v13 but with no luck. Still 1.6 is the max frequency:(
[Galaxy S 4 i9500 Android Development] babondbs:
can i use this kernel on cm 11 4.4.4? or only for cm 4.4.2 ?
[Galaxy S 4 i9500 Android Development] Droidcore:
Read O.P

Yes you can :)..

Choose Aosp kk
[Galaxy S 4 i9500 Android Development] gio_b:
Fof daily use :use stok ,or try perseus kernel at

https://github.com/AndreiLux/Perseus-UNIVERSAL5410/wiki

Giovanni.
[Galaxy S 4 i9500 Android Development] kamiar1:
use an alpha version of a kernel from 2 month ago for daily usage?! seriously????!!!!!! ¿¡
[Galaxy S 4 i9500 Android Development] Paolonicus:
It's been a while. Any update on maxfu?
[Galaxy S 4 i9500 Android Development] gio_b:
I said :

For daily use ,stock ;otherwise u can try perseus ,i use daily ,minor problem.u can have some audio problem ,no audio ,in this case reboot.

If u wana try perseus ,also dowload from play store synapse app.

Giovannk
[Galaxy S 4 i9500 Android Development] ktouy:
Im on paranoid 4.4 final and so far the kernel work flawless but im having a couple of issues, the fist one the camera, when it start it does like a click sound (physicaly) and on some apps starts with a purple tone and slowly start to go away until it show normal colors, also on some apps like camera 2 & cameringo the screen its all green.. The focus takes forever to focus something and most of the time it does not focus.

Led light on some apps like the default on paranoid i select green and it goes orange and so on..

And... Of course the issue with the sound on aosp roms (dont know if it is any fix or what) that i dont know if it is kernel related or rom related, but for example when i change governor from on demand to interactive with screen off playing music it glitch a lot less... And multitasking does not goes very well on apps like camera, ussualy it hangs a couple of minutes...

And also it does not read any barcode or qr codes the camera, (tested on cm11 and paranoid)

So far those are the issues that im facing, nothing to streesfull but it will be awesom to get those things work.

Great job with the kernel and keep it going!

---------- Post added at 09:20 PM ---------- Previous post was at 09:17 PM ----------

I was trying to test perseus and everytime i flash it no matter if i do a full wipe a nandroid o whatever it gives me android.phone stop working and i cannot get rid of the error and i need to flash another kernel like maxfour.. Any clue?

Thanks!
[Galaxy S 4 i9500 Android Development] :
I have installed recovery--i9500-touchwiz-kk442-v14.zip via CWM. I didn't see Stweaks being installed. How do I tune the kernel (Change CPU & GPU parameter, Wolfson audio control etc)?

Things I tried:

1. I tried to install Stweaks from Play Store but it won't launch and forced close.

2. Installed Synapse, it says no UCI support

3. Tried Kernel Tweaker, I didn't see Wolfson audio control

Please advise.
[Galaxy S 4 i9500 Android Development] poison spyder:
First install a kernel which supports overclocking like perseus.....synapse will be installed automatically if you flash perseus kernel

If you want you can flash adam kernel....it supports overclocking and has wolfson audio control
[Galaxy S 4 i9500 Android Development] Ra2fet:
Hi Maxfu, I wonder that if there are news about adding zzmoove governor. thnx :)
[Galaxy S 4 i9500 Android Development] gio_b:
Doe s adam kernen has wolfson controll you can controll...i think not.

Is just controlled by kernel itself ,you have nothing to do ,in perseus too.

Let me know if i m wrong.

Tks giovanni.
[Galaxy S 4 i9500 Android Development] KnifeHead:
Yes, you wrong.

In STweaks (adam/maxfour) and Synapse (perseus) at sound tab, it is controller for wolfson sound card.

Do you think that controller only for ordinary sound/audio?

Just ask andreilux, if you lucky, he will answer you.
[Galaxy S 4 i9500 Android Development] gio_b:
Hi , i'm on omega 22 and perseus with synapse ,but in the tab sound i have only :level ,eq ,and other minor controll , can you help me ? No dac controll in my case.in maxfour the same.

Tks giovanni.
[Galaxy S 4 i9500 Android Development] KnifeHead:
That is all the controller for wolfson at kernel level only.

In my opinion its not minor, its the basic option how kernel processing audio output.

If you need more complex audio tuning, use application that tune audio at system level like viper4android.
[Galaxy S 4 i9500 Android Development] gio_b:
O.K. i know viper ,but we do not have dac control ,even in maxfour and perseus.

Dac contol means :fq contrlol ,oversampling ,etc...,etc...

Tks giovanni.
[Galaxy S 4 i9500 Android Development] eric-filth:
My camera not working on last cyano with maxfour aosp v14.

With stock cyano kernel camera are ok.

Any tips?

Enviado do meu GT-I9500
[Galaxy S 4 i9500 Android Development] ar216893:
USB OTG support?

Is there anyway to make usb otg enabled ?

I'm using the aosp 442 version and latest PA rom.

Thank you.

Sorry I haven't read post before if there are answer of my question.

I'll read later after I charge my phone if no one answer my question yet.
[Galaxy S 4 i9500 Android Development] robertostorm:
Any update soon?
[Galaxy S 4 i9500 Android Development] jexsuzon:
can someone help me about stweaks for good battery life?

im using AICP and i would really love to know how to set things up for good battery and medium performance..

Thanks guys..
[Galaxy S 4 i9500 Android Development] ktouy:
ro.ril.disable.power.collapse=0

wifi.supplicant_scan_interval=190

pm.sleep_mode=1

ro.config.nocheckin=1

Try with this on build.prop

Also download batterystats, and a xposed module to enable battery stats on KK and check if the phone its getting into deep sleep, im on PA and with this kernel the phone wasnt getting into it, now with the last update it looks like it is but i wasnt having time to test it.

Also for battery life try to low the brightness as low as u can, with stweaks if u want there is to underclock it and also to use less cores on the cpu, and all the things that you didnt use try to disable them... Ah yes and Greenify download that beauty and have fun :)

Hope it helps!
[Galaxy S 4 i9500 Android Development] jexsuzon:
How do i configure the first paragraph you wrote?

And im new to stweaks.
[Galaxy S 4 i9500 Android Development] gio_b:
Get from play store rootexplorer ,than edit :sistem/build.prop

Giovanni

---------- Post added at 12:11 PM ---------- Previous post was at 12:09 PM ----------
[Galaxy S 4 i9500 Android Development] jexsuzon:
Can i use es? And what specific rootexplorer to DL?

Thanks guys.
[Galaxy S 4 i9500 Android Development] poison spyder:
Yes you can use es file explore but give root permissions to it
[Galaxy S 4 i9500 Android Development] dlegric2:
If those lines don't already exist in build.prop do you just add them in? In any particular position?
[Galaxy S 4 i9500 Android Development] gp545:
Just add them latter part of build prop! There's no need to set an order to it :)
[Galaxy S 4 i9500 Android Development] dlegric2:
Cheers mate:thumbup:
[Galaxy S 4 i9500 Android Development] jexsuzon:
So should i put it on the lower part of the build.prop?

Anyway phone had this heat on v14..

And it seems interactive governor is so slow on charging.

Any fix? Thanks guys.
[Galaxy S 4 i9500 Android Development] Degrated Shadow:
I don't see how interactive governor hurts charging at all.. governor is for the CPU scheduling. It doesnt have anything to do with charging mechanism..
[Galaxy S 4 i9500 Android Development] braulio_holtz:
Is stable in cyanogenmod? Have a bug?
[Galaxy S 4 i9500 Android Development] gio_b:
Some minor bug.

Giovanni.
[Galaxy S 4 i9500 Android Development] menkyy:
i little bit confused here, so tell me what should i choose between recovery zip or boot zip?
[Galaxy S 4 i9500 Android Development] AL_IRAQI:
boot zip
[Galaxy S 4 i9500 Android Development] rhaspody:
hi. is there anyway to add fast charge to this kernel
[Galaxy S 4 i9500 Android Development] sahilg009:
Hi can you add cifs support in this kernel
[Galaxy S 4 i9500 Android Development] gio_b:
No , you have to change kernel ,try perseus ,and install synaspse from playstore ,and from there "synapse" you can tweek.

Giovanni.
[Galaxy S 4 i9500 Android Development] maxfu:
Long time no see.

Hello guys. Long time no see.

Sorry for being absent for such a long time. I met some problem during this time. The kernel became unstable and I cant get it fixed by reverting the changes. So I restarted the code with the code for my CT-I9502. Now it works well on my 9502. So I decided release a build for GT-I9500 these two days.

Regards.
[Galaxy S 4 i9500 Android Development] Alex-stroev:
Waiting for new release!
[Galaxy S 4 i9500 Android Development] dlegric2:
Hi maxfu. Can't wait for new release. Been using this kernel for some time nowcanf I love it. Cheers
[Galaxy S 4 i9500 Android Development] dlegric2:
Hi maxfu. Any luck with i9500 kernel update? Thks
[Galaxy S 4 i9500 Android Development] Arch9:
Read post above
[Galaxy S 4 i9500 Android Development] Droidcore:
will update!

Don't ask ETA
[Galaxy S 4 i9500 Android Development] leokak:
It works on SOKP 4.4.4?
[Galaxy S 4 i9500 Android Development] rhaspody:
yes it works just look for the one with aosp
[Galaxy S 4 i9500 Android Development] aakashdahake:
Hey Maxfu !!!

Anything new we r getting with d new one, feature or enhancement?
[Galaxy S 4 i9500 Android Development] zain.ahmad:
no stweak app

hey no stweak on my phone?? latest v 14 version
[Galaxy S 4 i9500 Android Development] zozoz13:
Download first from playstore

Anyone have a solution regarding the android os is the highest consuming the battery? Thanks before ..
[Galaxy S 4 i9500 Android Development] zain.ahmad:
yeah thanks i got it
[Galaxy S 4 i9500 Android Development] AL_IRAQI:
[MENTION=3805586]maxfu[/MENTION] released v15 for Samsung Roms 4.4.2 in chinese site
[Galaxy S 4 i9500 Android Development] Alex-stroev:
Link Please
[Galaxy S 4 i9500 Android Development] dlegric2:
Great news.:)
[Galaxy S 4 i9500 Android Development] braulio_holtz:
http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=i9500

I9500XXUGNG3

GT-I9500_EUR_KK_Opensource_Update1.zip

GT-I9500_EUR_KK_Opensource.zip

GT-I9500_CHN_JB_Opensource_Update3.zip
[Galaxy S 4 i9500 Android Development] ktouy:
Those are only for TW roms?

Edit: nothing... I got it
[Galaxy S 4 i9500 Android Development] braulio_holtz:
This is the code, developers can update the existing kernel with possible improvements from Samsung
[Galaxy S 4 i9500 Android Development] alex3run:
Here is the link:

http://bbs.gfan.com/android-6952611-1-1.html
[Galaxy S 4 i9500 Android Development] jeanmarctarabay:
anyone tried v15 yet? im downloading now with some help of Google translate.( everything is in Chinese)
[Galaxy S 4 i9500 Android Development] alex3run:
Almost all user installed apps fail to open. Even Google Play crashes.