yashsingh1/xdaforums huggingface dataset:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Update to 0.2_2

Hey guys and girls,

the promised update is here. It may not seem like much but I managed to put a few new things in the kernel.

I had a play with different IO schedulers. As you may have noticed the new storage of our device is already blazing fast but I tried to make it even faster.

So I managed to built in the maple Io scheduler from [MENTION=5051294]frap129[/MENTION]. It results in slightly better IO speeds than stock in my tests. But this is only the first part of the IO journey.

Next release will have another IO gov, but I try to optimize it first and test it extensively.

additionally this kernel now includes the IO sched switcher from [MENTION=4800121]Sultanxda[/MENTION]

Description is as follows:

"This driver changes the I/O scheduler for a specified request queue to

Noop when the screen turns off in order to improve power consumption while

the screen is off, as well as reduce resume latency when the screen is

turned back on. After the screen is turned back on, the driver will change

the I/O scheduler back to what it originally was after a 10000ms delay."

This means screen turns on faster and phone will drain less battery when in deep sleep. :good:

In addition to boosting DDR bandwidth we now also give a boost to our storage when the screen gets turned on.

Changelog 0.2_2:

- included maple IO scheduler from [MENTION=5051294]frap129[/MENTION]

- included IO switcher from [MENTION=4800121]Sultanxda[/MENTION]

- boost ufs storage controller when turning the screen on.

- included BLN from [MENTION=3088420]tbalden[/MENTION] ( give him a big thanks!)

Download: https://www.androidfilehost.com/?fid=817550096634782138

have fun with it and happy flashing!

Donations are not mandatory but always welcome :)

Donate: http://paypal.me/freak07

P.S.: there is more to come. :)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] jsaxon2:
Just flashed today. Running very fast and smooth. I'll see about battery life tomorrow. Excellent job on this.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Leoyzen:
Good Job! Thanks for your work
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] jsaxon2:
Battery life seams better for my usage. Haven't experienced any lag. Everything is smooth. I'm not much of a gamer, but have played a couple an they are smooth as well.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Update to 2.2_6

Hey guys and girls,

Update time again.

New version 0.2_6. I ran this for a week and it is absolutely stable for me.

Changelog:

- some backport and upstream patches

- add backlight dimmer

- optimize for performance instead of size ( that is also why the download is ~1mb bigger)

- enable RCU boost to decrease latency even further

- set timer for interrupting the kernel to 300 (performance increase)

- random driver from linux 4.12

- add tripndroid IO scheduler

Download:

https://www.androidfilehost.com/?fid=673368273298968729

Have fun with it. The kernel flies for me now. Well even more than before!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Quite happy about the battery life.

Without power saver, medium usage I would say :good:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] doyou37:
Fantastic! Just curious, do you run this on stock ROM or one of the customized ones?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
I am currently on viper rom because I had to test if the kernel runs on the new base.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
So I experimented quite a lot with the IO governors because I felt there may be a little bit performance to be gained.

https://drive.google.com/open?id=0BxbxiBXaZVu-UlR4SXRaQWVVa1U

Have a look at the screenshots here. you have to ignore that maple gets detected as IO sched in the screenshots. ( that is because it is set as default in the defconfig). the filenames represent the IO schedulers used.

Stock uses CFQ as a governor. As a comparison I ran androbench with maple and tripndroid.

Trip was an exceptional dev on the Desire HD and One X. So i decided to give this a shot. Maple is well known work from frap.

If you look at the screenshots you can see clearly that both maple and tripndroid have better sequential read performance than stock´s cfq.

Additionally we get a good boost in random read. That is the important thing here. On our phones most operations are random read, followed by sequential read.

As there are nearly no losses in write performance tripndroid is currently my default IO scheduler.

One of the following kernels will also have a tweaked maple scheduler but I have to test this first.

BFQ for 4.4 kernels will also be included in the future. In fact I´m running a kernel that has this enabled right now.

Adreno Idler that will reduce GPU usage when screen is off.

Sched, thermal and more patches from CAF :)

that was it from me :) enjoy your phone!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
New kernel will drop soon.

This will be a huge update.

- new bfq io scheduler will be included. Additionally some tweaks to it.

- Tuned maple io scheduler.

- Added sioplus and fifo io scheduler

- A patch so 2,457 ghz for the big cluster will actually get used.

- Some more upstream and caf sched patches to improve usage of big/little cluster.

- Adreno idler will be included. gpu uses lower freqs while screen is off.

- Some low power mode patches.

- Boost crypto performance.

- Use lz4 and appropriate compression stream number.

- enable fast charging on some ( mostly car) adapters up to 900 mah

- disable gentle fair sleepers

- fix permissions for power efficient workqueues. They are now togglable in EXKM

- include new wlan driver form qualcomm

- drop vfs cache pressure, better multitasking

- many gpu patches to increase performance and efficiency

Also a little preview and teaser
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Carphedon:
When update is out I will give this a try, looks good. Thanks for you work!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] *justintime*:
What can you tell me about the audio tweaks. In which way.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] salmanati:
Any chance for gain audio volume in headphones ?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] schmeggy929:
Gain for the stock earphones? I'm partially deaf and they are way too loud at near max volume. Are you trying to go deaf on purpose? Lol
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] salmanati:
Not much as compared to 10. I am using viper4android after setup viper volume low automatically you have to increase it from any mod like kernel etc thats why i am asking brother :)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] schmeggy929:
Oh gotcha, so viper4android is the culprit. I was going to say the volume is louder than my HTC 10 and Bolt which uses the new c-type earphones.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] salmanati:
But not punchy like 10 bro bass loudness high in 10. in U11 Its crystal clear i must say this.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] doyou37:
Can we disable the finger print vibration when clicking home (as in, during normal usage and not at the unlock portion)?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] hkhs10811:
Anyone use the kernel share some data of battery life ?

And can the kernel be installed at ViperU 1.3.0 ?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] jsaxon2:
I don't have any screen shots, but I am getting 5.5 to 6 hours screen on time with about 17 hours off charger. I used to get about 3 hours sot with my HTC 10. I am also on Viper 1.3.0 with this kernel.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
have a look here

https://github.com/freak07/kernel_htc_msm8998/commit/979bb63b7f6a330408f65e87604b10e27baea898
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
I don’t know if this is easily achievable since we don’t use the standard 3,5mm jack any longer. I will take a look at it and see what can be done.

But for me personally the volume is sufficient with in ears. For other headphones I recommend an external dac if you want to get the best out of them.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Already possible. Use button mapper from [MENTION=4684315]flar2[/MENTION]
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
UPDATE

Hey guys and girls :)

Here is the update. I included some more patches that´s why it took so long.

Anyway here is the Changelog for 3.07.

Changelog

- new bfq io scheduler will be included. Additionally some tweaks to it.

- Tuned maple io scheduler.

- Added sioplus and fifo io scheduler

- A patch so 2,457 ghz for the big cluster will actually get used.

- Some more upstream and CAF sched patches to improve usage of big/little cluster.

- Adreno idler will be included. gpu uses lower freqs while screen is off. toogle in EXKM

- Some low power mode patches.

- Boost crypto performance.

- Use lz4 and appropriate compression stream number.

- enable fast charging on some ( mostly car) adapters up to 900 mah

- disable gentle fair sleepers

- fix permissions for power efficient workqueues. They are now togglable in EXKM

- include new wlan driver form qualcomm

- drop vfs cache pressure, better multitasking

- many gpu patches to increase performance and efficiency

- moved more work to power efficient workqueues, increases efficiency of the kernel

Download is here:

https://www.androidfilehost.com/?fid=961840155545581720

Have fun with it and happy flashing.

Donations are not mandatory but always welcome

Donate: http://paypal.me/freak07
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] hkhs10811:
Anyone know how to disable vibration when fingerprint is pressed?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Read few posts back. There is the answer.

Use button mapper from [MENTION=4684315]flar2[/MENTION]
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] hkhs10811:
Another question, how can I disable the lower button light when notification came?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Tab “miscellaneous” in EXKM.

Led settings, button light notification.

Or /sys/class/leds/indicator/bln related files ;)

to know which sysfs entry does what look here:

https://github.com/freak07/kernel_htc_msm8998/commit/eba6a8576cc63083763dfb6a2d79d8601585cfd5
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] schmeggy929:
So with your kernel what would be you recommendation on Governor and I/O scheduler to use? I have read quite a few about descriptions and uses for each, however so many conflicting opinions. Especially since you have tweak quite a few governors and schedulers. lets say overall daily use and sometimes heavy file transferring.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Try maple or tripndroid. see which one suits better for your taste.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] hkhs10811:
where can I get "EXKM" ?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Kisakuku:
Here.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] schmeggy929:
Ok used Maple until you added Tripndroid, I can't any difference LOL. Will stick with Tripndroid for awhile. Thanks!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
I don’t know if anyone is able to tell a difference. Benchmarks can and tripndroid is slightly faster in some circumstances.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] ZephyrBow:
I can't use Fingerprint Double Tap to sleep support @@
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] schmeggy929:
Please do not quote the OP. You will need to install EX Kernel Manager App where there are change many settings.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] damanrico:
I'm trying out this kernel because I've noticed stutters on stock while scrolling in certain apps. For example scrolling can stutter and feel sluggish in the app Reddit is Fun.

While testing this kernel the stutters are still there when I leave the cpu governor to interactive. Only when setting it to performance do I not have any stutters anymore. GPU profiling also shows that. Spikes above the magic green line when using interactive, no spikes above the green line when using performance.

I assume it's normal behavior to have the occasional stutter when using interactive, but is there a way to eliminate such stutters without going overkill and setting the governor to performance?

It just bothers me that the performance is there, but is not utilized out of the box. Buying a top of the line phone and still notice stutters, even when scrolling through text and non-heavy apps, feels crappy.

I hope you can shine some light on this. Thanks in advance!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] mykenyc:
Personally don't notice stutter.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] hkhs10811:
I try to change the BLN related file from "1" to "0" using ES file explorer,

but it recovered to "1" as I reboot.

Is there anyway to keep the changes after reboot ?

Thanks for your reply !
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] damanrico:
Disclaimer: This isn't criticism on your kernel. This same behavior also happens using the Stock kernel. I am using your kernel in these videos, but the main reason I post here is because you're probably one of the only people with an U11 that has insight into such specifics.

I notice a major difference when using the Interactive governor compared to the Performance governor. Using Interactive I get stutters in a lot of apps, and scrolling often doesn't feel as smooth as you might expect. Using Performance I don't have stutters and the scrolling feels as smooth as you might expect.

I've created 3 short videos to show the difference. I've turned on GPU Profiling to show the spikes above the magic green line.

Video 1 shows a 1080p 50fps Twitch stream. You can notice there are some spikes and overall it's close to the green line.

Video 2 shows the same 1080p 50fps Twitch stream. You can notice there are no spikes and overall it's not even close to the green line.

Video 3 shows the same comment thread in Reddit is Fun. I start by using the Performance governor and you can see me switch to the Interactive governor a little later. It's clear there are a ton of spikes using Interactive.

So my question is: why does the Interactive governor allow stutters or dropped frames to happen when clearly the phone has the performance to make things run smoothly? I guess to save battery life, but to sacrifice smoothness like this? It makes the phone feel sluggish and laggy when using default settings.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Are you on any Rom that has a modded pnp binary? Or did you flash any pnp mod?

did you try to turn of pnpmgr in EXKM and repeat the test?

Maybe one time with interactive and blu active?

The reason why I ask is. HTC has a daemon called pnpmgr running in the background which changes various settings of the kernel. Also governor tunables.

on venom hub from venom rom you can download a modded pnpmgr which restricts the phone even further. Reducing max frequencies, number of cores on certain apps.

I have no access to said pnp binary as it is encrypted.

I suggest you deactivate pnpmgr in EXKM app and have a look at the tunables of interactive.

Search on xda there are good threads and guides. Tune interactive or blue active to your liking and share your settings with us.

but keep in mind to have an eye on your temps since pnpmgr is partly responsible for thermal throttling.

And to answer another question. Yes I think htc is doing this in order to extend battery life.

I also think they changed something in pnpmgr from initial firmware to 1.13 because I find the phone to be slower.

But this is a common trick. Reviewers did their work and the consumers don’t notice performance drops as much.

Maybe exchange pnp.xml found in system/etc from 1.03 rom with the one from 1.13. Remember to set correct permissions.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] feimummy:
How to disable the the vibration when I touch the Home button?

And...how can I disable the Button Light Notification?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Try button mapper app from [MENTION=4684315]flar2[/MENTION]

And for bln use EX kernel manger app from [MENTION=4684315]flar2[/MENTION]

or the script attached a post below this
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Either use an init.d or su.d script or buy EX kernel manager app.

I will attach such a script. After extracting from the zip you have to copy it to either system/etc/init.d or su/su.d

Afterwards set permissions to 755

Rwxr-xr-x
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] hkhs10811:
Where can I download the scrip?

I can't find it. ???
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
I forgot to attach to my post.

Was too early in the day :laugh:

Here it is.

Do not forget you can add more paths too it. This is just a template for bln
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] damanrico:
I'm using ViperU 1.4.0 at the moment. As far as I know it doesn't have a modded pnp, nor did I install one myself.

Disabling pnpmgr sadly still gives the same results.

I also reverted back to stock using RUU and I have the same issues. Fresh install, no restoring done.

I feel like I'm taking crazy pills, because I'm one of the few that notices stutters and lag during low to medium usage. Scrolling through text shouldn't require me to force the phone to use the Performance governor for it to be smooth. I have an old Lenovo K3 Note with a ****ty mediatek cpu in it, and it can scroll through text just fine without any lag. Same app on the U11 = stutters all over the place and GPU Profiling showing the stutters (spikes above the green line).

This really shouldn't be happening on such an expensive device.

Sorry for the rant, and this probably isn't the right thread for it anyway.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Like I said deactivate pnp and tune interactive to your liking. It requires a bit of research and time but it may be worth it.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] damanrico:
I'm really not that technical to adjust a governor to my liking and learning all that would require a lot of time I suppose.

For now I'm just running the performance governor all the time. It still consumes less than 1%/hour when the screen is off, it just consumes more when active than interactive governor of course. At least the phone runs smooth now. It just sucks that HTC can make the best CPU feel sluggish by default.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] velimirchek:
Unfortunately you are one of the ones that can see it, tried again scrolling in RIF and I really cannot see it. Don't think any phone performs better than 11 ATM, maybe OnePlus 5.

[MENTION=3428502]Freak07[/MENTION] yeah, I did pull the trigger and installed the kernel.. kindda in set it and forget it mode for now, running it as you created it, feels snappier than stock and I cannot comment on battery life (ofc) just yet. Thanks again for your work.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] damanrico:
Yeah sadly that seems to be the case. However GPU Profiling does back my case up by showing the spikes which represent the stutters in a graphical manner, so it's not like I'm seeing things that aren't there.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] feimummy:
Thank you very much.

I get it with EX kernel manger app.

Greetings from China.

来自中国朋友的感谢。

來自中國朋友的感謝。
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Fair enough. If I find time I might look into it :svetius:

One suggestion that just came to my mind.

Go to developer options and turn on high performance mode.

Would be great if you can report back if that makes it any better:good:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] damanrico:
High performance mode doesn't make a difference.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Thanks for the report.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] schmeggy929:
Yeah not seeing any shuttering or lag on Badboyz ROM and this Kernel paging through Google Play Store. I chalk that up to the app itself. Playing 1080P movies not one hiccup and Dead Trigger 2 games flies!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] velimirchek:
Just got crazy (stupid) idea, what happens (in your eyes) if you choose conservative governor (yeah it sounds totally weird)? If I remember correctly conservative ramps up speeds slower, but also ramps them down slower..

Do you see spikes (peaks) same way as with interactive?

(I better go to sleep LoL)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] damanrico:
Well, apparently it's not that stupid! It seems conservative actually performs much better than interactive for me. I get less peaks and at the end of a scroll there is almost never a 'final stutter' before it's done scrolling, which there is on interactive (which may indeed be because it ramps down too fast). For now I'm sticking to conservative. I would never have thought to try it myself, but thanks to your suggestion I gave it a shot. So thanks a lot!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] velimirchek:
great to hear :).. I don't think anyone has tuned conservative since [MENTION=1122306]morfic[/MENTION] used to do it in 2012./2013. and I really liked that governor
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] jsaxon2:
[MENTION=3428502]Freak07[/MENTION] I don't normally make requests, but any chance you could add the pocket detection to disable fingerprint while in pocket? Flar just added it to ElementalX kernel but I love the battery/performance I'm getting from this kernel and don't really want to switch. If not, that's fine, I appreciate the work you have done.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Yes I can add it.

Next release will also have the gradient charging led feature.

And a few other updates. stay tuned :good: :highfive:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] doyou37:
Is it possible to add an optional double tap to wake screen feature? It's built in already on the HTC lockscreen but if you choose to use the AOSP lockscreen it no longer functions.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] velimirchek:
Nice set of commits on 20th, looking forward to release :good: :)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
:good::highfive:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] morfic:
That could easily be replicated in any kernel, if user input is considered.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] velimirchek:
[MENTION=3428502]Freak07[/MENTION] sorry for this offtopic, this is like my daughter got an answer from one republic frontman :laugh:

OMG, you are here!!!.. Haven't talk to you in years! Thanks for the answer :)

Velimir aka Wells aka Inferno :highfive:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] st_voss:
Running Magisk version of ViperU11 atm.

Does the installation of this kernel modify the system partition, i.e. is it "systemless"?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] velimirchek:
not yet "systemless", but it will in next release :)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] flar2:
Don't add that, it doesn't do anything at all. My worst commit ever.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Did not add it. Thanks for the heads up!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] mcwups1:
Have to ask....

Will this work on Sprint variants?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] schmeggy929:
Yes it will
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Lostatsea23:
So excited for this. Can't wait to see what improvements it brings, any recommendations for tuning or just flash and go
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] mcwups1:
Which do you like? This one, or the EAS version?