yashsingh1/xdaforums huggingface dataset:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
this is where i got with Kexec-hardboot patch, but it doesnt boot in normal mode, and havent yet try multirom at all, but maybe helpful for other devs:

https://github.com/tbalden/htc-kernel-pmewlvzw/commit/07346c7df1cd54745413d1f59149af9aad78dea6

maybe [MENTION=7203633]ElementRn[/MENTION] got further, as he's working on this as well.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Thanks for the ideas, much appreciated!

UV/OV is indeed a no-go for this kernel, and probably other kernels as well, since the voltage level calculation got kinda dynamic and rather detailed compared to earlier simple bin -> voltage levels mapping, on the 8996 it's sophisticated.

About GPU idle, for me it seems HTC went in a direction where the PNP and userspace tuning of the gpu is keeping the idle frequency rather well.

Looked at the Adreno idler here https://github.com/777jon/g3_kernel...cd0499fc8941fc/drivers/devfreq/adreno_idler.c and here https://github.com/777jon/g3_kernel...41fc/drivers/devfreq/governor_msm_adreno_tz.c but I find that there's not much to do in current HTC pnpmgr/kernel setup. In 2D it's really tending to remain on 133mhz on this kernel, except when there's a rational load that needs increase of freq.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] rav101:
Hey buddy, thanks for taking a look into those areas for me.

One additional question in this area, if HTC pnpmgr is doing a good job of keeping the CPU and GPU in check (esp with the pnp tweaks out there), would it be worth considering adding lower CPU and GPU steps?

I refer back to my experience on the LG G4 where they had the GPU set to 27mhz when it wasn't actively being used. I presume there is a cut off point with the SD820 and Adreno 530 that they can perform well enough in screen off state at lower than 307mhz and 133mhz?

Maybe I'm barking up the wrong tree? But though I would ask anyway.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
I'll have a look. Have you had any good experience with this 27mhz feature actually?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] rav101:
Yes,

When using the phone the normal governors kick in and you get fluid performance as its ramped up to higher clock levels. When the phone is off, you don't really care what speed it is to a degree. Keeping the GPU lower at 27mhz helped with the battery life rather than anything else. The G4 didn't have great battery life so there was focus on making it better wherever possible.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
Didn't the GPU have some kind of clock gating that puts it into a nonshowing Ultra Low energy mode whenever it's no directly used but still shows up as 133mhz?

We had the 27mhz clock on our Z2 but I'm not sure anymore. Thought it was no difference.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] flar2:
On the OnePlus 3, multiROM works without kernel modifications using some kind of no kexec workaround. I never looked at how it works so I don't know if this is posbile on the HTC 10, but I would prefer no kernel changes, because the kexec hardboot patches for 64-bit (used on the 5X and 6P) aren't very clean.

The only time I've been involved in multiROM was with the m8, and the kernel part was easy. The hard parts were adding HTC-specific workarounds in the kexec userspace program and dealing with mounts.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ivicask:
PnP sends 0 FPS lock command to SurfaceFlinger on screen off, practically killing any load on GPU while screen is off.

So i think GPU clock doesn't matter, its the load that matters, and if load is 0, it uses no GPU, or battery, just pure standby.

Thats as far i know.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] flar2:
The GPU is in slumber mode when it's not being used, even though it shows 133 (or 214). There are a lot of GPU patches floating around that are completely unnecessary (like adreno idler) or completely ineffective (like overclocking).
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] lightninbug:
What's everyone using for settings on color control?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
i use the original Savoca app (i tihnk it's linked in the original post), but Kernel Adiutor-MOD with a predefined set of profiles is quite good (look it up on XDA), EXKM is great as well.

As I only bump up the saturation a bit, the original app by Savoca is perfect for me, I don't have saved profiles that I switch between.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Thanks for the summary on both topics. I was wondering as well, how much it worth to fiddle with it. After getting stuck with the previous qcom generation's patch, I think it was enough time spent on this, I'll just leave it as it is, people are using happily the boot partition hacking workaround (if I understand right the nature of the hack).

Also it seems messing with GPU idle is not worth the time. I did dig into it earlier to see that there's a slumber and deep slumber states, so I'll just leave it as it is.

It's hard to say out loud, but there's not much I feel like adding to this kernel, except this charging thing for USB C hubs, and when AOSP gets a bit more stable, starting a new fresh kernel line for that with the UX features. :)

Till then, folks, flash those kernels that offer more regular patching from here and there, or just keep calm, and enjoy old, dusty, stable released kernels ;)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] EDGN:
I want to disable the BLN. When i do with ice, BLN is re-enabled after reboot. Really annoying. How can I manage this? Thanks
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
The simplest solution could be to use a custom ROM that has built in init.d support. I suppose you're using a stock ROM and custom kernel. Stock ROM by default does not support init.d which is supposed to do the settings for you on each reboot. I know it's annoying, I'm many times testing and using Stock ROMs without init.d support, so I have to set these things manually on each reboot. Unfortunately stock htc ROMs will never come with init.d/busybox support, so you'll have to choose.

If you want a fast, stable ROM which is purist and closer to stock and does have Init.d support, I'd recommend MaximusHD by [MENTION=494185]LlabTooFeR[/MENTION] , and install ICE configurator, or

if you are okay with a bit more custom stuff you can always go with the stable, fast and nicely customizable ICE 10 ROM and LeeDroiD ROM.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] EDGN:
Wow I'm really impressed about your long answer. Didn't expected that. Thanks a lot. In the Meanwhile I already flashed LeeDroiD Rom, which is really awesome. After many years Sony (Z,Z1,Z3,Z5) I'm back at HTC (had a M7 many years ago). Thanks again buddy
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
init.d only works for sh scripts right?

So if you have the app Scriptmanager running you can select a "Start at Boot" flag for your scripts
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] LeeDroid:
Clumsy kernel tweaks also includes kcal control

https://play.google.com/store/apps/details?id=com.clumsy.kerneltweaks
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ~clumsy~:
Maybe use this version

https://www.dropbox.com/s/qin8p19rfmaze2y/ClumsyKernelTweaks_V2.0.10.apk?dl=0
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] lightninbug:
Can someone share what their color control setting are for this app?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ~clumsy~:
I set RGB 240, 240, 240 and Saturation at 50. The rest is stock/unmodified.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] EDGN:
Look really great now. Thank you!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Thanks for the app [MENTION=3989587]~clumsy~[/MENTION] , works like a charm.

Have a nice week all. Waiting for the 1.95 sources to drop on htcdev.com... Here's a tweet about it https://twitter.com/illespal/status/779748858784088065 Retweet to give some nudge to HTCDev on this topic
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] rav101:
I think I saw that 1.96 ota has dropped. Maybe they will move straight on to releasing that one. Who knows in this crazy world we live in...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ~clumsy~:
No problem. I need to update it. I'm slowly working on it. Retweeted the tweet.

Don't worry I'm still perving on your git repository....
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] techie4life:
Can we get F2FS support on this kernel? That would be awesome!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mh7:
after i flashed the kernel

i noticed no ring sound ?!!!

so is there any setting for that

---------------------------------

issued solved after re-flash kernels with wiping cache and davlik
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Kontal:
Hi, how can I set the scanner button to not act as a menu button? I mean between unlocking via fingerprint scanner and unlocking the phone i see always a lock screen for split second. I tried writing init.d script with echo 0 > /sys/fpf/fp but it still works as menu button. Any help?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ahac85:
[MENTION=3088420]tbalden[/MENTION] kernel source released for 1.96....looking forward to the next update
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
i think this is the default working on stock kernel as well, and also it is not a kernel related behavior. So there's not much to do in the kernel
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Thanks for the heads-up. I was checking it every once in a while, an at least it is out. Looking at it
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] LeeDroid:
Oohh.. It's been a while XD
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Indeed :D

So just went through the 1.96 changes. A few possibilities for memory corruption/overflow fixed, but a few QCOM CVE's still left out.

So not many things changed since latest source release 1.91 ...

Compiling and looking at some additional security advisories if they apply...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] LeeDroid:
Looking forward to it mate :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
- HTC Sauce Update - 1.7.4 -

​

Changes

- Updating to 1.96 official sources:

- Mostly some vulnerability/memcpy fixes in Network/IPv4/IPv6/sound subsystems

- Still HTC missed out on some QCOM vulnerability patches (???), but don't worry, CleanSlate already had/has them.

DOWNLOAD 1.7.4 stable:

Normal/WWE editions (for base 1.82/1.90/1.91/1.92/1.95/1.96, non-sprint / verizon-locked-to-rom-1.82 installer):

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

Sprint, please still use the 1.7.3 sprint version.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] guidogsbn:
T H A N K. Y O U!! :good:

..and a little bit of medicine: 96L88377GX277701F :cool:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] LeeDroid:
Nice work Pal! Cheers XD
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] kgirlx:
Vzw, 1.85 AndyBones debloated ROM and latest vzw 1.8.5 firmware, s-off locked. I just want to make sure I flash the right version. I only saw 1.8.2 base listed. Which version should I install. The latest 1.7.4? Thanks.

My Arms Your Hearse HTC 10
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Thank you! Much appreciated!!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Yes, that's what's intended for vzw stock. Backup, and let us know how it goes
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Alarand:
AFH keeps showing no mirrors available, surely temporary, anyone have an alternate link for the time being?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
hmm, strange, it works here, but here's a mega.nz link

https://mega.nz/#!GgpDmDCb!7PlM6BxEEU2nrvUdO52wk6g8VChqvUNbvTLq9N9ptcE
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ahac85:
Does this kernel patch the verified boot flag?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Lybserv:
Hey,

got a strange problem with CleanSlate (ElementalX is working)

"New Image larger than boot partition" when trying to flash CleanSlate via TWRP.

Any idea? I used MultiROM before, maybe this caused a problem?

Thanks, keep up your great work!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
CleanSlate is not using the same compression as EX kernel, but instead uses the default, so it might be the issue in this setup.

Probably somehow your boot partition got smaller than the stock size when using multirom, indeed.

I can take a look at this, to use a more effective compression, not a big deal, just didnt feel the necessity yet.

I'll add it to the todo list for the next one.

Interesting thing after all.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
can you point me to that? I haven't yet added that one
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ahac85:
https://github.com/sultanxda/androi...4bfcfc5#diff-c642f0bb1b95c6f380ab96167f5f8118

http://xdaforums.com/htc-10/development/kernel-elementalx-htc10-0-01-t3385167/post69277083
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
- Update - 1.7.5 -

​

Changes

- Updating both normal and Sprint versions with patches including:

- dirtycow CVE vulnerability fix ( credits to Linus :) ) CVE-2016-5195

- proc: Remove verifiedbootstate flag from /proc/cmdline

- kgsl/mdss: use kthread instead of workqueues, thanks go to flar2 for gathering these in EX

DOWNLOAD 1.7.5 stable:

Normal/WWE editions (for base 1.82/1.90/1.91/1.92/1.95/1.96, non-sprint / verizon-locked-to-rom-1.82 installer):

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

Sprint editions (for base 1.82/1.90/1.91/1.92/1.95/1.96, use this for Sprint):

https://www.androidfilehost.com/?fid=457095661767116301
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] gsw5700:
Looking Good, Cheers
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Toyeboy:
The tweak's will not stick what am I doing wrong? I've tried doing it manually through root explorer and through the ICE configurator, but everything goes back to your defaults. I'm really wanting to lower the home button vibration and turn off the bln
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tetrabyt:
3 days since flashing 1.7.5 and phone had not gone into deep sleep at all.. Battery life is not as good as 1.7.3 either. Using the sprint kernel. Anyone else?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
If it's not going to deep sleep, it will be something else, since between 1.7.3 and 1.7.5 there has been very slight changes, mostly the security patches and some smaller optimizations.

There's every once in a while, like once or twice every month here as well that one of the applications or Google framework takes over and only a reboot helpsb the deep sleep.

Have you tried checking what process is not letting it sleep?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] gsw5700:
I'm getting 78% deep sleep overnight and it's good during the day
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tetrabyt:
Thanks, will vestigate further.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Snah001:
Kernel source is out for Nougat at HTC dev

Send from my Shield Tablet
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
What did lsmod say? Maybe it wasnt loading, unlike it does load for me? Maybe a rom thing, module difference. What base are you on?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] buckmarble:
Verizon 1.19.xxx. I'll run it and post back.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Maybe I'll need to package together the proprietary mods with kernel in installer. Maybe 1.19 is the culprit
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] buckmarble:
Looks like it might be. But that would make the zip pretty big. The hack is the way to go for us vzw folks.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
It's not nice to hack loading compatibility validation of modules, better package compatible modules, otherwise kernel might become unstable

I'll beef it up next release
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] buckmarble:
When I build I'm only getting 9 modules. Let me know if you get anything different. I'm currently collecting them and including them in my zip, but I have do.system set to 0 and not copying them over. I think the modules not loading definitely has to do with my older vzw system version.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Yeah, but picking those missing from source, but are in rom, those which aren't built, yet load with custom built kernel are binary compatible if they load without hack. So I'll pack those together that work in a bunch
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
oh, now I see where you were going, system readwrite problem...indeed that sounds like an issue.

I'll think about it.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] buckmarble:
I don't have a r/w issue. They copy over just fine if I set do.system to 1 in anykernel.sh. I'm purposely not copying them
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Yes, i mean, I see that the problem is that if someone reverts boot.img, the system image is not intact, so much harder to upgrade with OTAs, as system image RO was not kept ...etcetera etcetera.

Anyway, I'll go with do.modules=1 in AnyKernel script, and ensure proper working. Just testing, gonna bump to 0.2
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] buckmarble:
Excellent. We will figure out a one size fits all solution fairly quickly. [emoji106] [emoji106]
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Well, here it is, 0.2 with all modules included and mods are loaded on my side now.

But this will indeed write over system/lib/modules files, and mount it RW at least once.

Download: https://mega.nz/#!XhZlmKqR!0NUhz8R4A3XdKPewcaTHvIzLGcP5dG1U8egqfeXHfSQ

Alternative download: http://d-h.st/oR9w

(So anyone wanting to revert to get OTAs, backup an RO system partition before changing kernel, as it's usually advised since long on new android versions.)

[MENTION=2967322]buckmarble[/MENTION] - if you happen to test it, let me know, so I could add if it's okay with Verizon 1.18 or not. If it's not working i'll look at the modload hack you linked.

Thanks!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mnp:
[MENTION=3088420]tbalden[/MENTION] A bunch of us have been having an issue with annoying coil whine from the screen at around 50% screen brightness and lower; getting more high pitched the lower the the brightness. Apparently it's been fixed in the 1.50 ROM/Kernel base. I just flashed your new one and its still there as it the source is from a prior base. Have you seen or heard of this before and is it fixable at the kernel level do you think? Thanks :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
my advice: bombard HTCdev twitter acc, so they release 1.5x kernel sauces as soon as possible :)

Otherwise no clue. Probably some voltage regulators were changed/lowered, but i'm not that much into different hardware part sounds and what they can be caused by unfortunately. :( Hopefully the source will be out soon.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mnp:
Thanks dude, just tweeted them for the hell of it. Hopefully its something pretty straight forward then. When I adjust the brightness in TWRP 3.0.2-4 (running a slightly newer Kernel from what I gather) it reduces the noise by about 50% apparently, so just hoping it gets fixed when ever we get the 1.50 base :eek: Thanks for your thoughts on it though...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
The voltage regulators lowered might actually be the cause because people on the voltage table poll thread with 1.50 firmware/kernel seem to have lower voltages. But that might be coincidence.

On another note.

[MENTION=3088420]tbalden[/MENTION] [MENTION=1162986]Captain_Throwback[/MENTION]

On my thread for tweaking the interactive governor like ghostpepper profile another user ran into my issue. Leedroid rom and signal got lost.

Might be just a coincidence but maybe a script in su.d might cause the decryption/radio issue?

I don't know exactly where to post this so forgive me if you feel it's the wrong thread.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
That seems like a coincidence. I'm using that script and a custom kernel and my signal is fine.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
Okay puh so it's not my script. All well then or maybe not because that issue isn't cool at all if you run into it when there's no WiFi in reach.

---------- Post added at 07:58 PM ---------- Previous post was at 07:54 PM ----------

[MENTION=1162986]Captain_Throwback[/MENTION]

**** that. just put the script to su.d rebooted and it seems decrypted again. Got unknown baseband. So it is the script with leedroid Rom. Something is interfering.

And after that I have in su.d a permissive.sh script :eek:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
The problem is probably whatever it putting that permissive script in there. SELinux in permissive mode is likely breaking mobile data.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
I restored a backup. And there's a permissive Script in System/su.d

Selinux is permissive.... but Radio works.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Yes, thanks. Planning on having a look at it when I get home
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
in the meantime i've quickly updated to the N RUU USUnlocked... no turning back :P so it seems, today i must boot it up with patched up kernel :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Electronic Punk:
Well no TWRP for you yet then :D
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
yeah, i know. I'll fastboot flash full boot.img directly :) but indeed it's a bit bumpy this way, if I don't flash back and forth MM and N
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Electronic Punk:
Not found any immediate downside to sticking with the M firmwares yet but there is obviously something in there, but still looking forward to TWRP up and running so I can it all flashed up to N.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] INDIAN-MAfIA:
[MENTION=3088420]tbalden[/MENTION] On our early port of nebula to N from MM source, the kcal you ported breaks the night mode on N. You might want to have a look at it if it still creates issues on the official source.

And as for flashing zips, chainfire's flashfire works pretty good once rooted, you could try that.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Thanks for the tips! Night mode looks cool, I'm curious if it's possible to save it while using that, but I'd think you can set a kcal that matches night mode saturation and RGB, maybe
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
UPDATE

-= NOUGAT - US-UNLOCKED sources =-​

For now boot images, that can be flashed from Download mode or probably TWRP boot img flashing.

Two versions STOCK (for stock 2.28 ROM base) and MAGISK (for rooted nougat ROMs)

Magisk CLEANSLATE boot image for rooted custom ROMs:

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

Stock CLEANSLATE boot image for stock base phones:

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

Report if I missed anything or you find a bug.

(Flashing:

fastboot flash boot xy.img )
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] JEANRIVERA:
Can it be flashed on either firmware?