yashsingh1/xdaforums huggingface dataset:
[X Play General] rober788:
too bad i have the free version ...
[X Play General] zenez:
thanks for your work, the script works very well in resurrection rom and optimus kernel, can someone upload the stopperfd script? the KA doesnt work for me creating the script :)
[X Play General] Leni_YO:
I've reached over 7hrs SOT on the first run after applying the profiles with 75% Charge left. Good job!
[X Play General] Sickaxis79:
You can also do this using a terminal emulator

Type: "su" (root permission) and "stop perfd".
[X Play General] XxMikeMasterxX:
Thanks for answering for me. :P
[X Play General] ViperX85:
BUMP
[X Play General] lR lP:
What i'm doing wrong? (yes, probably a noobquestion, sorry for that) using aosip with squid kernel + glassfishcp.

At first I copied the file in the init.d folder on my phone, tried to give permissions but he said me he was not able to. Also I have no idea how to mount my system <- problem would get solved?!

Then I applied the scripts via „Universal Init.d“ because I had no idea how I gonna do it on a other way and it seems to run. (settings in kernel adiutor changed and cpu uses other cores then before.)

Now after 3-4 days of using I „only“ get around 4-5 hours of screen on time everyday (no gaming, no gps, low brightness, only whatsapp, youtube and some facebook) while you all speaking about 8 and more. Could anyone help me?

Ps: Is it normal that the kernel needs so much battery?
[X Play General] Leni_YO:
4-5 sounds pretty normal for 3-4 days. I'm tinkering with settings since forever and never got to 8 hrs sot. My average since june 2016 is 5.5hrs with a drain of about 1-2%/hr. I guess people here are using one sim, lowest screen brightness, wifi only and no taxing apps.

Edit: Regarding changing permissions, try fx file explorer with root addon. When you browse to system directory (root) you can click a little lock to get write access.
[X Play General] lR lP:
But I only get 4-5 hours per day. Would I get that huge amount of hours over such a long period I would cry of happiness :D but thanks! I will try and see what I get.
[X Play General] fablebreton:
FB is battery hog but yeah 4-5 h is not really good using aosip and glassfish

I would say 4h is quite bad, but 5h is near ok if you use FB, WhatsApp,youtube

Yes your Android OS drain is quite hight vs mine (6% currently)
[X Play General] zenez:
For some reason using GlassfishCp i obtain 4 hrs of SOT but using glashfish 1.2 i obtain around 6+ hrs SOT. the only inconvenient is audio shuttering when viper is activated :(
[X Play General] rohitpaul9000:
pls make a script for 0% idle drain
[X Play General] fablebreton:
#!/system/bin/sh

# nodrain ftw

Reboot -p
[X Play General] rohitpaul9000:
dint get u pls explain clearly
[X Play General] Ebrahim Ali:
Dude get a clue
[X Play General] pijes:
install greenify donation package, enable aggressive doze, enable greenify system apps

download an app called dumbphone, enable it forever
[X Play General] rohitpaul9000:
still dint get any clue
[X Play General] moozer:
Then it is time to wrap the phone in aluminium foil and microwave for 45 seconds on high heat. That will give you 0% battery drain for sure. This method is stable
[X Play General] Jagadhidh:
bug, with this script my phone turn off
[X Play General] moozer:
:laugh:
[X Play General] danikane:
OMG, is this a new level of trolling or they really don't have a clue? :laugh:
[X Play General] Jagadhidh:
lol i just realize it was a troll, no drain so turn off :eek:

very good troll :good:

Fortunatly i have not initd this script :victory:
[X Play General] K.khiladi:
Using the glass fish script on stock aosp extended kernel and the battery is holding up really well.
[X Play General] danikane:
I'm getting decent results with LineageOS, Optimus Kernel and GlassFish for Optimus governor.
[X Play General] spetrum:
Hi [MENTION=5725023]Sickaxis79[/MENTION],

I use the glassfish script in my ROM, Spetrum ROM, but in the latest update we plan to change root SuperSU for Magisk, but the glassfish1.2 script does not work properly with MagiskSU. I tried even adding the script in post-fs-data.d but it also did not work.
[X Play General] flopezm:
How to check if the glassfish 1.2 script does not work, I am using your rom spectrum with magisk these are the results

Enviado desde mi XT1562 mediante Tapatalk
[X Play General] Sickaxis79:
Im running latest Aosp extended ROM with magisk root manager and its working fine. It could be your system partition that has no r/w access or not mounted correctly.
[X Play General] GtrCraft:
I also made a GlassfishCP for Lionfish governor:

https://drive.google.com/open?id=0B6-Tz_7kDyxsRUFhdm9qRVRWaTQ

Works with all kernels that have lionfish governor
[X Play General] KadeRobertson:
I seem to be running into some issues on LineageOS 14.1, with MagiskSU and Squid Kernel for the FairyTale script:

sh: /system/etc/init.d/FairyTale[38]: can't create /sys/devices/system/cpu/cpu4/online: Permission denied
sh: /system/etc/init.d/FairyTale[187]: can't create /sys/module/msm_performance/parameters/touchboost: No such file or directory
sh: /system/etc/init.d/FairyTale[195]: can't create /proc/sys/kernel/sched_enable_power_aware: No such file or directory
chmod: chmod '/proc/sys/kernel/sched_boost' to 100777: Operation not permitted
chmod: chmod '/proc/sys/kernel/sched_boost' to 100644: Operation not permitted
rm: /data/system/default_values: No such file or directory

Any ideas as to why this is happening?

I think there's a possibility the frequencies aren't being set correctly either.

My big min changes from 533-1133 constantly, max is 1459.

My LITTLE min (offline) is 499, max is 998.

Edit: Frequencies are now 1708/533, little is 1209/499, not sure if this is correct.
[X Play General] ProudRed:
Using GlassFish 1.2. Music cracks up using V4A and Dolby Atmos. Any solution ?
[X Play General] wiemar:
switch to other scripts

moto x play
[X Play General] pijes:
Try increasing minimum cpu speed, especially if you're using lionfish
[X Play General] ProudRed:
Minimum CPU speed should be ? I am using interactive.
[X Play General] pijes:
try the GlassfishCP from GtrCraft. btw, did it happen while screen is off? what about audio while watching youtube?
[X Play General] ProudRed:
Didn't check audio on YouTube but yes it happened when screen is on and off.
[X Play General] wiemar:
minimum cpu speed doesn't help on glashfish1.2, im checked it on value 345 and 400. now i use ghostbuster with big cpu only, 345 minimal, and never got problems with music now
[X Play General] fablebreton:
i know there is a lot of script already in this thread but since i have good battery life with it (around 6/7h sot for a phone 2 years old is quite good) I would like to share my daily script, based on gtrcraft Lionfish script, but with cluster plug disabled ( as i have noticed better results without, for my usage).

Then i have tune Onlines cores, min and max freq, and the boost freq, my goal was to reduce heat, thus the drain, while keeping a good responsivness for daily use.

obviously it s not for gamers since i have slightly decreased max big cpu value, but it keep very good responsivness for my usage. For web or mails for instance, i mostly dont care that cpu jump to 1.7 (the value with the most battery drain)

you need a kernel with Lionfish governor to use it, currently i use optimus, but it works too with Phoenix and guess with squid

https://drive.google.com/file/d/0BzYVdK1URP1aR2xORHhZX2toWk0/view
[X Play General] Chaninoza:
Testing, really smooth atm
[X Play General] danikane:
I second that. Many thanks!

LineageOS and Phoenix. Very smooth.
[X Play General] Ausraster:
Thanks for that! I don't game or do anything which leads to a heavy load, so this is perfect for me.

I really appreciate your work! :)
[X Play General] srinikethan1392:
how can i make sure the scripts are active after i execute them? i see idle drain of 1% /30mins....im on stock pure nexus kernel..really could use some help.. i have currently enabled glashfishCP..
[X Play General] DragonClawsAreSharp:
The scripts set various values for max CPU frequency and min CPU frequency for each of the cores, along with so many other values. Most of these values are configurable in KA itself. So a way to check if the script is applied and running is to make sure the values in the script and KA are one and the same.

Example: I use the Glassfish12 script. So on KA, init.d section, I edit the script and find, under #Big CPU (that's cpu0):

echo 345600 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

This means the script sets the min frequency of the big core to 345MHz (values are written in KHz). I check if that's the case in CPU page of KA, and it is, so I know it's working.

Similar lines are written for max_frequency, governor, all governor tunables, etc etc. Just make sure most of them match.

You can also try running the script using some terminal app in su mode to check the log it produces while it's applied. That's it.

Have a nice day!
[X Play General] Wildchild0369:
How do I do to automatically apply the glassfish at startup?
[X Play General] LilBlinx:
Put them in system/etc/init.d or use some script manager
[X Play General] wiemar:
at kernel manager select: init.d - emulate, cpu - apply at start
[X Play General] convolution:
does the init.d start up automatically at boot? Or do I have to manually activate the script via Kernel Adiutor each time?
[X Play General] Sppa:
Right now I am on ASOP Extended 4.5 and rocking GlassFish 1.2. I have a question is there any difference with Running GlassFishCP 1.2 plus will I see any difference with Squid Kernel R20 ? Thanks
[X Play General] Matthew..:
I'm on ViperOS 3.0 (7.1.2) and currently not getting any improvement on my battery life so far, I think it's because the scripts are not properly adapted to Nougat's latest updates. Well at least that is what I want to believe, cause I've seen so many custom roms reaching awesome SOT'S, and when was my turn it looked like the tweak did nothing at all. Here are some screens to show that everything was done right.
[X Play General] moozer:
You are comparing something to something else using no comparable methodology.

An SOT that one user gets in the exact same setup will be different to an SOT for another user.

Stop aiming for massive SOTs. They are only used as a minimalistic guide to a battery capability. Massive SOTs are found on devices that have virtually nothing going on. A casual user can expect up to 6 or 7 hours, but if you regularly play games or videos or use any relatively intense apps, then you will be expecting 4-5 hours SOT.

It is end user that affects SOT.

Discard the figures. They are relatively baseless
[X Play General] et.nuclear:
Execution Errors

Hello everyone!

Some commands are unable to execute as shown below

/storage/emulated/0/Scrips/GlassFish12[187]: can't create /sys/module/msm_performance/parameters/touchboost: No such file or directory
/storage/emulated/0/Scrips/GlassFish12[195]: can't create /proc/sys/kernel/sched_enable_power_aware: No such file or directory
chmod: chmod '/proc/sys/kernel/sched_boost' to 100777: Operation not permitted
chmod: chmod '/proc/sys/kernel/sched_boost' to 100644: Operation not permitted
rm: /data/system/default_values: No such file or directory

Can I just creat those files using the touch command? Will it work?

My system:

AospExtended 4.6

Squid Kernel r20 (aug, 2)

Script is being run by init.d scripts app
[X Play General] cesarXP:
Samee issue :silly:

a fix ?
[X Play General] impurrfectti0n:
could it be possible to translate these scripts for our X Play? these guys are getting up to 14 SOT

https://xdaforums.com/showpost.php?p=69417941&postcount=724
[X Play General] Bunny468:
How to flash this one please...

Tell me the steps
[X Play General] pradeeppk:
Using your Script, So good, Don't evaluate it with sot, because it depends on many factors like screen brightness, processor load, cell coverage, 4g 3g 2g signals etc.
[X Play General] live4speed:
Can anyone tell me how to change minimum frequency and io scheduler in the script ?
[X Play General] Az Biker:
Closed per OP request
[X Play General] Sickaxis79:
Scripts still not working ? Have you tried redownloading the profiles and reinstalling k.a. ?

Are you using free or paid version, because i heard the free version have some limitations.

Ill upload them again tomorrow in 1 script (no more small and big cpu scripts) and i can also add them in init.d format for the people that are using the old free version.
[X Play General] pijes:
free version unable to import profile
[X Play General] Sickaxis79:
[MENTION=2593808]pijes[/MENTION] [MENTION=5137392]ViperX85[/MENTION] [MENTION=6063013]rober788[/MENTION]

Added the profiles in init.d format and also works with the new free version.

Description in first post.
[X Play General] Sickaxis79:
GlassFish "translated" (NEW great battery save script made by soniCron)

GlassFish (profile import) = https://drive.google.com/file/d/0B9O...ew?usp=sharing

GlassFish (init.d) = https://drive.google.com/file/d/0B9O...ew?usp=sharing

http://xdaforums.com/showpost.php?p=68330029&postcount=4418
[X Play General] Chaninoza:
Between this and ghostpepper? Performance/battery?
[X Play General] minimale_ldz:
Links are dead :(
[X Play General] Chaninoza:
on the first post they are ok :)
[X Play General] Sickaxis79:
Its a super simple setup and compared to all the other scripts i think this is the best for battery vs smoothness. It actually feels like if wasted a lot of time calculating and playing with all the different loads and speeds i learned from the other thread.

Haha :)
[X Play General] Sickaxis79:
But ghostpepper is a bit smoother
[X Play General] Chaninoza:
mmm... im trying now glassfish but while listening my playlist on spotify sometimes it stutters a bit, while on ghostpepper this doesn't happen
[X Play General] Sickaxis79:
Well i didnt checked internet streaming services. Cool thing about this one is when it idles it idles.
[X Play General] dev>null:
[MENTION=5725023]Sickaxis79[/MENTION] Hey mate! Great job here ;)

Thanks for sharing it all.

Please be aware that clusterplug scripts links are not working in OP.
[X Play General] Sickaxis79:
Again,lol. Thanks mentioning and links are fixed. :D
[X Play General] Leni_YO:
I dont have any Problems here with stuttering. Do you have a Rom without Touch boost? It Looks like glassfish relies on touchboost.
[X Play General] Chaninoza:
Im on stock rom, squid 17, v4a installed. I read somewhere that v4a may cause some problems but i dunno.
[X Play General] PSxplay:
I have imported glassfish governor. What to do next??
[X Play General] minimale_ldz:
I tried GlassFish for one full cycle and for me the results are pretty much the same as with GhostPepper. I'm using Gappless XDRom with stock kernel and drained my battery with OGYouTube app + some internet browsing with Naked Browser. Both apps are relatively light and don't stress CPU nor GPU. The results are for 90% discharge (from 100% to 10%):

- Standby - 31 h

- SoT - 10,5 h

- Night drain - 0,3%/h

- Overall Screen Off drain - 0,5%/h (for some reason I had a massive wakelock spam after clearing all recents today, so it's bigger than the night drain).

I'll try to do similair test with GhostPepper. The biggest difference between these two profile my noobish eyes can see is the minimum freq on big cores (200 MHz GhostPepper, 533 MHz GlassFish). I don't know if it can make a big difference, but I know Youtube stream can go on 200 MHz without a problem so GP could be able to hold for a bit longer (unless 533 MHz on big cores takes some stress off of little ones and actually consumes less power), but maybe the difference is too small to even notice it. Obviously my test is no a "real life" one, but as you know MXP battery is so huge it will actually take a couple of weeks to make it properly.
[X Play General] XxMikeMasterxX:
[MENTION=6788745]minimale_ldz[/MENTION]

Thanks for your post man. I'm just getting I to the scripts and am trying out GhostPepperV2. I certainly see the snappiness compared to.my traditional lionfish setup but I feel like the phone gets hotter faster. Although I do believe the idle temperature is lower than it used to be.

I'll share results soon as well. Haven't even made it through one cycle yet.
[X Play General] zenez:
Im having the same issue :( im guess its about V4A and some I/O things, ive read in fishglass thread that the profile was updated for fix that issue

:D
[X Play General] Sickaxis79:
Little issue is that the kernels are acting different compared to a few months back. Think it has to do with the latest kernel updates the devs implement. Ghostpepper for example used to use the little cores most of the time, but with latest squid and coffee kernel it now use the big cores more. Optimus kernel uses the little cores most and acts the opposite. Ghostpepper works best with Optimus kernel and GlassFish with squid and coffee kernel at this moment. Will update tomorrow :)
[X Play General] minimale_ldz:
I changed the profile to GhostPepper and done similair thing as yesterday. Funny thing happened when I was charging the phone - it was on 96% when I rebooted it after adding a couple of Xposed apps and after reboot, which took around 30 seconds, it showed 100%. 4% which disappeared mysteriously could affect all the stats I had today, as it equals extra 30 minutes of Youtube steram on wifi or some 10 hours of standby with good network signal. So, anyway:

- standby - 24 h (could be 34 with "missing" 4%?)

- SoT - 10,5 h (11 h?)

- screen off drain - 0,4 %/h

I didn't really see any difference in smoothness
[X Play General] stazz83:
Could someone compare battery life when using the Ghostpepper V1 and V2?
[X Play General] longerXDA:
Hi everybody,

I have some newbie questions, if someone can tell me:

Is it better to use other kernel with the script, or the CM kernel will give the same result ?

In the battery tab, there's the option to use profiles of settings for the apps. Is that useful, effective? And in which way? Better for the battery, the perf?

Sorry for my English...and thank for the scripts and the help.
[X Play General] Sickaxis79:
Hello [MENTION=4779359]longerXDA[/MENTION],

Its best to disable profiles using cm just to be sure it doesn't use different governor settings.

You only need to disable the "perfd" service when importing profiles but not needed when using the init.d scripts (I disabled this in the scripts already). Perfd switched on or off doesn't make a big difference in battery life, but its more to avoid settings reverting.

When you are finished editing settings you can reanable this service using the "startperfd" script and it will also update/replace the default settings file this perfd service is using. Perfd is not needed but it tries to put the focus on the performance (big) cores more.
[X Play General] longerXDA:
Thank you[emoji106]
[X Play General] Chaninoza:
A new profile has been released on the original thread, fairpark, seems pretty interesting
[X Play General] dev>null:
Glassfish is really nice! Totally idle when you don't use the phone, 25º temperature! Lagfree and snappy in videos and 3d gaming!!!

A great compromise for performance while having a pretty decent sot.

First time I experience this on MXP. Amazing!
[X Play General] Sickaxis79:
Finished some new init.d governor scripts.

Hope you like it.

NEW Ghostpepper V3 "optimized" :

(Cluster-plug disabled for best result)

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

NEW GhostBuster (Optimized to work with or without cluster-plug) :

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

NEW FairPark "translated" :

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

I'm sorry guys, but i quit creating the import profiles ( .json), because it was to much work adding extra tunables using this fie format. Init.d scripts are much easier to write, apply and edit afterwards and never fails me updating the cpu settings.
[X Play General] XxMikeMasterxX:
I agree fully, dev. GlassFish is fantastic overall. The idle temperature is ridiculous. Even when under partial load I only hit 27 degrees Celsius. It's incredible. The lower temperatures alone will decrease my hardware upgrade cycle significantly. I usually upgrade my phone every 3 years or so but if this thing runs cool I could maybe squeeze 4 or 5 out of it. Maybe I'm just being hopeful but anyway...

Fantastic work, Sick. Your governor translations for MXP have impacted so many in the community in such a great way. We are in your debt!

Methinks I need to update that Power Users thread...
[X Play General] longerXDA:
Deleted
[X Play General] Ajeyvm:
Wonderful GlassFish script

After seeing positive feedback on GlassFish, I tried it.. It's amazing.. Best battery life I've got so far. Thank you for your work.. :)
[X Play General] Sickaxis79:
Thank you all and feel free to edit,use and share the scripts. If you have suggestions or better settings feel free to share. :)
[X Play General] Benjamin_L:
Did someone try with aicp. I dont seem to get anywhere near anything else than what I get without the scripts except it is more laggy it seems
[X Play General] Ausraster:
On Resurrection Remix it's a bit laggy too...
[X Play General] Sickaxis79:
All scripts should give you more sot compared to stock. Have you checked your cpu settings if the scripts applied correctly and the minimum cpu speeds are changed/set ?
[X Play General] Sickaxis79:
Must say GlassFish and FairPark are best for battery life, but could get a bit laggy. For smoothness try GhostpepperV3 or Ghostbuster.
[X Play General] Benjamin_L:
Yes, minimum speeds are set. Is there anything else i need to disable?
[X Play General] Leni_YO:
My observations, too. I'm running GlassFish atm because it's a bit more responsive than FairPark which took to much time to open whatsapp etc.

Also my phone gets pretty hot when taking the tram through the city regardless of kernel settings. Must be a chipset problem with changing cell towers....
[X Play General] IOmega666:
I'm rocking Glassfish 1.2 + RR 5.7.3 + Squid Kernel R17, and it's all smooth (and I'm really really frustrated with lag, choppiness, stutters and whatsoever, but here, none.), great battery life and great temperatures, phone in idle is at 28º and battery is at 20º, ice cold really. Really surprised, I've tried stock, stock based roms, aosp roms, coffee kernel, optimus, squid, several scripts and tweaks, but this Glassfish script (I've installed it with EX Kernel Manager) is awesome, right now phone is at 62% with 2.3H SoT and a 6.3H since it's been unplugged, I have a heavy use of my phone, constantly on WhatsApp, Tapatalk, Twitter, Instagram and some web browsing using Chrome, for me at this point with other scripts, kernels or roms, the best use I've got was something like 1.3 to 2H SoT and less % of battery left.
[X Play General] Ausraster:
Sounds great! What is GlassFish 1.2? Did you edit it yourself? If yes, what did you change?