yashsingh1/xdaforums huggingface dataset:
[Galaxy S 5 Android Development (Exynos)] duki994:
I played Galaxy Phatasy Prelude for about 55min, and browsed internet heavily + messaging and downloaded apps (Galaxy phantasy --> about 300MB).

Now I have 2h SOT and 57% battery :)

Plus I see that GPU got considerable boost from -ffast-math and -fgraphite (Graphite) optimizations. And it didn't even hit 480MHz too much :D

Max speed is 543MHz.

CPU was boosted with quad vectorizing with NEON instructions == much more parallel thread work with 60% less frequency.

This is almost on par with my old LG G2 with Dorimanx kernel. And S5 doesn't even have GRAM feature that saves even more battery on G2 :D
[Galaxy S 5 Android Development (Exynos)] duki994:
I have some exams now, but I'll see to set something in SELinux code to boot permissive and not f**k up app data.
[Galaxy S 5 Android Development (Exynos)] shahram Ali:
download it from post 2 http://xdaforums.com/galaxy-s5/development/rom-t3224562 :)
[Galaxy S 5 Android Development (Exynos)] Erfan S5:
Thanks:D
[Galaxy S 5 Android Development (Exynos)] rais.asif786:
As i said i don't have the access of my computer right now . that was a odin flashable file
[Galaxy S 5 Android Development (Exynos)] shahram Ali:
:confused: and i dont know a way to flash sboot,bin via mobile :( sorry
[Galaxy S 5 Android Development (Exynos)] duki994:
Version 1.5

* Disabled GPU tracing to squeeze out 3-6FPS more in games. Also should run smoother now.

* Framebuffer cmap buffer overflow check

* GPU OC --> 600MHz and 677MHz steps

---> use very carefully

* GPU min/max clock control
[Galaxy S 5 Android Development (Exynos)] shahram Ali:
testing but with 1.3 the phone started overheating :confused:
[Galaxy S 5 Android Development (Exynos)] duki994:
On boot yes. Because it's boot with full NEON instruction. And maximum CPU power.

Download 1.5 again. I reuploaded it. There was some MD5 error in zip + gpu control fixes in ramdisk and kernel.
[Galaxy S 5 Android Development (Exynos)] shahram Ali:
downloaded and testing :fingers-crossed:
[Galaxy S 5 Android Development (Exynos)] duki994:
Don't worry. You won't see any big real world difference in GPU speed. Even at 677MHz it's not getting out max performance. Maybe 10%-15% better. Maybe.

But at higher battery drain while playing heavy 3D games. No real benefit. I added it for those who want it.

And for everyone to be able to play with new Synapse elements :D

Only benefit is for GPU benchmarks like 3DMark (IMO real results GPU benchmark and PCMark real CPU/overall benchmark). But any of those benchmarks can be cheated.

Vendors (like Samsung) usually add in kernel and ROM binary code that finds specific benchmark app and boosts freq, voltage and temp limits by at least 25% while benchmarking!

And it can't be stoped. Well, who wants to cheat, let him cheat...

I also enabled (while testing) to see if 100MHz freq was enough for our GPU to run full HD S5 screen. But it wasn't. It was lagging horribly. So I didn't include 100MHz freq step in 1.5.
[Galaxy S 5 Android Development (Exynos)] gelarman:
thank u you're so kind to make all the hardwork for us
[Galaxy S 5 Android Development (Exynos)] shahram Ali:
until now it is very good dude will continue testing :)
[Galaxy S 5 Android Development (Exynos)] lucky_sidhu:
Nice work [MENTION=3441913]duki994[/MENTION]

I haven't tried it yet but I am sure it will be stable kernel for 900H users. Thanks from everyone.
[Galaxy S 5 Android Development (Exynos)] duki994:
And thank you for continuing XtreStoLite ROM :)
[Galaxy S 5 Android Development (Exynos)] lucky_sidhu:
Lol its almost over. Read the last comment in that thread I made right now.

BTW will this work on stock rom without dalvik clear ? coz its also enforcing.
[Galaxy S 5 Android Development (Exynos)] duki994:
I've seen that post. I meant in general for continuing edgar28's KK ROM :)

Oh, and I don't have that streaming issue everyone complains :D

Yes, kernel boots enforcing. That was my idea of booting with enforcing. So stock ROMs can be compatible without dalvik clear. And you can set permissive after boot in Synapse :)
[Galaxy S 5 Android Development (Exynos)] shazore:
will it work on BOI3 deodexed rom ?
[Galaxy S 5 Android Development (Exynos)] duki994:
Try, but first flash BOL2 bootloader
[Galaxy S 5 Android Development (Exynos)] duytung27:
sorry but can i use this for s5 G900J (japan version)?
[Galaxy S 5 Android Development (Exynos)] duki994:
In all probability, no. It's totally different model. And different HW.
[Galaxy S 5 Android Development (Exynos)] shazore:
flashing BOL2 bootloader didn't work for me, stuck on boot logo.
[Galaxy S 5 Android Development (Exynos)] duki994:
And BOK8 baseband.

If it doesn't work then change ROM base.
[Galaxy S 5 Android Development (Exynos)] shazore:
okay thank you
[Galaxy S 5 Android Development (Exynos)] gelarman:
there's a new file in the app box "kernel g900h",what is it i try 2 flash it but it still d 1.5 ver,but has smaller size compare 2 d 12 april 1.5
[Galaxy S 5 Android Development (Exynos)] duki994:
Version 1.6

Changelog:

* Disabled TIMA and some other Exynos specific non needed stuff

* New GPU Governor - Interactive

* GPU governor Interactive tunables exposed in Synapse

* Many GPU control code optimizations

* Reverted to stock DVFS OC table

* Fixed DVFS table for our SoC

* Set SELinux permissive on boot --> But after 20sec some ROM binary sets it back to enforcing.

Who wants SELinux permissive, he can set it in Synapse. But ROM boots permissive

* Better min/max GPU freq guards

* Updated touchscreen with powersuspend driver to see if it's possible to use wakeup gestures.
[Galaxy S 5 Android Development (Exynos)] duki994:
That was test version. I made a mistake and uploaded it in release folder.

Use 1.6
[Galaxy S 5 Android Development (Exynos)] jawzf:
Hey duki994, is it possible to use wake up gestures?:D

Also I'm on xtrestolite 2.4 but can't boot with your kernel.. Do I need to flash boot loader and modem?
[Galaxy S 5 Android Development (Exynos)] duki994:
Yup BOL2 BL and BOK8 BB.

No it's not possible to use wake gestures. I'm completely sure now.

LCD panel power and Synaptics touch power are connected.

When screen goes off it cuts power to touch too. No way to bypass this. It's HW designed that way.

No power to touch chip == nothing to register touches. So no wake gestures unfortunately...
[Galaxy S 5 Android Development (Exynos)] jawzf:
It's alright.. Thanks for trying though!! :good:
[Galaxy S 5 Android Development (Exynos)] rais.asif786:
Hey duki998 how much time it will take to make it compatible with all roms and i flash bol2 bb and modem but it's not booting again .. i want this kernel and i want to stay with scorpion rom and i really do not want to flash atock so can you help me out of all this
[Galaxy S 5 Android Development (Exynos)] duki994:
*BOK8 modem.

Kernel is based on latest BOG4 released sources, so modem/baseband needs to be 'around' that version.
[Galaxy S 5 Android Development (Exynos)] rais.asif786:
see the attached image i am on bok8 already but phone doesn't boot
[Galaxy S 5 Android Development (Exynos)] hamdi mert:
Can you add led ramp control?

Good luck
[Galaxy S 5 Android Development (Exynos)] duki994:
That's not helping me much find your problem, but I think I know where it is (if my spider senses are correct).

Change your build.prop as I wrote in OP, clear entire cache from TWRP (cache + dalvik/ART cache). Flash kernel. Reboot and wait. It should boot now.

If it doesn't, I don't know where problem is. Maybe I'll know if you pull logs out of phone.
[Galaxy S 5 Android Development (Exynos)] duki994:
What kind of controls specifically?

LED power on/off controls?

Or LED power on/off based on other factors?

Or LED intensity controls? :D
[Galaxy S 5 Android Development (Exynos)] duki994:
Version 1.6.1

* GPU control code revamped

* GPU frequency scaling logic revamped. Fixed various bugs introduced in stock and in min/max control code + optimizations

* Synapse: added monitoring current values for DVFS Interactive governor (for GPU).

* DVFS Interactive governor is now working very good.

* Sensorhub wakelocks reduced (sensorhub and ssp wakelocks)

GPU is now working much better than before, and is event heating less than stock while OC'ed to 600MHz :)

Note:

DVFS Interactive is good for powersaving or for beast performance while 3D gaming.

If you set lower highspeed_clock it'll try to be at that freq for most of time, so FPS will be lower.

If you set highspeed_clock to higher value, it'll also try to be at that freq for most of time when load exceeds highspeed_load % after highspeed_delay msec's.
[Galaxy S 5 Android Development (Exynos)] rais.asif786:
Ok i will provide logs later and one more thing i already tried dalvic cache clear and flash. And can you please provide stock build.prop
[Galaxy S 5 Android Development (Exynos)] TirtaRadix:
I'm on xtrestolite 2.4 but can't boot with your kernel, WHY? :(
[Galaxy S 5 Android Development (Exynos)] duki994:
Not that question again. Search thread. A few posts back i posted solution that works for most of people.
[Galaxy S 5 Android Development (Exynos)] Ben4x4:
duki994, thanks you very much for you work!!

I use synaps app for kernel params control. So, I set A15 and A7 cluster's freq to min value. Web (and TouchWiz :)) surfing have a superb battery save! But video playing "eat" the battery much more than in stock kernel by 1.5 - 2 times :(

Do you have any solutions for this?
[Galaxy S 5 Android Development (Exynos)] duki994:
I don't know. My battery drain with video playing is lower by 15% at least.

Wait for one charge cycle for kernel to set in.

I use MX player now. But even on stock, it's same.
[Galaxy S 5 Android Development (Exynos)] Ben4x4:
Hmm... What values of CPU and GPU do you use?
[Galaxy S 5 Android Development (Exynos)] duki994:
Stock CPU and stock GPU now.

I even want to underclock to 1.8GHz A15 cluster. Because Galaxy Alpha has it on 1.8GHz. It's 5% less performance and 25% less power used. 1.9GHz is not worth that much sacrifice. And it heats much less, so don't be surprised if you get 20% better benchmark score on lower A15 clock.

That's why Samsung chose 1.8GHz max on Alpha :)

Slightly lower max clock == much much lower power consumption == less thermal throttling == more benchmark points :)

Don't worry. GPU is not used in decoding videos. Otherwise battery drain would be insane. Dedicated DSP (and probably ISP) does HW video decoding.
[Galaxy S 5 Android Development (Exynos)] Ben4x4:
Thank you for the detailed response!
[Galaxy S 5 Android Development (Exynos)] duki994:
Version 1.7

Changelog:

* Fixed interactive governor logic. I forgot logic code for CPUFREQ_RELATION_C. Now interactive is 50% more responsive.

* Backport some ASLR changes

* Added ZEN IO scheduler and set it as default (beware that Synapse will auto reapply YOUR settings after boot, so ZEN won't be set. If you want it set it in Synapse I/O tab) :)

* updated GPU ION memory allocation code

* Exposed HMP up/down threshold tuning in Synapse ---> "HMP tuning" tab

* Fixed false adaptive LMK triggers --> less RAM clearing when not needed

I highly suggest ZEN IO as default IO sched and immediate update to this version of kernel :D
[Galaxy S 5 Android Development (Exynos)] TheDarkSithLord:
Great job bro your kernel is the best ever made for our device thank you a lot
[Galaxy S 5 Android Development (Exynos)] YMatrix:
Hey,

I worked a few month back with [MENTION=4176821]bindassdost[/MENTION] on his custom kernel for the G900h. He actually succeeded in getting dt2w and s2w to work.

Don't know if he still works on this phone but he might be able to help.
[Galaxy S 5 Android Development (Exynos)] duki994:
Hmm. At what cost to power consumption? :)

Well, if he can help, then ok :)

I just saw f54 main touch panel module on/off functions. They work via synaptics_i2c_rmi functions.

It may be possible to keep it on, but I don't know how to make it report events to dt2w/userspace.

I'll see to connect it via internal rmi4_data structs and callback functions. To report touches directly in kernel to dt2w driver.
[Galaxy S 5 Android Development (Exynos)] gunawanrusli:
Hi,

want to say thank you to OP for the best kernel for our phone.

Performance best, smoothness best, responsiveness best. Battery life not tested yet but i guess best too.

Installed this kernel with zero problems, just wiped cache & dalvik, profit.

A little request [MENTION=3441913]duki994[/MENTION] : for wakelock control, can add wlan, wlan_wd, wlan_rx for next build ? Thank you very much
[Galaxy S 5 Android Development (Exynos)] tonyking:
Which rom on you are :confused:
[Galaxy S 5 Android Development (Exynos)] yisman:
Best settings?

Thank you for best kernel mate. I think you can say which is the best settings for this kernel. Please share with us.
[Galaxy S 5 Android Development (Exynos)] rais.asif786:
Kernel is not booting scorpion rom.

---------- Post added at 07:20 PM ---------- Previous post was at 06:26 PM ----------
[Galaxy S 5 Android Development (Exynos)] lucky_sidhu:
YES it is booting. After flashing kernel wipe cache and dalvik cache
[Galaxy S 5 Android Development (Exynos)] duki994:
[MENTION=5016413]rais.asif786[/MENTION]

Well [MENTION=4256692]lucky_sidhu[/MENTION] is Scorpion ROM developer and it works for him.

I told you to use same steps. Just follow them. And ROM dev said the same. :)

Nothing else to add :)
[Galaxy S 5 Android Development (Exynos)] ponkz:
Been using this kernel from day 1, really satisfied hahaha u rocks man @op
[Galaxy S 5 Android Development (Exynos)] Ben4x4:
How it works? I have to use Synaptic for this or something else like DSP Manager? How to do it in Synaptic?
[Galaxy S 5 Android Development (Exynos)] TheDarkSithLord:
Hello duki your kernel as I said before amazing , but with last version (1.7) is become laggy and battery drain appeared , also it automatically kills some apps , and phone overheating while using browser (uc web , google chrome) and phone freeze when play games (clash of clans ) please fix these problems in next version
[Galaxy S 5 Android Development (Exynos)] Ben4x4:
You try to wipe cash/dalvik from recovery. My power consumption is 1% for 7 min while web browsing by UC Browser. And phone is cold like arctic ice :) So, no lags, no kils, no overheating... 0.2% for 1 hour in sleep. Just amazing.
[Galaxy S 5 Android Development (Exynos)] YMatrix:
Which modem / bootloader versions are you using?
[Galaxy S 5 Android Development (Exynos)] ponkz:
And yes with 1.7 im experiencing more battery life and no heat issue ???
[Galaxy S 5 Android Development (Exynos)] Ben4x4:
The last ukrainian update: PDA: G900HXXS1BPC4 CP: G900HXXU1BOCA CSC: G900HOXE1BOC3 CHANGELIST: 5852541 BUILD DATE: 07.03.2016
[Galaxy S 5 Android Development (Exynos)] rais.asif786:
Ok i have installed scorpion rom with clean wipe now then after i flashed duki kernel wiped dalvic cache and cache but it is not bootiing . Paaji do something for me
[Galaxy S 5 Android Development (Exynos)] lucky_sidhu:
Leave for now. I may plan for new build.
[Galaxy S 5 Android Development (Exynos)] shanky887614:
can you reupload it says file/folder removed
[Galaxy S 5 Android Development (Exynos)] YMatrix:
Link is working without problems...
[Galaxy S 5 Android Development (Exynos)] rais.asif786:
Thank you . I am waiting
[Galaxy S 5 Android Development (Exynos)] shanky887614:
strange first browser i tried didnt like the link
[Galaxy S 5 Android Development (Exynos)] duki994:
No DSP manager. That's software control.

I use hardware register intercept control. Use controls in Synapse. They write values to sysfs and make internal DAC HW equalizer work :)
[Galaxy S 5 Android Development (Exynos)] duki994:
Well, those must not be disabled. Otherwise WiFi will miss data packets and bug out heavily.

I already divided those wakelocks timeouts by 4!

Now it's wlan_*_wakelock/4.

For times faster wakelock timeout. If ROM/Kernel needs it, then so be it.

Those wakelocks are mostly connected to DTIM interval on your router. I changed mine from 1msec to 3msec (this setting is changed on your WiFi router). It lowered those wakelocks by 20mins.

Also check ROM services or any apps like IM apps that need constant data connection.
[Galaxy S 5 Android Development (Exynos)] gunawanrusli:
Thank you for the explanation.

I have Samsung S4 with Voltaque Kernel. Using his kernel we can control those wlan wakelocks with Synapse. Never have problems or bugs whatsoever if wlan wakelocks are limited.

No big deal though if it is different with S5.

Thank you once again.
[Galaxy S 5 Android Development (Exynos)] duki994:
Well, I can add wakelock timeout control, but I won't add wakelock disable for those wakelocks.

Disabling thise wakelocks will hurt WiFi driver and entire WiFi raw data transfer.

But wakelock timeout control shouldn't hurt it that much. It will make WiFi transfer speed fluctuate wildly and make some apps/services behave weird or drop connections faster if you lower those wakelock timeouts too much :)
[Galaxy S 5 Android Development (Exynos)] hamdi mert:
Please add led fading.
[Galaxy S 5 Android Development (Exynos)] duki994:
Version 1.8

Changelog:

*Added LED fading control made by [MENTION=4167023]AndreiLux[/MENTION]

Downloads at same link as always :)
[Galaxy S 5 Android Development (Exynos)] duki994:
Look at post just below OP. I have added info on why I don't want to introduce overclock to our device :)

Full information on that post.

Link for lazy ones :)

http://xdaforums.com/galaxy-s5/development/kernel-duki994-kernel-t3351353/post66656603#post66656603
[Galaxy S 5 Android Development (Exynos)] duki994:
My error. Moderators, please delete this post if you have time :)

Thanks in advance :)
[Galaxy S 5 Android Development (Exynos)] shahram Ali:
how can change se to permissive :) :D :confused:
[Galaxy S 5 Android Development (Exynos)] duki994:
In Synapse go to Misc tab.

You will see there SELinux enforcing/permissive checkbox
[Galaxy S 5 Android Development (Exynos)] kassimmb:
[MENTION=3441913]duki994[/MENTION]

Can you share your benchmark
[Galaxy S 5 Android Development (Exynos)] shahram Ali:
Why synapse say no uci support detected :confused:
[Galaxy S 5 Android Development (Exynos)] duki994:
Reinstall kernel. Recovery, or you made some error. Reboot, clear Synapse data and cache. Reboot again.
[Galaxy S 5 Android Development (Exynos)] shahram Ali:
let me see :confused:
[Galaxy S 5 Android Development (Exynos)] shahram Ali:
it's still have this problem :crying: it was working but i changed se and rebooted and it start this problem:crying::crying::crying::crying::crying::crying:
[Galaxy S 5 Android Development (Exynos)] gunawanrusli:
Do you have busybox installed?

For me, i have to uninstall busybox (stericson) and then everything works (synapse, viper4android).

But i don't understand why... [emoji33]
[Galaxy S 5 Android Development (Exynos)] kubussz:
kelner performance

hi,

how this kelner affects performance??

thank you in advance for your answer.
[Galaxy S 5 Android Development (Exynos)] Jasi2169:
works great till now lets see how it behaves good work though :)

i guess it should include synapse app itself
[Galaxy S 5 Android Development (Exynos)] duki994:
I wouldn't include it because it is made by great developer and it's available on Google Play. So just download it from GP and give him support :)

Maybe. It works much faster than stock anyway.
[Galaxy S 5 Android Development (Exynos)] Jasi2169:
its cool but there were no installation instructions or any links to show you need to install this app and that,for me it was cool maybe for some starter it should have created problem to flash even he flashed he dont know what and where to change settings as there is no mentions of that it is 3rd party app,i see changelog to get it need synopse app otherwise i was clueless
[Galaxy S 5 Android Development (Exynos)] kubussz:
whether gpu overclock to 600MHz will affect performance?
[Galaxy S 5 Android Development (Exynos)] duki994:
This is written in OP:

* Fully configurable in Synapse (download from Google Play)

So there is info about Synapse and where to download it :)

Note to all: Always read entire OP before asking questions. Most OP posters use much of their time to explain things and make friendly guides, but everyone just jumps fast through them.

It depends if GPU will reach that freq. It depends on temperature of phone, ambient and other inner components.

But yes. 600MHz will affect some heavier games to run a bit smoother.
[Galaxy S 5 Android Development (Exynos)] kubussz:
why mali mp6 T628 gets much worse results than units qualcomm? (for example 3dmark) in others benchmarks such a large difference is not. Why?
[Galaxy S 5 Android Development (Exynos)] amankmr03:
will it work on the newest build which is BPD2 ??

and i am on stock ROM
[Galaxy S 5 Android Development (Exynos)] FreakyBalooshi:
yes

yes but make sure you don't have busy box installed b4 or after flashing kernel because it has the in the kernel already
[Galaxy S 5 Android Development (Exynos)] amankmr03:
okay thanks for the reply but tell me that the kernel is good or not ??

i mean is it good from stock ??
[Galaxy S 5 Android Development (Exynos)] coto39:
Try it yourself and see :p. I'm using this kernel with BPD2 stock rom and it works good
[Galaxy S 5 Android Development (Exynos)] duki994:
Because it's HW is weaker than it's counterpart -- Adreno 330

It can work less OPS than Adreno 330. Nothing magic there.
[Galaxy S 5 Android Development (Exynos)] kubussz:
it or not this is due to different architectures of these units?

"Futuremark 3DMark" may favor units qualcomm! their tests may be more foster architecture qualcomm.

let's not forget that qualcomm he was one of the creators "Futuremark 3DMark"
[Galaxy S 5 Android Development (Exynos)] aryaazimi72:
Deleted. . . . . . .
[Galaxy S 5 Android Development (Exynos)] duki994:
Well...

I don't really like any benchmark. They get better results on those OEM's that pay more :)

So Qualcomm always gets more score because they pay much more to benchmark app devs than others.

But one of Futuremarks's founders is definitely NOT Qualcomm. Futuremark was very popular before Symbian/Widnows/Android smartphone market.

Their best test is, by my opinion, PCMark. Others are more prone to "bribes" from OEM's.

P.S Teaser

Version 1.9 in testing. Look at git :)
[Galaxy S 5 Android Development (Exynos)] kubussz:
thank you very much for your answer :)

performance for the kelner is better? (compared to stock)
[Galaxy S 5 Android Development (Exynos)] duki994:
Depends on HW of your device.

For me it's a lot better, faster and less buggy than stock. And it even uses less battery.

Try it and see for yourself. Wait for at least 1 charge cycle for battery gauge to stabilize
[Galaxy S 5 Android Development (Exynos)] kubussz:
you tested on some benchmarks?

to install kernel I must have stock lollipop BOL2?
[Galaxy S 5 Android Development (Exynos)] duki994:
How you don't get tired of asking same question(s)...

Try kernel and see. You need BOL2 bootloader and modem. And BOL ROM if you can. But it should work on any ROM that has BOL2 bootlader and modem :)

Benchmarks are much better on this kernel, but I don't recognize them as they don't reflect real power (many OEMs pay to get better results).
[Galaxy S 5 Android Development (Exynos)] kubussz:
I must have root to install kelner?

I never installed new kelner, Could you write me step by step what to do to install it?
[Galaxy S 5 Android Development (Exynos)] duki994:
It's redundant to write step-by-step.

You have million guides that will help you.

Basic steps:

1. Root

2. Install recovery

3. Flash kernel flashable zip
[Galaxy S 5 Android Development (Exynos)] ponkz:
Marshmallow please sir op ??? really looking for this kernel to run on it
[Galaxy S 5 Android Development (Exynos)] duki994:
Can't do it for now. Wait until Samsung releases opensource...
[Galaxy S 5 Android Development (Exynos)] heisenberg17:
Marshmallow support

Can you make a MM version?
[Galaxy S 5 Android Development (Exynos)] manideep.k:
port request

if possible port the miui(V7) for galaxy s5 please......many users with the varient sm-g900h are starving for this one:(:(:(:(

thanks