yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9500 Android Development] asad007:
Which zip ?

If it is the addon which is giving you error

Try using TWRP

OR

Manually put the tweaks file in /system/etc/init.d/ and set permission as rwx-rwx-rwx (tick everything )
[Galaxy S 4 i9500 Android Development] Soft4y:
Not addon ,error is at kernel zip.. :)
[Galaxy S 4 i9500 Android Development] asad007:
Link updated with a minor fix , the kernel version is still 7.6 so if you had downloaded already please redownload :)
[Galaxy S 4 i9500 Android Development] asad007:
Try using TWRP :) and redownload the kernel
[Galaxy S 4 i9500 Android Development] Soft4y:
Flashed with TWPR ,no problem :) thank you man,everything is working flawless :)
[Galaxy S 4 i9500 Android Development] ImjuzCY:
Okay the volume is a bit too high for me. But 7.5 is too low. So somewhere in between would be great
[Galaxy S 4 i9500 Android Development] shiruuu.samad:
[MENTION=4296690]asad007[/MENTION] Which app can i use to control this kernel?both synapse and stweaks show not supported i want to charge as 2.1Amp rather than stock 1.9.

From my s4 Powered by

Prism barebone v15
[Galaxy S 4 i9500 Android Development] asad007:
Try now ;)
[Galaxy S 4 i9500 Android Development] ImjuzCY:
How do I revert changes from LWK addon and LWK tweaks? It's causing problems
[Galaxy S 4 i9500 Android Development] asad007:
Delete /system/etc/init.d/tweaks.sh
[Galaxy S 4 i9500 Android Development] asad007:
OP UPDATED with Version 8.2 Which is the Last Version

Thank you Guys for your support

have a nice day :)
[Galaxy S 4 i9500 Android Development] ImjuzCY:
Thanks for everything you did. But one last thing, the package name is 8.1 instead of 8.2
[Galaxy S 4 i9500 Android Development] asad007:
Typo XD (in the OP ,the package is fine)
[Galaxy S 4 i9500 Android Development] ImjuzCY:
I'm having trouble installing apps after flashing 8.1. Sorry I know it's consuming a lot of your time, but can you check? My /cache partition is full after flashing. And this also cause that my apps that are on SD not usable.

Clearing cache is not helping as it is filled during the optimising app stage on boot. Experienced this before when I was using your addon. And now on 8.1 again.
[Galaxy S 4 i9500 Android Development] rgshah3:
Discontinued so early :(

Thanks for everything [MENTION=4296690]asad007[/MENTION]
[Galaxy S 4 i9500 Android Development] asad007:
Open /system/etc/init.d/tweaks.sh

And remove the following lines :

CACHESIZE=$(df -k /cache | tail -n1 | tr -s ' ' | cut -d ' ' -f2)
if [ $CACHESIZE -gt 80000 ]
then
echo "Large cache detected, moving dalvik-cache to /cache"
if [ ! -d /cache/dalvik-cache ]
then
busybox rm -rf /cache/dalvik-cache /data/dalvik-cache
mkdir /cache/dalvik-cache /data/dalvik-cache
fi

busybox chown 1000:1000 /cache/dalvik-cache
busybox chmod 0771 /cache/dalvik-cache

# bind mount dalvik-cache so we can still boot without the sdcard
busybox mount -o bind /cache/dalvik-cache /data/dalvik-cache
busybox chown 1000:1000 /data/dalvik-cache
busybox chmod 0771 /data/dalvik-cache
else
echo "Small cache detected, dalvik-cache will remain on /data"
fi

Then hit reboot ; it should be fine afterwards
[Galaxy S 4 i9500 Android Development] asad007:
I Started this thread cause I required a stable and optimized kernel for daily usage

As perseus was not available for lollipop

I think I got what I desired
[Galaxy S 4 i9500 Android Development] yuber26:
how about battery? anyone test v8.1? Thanks for your hard work mate :)
[Galaxy S 4 i9500 Android Development] mor_1228:
all of us have to do this or those facing problem ?
[Galaxy S 4 i9500 Android Development] mor_1228:
Stweak showing kernel not supported latest 8.1

Any help as sypnanses don't have all the options.

I read your battery saving tips I cant find options in sypnanses

U said 600mhz means all 4 cores from 1600 to 600?

Device was lagging like snail on 600
[Galaxy S 4 i9500 Android Development] ImjuzCY:
Synapse doesn't work like other app especially for our big.little cpu. You need to set to 1200mhz to get so called 600mhz. There will be two 1200mhz use the one on the left as it only use the a7 cores if you set to that. If not you'll get a15 and a7 cores.
[Galaxy S 4 i9500 Android Development] mor_1228:
what other app we can use to tweak ? stweak not working kernel not supported
[Galaxy S 4 i9500 Android Development] ImjuzCY:
Synapse support is enabled so I think op will recommend to use synapse. But other kernel app may also work. I can use kernel adiutor but it has less support for this kernel.
[Galaxy S 4 i9500 Android Development] mor_1228:
it should be like this ? cant find left what u were saying i can only this option. :
[Galaxy S 4 i9500 Android Development] ImjuzCY:
As you slide along the slider, from left to right, you'll see 200mhz at the most left and increasing gradually until 1200mhz and if you slide it right again you'll see a drop to 800mhz. This is where the a15 frequency starts. So it will be like this : 200-1200 then 800-1600. The first 200-1200 is the frequency for a7 cores and the next 800-1600 is the frequencies for a15 cores.
[Galaxy S 4 i9500 Android Development] mor_1228:
thnkx for the explanation bro so what should i go for best battery with no lags

left : 1200 right : 1600

or

left : 1600 right : 1200

or

left : 1200 right : 1200
[Galaxy S 4 i9500 Android Development] ImjuzCY:
You can't choose two because the two cpus won't work together. For example if you choose max limit is 800mhz on the a15 side then it will use up to 1200mhz on a7 cores and 800mhz on a15 core. For me I choose 1200mhz on a7 core so that a15 core which is more battery demanding isn't used.
[Galaxy S 4 i9500 Android Development] mor_1228:
isnt we should set a15 to 1200 as it is more battery demanding ?

so now according to you below is fine now ?
[Galaxy S 4 i9500 Android Development] ImjuzCY:
No. You can't control frequency for both cpus. You can only make one limit. As I said the frequencies: 200a7, 300a7,............, 1200a7, 800a15, 950a15, 1000a15,......, 1200a15, 1300a15,.........,1600a15. Notice that there is two 1200mhz. If you choose a max frequency, for example 1200a7, it will use all the frequencies on its left, that is 200a7, 300a7 and until 1200a7. If you choose 950a15, then it will also use all frequencies on its left which will be 200a7 300a7 until 1200a7 and then 800a15 and until your chosen 950a15.

So in the second example you will have two 800mhz two 950mhz two 1000mhz two 1100mhz and two 1200mhz. One of each from each cores. (800a7 and 800a15, 950a7 and 950a15 etc)

Check this http://xdaforums.com/showpost.php?p=60852013&postcount=612
[Galaxy S 4 i9500 Android Development] mor_1228:
device didnt go in deep sleep. slept with 70% battery and woke up with 9% only. can someone help me with this ? all stock setting only frequency to 600mhz
[Galaxy S 4 i9500 Android Development] asad007:
Not kernel related must be a rom issue or some app must be awake all the time (find it out using wakelock detector )
[Galaxy S 4 i9500 Android Development] asad007:
See the straight line (almost straight)

That is when I slept with the kernel
[Galaxy S 4 i9500 Android Development] mor_1228:
will you share your kernel settings ? what all things you use. as we are in delhi so device is always hot due to weather here.
[Galaxy S 4 i9500 Android Development] asad007:
That's pretty much it

The phone does get hot in the sun

In Delhi the weather is always extreme
[Galaxy S 4 i9500 Android Development] mor_1228:
thnkx :

what is ur read ahead value for both internal and sd card ?

i set it to 1024kb
[Galaxy S 4 i9500 Android Development] asad007:
2048 for both
[Galaxy S 4 i9500 Android Development] mor_1228:
Mysterious battery drain by unknown thing. Prism rom v16
[Galaxy S 4 i9500 Android Development] ImjuzCY:
Reboot and you're good
[Galaxy S 4 i9500 Android Development] mor_1228:
it comes again
[Galaxy S 4 i9500 Android Development] ImjuzCY:
Check for kernel wakelock
[Galaxy S 4 i9500 Android Development] mor_1228:
kernel wakelock tab is missing in lollipop
[Galaxy S 4 i9500 Android Development] alaa96:
go to setting in wakelock detector and check the option of advanced mode to see the system app that are causing this issue cause it seems that there is no user app keeping the device awake
[Galaxy S 4 i9500 Android Development] asad007:
I had a issue where android os was taking up all the battery so I wiped cache ,dalvik and data , charged my phone after booting to 100

Then after sometime the screen was at the top of the battery drainers list

If you guys having similar trouble you can give this a shot
[Galaxy S 4 i9500 Android Development] TheSG:
Can someone please mirror v8.1 to gdrive or dropbox please?
[Galaxy S 4 i9500 Android Development] asad007:
Wait some time
[Galaxy S 4 i9500 Android Development] asad007:
Check OP

I GOT SOME TIME TO COMPILE THE KERNEL THE ONLY MAJOR CHANGES ARE

*Used XZ Compression

*Used Linaro Toolchain
[Galaxy S 4 i9500 Android Development] samuelgonzales:
Wow. U are back [MENTION=4296690]asad007[/MENTION]. I like your kernel. Light and more smoother. Hope u will continue it back. The latest version 8.2. Already downloaded and use it. :)
[Galaxy S 4 i9500 Android Development] asad007:
Minor update to make ui smoother ;)

(Uploading )
[Galaxy S 4 i9500 Android Development] asad007:
Done !!
[Galaxy S 4 i9500 Android Development] alaa96:
is it possible to make a version for aosp :)
[Galaxy S 4 i9500 Android Development] TheSG:
Thanks bhai for the kernel.
[Galaxy S 4 i9500 Android Development] khatkhatik:
thanks 4 coming back
[Galaxy S 4 i9500 Android Development] asad007:
I have tried a lot but i always get some sort of bug
[Galaxy S 4 i9500 Android Development] nevinjoseph:
Thanks a lot asad007 for the latest update.. I think the changes are really evident as I'm getting even better battery backup than VoLTaqe kernel v6.1. So far the kernel is running stable on aurora 8.5.
[Galaxy S 4 i9500 Android Development] mor_1228:
on prism rom v16. wipe as mentioned in 1st post flashed 8.2 and now stuck at samsung logo loop
[Galaxy S 4 i9500 Android Development] asad007:
Let it boot , first boot takes time as it optimises apps (give it around 3 minutes to boot)

Then tell me if it's still there
[Galaxy S 4 i9500 Android Development] 7outa:
Sometimes I have random reboot
[Galaxy S 4 i9500 Android Development] mor_1228:
prism barebone v16

before flashing ur kernel I was able to set ringtone and notification sounds which were there in internal sd card. but after flashing ur kernel those sounds are no more only the default ones are showing. other than that I can't use the custom ringtone. Any help?
[Galaxy S 4 i9500 Android Development] :
With LWK-8.5 (TURBO) , phone keeps crashing when running Antutu Benchmark :) I guess gpu was clocked too high
[Galaxy S 4 i9500 Android Development] asad007:
True but the interface feels smooth ,

So dont stress the gpu THAT much XD

Normal functions work fine idk about games i dont play them

If games crash then we have a problem lol
[Galaxy S 4 i9500 Android Development] :
Crashing during games too. Tried with Mortal Kombat X and Godfire.

Heats up quite quick. So i guess the safety trigger kicks in and phone restarts.
[Galaxy S 4 i9500 Android Development] asad007:
Does it happen in 8.2 also ,can you test ?

In 8.2 the gpu is at 640
[Galaxy S 4 i9500 Android Development] asad007:
I also hope you have not undervolted the cpu and that is causing the problem and not the gpu
[Galaxy S 4 i9500 Android Development] :
Did not touch any settings mate cause it doesn't have synapse support and also kernel toolkit fc. Completely stock. I suggest you try those games. Games nowadays are demanding as you already may know.

---------- Post added at 11:03 AM ---------- Previous post was at 11:03 AM ----------

No, i tested with s6 v2 .. mite try with 8.2 later mate. will keep you posted
[Galaxy S 4 i9500 Android Development] asad007:
Try WIth 9 it should be fine :)
[Galaxy S 4 i9500 Android Development] :
Stress testing now :)

edit:

massive drop in performance, game now lags after a while of playing.

check link below for the benchmark comparison against a stock i9500

http://prntscr.com/7mb9my
[Galaxy S 4 i9500 Android Development] asad007:
Do this thing and then try again

Disable powersave bias and conservative mode in ondemand governor settings

(Replace 1 with 0 to disable)
[Galaxy S 4 i9500 Android Development] mor_1228:
can u help with this ?
[Galaxy S 4 i9500 Android Development] zozoz13:
I think it's not kernel related. Try to clean flash the ROM then flash the kernel.

Sent from my Galaxy S4
[Galaxy S 4 i9500 Android Development] gio_b:
Not able to dowload lwk module from mega.

And ,what is it ?

Tks giovanni.
[Galaxy S 4 i9500 Android Development] mor_1228:
this happened only after flashing this kernel.
[Galaxy S 4 i9500 Android Development] asad007:
No such problem on my side , it should be rom related.
[Galaxy S 4 i9500 Android Development] Mango Polo:
today my phone restarted and bootloop began. Rom is Prism v16

clean flash with all wipes. this happened after 2 days of use.

turn off and battery of fixed this.
[Galaxy S 4 i9500 Android Development] papampi:
How long have you been using this kernel on Aurora 8.5 ?

is it stable and no fc ?

I'm on Aurora 8.5 and wanted to flash this.
[Galaxy S 4 i9500 Android Development] asad007:
THIS IS PROBABLY THE LAST UPDATE :

Changelog 9.5 :

*update wolfson drivers

*Applied dynamic read-ahead

*set gpu min frequency 350 Mhz

( note : The last three gpu freqs used the same voltage so i dont think battery would be affected much )

*use simple ondemand governor for gpu

*put cpu freq stats to module

*Some display Optimizations

*Add vr io scheduler

*Use quiet cpu governor for UKSM and Reduce the cpu usage
[Galaxy S 4 i9500 Android Development] RoCorral:
[MENTION=4296690]asad007[/MENTION] you can't get over it... you are a developer... Antes always will be there's no last update ever... ?... this is the best kernel I ever used... simple nice and smooth

???

Enviado desde mi GT-I9500 mediante Tapatalk
[Galaxy S 4 i9500 Android Development] pushpak359:
After install 9.0 my phone boot loops for 2 times and then started, why? any idea. still happened with 9.5 .
[Galaxy S 4 i9500 Android Development] nevinjoseph:
Right now I'm on v9.2 running on aurora 8.2 with uv set to - 115 mV and I'm getting super battery backup. I'm pretty content with the performance and battery life. Do you think the battery life will deteriorate with 9.5 or is it optimised better than 9.2? Btw great job with v9.2. The battery life is phenomenal.
[Galaxy S 4 i9500 Android Development] alaa96:
and is it stable at -115 ? :) if so that is good news i hope that a kernel supporting aosp pops up eventually :p
[Galaxy S 4 i9500 Android Development] asad007:
Test version :

https://www.dropbox.com/s/o9l6z96yla7mzf1/LWK-9.5-i9500-CM.zip?dl=0

Give feedback ASAP!

You kiddin' me bro ?

I cant even go below -75

Give the latest version a shot ;)

Darn right you are !!
[Galaxy S 4 i9500 Android Development] nevinjoseph:
Yes it is so far and the battery life is exceptional. My phone was unstable @ - 115mV when I was using voltaqe 6.3. Phone would reboot at random when under heavy load. Also the batter seemed to drain a bit more than with LWK. Will stick with 9.2 for a while now as it has been working great for me.
[Galaxy S 4 i9500 Android Development] nevinjoseph:
No kidding bro. Here is a screenshot of my voltage setting. The rest of the setting I have kept default. I will try v9.5 and see if I get the same results.

Anyway thanks for continuing with the development. The kernel is almost perfect I must say.
[Galaxy S 4 i9500 Android Development] asad007:
Its not -115

The default voltage of the highest core was 1100 and yours is 1035 (approx) so it comes out to be -65mV

You can go below than that like 10 or maybe 20 mV below
[Galaxy S 4 i9500 Android Development] majid.a505:
Is this kernal.. Save more battery ??? I use haylocin rom
[Galaxy S 4 i9500 Android Development] u7Xz:
can i have link of 9.2
[Galaxy S 4 i9500 Android Development] asad007:
Added to OP
[Galaxy S 4 i9500 Android Development] asad007:
Can anyone please test the CM Test version :

https://www.dropbox.com/s/o9l6z96yla7mzf1/LWK-9.5-i9500-CM.zip?dl=0

Thanks
[Galaxy S 4 i9500 Android Development] zozoz13:
The kernel boot finely. I'm test it now with Resurrection Remix v5.4.5. Here's my report:

- Wifi and Bluetooth can turn on, but it can't connect.

- Sound volume too loud. Set to 50% then it cracking. With stock kernel it cracking when reach 75%

- Camera works flawlessly. Very fast while i open it. Tried to stressing it, and still work very well without any issue.

- I can't confirm network work or not. Because i don't have quota right now :D

- Phone powered off when connected to PC AND charging

- Will keep finding..

Will test it with Resurrection Remix v5.4.8 later.

Edit: I guess wifi and bluetooth can't connect is ROM related. I tried your kernel and VoLTaqe, both has same issue, can't connect to wifi and bluetooth. I think this ROM version not fully compatible with yours and VoLTaqe. Will try with v5.4.8 and other ROM's.
[Galaxy S 4 i9500 Android Development] :
deleted
[Galaxy S 4 i9500 Android Development] nevinjoseph:
Speaker distortion when playing music in v9.2. Could anyone tell me where the config file of wolfson sound control is located so that I can tweak it to my liking?
[Galaxy S 4 i9500 Android Development] asad007:
...REMOVED
[Galaxy S 4 i9500 Android Development] asad007:
REMOVED

AOSP version is still Buggy
[Galaxy S 4 i9500 Android Development] jack9394:
RR 5.4.8 was on voltage kernel everything worked well, when flashed this kernel my baseband was lost even if i flashed modems so flashed back voltage kernel and everything get back to normal so maybe if you fix this issue i'll tried back again
[Galaxy S 4 i9500 Android Development] batuhur:
Im on latest RR and I lost my baseband when I flashed this kernel. And phone shuts itself down when you connect the charger! Cant use it so reverted back to stock.
[Galaxy S 4 i9500 Android Development] :
Ramdisk issue that's why y'all lost the baseband / imei.
[Galaxy S 4 i9500 Android Development] majid.a505:
Hi please help, , I buy new battery for my s4 it 2800 ma ,, and original battery was 2600, now the problem I charge phone until 95% then its jump to 100% . when I restart phone or use phone it back to 95%,, I check the phone it only charge 2600 ma from battery and 200ma not get charged, any 1 help to change phone kernal that let phone charge 2800ma ??? Thank you for help
[Galaxy S 4 i9500 Android Development] nevinjoseph:
Install the advanced battery calibration app from play store and do a calibration after fully charging the phone..
[Galaxy S 4 i9500 Android Development] asad007:
OP Updated With Version 9.6

ENJOY!
[Galaxy S 4 i9500 Android Development] jack9394:
aosp support?
[Galaxy S 4 i9500 Android Development] asad007:
Not yet
[Galaxy S 4 i9500 Android Development] zozoz13:
I just try v9.7 and it running smooth on Prism BB v15. Not tested battery life yet. But it seems better.

Sound distortion not fully fixed yet. Yes, the sound is reduced, but when it set to Max volume sound is still distorted (just a little bit). [MENTION=4296690]asad007[/MENTION] can you add sio or sioplus I/O scheduler? It best for battery life and file transfer is fast.

Thanks for keep this kernel life :)
[Galaxy S 4 i9500 Android Development] nevinjoseph:
Soultion for sound distortion on speakers

After doing a bit of digging I have found the culprit for sound distortion through speakers to be the default wolfson eq setting.

You can change the setting by going to /sys/class/misc/wolfson_control and editing the files that control the eq setting using a suitable file manager and note file editor app. I use ES file Explorer to do the same. You can also use the same procedure to increase the speakers volume output. Given below are the values I use which for me gives clean and distortion free output.

Eq_sp_gain1 : -4

Eq_sp_gain2 : -4

Eq_sp_gain3 : -2

Eq_sp_gain4 : 6

Eq_sp_gain5 : 8

Speaker_volume : 8

Hope this helps. Also I would like to request the OP to check these settings out and if you can, make this the default one for the next version.
[Galaxy S 4 i9500 Android Development] asad007:
[MENTION=6045715]nevinjoseph[/MENTION]

i'll Add that in next minor update with some ramdisk fixes
[Galaxy S 4 i9500 Android Development] nevinjoseph:
I'm very glad that you've granted my request.. Anyway I'm running on the latest 9.7.1 version and everything does feel stable and smooth. But I'm facing just 2 issues with the latest update.

1. The wifi tends to disconnect and takes some time to reconnect to an already connected network. Never had issues with the 9.2 version I've been running previously.

2. Also noticed a bit of excessive battery drain with the latest version when compared to 9.2.

I think with 9.2 everything was just perfect as phone was running smoothly. The only issue I faced with 9.2 was that phone would reboot once or twice at random over a period of one or two days. So far I'm really liking the kernel and the direction in which the development is headed. Stable, smooth and battery friendly are the highlights of this kernel. Once again thank you for your active development in making this kernel the best offering for our i9500.
[Galaxy S 4 i9500 Android Development] asad007:
LWK-9.8-BETA

Changes :

* New Governor (figure out yourself which one)

* SIO io-scheduler

* logger: Add an enable toggle for entry storage

* zram module

This Version is BETA so test it out
[Galaxy S 4 i9500 Android Development] asad007:
Op updated with v9.8 :)
[Galaxy S 4 i9500 Android Development] Aayan 123:
I cant use synapse in v9.8?

It says no UCI support detected cant it be used with this version?
[Galaxy S 4 i9500 Android Development] asad007:
Synapse is not supported see changelog
[Galaxy S 4 i9500 Android Development] Aayan 123:
Which app is supported? If you could kindly tell me...
[Galaxy S 4 i9500 Android Development] asad007:
Any app from playstore apart from stweaks and synapse

I personally prefer kernel adiutor
[Galaxy S 4 i9500 Android Development] Aayan 123:
Ok Thankyou mate
[Galaxy S 4 i9500 Android Development] asad007:
Zzmoove profiles attached

enjoy !

The First one is modified to lwk'ed and applied by default ;)

NOTE : SET "HOTPLUG MAX LIMIT" TO "4"

IF YOU USE LWK'ED PROFILE

(I FORGOT TO SET IT

OR ONLY YOUR 3 CORES WILL BE USED )

There is also a profile no .11

To apply a profile just set profile number in the governor parameters
[Galaxy S 4 i9500 Android Development] Aayan 123:
Can you provide us with a link... and which profile do you recomment profile number?
[Galaxy S 4 i9500 Android Development] asad007:
I use profile no. 5

Zanezam battery plus
[Galaxy S 4 i9500 Android Development] RoCorral:
Sorry for the noob question but how are profiles enabled [emoji16]

Enviado desde mi GT-I9500 mediante Tapatalk
[Galaxy S 4 i9500 Android Development] Halcyon:
Plz google play link or something for the app For CPU Control and what do you use For Battery Calibration sir?

And you said ondemand_sec is better for exynos so why you didnt make it for default.

Also its start from 250mhz and not 100mhz and i dosent see screen off max cpu frequency that its power saving. So you mean you've just edited stock kernel. Can you mension what is the base kernel? Is it for OB8 ?
[Galaxy S 4 i9500 Android Development] asad007:
I meant that only

Ondemand varied by Samsung = ondemand sec

Yeah I have just added the governor and used different compression lol ( nothing fancy here )

Base is OA7
[Galaxy S 4 i9500 Android Development] asad007:
Link :

https://play.google.com/store/apps/details?id=com.grarak.kerneladiutor

Notice that the app dev is same as the one for rom switcher :thumbup:
[Galaxy S 4 i9500 Android Development] asad007:
Just confirmed the no sound bug yes it's there
[Galaxy S 4 i9500 Android Development] codybank_789:
I have a question regarding the cpu app. There is an option to turn off cores. Will it save power or just leave the core on doing nothing ? Im asking this cause i dont think our cpu have the ability to turn off cores individually.
[Galaxy S 4 i9500 Android Development] asad007:
Our cpu have the ability to turn off cores indivisually