yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9500 Android Development] zozoz13:
Official CM support dropped since it has bug like that, laggy as hell. Only GearCM 12 support left.

Sent from my Galaxy S4
[Galaxy S 4 i9500 Android Development] MostaphaHida:
Bad to hear that any way thanks mate.
[Galaxy S 4 i9500 Android Development] MostaphaHida:
I tried this kernel with gear cm 13 and it keep hanging then force restart!
[Galaxy S 4 i9500 Android Development] asad007:
With default settings? Or did you make changes ?
[Galaxy S 4 i9500 Android Development] MostaphaHida:
Default, while installing apps or applying theme phone hangs then force restart im on cm12.1 official now
[Galaxy S 4 i9500 Android Development] asad007:
Strange not happening on my side.
[Galaxy S 4 i9500 Android Development] asad007:
To all who felt lags , I updated the kernel with some ramdisk changes that reduce lags ( changes to hotplug and LMK mainly )

Enjoy !!
[Galaxy S 4 i9500 Android Development] mash20:
Thanks for update ,

Can you give me your LMK values because it didn't change

Thanks in advance
[Galaxy S 4 i9500 Android Development] asad007:
Lmk values change after a while ( almost a minute after boot ) , if you opened the kernel app before that it may show you default ones

Anyways.
[Galaxy S 4 i9500 Android Development] MostaphaHida:
thanks for your hard work and the new update, more stable than previous version no force restart anymore but sometimes while installing apps screen stops responding for few seconds then it says not responding for system ui or some random apps, not really matter for the time.. So far overall great performance. Thanks
[Galaxy S 4 i9500 Android Development] BenDroid1:
I dont know if this has been mentioned or not but the latest update caused freezing and rebooting when it didnt before. Now when i downgrade that is go back to the other version it does the same
[Galaxy S 4 i9500 Android Development] asad007:
Did you wipe kernel app data before flash ?
[Galaxy S 4 i9500 Android Development] BenDroid1:
Tried that earlier. Still happens but less frequent
[Galaxy S 4 i9500 Android Development] asad007:
I need you to test this,

Set swappiness to 0 and then check whether reboots occur or not ?
[Galaxy S 4 i9500 Android Development] BenDroid1:
Hey [MENTION=4296690]asad007[/MENTION] i did jussst that.. I came back and found the phone rebooting 20min after and the changes reverted . keep in mind im on v7 where the reboot was lesd frequent
[Galaxy S 4 i9500 Android Development] lucasromero-:
The last kernel doesn't boot up with RR 5.6.5 MM.
[Galaxy S 4 i9500 Android Development] krasCGQ:
What version you flashed?
[Galaxy S 4 i9500 Android Development] asad007:
Updated the kernel

* most ramdisk tweaks removed

* increase screen saturation (now looks great)

* aggressive LMK values

* new VM values

* Tweak interactive governor (but it seems to show old values although they should be changed)

- to differentiate this version the name has an "x" in it.
[Galaxy S 4 i9500 Android Development] lucasromero-:
I think the last previous version got something wrong with RR MM , that's why don't boot up, but the "X" version is working smooth.

Thax [MENTION=4296690]asad007[/MENTION] :good:
[Galaxy S 4 i9500 Android Development] mahdik.m:
Hi

We all know about problems of exynos cpu

According to overheating of s4 9500

Is there any way to take the heating under the control ?

This kernel can do this?
[Galaxy S 4 i9500 Android Development] asad007:
As far as i have noticed , it is due to GPU

So reducing GPU max freq benefits
[Galaxy S 4 i9500 Android Development] ridershahmir:
Well might be gpu but I successfully controlled heating issue on cm13 , just underclock to 1.2 ghz, ondemand sec governor and undervolt to - 35mv, no heating issue plus best battery life
[Galaxy S 4 i9500 Android Development] lucasromero-:
And how we can reduce de GPU max freq? in the last kernel? and what app we can use?
[Galaxy S 4 i9500 Android Development] asad007:
You need to do it with terminal but I guess kernel manager allows to define your own syspaths so that can be used too.

First (in terminal) :

su

Hit enter (to gain root)

Then :

echo "480" > /sys/devices/platform/pvrsrvkm.0/sgx_dvfs_max_lock

Instead of 480 you can use following

700 (if you are that crazy)

640

600

532

480 (default max of LWK)

350

266

177 (default min of LWK)
[Galaxy S 4 i9500 Android Development] mash20:
[MENTION=4296690]asad007[/MENTION]

Can you add more cpu governors and IO schedulers ?
[Galaxy S 4 i9500 Android Development] u7Xz:
I got a random reboot and when it booted my app data were gone like nova forgot his settings it did reseted etc. Restored my backup here is my log. And should i clear cache/Dalvik Cache after flash the kernel? I always delete data of my kernel app by the way.
[Galaxy S 4 i9500 Android Development] BenDroid1:
Ok now im just tired and frustrated, sorry if im coming on too strong [MENTION=4296690]asad007[/MENTION] but your kernel was working soo fine before the last two updates. now im watching a video on my phone and 15 minutes hasnt passed before it freezes then i have to restart the phone and know its gonna happen again! its frustrating cuz this didnt use to happen

im using latest version of kernel on RR MM. no settings changed in kernel auditor

ok i just turned down max gpu to 350. now it lasted without reboot for about an hour this time then phone just froze in playback again. no other solution. even my kernel auditor is wiped
[Galaxy S 4 i9500 Android Development] asad007:
People who don't like this kernel , I'll just sit here and do nothing about it ( you yourself took the risk of flashing , I don't care if you lost some data or whatever the case may be ).

Goodbye.
[Galaxy S 4 i9500 Android Development] asad007:
That's because I use ccache for faster building , install ccache first

sudo apt-get install ccache

And then build ,

Also if you would like to collaborate , I'll make little changes to the source when I have time and you can too

This way I'll be able to keep up support !

And perhaps expand support to TouchWiz
[Galaxy S 4 i9500 Android Development] :
[MENTION=4296690]asad007[/MENTION] I didn't see krasCGQ was working on building already earlier so I already compiled the kernel for you :laugh: I sent you a private message with links to the kernels. :highfive:
[Galaxy S 4 i9500 Android Development] asad007:
Thanks!!

I hope you compiled with latest changes I'll update the OP :)
[Galaxy S 4 i9500 Android Development] :
Yes I used lastest source on your github :highfive:
[Galaxy S 4 i9500 Android Development] asad007:
OP updated with new version! Enjoy

Big thanks to [MENTION=5963088]jwchen17[/MENTION] for compiling
[Galaxy S 4 i9500 Android Development] mash20:
There is changlog for this version or the same ?
[Galaxy S 4 i9500 Android Development] :
you can go to his source github and see his commits, u will know what has he changed recently
[Galaxy S 4 i9500 Android Development] u7Xz:
I didnt wanted to mean something bad. I just try help to improve the kernel. I just told what happened and give the log. I always follow you work and appreice it. Still the best kernel out there and im always using it. I know that flashing things are risky and i always make a backup i dont lost my data and even i lost you shouldnt care i just wanted to say the problem. I hope you understand now. Thanks.
[Galaxy S 4 i9500 Android Development] BenDroid1:
Yea man [MENTION=4296690]asad007[/MENTION] i dont understand what's up. Im sorry if i was a little hard or sounded unappreciating i can assure i support u 100% i have been with this kernel since 1.0 and u have faced many issues and ur zeal and ur gift in programming made u push on you're make the awesome kernel. So i know that you won't give up now. Its just a bump in the road. So im sorry ok. I was just tryna watch my tv show and it kepts freezing every couple minutes so i got a little frustrated. Please understand. Thank u :). I know you will
[Galaxy S 4 i9500 Android Development] asad007:
I hope the latest one is non-problematic :)
[Galaxy S 4 i9500 Android Development] krasCGQ:
XDA Labs bug ruined everything lol; need to press Reply button just to see your reply haha...

:good:
[Galaxy S 4 i9500 Android Development] asad007:
With Latest version :)
[Galaxy S 4 i9500 Android Development] mash20:
Latest version is stable no random reboots,no lags,very good battery life

Thanks!
[Galaxy S 4 i9500 Android Development] mash20:
I have got freeze when I watching video on YouTube app and I force restart my phone

(This is the second time I have freeze on YouTube)

logs

https://www.dropbox.com/s/j5k72dfzlwcy0cy/logs.zip?dl=0

[MENTION=4296690]asad007[/MENTION]
[Galaxy S 4 i9500 Android Development] u7Xz:
Same happened. It frezees its not a random reboot. Need to hard reset it so i couldn't get a last_kmsg but in my dmesg it looks like its because our phone gets hot and a (cpu 3 fails maybe?) since im not a developer i cant understand it right here i attach the file. Thank you again [MENTION=4296690]asad007[/MENTION] this build is way more better and it will go better. :good:
[Galaxy S 4 i9500 Android Development] u7Xz:
And here are the logs from him i download them and attach them here so you can look better at them [MENTION=4296690]asad007[/MENTION] .:good:
[Galaxy S 4 i9500 Android Development] mash20:
Another fereezes

1- https://www.dropbox.com/s/pgdqnvzwakcngkd/Logs3.zip?dl=0

2- https://www.dropbox.com/s/mq0z9vlqb9b7ctl/Logs2.zip?dl=0

(logs)
[Galaxy S 4 i9500 Android Development] afaquekhaja:
What combination of rom & kernel has best battery life?
[Galaxy S 4 i9500 Android Development] mash20:
Freeze and reboot when I playing
[Galaxy S 4 i9500 Android Development] mash20:
Another Freeze and reboot :D

logs

https://www.dropbox.com/s/3lg5r3lna1gd766/Loogs4.zip?dl=0
[Galaxy S 4 i9500 Android Development] BenDroid1:
Freeze and reboot. Phone deadly over heat and then boot loop. Had to reflash
[Galaxy S 4 i9500 Android Development] mash20:
[MENTION=4296690]asad007[/MENTION]

Another Freeze when I watching In youtube :(

logs

https://www.dropbox.com/s/obpxzhnjyccb4fx/Logs5.zip?dl=0
[Galaxy S 4 i9500 Android Development] mash20:
A lot of Freezes on Youtube

logs

https://www.dropbox.com/s/nd4gjbkrp8pg6f6/logs6.zip?dl=0

https://www.dropbox.com/s/nte8yloyiir3yv1/logs7.zip?dl=0
[Galaxy S 4 i9500 Android Development] krasCGQ:
[MENTION=5485453]mash20[/MENTION]

You're flooding Asad's thread with logs! :laugh:
[Galaxy S 4 i9500 Android Development] gp545:
Yes, please edit previous post of yours and add new logs with edit note if no one posted new one after you :)
[Galaxy S 4 i9500 Android Development] asad007:
It's better to attach logs here (easier to view)

Also the logs seem to have same errors.
[Galaxy S 4 i9500 Android Development] asad007:
New update !!

Version 's' (supposed to be stable)

Main updates :

* Enabled CRC to fix random reboots

* Tweak governor for snappy UI

* ability to lower the display brightness further

Enjoy....
[Galaxy S 4 i9500 Android Development] robsonsilva:
Thanks. Would using linaro 5.3 to compile the kernel?

https://releases.linaro.org/components/toolchain/binaries/latest-5/arm-linux-gnueabihf/
[Galaxy S 4 i9500 Android Development] BenDroid1:
Awesome kernel! Surprisingly good battery life. Never seen anything like it. Good job! Anyway one tiny tiny tiny problem. The brightness needs adjusting. Every few minutes it gets really low and i have to turn it up for the screen backlight to stabilize
[Galaxy S 4 i9500 Android Development] BenDroid1:
Oh boy i hooe u dont get all angry with me. Please dont. This kernel is nearing perfection trust me okay. But right now lets just keep pushing on. I realise that my phone is getting hot too fast with normal use and it charges slowly so even on charge with under clocked cpu and max freq 1300 the battery still goes down while playing clash of clans or doing whatever. Can you fix all this without compromising the amazing battery life
[Galaxy S 4 i9500 Android Development] asad007:
Wait I know a fix

Edit :

Version s1

* Removed ramdisk tweaks for brightness and charging ( caused problems )

Enjoy...
[Galaxy S 4 i9500 Android Development] mash20:
[MENTION=4296690]asad007[/MENTION]

Thanks for update !

Can you add more governors like alucard to save battery ?
[Galaxy S 4 i9500 Android Development] asad007:
Only alucard,

Because others will be just extra stuff.
[Galaxy S 4 i9500 Android Development] BenDroid1:
Yaay alucard.. Lol lots of governors just makes the kernel look cool
[Galaxy S 4 i9500 Android Development] u7Xz:
Yuppi the best one if for me Alucard. :)
[Galaxy S 4 i9500 Android Development] mash20:
[MENTION=4296690]asad007[/MENTION]

And can you open low frequencies ?

(250 200 150 100)
[Galaxy S 4 i9500 Android Development] asad007:
Low frequencies can be 'unlocked' but they become useless with hotplug ,

They will not be used,

Generally they are not used because load never reaches that low in 5.0+ ( my theory )
[Galaxy S 4 i9500 Android Development] rajubagwan:
[MENTION=4296690]asad007[/MENTION] new update kernel cm13 advance display not working
[Galaxy S 4 i9500 Android Development] asad007:
It was not working on any version I guess

(Very low priority)

Workaround :

Disable master sequence and register hook
[Galaxy S 4 i9500 Android Development] rajubagwan:
Thank u for your good work.....
[Galaxy S 4 i9500 Android Development] asad007:
Updated kernel

This one is last for a while now I'll take a break from XDA !!

PS. I forgot to push the changes to my github
[Galaxy S 4 i9500 Android Development] u7Xz:
Thank you a lot. <3 Take a break and rest mate. We love you.
[Galaxy S 4 i9500 Android Development] BenDroid1:
We really do love you bro! First guy to give me 6.5 hrs SOT with normal to harsh phone use from music to playing coc and texting. My phone starts at 100% at 10am and is at 20% by 5:00. Without charge! Omg. [MENTION=4296690]asad007[/MENTION] rest my Friend. Thanks for not giving up
[Galaxy S 4 i9500 Android Development] asad007:
Uploaded a Special version for MIUI KitKat

If anyone uses it please test it on both CM-based MIUI and maybe on Sam-based MIUI

And confirm whether everything works

Edit 1 :

On cm based miui everything is working and is rockstable

But i did not test the TW based one.

ps. MIUI does not support f2fs so keep this in mind if you are going to flash that.

wipe data and cache to ext4 before flashing the rom :)

Edit 2 :

If you get blue tint while playing YouTube videos,

1) Download "91fixoverlays " file

2) copy to /system/etc/init.d/

3) set permission as rwxr-xr-x
[Galaxy S 4 i9500 Android Development] asad007:
New Version !

Let the pictures talk ...
[Galaxy S 4 i9500 Android Development] u7Xz:
OMG! Looks soo coool will try as soon as possible by the way im on the lastest version before this one it works very fine will try this now governors looks sooo greaaattttt!!!11!!!
[Galaxy S 4 i9500 Android Development] robsonsilva:
Amazing. Excellent work! What rom are you using? The rr version uses the ramdisk of 5.7.0? Thanks.
[Galaxy S 4 i9500 Android Development] asad007:
GearCM13
[Galaxy S 4 i9500 Android Development] u7Xz:
Last version is good this far. Can i requests something? It is possible to implement quick charge?
[Galaxy S 4 i9500 Android Development] ridershahmir:
+1
[Galaxy S 4 i9500 Android Development] asad007:
I don't think so , but it is possible to modify input current ( which I already did in this version ).

So also test and report whether charging is faster or not ;)
[Galaxy S 4 i9500 Android Development] u7Xz:
When screen off, its very nice. Well charging but screen on values seems low. It does no go up while you use it on charger.
[Galaxy S 4 i9500 Android Development] asad007:
I have anyways reverted that in latest version (uploading) as it caused me problems while I was connecting my phone with PC

Also I have lowered GPU freq for Max battery savings.

New version will be uploaded in a while, enjoy!
[Galaxy S 4 i9500 Android Development] MostaphaHida:
Testing on RR 5.7.0..thanks for hard work :)
[Galaxy S 4 i9500 Android Development] mash20:
[MENTION=4296690]asad007[/MENTION]

The old Freezes is back in Latest version

(Freezes when I watching videos)

logs

https://www.dropbox.com/s/buvvgr8oe7cxlmh/logs.zip?dl=0
[Galaxy S 4 i9500 Android Development] asad007:
Do this and tell whether it happens or not

Open terminal

Type su and hit enter

Then type

echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/hotplug_cpu_up_load

And hit enter

And tell whether it still happens or not
[Galaxy S 4 i9500 Android Development] mash20:
I try it but the freezes not gone
[Galaxy S 4 i9500 Android Development] asad007:
Strange I'll look into it
[Galaxy S 4 i9500 Android Development] asad007:
I think you should do a clean wipe and reinstall the ROM boot into it and the after setting up everything then flash the kernel.
[Galaxy S 4 i9500 Android Development] mash20:
but I was use Lwk s2 and the freezes was gone ?
[Galaxy S 4 i9500 Android Development] asad007:
I enabled CRC after that version, freeze should be gone now as well.

So just to make sure it is related to kernel or not.
[Galaxy S 4 i9500 Android Development] asad007:
I have uploaded a test version (only for gearcm13)

Test for following things:

* Battery life and SOT ( post screenshots )

* Random reboots (if any)

* Overall smoothness

* Any other problem
[Galaxy S 4 i9500 Android Development] mash20:
Thanks

I will test it asap
[Galaxy S 4 i9500 Android Development] u7Xz:
Just flashed it the only thing i can tell so far charging speed is amazing!
[Galaxy S 4 i9500 Android Development] asad007:
That I think is a placebo , I didn't change anything related to charging.
[Galaxy S 4 i9500 Android Development] u7Xz:
Really don't know but charging speed is amazing LOL. Here is a SOT its really good and didn't faced a RR or freeze yet.
[Galaxy S 4 i9500 Android Development] u7Xz:
%14 left. Looks like i can get 3 hours SOT which is awesome for me. The test version is very good.
[Galaxy S 4 i9500 Android Development] asad007:
Uploading new version :

* Set GPU max freq 600mhz

* Tweak for faster charging

* Minor changes

Note - exodus and miui will not be further updated !

Edit : Done !!

Ps - I want to ask you guys that when I use my phone while charging, the charging current drops considerably. Do you guys get similar problems ?

Edit 2 :

LWK ultra

* previous versions plus tweaks !!!

PS : you need to download the ultra version.
[Galaxy S 4 i9500 Android Development] u7Xz:
I had the dropping issue before the first test version i had it but with the test 1 build everything is very fine. By the way let me add that i have got 3 hours with my oldest battery. I have a newer one which i use when the current one is completely finishes.

TL;DR i got 3 hours with old battery which is pretty good.
[Galaxy S 4 i9500 Android Development] asad007:
Updated the final version, ( this one is really final now)

Enjoy !

Wipe /cache before flashing !!!

Don't forget to give feedback of the final version ...
[Galaxy S 4 i9500 Android Development] robsonsilva:
Thank you for all the work. Testing... But hope still continue.
[Galaxy S 4 i9500 Android Development] u7Xz:
Last version seems pretty good! Can i ask something? What is this actually? Just want to learn more in-depth.
[Galaxy S 4 i9500 Android Development] asad007:
cpu-boost :

When certain bursty and important events take place, it might take a while for the current cpufreq governor to notice the new load and react to it. That would result in poor user experience. To alleviate this, the cpu-boost driver boosts the frequency of a CPU for a short duration to maintain good user experience while the governor catches up.

works with multiple governors like conservative, ondemand, interactive, etc. - Does not affect the sampling period/logic of existing governors. - Can have the boost period adjusted independent of governor sampling period.
[Galaxy S 4 i9500 Android Development] lucasromero-:
In the last version, i got lags, when unlock the phone, and when i trying to expand the notificacion bar, when open settings. is weird..

and I want to know also what our friend is asking !
[Galaxy S 4 i9500 Android Development] asad007:
Wipe /cache and reboot
[Galaxy S 4 i9500 Android Development] asad007:
Wipe /cache
[Galaxy S 4 i9500 Android Development] asad007:
Final LWK version on gearcm13

Used : Greenify + Naptime + leandroid + UnderVolt (-55 mV on all cores)
[Galaxy S 4 i9500 Android Development] mash20:
[MENTION=4296690]asad007[/MENTION]

Very Thanks for update

Now the charge is really fast !
[Galaxy S 4 i9500 Android Development] ridershahmir:
[MENTION=4296690]asad007[/MENTION] thanks for the fast charging , working better than before , can you please tell me what is the last thing in the screenshot below? And the proximity sensor isn't working , it was working fine in lwk 5.2, any solution?
[Galaxy S 4 i9500 Android Development] asad007:
I found a kind of a bug , increasing GPU max freq caused lags (don't know why) so I added back default GPU freq (if you want to overclock use terminal) , this fixes lags.

You need to download the final version again ,I added an "x" (in the name) to differentiate.

Enjoy !!

Also check proximity it should work as expected

Remember if you did not use GearRecovery to flash the kernel sensors wouldn't work !

(Don't know why exactly)
[Galaxy S 4 i9500 Android Development] asad007:
Also, if you want to use this kernel with your AOSP ROM , send me your boot.img with name of the ROM ( doesn't matter which android version )

But don't count on me to make it work perfectly if it doesn't.

Because the kernel will remain same I'll add ramdisk of that ROM so that it boots up fine.
[Galaxy S 4 i9500 Android Development] asad007:
Added Synapse Support!!

I don't think you can ask for anything else[emoji14]

This kernel now feels perfect.

Enjoy !
[Galaxy S 4 i9500 Android Development] aboodyaiman:
No specific installation to get Synapse work right? Just install the app and flash the kernel?
[Galaxy S 4 i9500 Android Development] mash20:
[MENTION=4296690]asad007[/MENTION] Very Thanks !

Can you tell kernel users whats the synapse features ?
[Galaxy S 4 i9500 Android Development] Aakash Kaushal:
Thanx for the update...but synapse is showing no uci support detected?
[Galaxy S 4 i9500 Android Development] asad007:
Clear its appdata then open it
[Galaxy S 4 i9500 Android Development] mash20:
Thanks works perfectly !!

And can you add "memory" and "network" and "power suspend" and "LMK" tabs to tweak only with synapse !?

(tunables in ondemand governor not show)
[Galaxy S 4 i9500 Android Development] asad007:
About Ondemand I know (but not a priority)

Others I'll think of later because I already have added tweaked values for them.
[Galaxy S 4 i9500 Android Development] asad007:
Added new final version now ( I don't think I'll add anything more now )

* More synapse options

* Fix synapse parameters

Enjoy !!
[Galaxy S 4 i9500 Android Development] BenDroid1:
Not working but let me try reinstallling it

---------- Post added at 10:05 AM ---------- Previous post was at 10:02 AM ----------

Confirmed. Even that's not working
[Galaxy S 4 i9500 Android Development] mash20:
Whats not work with you ?
[Galaxy S 4 i9500 Android Development] BenDroid1:
Synapse app. Saying no UCI support
[Galaxy S 4 i9500 Android Development] mash20:
reinstall synapse and give root permission then reinstall kernel

and disable mount namespace in supersu settings
[Galaxy S 4 i9500 Android Development] BenDroid1:
Saying same but this is a low priority problem
[Galaxy S 4 i9500 Android Development] mash20:
[MENTION=4296690]asad007[/MENTION]

Very Very Thanks for update !!!!

,Is there fix for IO tab
[Galaxy S 4 i9500 Android Development] u7Xz:
Everything fine here.
[Galaxy S 4 i9500 Android Development] mash20:
I think its not a big problem !;)
[Galaxy S 4 i9500 Android Development] ridershahmir:
[MENTION=4296690]asad007[/MENTION] I can't find gear recovery on the net , can you please share me the link? If you can. Thanks
[Galaxy S 4 i9500 Android Development] mash20:
https://www.androidfilehost.com/?fid=24421527759883765
[Galaxy S 4 i9500 Android Development] mash20:
[MENTION=4296690]asad007[/MENTION]

Is that Final version of kernel work on latest gearcm 13 update ?