yashsingh1/xdaforums huggingface dataset:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] gusoldier:
Compared to stock I feel no performance loss, as smooth as stock. What I actually meant was a new script for buttery smooth nexus like experience.

Btw I will also check how hot it will get. On stock the phone gets sometimes hot watching youtube etc. Hopefully it'll better with this script
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
yeah. I can try this later. But compared to my nexus 6 and my pixel c the 10 is about as smooth.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Got it working with su.d. Just needed to add some sleep at the beginning of the script, otherwise it runs too early and the parameters can't be set :).

P.S. You didn't answer my question about why you're not using su.d instead of init.d?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
Can you post it? I will add it to op :) thank you captain!

Edit: didn't think about it :D I'm not that knowledgeable.

Or is it just like "sleep 30"?

Edit2: it is indeed. thank you again.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Sure, right now I'm just trying to find the minimum sleep value that works, and once I do, I'll post it.

RE: su.d, see the 2nd paragraph here: http://su.chainfire.eu/#selinux-policies-supolicy

An additional advantage besides the ones listed there is that in a systemless root setup, su.d doesn't require modifying system at all, which is important for being able to take OTA updates in the future. On this device, I try to touch system as little as possible (if at all), so it might be a better alternative, and doesn't require a custom ramdisk.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
yeah you´re right. thanks for the reference and the hint. i knew about it but didn´t remember i could use this :) see my edited last post. with sleep 30 it´s working for me. i updated the op.

besides, do you had any luck in finding your pvs bin? i´m extremely intersted in this. i only found my voltage table so far. maybe you may post yours too. i opened a thread here:

http://xdaforums.com/htc-10/how-to/post-voltage-table-chip-t3383494

if we had a way to check our pvs bin it would be even more helpful.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
sleep 30 didn't work for me, as I have another script running before this one. It's probably safer to go with sleep 60 to make sure it loads for everyone (sleep 45 did work for me too, but 30 was too short - figured it's better to allow more time). Just a suggestion, or you could just tell people that if it doesn't load for them to increase the sleep value. Up to you, really.

EDIT: And I don't know anything about a pvs bin :eek:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
Okay i'll edit it to 60.

This is what I'm talking about. Every Chip has a pvs bin. The higher the bin the lower the voltage for a certain cpu frequency.

And every bin has its own voltage table.

http://xdaforums.com/htc-one-m8/general/guide-snapdragon-801-clocking-voltage-t2807173
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] rav101:
Hey [MENTION=3428502]Freak07[/MENTION],

Wondering if you can help.. Can't seem to get this working?? Please see attachment. I've set permissions and used terminal to get it working but no dice?

Edit: Nevermind.... I can't follow simple instructions to unzip a file (I was renaming the zip rather than unzipping and renaming that to .sh).... #Special

Edit 2: Went straight for option 5b (so it should have worked on reboot). When I rebooted I lost the radio and have had to clean flash my ROM? I was on Leedroid's Rom when it happened.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
Which Kernel were you on?

This morning i had the same issue when flashing tbalden Kernel using leedroid and my Script.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] rav101:
Hey buddy,

I was on the kernel built into Leedroid.

Hope that helps.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
How did you recover? Full Wipe?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
Delete
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] rav101:
Yeah, I tried a dirty wipe but that didn't work so had to do a full wipe.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
I will change the value to 60 in the next release. Thanks. :)

Did you know what was happening and got it working? Just curious. I’m on LeeDroid and everything is fine.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] IronicChloride:
I'm on leedroid as well but have no idea what happened. I was restarting and refreshing things like crazy while charging, maybe the battery just got mad at me? Since I let it cool down everything has been running like a dream, but I'll see what the logs say if it happens again.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jimbob_sf:
I'm running Venom and it has a file in /su/su.d called 99venom. Should I delete this when I put butterfkyv9oc there?

Right now, both are there.

Also, if using the script method, is any action / setting needed in Exkm or just leave it be?

Thanks!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
No just let the venom file in there.

No action in exkm needed when using the script. :svetius:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ChronoReverse:
[MENTION=3428502]Freak07[/MENTION]

I've noticed since I've moved to LeeDroid 1.5.0 (base 1.80) that the CHMOD trick will get "delatched" on the Big cores after the phone goes to sleep (for some reason the Little cores don't) and started looking for a better way.

Turns out you can turn off pnpmgr altogether:

stop pnpmgr

I'd remove the CHMOD lines (you can keep the scaling_min_freq lines) altogether and just stop pnpmgr.

DISCLAIMER: I really have no idea whether there are bad consequences to turning off pnpmgr.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
Thermals wont work properly when pnpmgr is completely stopped.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ChronoReverse:
Thermal throttling will still occur when pnpmgr is disabled. I'm positive about this and even double-checked right now to make sure.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
Okay :) but there are some more things that depend on pnpmgr afaik. We will see.

once I updated my phone to 1.80 I will try to figure something out. Thanks for the hint!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
CPU Throttling?

PnpMgr also cares about eMMC and Battery....
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ChronoReverse:
Right, forgot about those. On other Snapdragon phones, that's handled by msm thermal though. I suppose HTC coopted that with pnpmgr?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
What exactly do you mean with delatched?

I flashed leedroid r109 along with the new ex kernel and butterfly works like intended until now.

Phone was in deepsleep and everything seems fine after that.

If you want to do me a favor. Try to set the sleep time in the script to 60. This might help if something is interfering.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ChronoReverse:
I'm not on 109 (although it should be the same as 1.5.0 I hear?) and I'm using the stock kernel.

From observing Trepn it would be working properly up until I'm on battery and phone is in deep sleep. It's possible that I have some other factor that's causing it but the chmod trick to keep pnpmgr from boosting the cores only continues to work on the small cores.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
I think I know the cause. Got the issue too. Can you check if the line

chmod 444 /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq

sets the permissions correctly?

I had 644 on the file. As soon as I changed it with root explorer to 444 it worked.

Running the command from terminal without su gave me an permission denied error. running it with su access in terminal worked however :confused:

Do you or anyone know how I put that in my script? That the line gets executed as root?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ChronoReverse:
chmod 444 /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq

This line came from the original Butterfly scripts but it had the added benefit of disabling pnpmgr from doing the crazy boosts to 100% CPU frequencies (2 seconds on multitask, starting an app, touching the screen, etc.).

All the lines of the script is executed as root when running via init.d though; these are root scripts after all.

Still, a simpler workaround is to simply disable pnpmgr. pnpmgr is the HTC Power Manager but the SD820 has its own msm_thermal service dealing with throttling for the CPU, GPU and eMMC (probably battery too if it's like the SD810) anyway.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
I know where the line came from. but this particular line doesnâ??t work for me as a su.d script. After booting the file still has the 644 permission and not 444.

No completely disabling pnpmgr isn't a good idea on htc devices.

Try to turn pnpmgr back on and check if the script Sets the correct permissions. If you also have 644 permissions for this file and upon changing it manually it will be good we have the culprit.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ChronoReverse:
I run scripts as su manually ;)

The first time I noticed this happening, I simply reran the script so something is resetting it when the screen turns off and it goes to standby. The permissions would be 444 before screen off, battery standby. Then when after a minute, I turn on the screen and look again and the permissions are now 644.

scaling_min_freq for CPU2

Bizarre that something would reset the permissions.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
Yeah I could reproduce it. Quite uncool change :(
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
[MENTION=2656752]ChronoReverse[/MENTION]

I tried now your way and stopped pnpmgr completely

Just had to also set the max cpu freq because it got limited to 1036 mhz.

Up until now it works good. Additionally I activated msm thermal control.

Interestingly enough is when I only set the touchboosts in the pnpmgr folder to 0 I get the most horrible lagfest. But stopping pnpmgr itself creates no lags. So there are other dependencies for those boosts.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ChronoReverse:
Interesting, so you also get the max CPU freq limitation bug? Do you run the scripts via init.d as well? My friend also gets the same thing when he uses the scripts via init.d. Since I run mine manually after everything is booted, I never noticed this problem.

Gotta rethink about how to do this then. Disabling HTC Power Manager using Leedroid settings achieves the same thing without the same issues (most likely because it prevents pnpmgr from starting in the first place) but it might not be possible to achieve the same thing via a post boot script.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
Via su.d but it should be the same thing.

Yeah I think in the next release I will include the commands to stop pnpmgr and set min/max frequencies.

Also to activate msm thermal.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] kfasheldon:
Any news...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
yes :) new Butterfly Version is available in first post.

It is updated for base 1.80. Complete changelog is in op.

it disables pnpmgr completely. i just had to test this longer to make sure it doesnÂ´t cause any harm.

it will also enable msm_thermal and core Control.

let me know how it works for you all :)

have a nice day
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] hgoldner:
Those of us on Verizon are still on 1.19 base (and therefore running EX 0.06). Would you recommend we similarly wait to update these profiles until Big Red pushes out the OTA?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
I think you can use the new version too. :) shouldnt cause any side effects.

But make a backup just in case.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mazubo:
Hello, I just flashed the latest butterfly 11 script using the init.d app, however after flashing I checked the app "show last execution results," and found this info within the screenshot attached. Has the script been flashed, or is there something wrong here?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
Did you extract the two scripts from the zip you downloaded? The zip is not meant for flashing.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mazubo:
Wow, thanks for that! Sometimes it's the simple things that slip by..

Cheers! All is good now.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
new update for Butterfly will come soon. i think i found values that may work even better for 1.80 base.

Have a nice day :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Bud Horn:
Hi guys.

I cant seem to get the script to hang on in my phone. I installed it totally correct and gae it the right perms, but when I test it, it does'nt show, and I have waited at least 5 minutes....any suggestions would be very welcome. Thx in advance, guys :)

/Bud
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
hey guys and Girls,

Butterfly just got updated to v12. you are all very welcome to try it :)

have a nice day.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
did you unpack the file you downloaded?

where exactly did you place the zip?

what exactly did you check and does not Show up?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Bud Horn:
Yes, mate. I unpacked it and followed your directions completely under point 5B in the IP. The strange thing is I had I working yesterday but after Rom update I doesn't hang on, as I wrote.

Man is the cruelest animal
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
if you update your Rom you have to place the script again because most Aroma installer will wipe your System Partition.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Bud Horn:
Ok, mate. So I have to unpack it again and replace the new unpacked gp file in su.d as described?

Man is the cruelest animal
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
yes you have to do this every time the System Partition gets wiped.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Bud Horn:
thx a lot ... I'll do it right away ?

Man is the cruelest animal

---------- Post added at 09:11 ---------- Previous post was at 08:44 ----------

Dammit... Still not working. I dunno what's wrong. Ive done exactly as you have described ... But when I check in the target_load lib it only says 80 and none of the other numbers....

Man is the cruelest animal
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] SacredDeviL666:
so v12 still disables pnp mgr but with better values set for 1.80 or it doesnt pnp anymore?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Bud Horn:
I placed the zip in su.d as you have specified, mate...

Man is the cruelest animal
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
Not the zip. The extracted files.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Bud Horn:
Sorry, I meant the extracted files, off course.... My fault - apologies. I've done exactly as you specified in the op and tried with butterfly v12 and the result are the same... It doesn't stick ?....

Man is the cruelest animal
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
Try the folder system/su.d if you havenâ??t already.

Does it work when you run it with terminal emulator?

Also which rom are you on? Are you rooted?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
V12 still does disable pnpmgr yes.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] SacredDeviL666:
thanks...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Bud Horn:
I have tried the system/su.d folder. Thats the one I've been using all the time. I'm on LeeDroid v119 and yes I'm rooted and s-off... I haven't tried the terminal thing, but it's worth a try, mate..

Man is the cruelest animal
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
If the permissions look like on my screenshot it should work.

If it does not you have something interfering...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
Screenshot
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] baadnewz:
AROMA flashable zip

Has all 4 scripts as selection in AROMA, also includes option to remove them (get back to stock)

works only on SuperSU systemless (like all custom roms and stock rom have it installed)

enjoy
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Bud Horn:
Thx a lot, [MENTION=1186202]baadnewz[/MENTION] ?

Man is the cruelest animal
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] SacredDeviL666:
doesn't work on system based su?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] baadnewz:
I wrote system less haven't I? Updater script has to be edited to make it work with system su. Maybe I'll do it another time
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Bud Horn:
Hey [MENTION=3428502]Freak07[/MENTION].

Baadnewz aroma installer did somehow the trick for me... Bow it works. I had it working too when I installed it manually like you described in op 5a... Thx a lot for this tweak... I am really looking forward to see it do it's magic ?.

/Bud

Man is the cruelest animal
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] SacredDeviL666:
thanks... :D
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
Thanks for posting this [MENTION=1186202]baadnewz[/MENTION] :svetius:

I will update the zip when a new version comes out :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
i uploaded the aroma zip to the op.

thanks [MENTION=1186202]baadnewz[/MENTION] !

i will probably work on ghostpepper the next few days.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
[MENTION=5779397]Bud Horn[/MENTION]

I saw I made a mistake in butterfly v12.

Sleep time was somehow changed to 1 second. That's why it wasn't working.

Just change the line "sleep 1" to "sleep 30".

I'll release an update tomorrow.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] baadnewz:
Oh then you must edit the scripts in the zip I made because I left them untouched as you posted them in op
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
hey guys and girls

updated op with the latest flashable aroma version. it´s also attached to this post.

was just a hotfix in case it was not working. i made a mistake and forgot to set the sleep time to a proper value after tweaking.

now nobody that is using systemless root should have any problems.

have a nice weekend :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] zeeBomb:
So this works with the 820 too?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
what do you mean? the scripts here work for the s820 yes :) but they are made for the htc 10. the scripts disable pnpmgr.

do you want to use it on another device?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ali nz:
So butterfly is better for batterylife?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
Edit see the answer on the more recent thread for pnp profiles.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ali nz:
Thanks for your answer
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] guytalluto:
I put this .sh script in the folder (rooted) #/data/adb/service.d

remove the (.sh) extension by renaming it. set permission to 775. Magisk boots this on startup now everytime. Removing the shell extension made it executable in this folder that boots with Magisk
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
I Report back when I have something. Sorry for the trouble.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] rav101:
No worries dude,

Let me know as and when. Otherwise we will have exkm updated soon I reckon.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
You have to put the script in System/su.d along with a script that Sets selinux to permissive. That fixed the signal issue without a wipe for me.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] rav101:
I've just checked and I have a script to set to permissive already so I should be good to go. Unfortunately I'm out for dinner tomorrow so can't play around with phone until late. Will let you know how it goes buddy.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
Okay. Baseline is somehow if you put the script in su/su.d signal is lost. I have both Scripts now in system/su.d and everything is fine. I didn't have to full wipe. Just put the permissive script in there rebooted and signal was back.

Thanks for the time. I'll edit the op soon.

edit: op is updated. if you have time let me know if it works for you.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] rav101:
... Couldn't wait. Just applied as a .sh file and it has worked. Leedroid already has a permissive.sh script in the same location so I guess that is covered. Will see how it runs on this cycle and if all good, then I will get rid of.sh at end for reboots. Probs take a backup before I do that cuz you know...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
So this only applies if you're running a custom ROM? I have the script in /su/su.d and it works fine, but I'm also not changing SELinux to permissive, and my system is unmodified.

EDIT: I think the key here is that only one location for su.d should be used. If you remove the permissive.sh from /system/su.d and only have the one in su/su.d, does that work?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
That may be. I remember when I had the issue the ghostpepper script got deleted and the permissive script got moved from system/su.d to su/su.d.

getenforce lcommand in this case returned enforcing despite the script in su/su.d
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
If that's the case, it might be something that needs to be brought up with [MENTION=631273]Chainfire[/MENTION], if having multiple locations for su.d is confusing the supolicy tool as far as the order in which the scripts should be run, or if it's trying to run them simultaneously. I'm not exactly sure how that would work, especially if you have the same script in two places.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
I'll try again this evening.

Edit: did you notice any difference with the Interactive values?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jeanxx:
What is the battery life you guys are getting compared to stock?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
For me it’s better around 6+ hours sot with the same usage as stock.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] rav101:
Hey buddy,

Just an update, (on Leedroid with ElementalX) I have tried to get this working on reboot but no dice:

1) 50ghostepeppertenv2 in the system/su.d folder but no signal.

2) 50ghostpeppertenv2 and apermissive files in system/su.d folder but no signal.

3) 50ghostpeppertenv2, apermissive and permissive.sh (was there to start with, I guess from Leedroid) files in system/su.d folder but no signal.

4) 50ghostpeppertenv2 and permissive.sh files in system/su.d folder but no signal.

I was making sure to set permissions but it did not want to play ball. When I removed your files and kept the permissive.sh file that was already then, then upon a reboot I am getting signal again? Might need a bit more thought on custom kernels to get working :(
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Freak07:
Type getenforce in terminal and see if it returns permissive.

Its working fine for me.

Did you redownload the ghostpepper file? Try this. Did you unzip the apermissive zip before renaming it?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
Does this deactivate Touch Input Boost?