yashsingh1/xdaforums huggingface dataset:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
With elemental x kernel you can disable the short cpu touch boost (1,3ghz) but the longer boost (1,0ghz) is regulated via pnpmngr and you may want to not deactivate it at the current state.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] rav101:
I thought if you didn't disable the longer boost, then you wouldn't see any of the battery savings as the phone is ramping up to a higher CPU frequency than is needed??
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
Yes that’s true but disabling pnpmngr causes more harm than good until flar2 finds a way to modify it.

It saves battery anyway just less. The frequency scaling looks good :) and for me battery has much improved vs stock.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] rav101:
Fair enough,

I had disabled pnpmngr for that reason. I'm a pretty light user so haven't noticed any of the negative effects.

Can I ask what they are?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
Did you check if your cores get stuck at a certain frequency?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] rav101:
Devcheck has been updated for the HTC 10 last night, just checked the CPU times in state and it all looks good. :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
When I disable it via exkm the kernels get stuck but I didnâ??t reboot.

But a short note. When deactivating and reactivating pnpmngr the governor settings get reset.

[MENTION=5582262]rav101[/MENTION]

I actually found a way to disable only the Touch boost from pnpmgr. So when you find time I'll Upload V3 shortly :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
OP and Script updated.

would be great if more people try this now as it works properly without touch boost.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] rav101:
Hey,

So I disable it through Leedroid's tweaks app. I believe I saw somewhere that Exkm can't correctly disable it. That might change when flar2 has a chance to update the app to work with the htc10 and sd820 (he is expecting to get that done this week).
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
You don’t need to disable pnpmgr any longer. I have now just disabled the touchboost both for cpu and pnpmgr with v3. :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] voxibanez:
Without touch boost everything is really choppy for me. I'm on ElementalX overclocked
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
yeah you´re right. i did a test with hpm enabled last evening and forget to turn it off. sorry for that. phone is really slower with touch boost disabled.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] King p1n:
What SOT where you getting before?

Nonetheless good sign.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
5 to 5 1/2 hours.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
What are the Touch Boost Frequencies ? Shows 1324mhz in sys/Module/cpu_boost, but I guess that's the kernel one and not pnpmgr.

Gesendet von meinem HTC_M10h mit Tapatalk
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] voxibanez:
What I did is I changed the touch boost time to 300ms and that seems to be long enough to have smooth scrolling for the most part. I will keep experimenting with it later.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
Take a look at sys/Power/pnpmgr :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
Only found the boost_duration there and not the clock. Am I blind?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
You only can toogle the boosts from pnpmgr on, off and define the length. The frequency is controlled by pnpmgr.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
hey guys.

op is updated again.

butterfly version with tb seems to be extremely smooth for me. the downside is that touchboost from pnpmgr is still enabled.

i made ghostpepper more aggressive so the new version should be smoother without touchboost.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
i think i found a sweep spot for the butterfly profile. please try butterflytenv6withtb. it is extremely smooth for me. pnpmgr boost is enabled but kernel cpu boost is disabled.

thanks :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] LukLak19:
Flashable zips would be nice for the future :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] LeeDroid:
Definitely seeing a benefit with ghostpepper v4 at present, nice tweaking!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] rav101:
Now that EXKM is updated, any chance of creating the profiles in there?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
version with or without touchboost?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
Yes :)

I will update the op this evening :) also have already sent flar 2 the butterfly profile.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] heymynameiseric:
Just ran the ghost pepper v8 (with touchboost) script. I dunno if it's placebo or not, but this phone seems much smoother than before. Amazing job! Thank you!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
Put Mine in the su/su.d Directory. Is this because of systemless su? Seems like the .sh worked anyway.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
If you are on leedroid there may be a chance you end up with not working signal when putting the script to su/su.d. But if everything went fine for you it doesn’t matter at all no.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jcrompton:
Happened to me...... Had no idea what I had done. Went through complete wipe etc

Now I know!!!

Beware for others
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Latty:
Script works on leedroid if you rename it beginning with the letter z, such that permissive.sh executes first (at least in my experience)

Looking forward to the ex kernel manager profile for ease of use =)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
My script waits 60 seconds upon boot before it gets executed.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
Well it is written in the op so... :P
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Latty:
Do these scripts run sequentially? If there's a 60s wait, then the script, then the change to permissive, perhaps that's what's going on.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] kfasheldon:
But does this still let other scripts run or do they just que up.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
Seems like Ghostpepper doesn't like low Frequencies.....
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
Well thatÃ?Â¢??s intended from my side. Cpu min freq gets set to 653mhz. When looking at my voltage table the first five frequencies (big cluster) up to 653 mhz are using the same voltage.

As I already said ghostpepper v8 is rather aggressive.

I made a new version with a less aggressive little cluster.

Edit: but the thing that bothers me the most is as soon as I disable the touch boost from pnpmgr the blinkfeed app drawer gets laggy when scrolling very slowly and releasing the page regardless of aggressiveness from my profile. :eek:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
I donâ??t know100%. It shouldnâ??t queue them up.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Brnway:
There's more to it than just voltage. Power consumed per second of CPU operation = C*(V^2)*f, where C is the capacitance of all the transistors in the chip, V is voltage, and f is the frequency.

Even though lower frequencies don't operate at lower voltages, scaling down to 307MHz instead of 650MHz still saves 50% power.

Any chance you would consider making another profile that scales both cores down to 307?

Sent from my IBM Selectric
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
Well but the amount of time that’s required for the operation is reduced when using a higher frequency.

but In fact I found battery life took a little hit and I lowered it already back to 307. New version will pop up soon.

But that also has another reason. Pnpmgr is able to change it back to 307mhz anyway. Haldi did his tests with pnpmgr disabled. So all that didn’t deactivate pnpmgr manually would end up with a min frequency of 307 after a short time.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
Good evening,

I updated the OP with the new recommended Version. GhostpepperV9.

A few changes. one zip now contains oc and non oc version. i also did a package that contains elemental x profiles for [MENTION=4684315]flar2[/MENTION] ´s app

For now only Versions with touchboost enabled.

with v9 lower frequencies should be used more often and the device should be even snappier. ( [MENTION=3056043]Haldi4803[/MENTION] ;) )

I feel this is a good base to start further tweaking.

maybe seperating the mod into different versions depending on the usage. maybe allround, heavy and light.

i´m glad about all feedback that is posted :)

thanks guys.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Fir3Dolan:
Well, I guess I had a great timing to find this thread right after you released this. :D Sounds very promising so I'm going to test it out now. Feedback is coming monday evening when my normal day usage is done. Thanks for your work :good:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Brnway:
Awesome! I'll try the latest version tonight.

Sent from my IBM Selectric
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] kfasheldon:
Testing v9..lets see v4 was good...thanks
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
TouchBoost is set to 1324mhz?

1324mhz uses about 4.1W at Full load while 1036mhz uses 2.9W

But then again Interactive Boost Frequency was 1228mhz? (That's Ghostpepper profile right? Original was 1190?)

Syncing them is a good idea?

P.s nonoc-oc xD if it's an all in one just don't mention it at all?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
And here we go.... v9

All Tests done on a HOT device.

Battery Temp 37°C I was using the device the whole time ;)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
I didn’t touch the boost from pnpmgr.

But I set cpu boost to 1,7 ghz for the big cluster for 300ms. Little cluster does not boost via cpu boost.

When I try to mess with pnpmngr’s cpu boost blinkfeed will stutter.

Yeah well was tired last evening :p
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
So would you consider the result good?

I think utilizing the big cluster is quite necessary so this was one of my goals.

But aside from your test. the big question, how does it feel and is it smooth? ;)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
I just provide statistics[emoji14]if it's smooth or not everyone has to decide that by himself.

Me myself I'm to blind to see such things ^^ i only realize it when it annoys me.

Where does the workload come in, in this calculation?

Just setting cpu frequency to 2150 does not use that much power.

But using Primebench or stuff will start draining huge loads of energy.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] IronicChloride:
GhostpepperV9 with all touchboosts disabled (CPU boost and pnpmgr) is performing very well on EX kernel. Haven't noticed any performance degradation at all but the phone runs MUCH cooler now, very good work :thumbup:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ChronoReverse:
Incidentally, the chmod commands, at least on stock kernel, will turn off the pnpmgr touchboost (or rather, prevent its function). Very easy to see using Trepn since the default pnpmgr touchboost is 2 full seconds at 1.3GHz. Not sure if it's any different with ElementalX but something to be aware of.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Clarkkent434:
OK I have tried to install the script both methods and not getting result. If I install the ELEX profile it boot loops back to the bootloader. If I install the script through the script method I loss signal even though the script is in system/su.d and the script won't change my target load even when I execute the script. What am I doing wrong so I can get the script running.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jsaxon2:
If you are using systemless root, try putting the file in /su/su.d That is where I put it and it worked.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
The profile for Ex kernel Manager made your phone loop to the Bootloader? I don't think this can happen. There has to be another issue.

Do you use a custom Rom? Check in Terminal with the command getenforce if you're permissive. When returning enforcing ( enforcing leads to no signal)you have to put the permissive script also in su/su.d.

Put the ghostpepper script (the extracted one) in su/su.d and set for both Scripts the correct permissions.

Also when using the script it Waits 60 seconds before applying the values. Both upon Reboot and manually executing the script.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Clarkkent434:
I am currently run LeeDroid 1.20 with ElementX 0.03. I attached a image where I placed my ghostpepper. I tried getenforce and it is already permissive. I ran the script but it always says no file found. Is it supposed to say that? I also tried the Ex profile again still boot loops back to the bootloader. I don't have any mods, layer, so why is not working. View attachment 3768254
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jsaxon2:
Are you running the script through the a terminal window? I make sure you put ./ before the file name you are running. That is a dot slash.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Latest version working okay here. Not sure what difference it's supposed to make, but I've seen no I'll effects, at least.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
I'm sorry but I can't open/view your attachment.

You get a reboot back to bootloader when you apply the ghostpepper preset in the ex kernel manager app like on this screenshot?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Clarkkent434:
I apply the ghostpepper present in kernel backup I did not realize that you could apply governor profile. I thought the profile was a kernel backup based on the instructions in the op. Now that I got it applied why is your values different from V9 that is in op. If the vales are different than what is recommend( "15 480000:25 652800:43 844800:60 960000:75 1113600:85 1228800:90 1401600:95 1593600:100" ) should be change in the instruction of the op? I probably would have figure out what was wrong when I applied present a lot sooner If I had know that the target load posted is wrong because the have been change in V9. You can go download EK presest in the op and open them with a text editor and see that the values don't add up correctly to what is recommend.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
It should just give a general impression but I will edit them later. They are still the values from v1.

The values from v9 are better and recommended.

Glad you got it sorted :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] IronicChloride:
Have to say, I'm getting some pretty ridiculous improvements here. I was skeptical at first, but I'm getting 2% overnight drain compared to 4-5% before, active drain is around 13%/hr according to EX kernel (probably more like 15-16%, but still amazing for me). Phone has lost no smoothness thanks to the big core touch boost and runs MUCH cooler to boot. Really thought governor tweaks didn't have a place in the new SoCs, glad you could prove me wrong :good:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jb_bryant:
Can you guys provide some insight into how I apply the script? Which script do I rename? And if the su.d folder is missing from /system should I just create it? Pardon my ignorance. I just recently switched from iOS to Android. I do work with Linux so I understand some of these concepts and file structures but there's a lot to learn.

---------- Post added at 01:25 PM ---------- Previous post was at 01:25 PM ----------

I have the profile in place already in EXKM
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] schmeggy929:
Easiest way to apply script is to navigate to sdcard/ElementalX/gov_profiles and place the file there. You may need to create the folder 'gov_profiles'. Then in app click left menu at top, then CPU, then governor options, click load and apply script and Apply on boot.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jb_bryant:
I already did that. I was under the impression that it would do more if I used the script method beyond just modifying the governor. Is that not the case? I haven't seen much different in battery life and performance since only using the profile in EXKM.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] schmeggy929:
It is only a governor tweak, it may be noticeable to some, others not.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jb_bryant:
In the OP:

"First one is via scripts. this allows to set parameters outside of the interactive governor controls like cpu boost, editing of pnpmgr, min/max frequencies etc. so basically there´s more control.

Second one is via EX Kernel Manager. I will upload the profiles and you can apply them directly into the app. This will however only affect the tunables of the interactive governor. Touchboost has to be set manually for the profile to work exactly as intended.

so to try the script method follow these steps. (and before do a nandroid as always)"

This implies that if you use the scripts to apply it then it has an effect on more than just the interactive governor.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
You extract the zip file, choose the correct script for your clockspeed (oc is for overclocked)

Then for the temporary approach you may copy it for example straight to /system. with a file explorer rename and add .sh to the filename. So it gets "ghostpepperv9.sh"

Now in your terminal app type "su" (allow for root access)

Then cd to the location where you placed the file.

Like in this example "cd /system"

Then run the script with "sh ghostpepperv9.sh"

For the permanent solution you have to copy it either to system/etc/init.d

Or system/su.d

Or su/su.d

(And apply the correct permissions of course).

When using the script you get the touchboost and a disabled Boost from pnpmgr additionally.

When using exkm you just get the Governor values.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
Glad to hear that! :good:

Would you mind Posting your cpu stats? I would like to take a look at the frequency usage. from big und little Cluster please :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] IronicChloride:
Here you go! First two are from big cluster, last two are from little. Usage includes mostly Reddit and web browsing, email, text, and a bit of Snapchat

Edit: forgot to mention, flar2 says big core stats reset every screen off, that's why the times seem so small compared to little core
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] IronicChloride:
EX stats from the last day or so, note that I went from 0.03 to 0.04 partway through this time
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jb_bryant:
How do I know it's applying correctly? I still have the profile set in EXKM FYI. This is what my target_loads file looks like:

25 480000:35 652800:45 844800:60 960000:75 1113600:85 1228800:90 1401600:95 1593600:100
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
Thanks for posting these. This looks very similar to mine so it works for you like intended.

For the script check in "/sys/module/cpu_boost/parameters/input_boost_freq" if you get the values "0:0 1:0 2:1708800 3:1708800"
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jb_bryant:
I put it in /su/su.d (because the other directories you said I could use didn't exist) with rwxr-xr-x permissions and restarted and these are the values:

0:1324800 1:1324800 2:1324800 3:1324800

I also tried running it as root in a terminal and it ran but the values never changed.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
Are you stock rooted?

The values need 60 seconds after boot or manually applying before they are set.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jb_bryant:
Stock rooted with xposed and elementalx .03 (had some annoyances with .04). I just checked again several hours later and it's still the same.

---------- Post added at 07:06 AM ---------- Previous post was at 07:00 AM ----------

Tried launching it manually with su and ./ And waited several minutes and still the values are the same. Weird
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] schmeggy929:
At # it is:

sh ghostpepperv9.sh not su
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jb_bryant:
Good call. But I just tried that and the values in input_boost_freq are still staying the same. :(
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] schmeggy929:
Maybe try removing the .sh at the end and reboot, and wait the 60 secs. That the permanent route.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
Did you manually try to edit the file? With a root explorer?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jb_bryant:
[MENTION=3428502]Freak07[/MENTION] - The only thing I did is copy the file into /su/su.d and rename it to gostpepperv9.sh

[MENTION=933657]schmeggy929[/MENTION] - You mean to have it start at boot it SHOULDN'T have .sh at the end so it's a shell script? Hmmm I guess that makes sense. I run shell scripts in cron in Linux but I guess the files in init.d aren't shell scripts. I didn't realize that mattered though. Let me try that.

---------- Post added at 08:20 AM ---------- Previous post was at 08:19 AM ----------

Oh duh. I just re-read the OP. I didn't read 5B well enough. Damn lol
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] schmeggy929:
Haha :good:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jb_bryant:
Still the same after trying that. Is /su/su.d an ok location to put it in?

Can you think of anything else that would conflict? I'm assuming EXKM won't conflict. Xposed, Greenify, etc?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] schmeggy929:
su/su.d works just fine here. Did you turn off Apply on boot in EXKM app? it might be, I do not use Xposed or Greenify anymore.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jb_bryant:
Ah no I didn't turn apply on boot off. Let me try that. Also it doesn't need to be named 50ghostpeppertenv9 does it?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] schmeggy929:
Im not sure but I named it that anyways, I know in the init.d scripts pretty much start with a 2 digit number.

I always wondered why?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jb_bryant:
Still isn't working. I also tried upgrading to elementalx .04. I uninstalled greenify as well.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
Starting order is alphabetical.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] schmeggy929:
Yeah im not sure why it is isn't working for you, im on stock kernel and EXKM app shows correct parameters and root explorer shows as well.

Edit: also file should be 3.62kb in size, yours shows 2.33
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jb_bryant:
Hmm let me redownload it

---------- Post added at 02:45 PM ---------- Previous post was at 02:39 PM ----------

I think I had the one labelled elexprofiles. What are those for vs the others?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] schmeggy929:
elexprofiles one is loaded through the app and you stated yourself only applies to the interactive governor . The others are scripts that are placed in the su.d folder and have a few more options.

The one you put in the su/su.d folder should be the zip above the profiles one in OP
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jb_bryant:
Doh. Makes sense. I tried the other profile and it works! Man I need to pay more attention apparently :eek: