yashsingh1/xdaforums huggingface dataset:
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
Downloads:

init.d and su.d:

https://www.androidfilehost.com/?w=files&flid=140794

01.07.2017

I added an all in one package. The all-in-one package has all scripts with boost values including 2,4,6,8 and 10. So you do not have to start multiple downloads.

09.01.2017

v1:

- decreased the default boost value for top app from 50 to 25

- foreground-app has a boost of 15

- schedtune.boost for all other activities (that are not getting categorized) is set to 10

v2:

- decreased the default boost value for top app from 50 to 25

- foreground-app has a boost of 12

- schedtune.boost for all other activities (that are not getting categorized) is set to 8
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] XtraArrow:
Trying to execute it through root browser and get this: http://i.imgur.com/WbUsV6g.png

Put it in su.d directory. Not sure if it is applying on boot.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
What kernel are you on?

Did You run it from sdcard or su.d?

did you set the right permissions?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] XtraArrow:
On elemental kernel. I tried running from both SD card and su.d directory mate. Upon trying to change permissions it says it cannot be changed.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Paz9:
i like this.

just great!
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
Try it with one of these and copy them to system/etc/init.d please. Permission 644 for the script and reboot.

https://drive.google.com/folderview?id=0BxbxiBXaZVu-d3NOQlFqd3QzMVU
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
Hello all :)

I updated the second post. The scripts should work now :) please report back! Also regarding smoothness.

sorry for any inconvenience.

Have a nice day.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] kirschdog1:
Same issue unable to change permissions
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] airmaxx23:
The value in dev/stune/schedtune.boost and /dev/stune/foreground/schedtune.boost should be changed to the value of the script you picked. You can probably change them manually without the script.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
are you able to Change the files manually? either via root Explorer or terminal?

for terminal do:

su

echo x > /dev/stune/schedtune.boost

x is a value between 0 and 100 ( try between 1 and 10 to be on the safe side battery wise.)

afterwards check if the value got changed correctly.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] XtraArrow:
I can change them manually but upon rebooting they reset to 0.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] kirschdog1:
How do I check?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
Okay. I was in a hurry. I told you all to set the permissions to 644. You have to set them to 755 (rwxr-xr-x).

check with a root Explorer. it is the easiest way.

or via terminal

cat /dev/stune/schedtune.boost

But first set the permissions of the script to to 755 (rwxr-xr-x). I was in a hurry and did not think correctly :D

then reboot and wait a Minute.

I edited the instructions in the op and all should be working now. It will not matter if you put it in system/etc/init.d or in system/su.d.

I somehow mixed the permissions with somethings else up. yeah, 755 and all will be well. stupid me.

have a nice evening.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] kirschdog1:
Got it working with root explorer. Very smooth at 8!
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
Strange. Are you sure you actually flashed the elemental x kernel successfully?

Can you show me a Screenshot of settings-> about-> kernel Version?

If you have system/su.d try it there. Make sure to set Permissions to 755 (rwxr-xr-x)
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] airmaxx23:
I'm positive, I'm using the HBM that's included with the kernel.

Kernel Version is: 3.18.31-ElementalX-P-1.02

I installed it in system/su.d and it's working nicely.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
Glad you got it working finally. And sorry for my mistake.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] airmaxx23:
There's no need to apologize.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Cbass15:
Might be a mistake on my end.

But I do have elemental installed version 1.02 and I do not have init.d folder or a su.d folder.

Do you know what else I could do?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Cbass15:
Here are some screenies
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
Are you rooted? and if so did you flash elemental prior to rooting?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] dSlice:
Awesome job!
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Cbass15:
Yes and yes running both with either problems. It's probably an error on my end somewhere I'd imagine.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
Do you have su/su.d? if yes put it in there with the right permissions :)
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] MArtyChubbs:
Thank you [MENTION=3428502]Freak07[/MENTION] for the scripts, [MENTION=4752299]Alcolawl[/MENTION] for the inspiration and [MENTION=4553200]Mentalmuso[/MENTION] for making installation process so easy!

I am using 8 and it is very responsive. For those of us that use chainfire's SU to root and Root Browser to extract zip's and run scripts, I made some non-flashable zip files that can save some time when trying to find the right setting.

Required: Chainfire's SU installed so we can copy the script to /system/su.d and Root Browser to extract the files in the zip file, then execute the script inside the folder we extracted (https://play.google.com/store/apps/details?id=com.jrummy.root.browserfree&hl=en)

Steps:

1. Download all or any of the non-flashable zips from the link below to /sdcard/Download

2. Using Root Browser, navigate to /sdcard/Download and long press schedtune.boost"X".zip and selecting Extract and hit Extract. (X being the setting 2, 4, 6, 8, 10 or delete to remove the script from /system/su.d )

3. Using Root Browser, navigate to the folder you just extracted, should be /sdcard/Download/schedtune.boost"X" and tap the flash.sh to launch the Script handler, then tap Execute.

Each zip will delete the old script, if it exists, from /system/su.d then copy the new script to /system/su.d, then set permissions and reboot.

Files here: https://mega.nz/#F!pQdQwZIC!3BDuENcAApLlzUqmmtT3WA
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] kirschdog1:
I'm running 10 and this **** is speedy!!!!
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] skulldreamz:
DAMN, This is blazing fast on 6!! Thanks dude. Yeah 0644 is for apps just fyi...
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
Haha yes. :D I obviously knew this, as I set it always correctly for myself, so everything was working as expected. But somehow my brain got it all mixed up while creating the thread. :angel:
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] JAYNO20:
Would this work on the 5" model? Has anyone seen a major hit to battery life?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
Check if you have dev/stune/schedtune.boost and dev/stune/foreground/schedtune.boost and it should work.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] kirschdog1:
Reply when trying this to verify it worked through terminal I get a not found message. In root explorer it shows permissions are correct.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] JAYNO20:
I do have those folders so I followed the instructions here and as far as I can tell it's working... I don't see a huge difference though.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] jjayzx:
My su.d is in su folder and init.d is just init. I put the file in the su.d that's inside of su and it's working. I have elementalx 1.02 and I was rooted before installing kernel.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] MArtyChubbs:
Mine su.d is in system. Wonder what the default path is? May I ask what version of SU your running? I'm on 2.79
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Archangel:
It seems that with the regular pixel there is no init.d just init,,,so I put 10 in system/su.d changed permissions successfully and it seems like this thing is flying now,,,now to see what type of battery hit I take over time.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] JAYNO20:
What exactly did you do to get it to work?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] mannyalba:
Working just fine here, running 8 and it just flies, thinking of testing 10 now. thx Dev for this.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
init.d is found in system/etc/init.d and needs kernel support

su.d is found in su/su.d and system/su/su.d and is created when rooting via chainfires script.

When placing the script in su/su.d systemless root will still be intact because you are not modifying system.

init.d is found in system/etc/init.d and needs kernel support.

su.d is found in su/su.d and system/su/su.d and is created when rooting via chainfires script.

When placing the script in su/su.d systemless root will still be intact because you are not modifying system.

Put the script in system/su.d or su/su.d

Set permissions to 755 and reboot. Wait a minute or two.

To check if the script ran successfully do in terminal on your phone:

su

cat dev/stune/schedtune.boost

When it replies the value from the script you chose you are good ;)

Glad to hear that! :)
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
Great to hear. I will open a thread in the regular pixel forum too, to avoid confusion.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Archangel:
Thanks brother for this,,,just did the terminal check and came back 10 which is what I am running,,,made my Pixel run smooth as heck!
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] jjayzx:
Same version
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Cbass15:
Found thanks! ?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] iPwn_:
Apparently a 10% boost is already the default on Pixel, at least for the top-app: https://www.linuxplumbersconf.org/2...ations/3693/original/LPC- EAS for Android.pdf

Boosting the foreground thread in addition to top-app may make sense (which this script seems to do), but I think background is best left alone.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Alcolawl:
That's actually an extremely enlightening document. I had no idea the foreground apps on this phone run strictly on the big cores.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] jjayzx:
The schedule boost in top-app is at 50. At least that's what it shows on my phone and I didn't touch it.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bama17:
Worked first try for me. Enabled init.d support in Kernel Aiuditor, just in case. Copied >8 script to init.d, chmod 0755, and rebooted. Ran cat with terminal emulator and it replied with an '8'. Seems to be a good bit more responsive so far. Thanks for sharing this with us. Great job!

Oh, and I'm using stock kernel

Edit: It's not just more responsive, it's freakin flying now! And not noticing any difference in battery consumption at all.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
[MENTION=4752299]Alcolawl[/MENTION]

I don’t know how current this document is.

On my pixel XL I have these cpusets.

root@android:/ # cat dev/cpuset/cpus

0-3

root@android:/ # cat dev/cpuset/top-app/cpus

0-3

root@android:/ # cat dev/cpuset/foreground/cpus

0-2

root@android:/ # cat dev/cpuset/background/cpus

0

root@android:/ # cat dev/cpuset/system-background/cpus

0-2

root@android:/ # cat dev/cpuset/camera-daemon/cpus

0-3

root@android:/ #

Is anybody on stock kernel? And can confirm this? It seems it got decided, system-background should run on one big core too.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Archangel:
I can verify the system-background one I am on stock kernel and changed the values to 50 just to see if it ran any faster LOL,,,I ran it and it came back the same as yours? Is this good, bad, or doesnt matter LOL?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
You changed dev/cpuset/system-background/cpus to 50? I think this has no effect.

0-2 means that both little cores and one big core are used for tasks of that category

0= little core 1

1=little core 2

2=big core 1

3=big core 2

If you want change dev/cpuset/foreground/cpus

From 0-2 to 0-3 and see if you can feel any difference.

BTW I changed the schedtune.boost to 15 and did definitely get an impact on battery life. So it seems that 8 or 10 seems to be the sweet spot.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Archangel:
No I took the 70sched10 and used notepad ++ to change the values to 50 and loaded it again,,,dont really know if there is a difference on speed but battery seems the same. If I dont see any difference will prob go back to the normal 10 one.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
If you find time report back. as I said on 15 I noticed drain. Usually I get around 50 to 60 minutes screen on time per hour. with boost set to 15 it decreased to 40 minutes per hour.

When setting it to 100 your cores will be locked on max clocks.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Archangel:
Yeah setting it to 50 does drain the battery but not as much as I thought. I probably getting 30 mins screen on time but it is hecka fast LOL. There is a definite noticeable speed increase but the battery drain is probably a little much,,,I am testing out 20 to see the difference.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] gverma1:
I tried both 8 and 10 values, but didn't find any difference in performance. Reverted soon after. I guess my marlin is already blazing fast with twrp rc1, supersu2.79 and EX1.02. YMMV.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Golf c:
Same here, tried 8-10 seems a hair smoother. I'm sticking with 10 atm. Battery still seems good.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] JAYNO20:
This is what I'm noticing. No visible difference in performance for me.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] DespairFactor:
I noticed it is quite a bit smoother on my device. I also noticed that /dev/stune/schedtune.prefer_idle is set to 0. I am testing it with 1.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Archangel:
LOL I am on 50 and it is super fast even when loading web pages,,,butttttt LOL and thats a big butt LOL,,, the battery drains faster while using the phone. So I will go back down to 10.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
Great to hear! Be sure to report back your findings!

I currently have cpusets changed a bit for me.

I have background set to run on both little cores instead of just one. Seems to have helped my battery overnight a little bit. But I'm not sure if it is strictly related to this.

Also changed foreground to run on all cores :fingers-crossed:

[MENTION=5169465]mdalexca[/MENTION], [MENTION=4752299]Alcolawl[/MENTION]

don’t know if you already found this:

https://www.google.de/url?sa=t&sour...9YJNnS2LBH6n7qIQg&sig2=CJrsBCL1kk93QMr0w33lSA

Worth a read. from page 23 on schedtune is explained.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
Did you both check if the values got applied via terminal?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] gverma1:
Yes. Values were applied.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] xocomaox:
Change to the performance governer... It will max CPU speed while screen is on. This will give you the best possible speeds, but like you said, battery will drain faster.

10 is probably the better option. :)
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] JAYNO20:
Yup also applied.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] DespairFactor:
I had some of this info already but based on what I believe we should only really boost foreground a little more. We shouldn't boost all in general.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] lexcyn:
I used the 8 script along with changing the foreground cpu to 0-3 (all cores) and it's flying now. Have yet to notice a battery hit yet.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] DespairFactor:
I have foreground at 6 and top-app at 15
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] JAYNO20:
How exactly did you do this?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
I thought the “general” schedtune.boost in dev/stune is for everything that falls out of the other groups and can’t be assigned to foreground,top-app, background etc. So maybe it is not a bad idea to boost this also a little bit for containing any errors that are done while assigning the groups.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
Do a little reading and find out how to write 0-3 to this file dev/cpuset/foreground/cpus via terminal on your phone. ;)

Or use a root explorer.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Archangel:
Just go to the file using root explorer and long press it then select text editor and change the value, save and exit,,,,maybe reboot if you need to then your done!

---------- Post added at 04:35 PM ---------- Previous post was at 04:33 PM ----------

Any battery drain that you noticed?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] JAYNO20:
I did this, but it seems to revert after a reboot... any reason for this? I changed it using Root Explorer.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] lexcyn:
I just added the following line into the OPs script:

echo 0-3 > dev/cpuset/foreground/cpus

This sets the value on boot, but as other people have said, you can do it via terminal app as well.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] JAYNO20:
Awesome, thanks.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] gverma1:
Do let us know if this additional measure helps?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] JAYNO20:
I see a difference with the added cores.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] gverma1:
Added cores with 8 or 10? Maybe only added cores would be enough?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Archangel:
Hmmm I added this line in the script but on reboot it always gooes back to stock? I have tried to change it with text editor,,,in terminal, alter the script and it all changes back to stock on reboot?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] JAYNO20:
Never mind. I just deleted all of these changes and rebooted with the stock configuration and it is exactly the same. Neither of these 2 things seem to change or speed things up at all. :confused:
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Archangel:
Have to admit as well no noticeable difference after getting it to stick. I think I will continue playing around with original script and numbers between 10 and 20. 10 seems the best with little battery drain,,,20 is not bad and just a tad bit more battery drain.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Juzman:
Running this set to 6, and echo 0-3 > /dev/cpuset/foreground/cpus -- seems to be slightly snappier.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Paget96:
L Speed app have Schedtuner inside (CPU Tuner section), thanks to [MENTION=3428502]Freak07[/MENTION] for allowing me that.

Everyone who support schedtuner booster, can easily switch through three profiles, Light, Moderate and Aggressive. Used values are 5,8 and 10 as [MENTION=3428502]Freak07[/MENTION] recommended.

Give it a shot, test it, and report back. I'll upload apk as attachment and also give a playstore link.

Current app changes doesn't exists on one from playstore, that will be available in few days :)

Playstore link

Edit:

Version with various fixes and improvements, also added DPI changer, u can do it without reboot :D

https://xdaforums.com/showpost.php?p=70456953&postcount=24499

Thanks ;)
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Reechings:
Thanks for this option, nice to not have to mess around with scripts . manually. Have set it to aggressive for now and it does seem spunkier, will see how it affects battery. Cheers!
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Paget96:
Thank you for response ^^

If you plan to use other things, just do a long click on option, and you'll see an explanation.

For Schedtune booster, values are 5(light), 8 (moderate), 10 (aggressive)

Thanks^^

Cheers :)
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Reechings:
Yeah didn't touch anything but schedtune booster. Don't want to mess too much with a good thing.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Paget96:
As you wish ;)

I did all of the tweaks really carefully, so it's not random throwing changes like half of the mods on xda ;)
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Reechings:
I'm sure I'll play with them some more later. Any recommending settings?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Paget96:
use balanced profile, or apply some at your will ;)
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] JAYNO20:
I tried applying almost all the settings and while this app worked wonders on my S7 I just didn't see any difference on the Pixel.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Paget96:
Test battery since device is fast enough ;)
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] MArtyChubbs:
Not trying to hijack this thread, but I maxed all the settings out and it feels and loads quicker. Previously, I was on a setting of 10 with the script.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] JAYNO20:
What do you mean?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Paget96:
I mean you have to monitor battery life, since device is fast enough ;)
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] JAYNO20:
I haven't done anything to it... All these mods aren't making a difference for me and I am getting 4+ hours of sot.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bbender716:
Great job sir!
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
Update 09.01.

Hey guys and girls

I updated the androidfilehost-folder linked in the second post with the releases v1 and v2.

v1 is a little bit more performance oriented while v2 is a little bit more moderate.

Changelog:

v1:

- decreased the default boost value for top app from 50 to 25

- foreground-app has a boost of 15

- schedtune.boost for all other activities (that are not getting categorized) is set to 10

v2:

- decreased the default boost value for top app from 50 to 25

- foreground-app has a boost of 12

- schedtune.boost for all other activities (that are not getting categorized) is set to 8

The device is flying for me now and I usually get 50 to 60 minutes of screen on time per 10% battery.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] DespairFactor:
I am testing v2 on my rom and kernel now.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
great :) if you find time report back how it performs for you.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Paget96:
Should i perform update inside the app?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] xocomaox:
I installed the v1 since it's geared for performance but not seeing a real difference. Still testing though.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] MArtyChubbs:
I was a big fan of this app on my S7 and I think it has improved the performance of my pixel so thank you very much for the two devs collaborating on this cuz it is better than stock performance in my case. Fwiw im on v2
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Paget96:
Light

schedtune boost = 5

foreround schedtune boost = 9

top-app schedtune boost = 25

Moderate

schedtune boost = 8

foreround schedtune boost = 12

top-app schedtune boost = 25

Aggressive

schedtune boost = 10

foreround schedtune boost = 15

top-app schedtune boost = 25

Thanks to [MENTION=3428502]Freak07[/MENTION] for new configuration.