yashsingh1/xdaforums huggingface dataset:
[X Play General] IOmega666:
Down below I'm gonna post my usage from the day. I've used WhatsApp, Instagram, web browsing, Tapatalk and a little of Twitter and Facebook (Swipe PRO), and battery life was awesome, also like I mentioned in the other post, performance was smooth, temperatures were ice cold!

So, Glassfish is a script made by [MENTION=5886947]soniCron[/MENTION], he did this for the Nexus 5X in a start, I guess, and also Nexus 6P is supported, but with Glasshfish and Fairpark, those scripts are "most devices friendly", I think what [MENTION=5725023]Sickaxis79[/MENTION] did was "convert" those scripts that were my made to use with EX Kernel Manager, for us to use with Kernel Auditor and settings more acomodated to the Motorola X Play, but I've tried the one in the thread of soniCron (link is gonna be below), loaded it with EX Kernel Manager and did nothing more and I didn't edit anything in the script, loaded it just as it was.

This is the thread of soniCron [GUIDE] Advanced Interactive Governor Tweaks; Buttery smooth and insane battery life!

This is Glassfish post

This is Fairpark post

And here my stats for the day using, Resurrection Remix 5.7.3 + Squid Kernel R17 + Glassfish 1.2, also gonna mention that I set my brightness in auto (50%), don't use Greenify, Amplify, just Force Doze.

PD: If you wanna see another stat, just ask and I'll post it.
[X Play General] Ausraster:
Ok, thanks! So you are using the "stock" GlassFish1.2 script. Nothing changed, I guess.

And did you use the HMP Scheduler?
[X Play General] Sickaxis79:
[MENTION=1733430]IOmega666[/MENTION]

Init.d is a universal format and doesnt mather if you use ex kernel manager or kernel adiutor to apply. I only mentioned kernel adiutor because its free and ex kernel manager is a paid app, but both do the same job.
[X Play General] Sickaxis79:
The HMP scheduler is part of stock rom and already enabled by default . The only hmp settings that youll notice a differerence when changing them are the sched_upmigrate and sched_downmigrate.

When you give them a higher value you'll notice the small cores working a little longer before it passes loads to the big cores. Upmigrate 95℅ and downmigrate 85℅ is a nice value to achieve this like i did with the ghostpepperv3 script.
[X Play General] Ausraster:
Ah, ok, thanks for explaining this! :)

For me GlassFish isn't really laggy while just using apps but scrolling in some apps feels so bad/laggy. (RR + Squid 17)

Do you know how to fix this?
[X Play General] pijes:
Try setting the input boost frequency for big cpu. Currently Glassfish sets the input boost to 499 for little cpu.
[X Play General] Ausraster:
That's exactly what I did! Thanks! :)
[X Play General] Sickaxis79:
GlassFish1.2.

https://drive.google.com/file/d/0B9ON0D1zF_uAUnlmM2w3LU9ScDg/view?usp=drivesdk.

I dont notice much difference with the previous version, but decide yourselves. :)
[X Play General] IOmega666:
Stock Glassfish 1.2 from the link I posted and nothing changed. And about the HMP Scheduler, [MENTION=5725023]Sickaxis79[/MENTION] already answered that.

I know is universal and I also know that Kernel Auditor is free. Just thought that the run a different extension file and maybe you can't load one in another although init.d is universal format and in the OP of Glassfish it said to use EX Kernel, so just thought that. And also that you tweaked something for our X Play, 'cause Glassfish was made for Nexus 5X even though the post says it's for most devices.
[X Play General] Sickaxis79:
The original scripts soniCron and Alcolawl posted are suited for the nexus 5 and 6. The nexus 5 and 6 use different cpu speeds. The translated scripts support the proper cpu speeds suited for the moto x play. The ghostpepper script goes a little further and also includes the proper calculated min and max target_loads suited for the mxp. My advice dont use the scripts made for the nexus 5/6 or your phone gonna try to use cpu speeds that are not supported by the moto x play.
[X Play General] Chaninoza:
the main difference between ghostpepper and ghostbuster is that this one has cluster-plug enabled??
[X Play General] Sickaxis79:
Main difference is that ghostbuster use the same timer_rate for both big and little cpu (40000) and also changed the target_loads to slightly higher values (similar to stock) to prevent the cpu ramping up to fast. Works smooth with and without cluster_plug. I enabled cluster_plug in the script but its not needed if you dont like it.
[X Play General] Ebrahim Ali:
How do I know if cluster plug is enabled when I execute the cluster plug on script?

Edit : nevermind I got it to work. Little cores are off
[X Play General] Chaninoza:
Been testing glassfish on the spectrum rom, so far so good no stuttering suffered on normal stock firmware
[X Play General] anks095:
Apart from governer scripts, where do I have to put those custom control scripts ? and every time I reboot device do I have to again apply the governer scripts ?

Any one reply plz if know.....help asap
[X Play General] Sickaxis79:
Glassfish is a nice one :). Im running a new profile based on Fairpark since few weeks and combined it with some settings used in the Glassfish profile. Its smooth, great idle drain and battery life.

Will upload later.
[X Play General] wojnar:
[MENTION=5725023]Sickaxis79[/MENTION]

Any news about your new script?

Which kernel is the best combination with it?
[X Play General] Chaninoza:
Definitely its viper|atmos that is causing the stuttering in audio when im using glassfish or fairpark. With ghostbuster or ghostpepper no problem at all
[X Play General] Sickaxis79:
https://drive.google.com/file/d/0B9ON0D1zF_uAcHU2Vm9XT3RaNlk/view?usp=sharing

Here you go :). I made this one with smoothness in mind and reaching a nicer idle drain. You can additionally disable the input boost and/or cluster-plug. It works best with squid,coffee or optimus kernel. Hope you like it.
[X Play General] diegomartinezlovey:
This scripts its only works in mxp? Or i can use in moto x too? Thanks
[X Play General] Benjamin_L:
Guess you would have to adjust the frequencies. Also I don't know if the x also has little big architecture
[X Play General] diegomartinezlovey:
Ok..can you give any tips how i can setting for a good battery Life?thanks a lot
[X Play General] Benjamin_L:
Huh? Use the scripts as mentioned in the op?
[X Play General] diegomartinezlovey:
YES..Actually i test Glassfish.. i follow the instruccions how to enble in K.A thas all
[X Play General] stazz83:
Has anyone figured out a way to get rid of the music stuttering?

I've been experiencing it with FairPark, GlassFish and GhostBuster.
[X Play General] Leni_YO:
No problems here with either profile while listening with spotify.
[X Play General] Chaninoza:
I experienced stuttering with fairpark and glassfish when viper is enabled. Ghostbuster never gave me any issues. You should try FairyTale, its pretty good
[X Play General] cucumbers:
Is anyone using these with the unofficial Android 7 AOSP rom? Just wondering because it doesn't have init.d, so you'd have to emulate it, but the OP states you should disable init.d emulation with the scripts...
[X Play General] Euphorion:
I tried these scripts with this ROM. It seems to work, actually there is init.d folder in /system/etc. When I manually execute the script in KA the little cores are enabled ( they are disabled by default with cluster plug) and the values are changed.

By the way I feel that cluster plug with this ROM is pretty ressource consuming ( or maybe it's something else). At idle I have a good idle drain but when I use the phone it becomes hot pretty quickly and the battery drain seems to be more important than before with all the cores enabled.

At the moment, without using scripts, I still have 39% with 3h15 of SOT. It's ok but not amazing...
[X Play General] cucumbers:
Huh, interesting. Thanks for that. I did indeed notice the init.d folder but the dev suggested init.d itself doesn't work. Anyway, thanks for reporting on your experiences.

I have been wondering about the clusterplug myself, the phone does run warmer than I would like. I might give some of the scripts a try.

---------- Post added at 12:13 PM ---------- Previous post was at 11:59 AM ----------

Another related question: anyone just fiddling with the custom controls (beyond just clusterplug on/off) without using one of the profiles? Just wondering whether any of the other parameters (like load thresholds for instance) are worth tweaking.
[X Play General] Sickaxis79:
Updated

Updated all the scripts :)

Ghostpepper :

https://drive.google.com/file/d/0B9ON0D1zF_uARzN5U2FpM0h2REk/view?usp=sharing

GlassFish :

https://drive.google.com/file/d/0B9ON0D1zF_uAYkdiOU1pemtBVmM/view?usp=sharing

FairPark:

https://drive.google.com/file/d/0B9ON0D1zF_uAdTVPUExJQk40ck0/view?usp=sharing

GhostBuster:

https://drive.google.com/file/d/0B9ON0D1zF_uANlAyaGZqVmlDMkE/view?usp=sharing

FairyTale:

https://drive.google.com/file/d/0B9ON0D1zF_uAemNhUHVJd3hMaGM/view?usp=sharing
[X Play General] XxMikeMasterxX:
You're the best Sick. These scripts are godsends. GlassFish forever!
[X Play General] Chaninoza:
Thank you thank you thank you!!
[X Play General] lvints:
What has changed compared to previous versions? Especially in relation to glassfish
[X Play General] raptorskate:
Which one can work with 7.0? Thanks!!
[X Play General] Sickaxis79:
I rewritten the scripts into another order and removed the command to replace the default values file because I had problems with the hmp scheduler not working correctly. Was only using the big cores witg clusterplug disabled. Glassfish changed the target loads for the little cores and same with fairpark.

Yes they work all. I just flashed aospextended ROM today and working great. Cluster plug also works with GtrCraft nougat roms.
[X Play General] GtrCraft:
Is there maybe a way/script to switch the little and big clusters around with cluster plug? So that the little does most tasks and the big only steps in when really needed?
[X Play General] lvints:
[MENTION=5725023]Sickaxis79[/MENTION]

You still have the old version of glassfish? I have the impression that the current version has not been as effective as well :rolleyes:
[X Play General] Sickaxis79:
If you disable clusterplug, sched_boost and the perfd daemon, the little cores are used as the main cpu and the big cores only are used when the little cores become overloaded. Using this setup also give full control over the HMP scheduler up and downmigrate and keeps your big cores idling at lowest speed doing light/medium tasks (depends on the sched_up and downmigrate)

Using a sched_upmigrate value of 99 will use the little cores to the max before the big cpu starts working. The sched_downmigrate applies to the big cpu when it needs to switch back to the little cpu. The higher the downmigrate value the quicker it will pass loads to the litte cpu back again.

In short 99/85 is best setup for using the little cores most of the time, but only works when sched_boost is disabled.The perfd is more like an inputboost driver that use the big cores when touching the screen/using the phone.
[X Play General] GtrCraft:
Which scripts do I have to use for that? And I don't want to use the custom control scripts. Just a script that does that for you
[X Play General] GtrCraft:
Well I tried to make an init.d script:

#!/system/bin/sh

stop perfd

# Enable/disable cluster-plug
echo 0 > /sys/module/cluster_plug/parameters/active
echo 0 > /proc/sys/kernel/sched_boost
echo 99 > /proc/sys/kernel/sched_upmigrate
echo 85 > /proc/sys/kernel/sched_downmigrate

But both little and big cluster are still on, what is wrong?
[X Play General] Sickaxis79:
[MENTION=5293805]GtrCraft[/MENTION]

Use Ghostpepper,Glassfish or Fairpark. Ghostpepper got the 99/85 up and down.

Your script looks ok. Did you tried kernel adiutor to execute?
[X Play General] Sickaxis79:
I added a little inputboost on the big (533mhz) and little cores (1113mhz) ,but you can disable this.
[X Play General] GtrCraft:
Yes but then it didn't change. So I use this: https://play.google.com/store/apps/details?id=com.ryosoftware.initd&hl=nl
[X Play General] Sickaxis79:
If your using Nougat rom you could have trouble mounting the system partition as r/w.

The only root explorer that worked for me was Solid Explorer to place the scripts in the init.d folder.

Easiest is to use the "QuickEdit" app and copy the script into the clipboard. Next create a new init.d script from within Kernel Adiutor and paste everything into the new script and "execute" manually. Worked for me.

edit:

Type this with terminal emulator before you create a new script(s) with kernel adiutor to be sure system is mounted correctly and scripts are really saved (only for nougat).

busybox mount -o rw,remount system
[X Play General] GtrCraft:
Yeah but this app works good too. Even better than KA if you don't have init.d
[X Play General] Sickaxis79:
I'll check it out. Thanks.
[X Play General] Sickaxis79:
Try this new one:

Translated this today from the nexus 5 glassfish 1.2 script.

I got the idea this one works best of all the glassfish scripts i tried translating.

GlassFish 1.2.

https://drive.google.com/file/d/0B9ON0D1zF_uASWs3RHh2RTliT0E/view?usp=sharing
[X Play General] minimale_ldz:
It looks excellent, lovely idling - I only lost 1% overnight. Works well on stock kernel, big cores are idle most of the time. Thank you
[X Play General] kos25k:
hey dudes.please some help.what to do here to make my phone more battery friendly?I don't know why but it seems that there is much drain on iddle.I have enabled clusterplug already.thanks
[X Play General] Sickaxis79:
Use glassfish or fairpark for best battery life (10/12℅ active drain/hour). The ghostbuster and fairytale script are written the opposite (for extra smoothness and a little bit more sot compared to factory settings) and use's the the big cpu and hotplugs (disables) the little cpu when not needed. The scripts are "launch and go" and will also configure,enable or disable the clusterplug for you.
[X Play General] kos25k:
thanks dude.but what do u mean active drain 10-12% with use?also if I run one of these,I have to remove my previous hotplug script right?

Στάλθηκε από το SGP611 μου χρησιμοποιώντας Tapatalk
[X Play General] rohitpaul9000:
lovely with glashfish script getting 8 to 9 hrs SOT

---------- Post added at 08:19 PM ---------- Previous post was at 08:16 PM ----------

but in nougat roms glashfish is laggy and even giving less SOT around 5 hrs. . very disappointed. . but happy with stock rom and glashfish
[X Play General] Sickaxis79:
Thanks for sharing. I will check nougat again later, but it could also be you used an old glassfish script from a few weeks back. I updated a few scripts last week.
[X Play General] rohitpaul9000:
no i used d new one dat u hv updated
[X Play General] fablebreton:
Thank you Sickaxis :good: usefull thread for those like me who don't really know tweak governor. I think it's a specialist world

glassfish is a little bit laggy for me in web browsing.

GhostBuster give me more smoothness.

I have noticed Ghostbuster offline the litthe cpu most of time since i don't play with my phone, it seems to save well my battery (only one cpu to supply)

And regarding SoniCron statement "So we've all but ignored the 2nd CPU. The reason? It's a horribly inefficient processor designed for high load tasks that generally don't come into play during normal usage patterns. It's good for gaming and image processing, but not for most moderate tasks a user might employ."
[X Play General] fablebreton:
I see you use noop io scheduler in your scripts

I have test several scheduler with androbench (without dB) and cfq (squid kernel version) and below settings gave me the best results (quite sensitive versus noop)

echo cfq > /sys/block/mmcblk0/queue/scheduler

echo 128 > /sys/block/mmcblk0/queue/read_ahead_kb

echo 1 > /sys/block/mmcblk0/queue/rq_affinity

echo 1 > /sys/block/mmcblk0/queue/add_random

echo 1 > /sys/block/mmcblk0/queue/rotational

echo 1 > /sys/block/mmcblk0/queue/iostats
[X Play General] Sickaxis79:
I used noop because its the only scheduler made for non rotational storage, but to tell you the truth i don't notice much difference performance and battery wise. Use whatever you like from above settings. I disabled the other settings because im not sure what the benefit is to treat ssd storage like rotational storage, but cant hurt enabling them. Thanks for testing.
[X Play General] Sickaxis79:
Nexus 5 only have 6 cores instead of 8 like the mxp. The mxp runs perfectly fine only using the big cpu, but on the n5 with only 2 cores (big cpu) its a different story.
[X Play General] fablebreton:
Finally i have chosen row After more tests, noop is good for battery but not so for perf, cfq is good for perf but less for battery, row is Well balanced perf/battery. Rotational disable.
[X Play General] EspElement:
Does anyone else's phone slow down terribly on any of the scripts when the battery is low? Also, sometimes 3 of my Big cores get disabled and it is nearly impossible to work with....
[X Play General] rgshah3:
Does the stock kernel support these scripts? Or I need a custom kernel?
[X Play General] Sickaxis79:
Ghostpepper, GlassFish and Fairpark works with stock kernel. For clusterplug enabled scripts you need Squid or Optimus kernel. I believe (not sure) stock kernel don't support task migration to migrate many tasks possible on a core (use_migration_notif), but its not necessary needed.
[X Play General] Sickaxis79:
Ill update the scripts when i get home to avoid this.

Its called bcl hotplug mask which is part of the battery save feature. Stock its enabled at 15℅ battery level, but you can change it to 0℅ to disable.

Edit: All scripts updated and big cpu stays online now, but remember the core_control (thermal driver) can also offline cores to prevent overheating and its normal behavior.
[X Play General] EspElement:
Awesome! You are super awesome!
[X Play General] zeeBomb:
These scripts work? Which one is the best one for good performance and battery? A best of both worlds per se.
[X Play General] kos25k:
hello again.i have a big problem and don't know from where it occurs.i currently run glashfish (i think).when they call me,they hear the beep sound.till 3 beep sounds my phone is sleeping!no sound,no vibration,no even screen on!suddenly after 4th beep my phone wakes normally.does this happens to anyone else?
[X Play General] -=lov=-:
Can someone suggest which script should I use for cm 13 + Optimus r16 for best battery life

Отправлено с моего XT1562 через Tapatalk
[X Play General] sagarmakwana:
How you enabled force doze? By any specific app or through other option ?
[X Play General] rohitpaul9000:
When i use glashfish in squid kernel with stock rom den it gives me 7+ sot nd with no lag,but When i install custom rom with squid kernel nd glashfish den its laggy nd give less sot.. help
[X Play General] rohitpaul9000:
While importing. Json files kernel auditor says "import file is malformed" wht to do?
[X Play General] ProudRed:
On my new custom rom its not getting executed after boot. I have tried multiple times. Previously I with RR it was working well.
[X Play General] fablebreton:
I have had this problem too, finaly i use a su script at boot that i run with 3CToolbox, don't need kernelAuditor . Works fine.

You can also check you have rwx r-x r-x attributes on your script file
[X Play General] ProudRed:
Permissions are set correct.. still not working. I was using Temasek.. because RR had few issues with apps getting vanished after boot. But due to this issue I am back to RR again and its working fine.
[X Play General] kos25k:
hello.sorry but i remember there was a script that allowed the phone to go up to 0% to battery to phone finally shutdown.can anyone remind me where is this and hiw to enable?i forgot it.thanks.
[X Play General] thealonso:
[MENTION=5725023]Sickaxis79[/MENTION] Are the links in OP for all the updated scripts, or should I find the latest ones from inside the thread?
[X Play General] Sickaxis79:
Yes, updated all scripts. All scripts are looking the same and only the cpu settings and some hmp values are different from each other. Last time i updated the scripts i added some lines to prevent the big cores switch offline when reaching low battery level.
[X Play General] thealonso:
[/I]

Hey! Thanks for reverting. So I may need a little bit of help here, bit of a noob when tinkering with kernel settings. So I'm currently running Optimus r18 with Resurrection Remix 5.8.0 (Android 7.1.1).

I downloaded the glassfish 1.2 file, copied it to /system/etc/init.d and then executed it in KA. I'm observing that there's very heavy battery drain during usage. I am at 75% battery after only 45 mins SOT.

Also, when I check KA, all 8 cores are running. I need to make it so that the big cores run only after the little ones are maxed out - how do I achieve this?
[X Play General] Sickaxis79:
Its the rom your using causing this. It works fine using stock rom or nougat aosp rom. Im using nougat aosp rom with the standard provided stock kernel (nickv) with only forcedoze enabled and everything works fine. Try to use a stock based rom with stock,squid or coffee kernel. I also tried optimus kernel several times, but it acts a lot different and more aggressive compared with the other kernels using the same scripts.
[X Play General] thealonso:
​

Okay. I'll flash squid kernel and test, will get back to you. Meanwhile, could you explain what the other settings are below the OP post? Such as clusterplug? Sorry for the noob questions, thanks for your help!
[X Play General] Sickaxis79:
Clusterplug is a hotplug module made by squid and disables the little cores when not needed. Its enabled by default when using most custom roms. When your using stock rom you need to flash Squid or Optimus kernel to add the module.

The extra custom controls are not important and i only added them for people that like to tweak and experiment. The scripts also include and applies them.
[X Play General] rohitpaul9000:
how much SOT r u getting in aosp nougat rom with glashfish?
[X Play General] Sickaxis79:
Around 6 hours sot. Stock marshmallow around 7/8 hours, but nougat performance is a lot smoother.
[X Play General] GtrCraft:
Optimus has its own custom settings, that's probably because it doesn't work. Better use the stock kernel on my nougat roms if you want to use the scripts
[X Play General] thealonso:
Hmm. Makes sense! Will try reverting to stock kernel. Do you recommend dirty flashing the RR 5.8.0 ROM for that? Thanks!
[X Play General] GtrCraft:
All my roms share the same stock kernel. Just dirty flash the rom you are using
[X Play General] kos25k:
dudes noone?i revented to stock and don't remember how i had done it(battery to go to 0% and then phone turn off).the file is this https://www.dropbox.com/s/85fqoy542yog8ba/battery0%?dl=0 but i had renamed.can i use it with stock kernel?also how to enable it?i forgot.it is very important cause phone shuts down when battery goes up to 4%.thanks.
[X Play General] Sickaxis79:
echo disable > /sys/devices/soc.0/qcom,bcl.*/mode

Type "enable" to re-enable
[X Play General] kos25k:
thanks.where is this dude?i edit it with a root explorer?or i have to reinstall squid kernel and install kernel auditor?i reverted to stock kernel..
[X Play General] ashwath230:
[MENTION=5725023]Sickaxis79[/MENTION] done great job man! I just wanted those scripts was using EX kernel manager. I didn't feel comfortable so was searching and found an answer here through [MENTION=7834999]fablebreton[/MENTION] and thanks to him and to you
[X Play General] floid180:
Im kinda new on these scripts, can you help me?

Im on stock MM with optimus r14.1

What is the best script for more SOT (normally i got 4 hours) and how to use it? i read OP about to set it on every boot, but thats all i know

If you could help me expand my information, will be amazing!! :D
[X Play General] Chaninoza:
you have to place the script inside etc/init.d folder. To apply it i use kerner adiutor. For what i'd read squid and coffee kernel are most suitable for these scripts to apply correctly. Personally i prefer glassfish.