[Q] Interactive Governor tweaks? - ZenFone 2 Q&A, Help & Troubleshooting

Has anyone found better parameters to run the interactive governor on? Maybe a script? L Speed Mod only tweaks OnDemand so is there an interactive tweak?

Ntrasme said:
Has anyone found better parameters to run the interactive governor on? Maybe a script? L Speed Mod only tweaks OnDemand so is there an interactive tweak?
Click to expand...
Click to collapse
here is my interactive setting..
I didnt touch max cpu and min cpu clock..
using noop i/o for both internal n external..
and using SManager apps widget to trigger the script i made.. or u may use terminal emulator with su command and just copy paste this settings below..
echo "97" > /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
echo "960000" > /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
echo "40000" > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
echo "35000" > /sys/devices/system/cpu/cpufreq/interactive/timer_rate
echo "0" > /sys/devices/system/cpu/cpufreq/interactive/boost
echo "80000" > /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration
echo "0" > /sys/devices/system/cpu/cpufreq/interactive/io_is_busy
echo "80000" > /sys/devices/system/cpu/cpufreq/interactive/timer_slack
echo "90 300000:45 729000:65 960000:70 1500000:90 1800000:99" > /sys/devices/system/cpu/cpufreq/interactive/target_loads
echo "20000 960000:60000 1500000:20000 " > /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
its currently stable enough for me, rom is still snappy without any lag..and my ze551ml never gets overheat because my device seldomly reach 2330mhz..
do give it a try first but dont blame me if its not perfect haha.. im just too bored on waiting for someone to develop custom kernel for our device..thats why i keep trying to tweak the stock kernel interactive governor to gain more battery life..

Could you give me a quick rundown? I see that you are boosting the frequency under load. And you are boosting it less when the screen is touched?

Is it possible for you to edit the script so I can use it on my 1.8ghz Zenfone? Sorry, I don't know how to write a script for the governor.

Related

[MOD]^^^AOSP Modifier-Virtuous OC-I/OScheduler Setting ^^^

AOSP Modifier
Control Script Settings
Virtuous oc settings
Virtuous oc enable/disable
Set I/O Scheduler
Enable clean up on boot (Clears LOST.DIR and .trash on sdcard and clears dalvik and caches)
Tested on the latest MIUI Rom.
NEW
Set I/O Scheduler In the control script allows you to pick the default i/o scheduler and shows available i/o schedulers and current scheduler.
Must reboot before setting takes effect
The list shows which one is active with [ ] around the active one so it will look like this with sio:
0 performance
1 [sio]
2 conservative
...
Usage:
Flash zip file
Run terminal type "su" without the quotes
Then type "voc" without the quotes
Make your selections
You MUST enable virtuous oc before and freq settings will work and everything is remembered on reboot.
Enjoy​
Damn brother, 114 views and not one reply, it must be working on theirs too.
This is awesome! Thank you for posting this.
I got an error because my system was read only so make sure you're mounted as rw before you run this.
Sent from my HTC Glacier using XDA App
I need some testers anyone interested ? I'm gonna add my configurator to this device here is the post on it:
http://forum.xda-developers.com/showthread.php?t=1248809
It does ALOT and it should all work here too.
Lmk if anyone is interested in testing this.

[Q] Question about Calkulin's init.d Undervolt Scripts

Hey All,
I'm new here so sorry if this has already been asked. I was poking around the init.d scripts Calkulin has put up and I noticed that it doesn't seem to work. Here's the "4undervolt" script which you can find in /system/etc/init.d.
Code:
#!/system/bin/sh
#
# Created by Calkulin
# Epic 4G Touch -50mV v1.1
if [ -e /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table ]; then
UV_TABLE=`cat /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table | wc -l`
CPU_MAX_FREQ=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq`
STEPS_1600_200="1450 1350 1225 1125 1025 925 875"
STEPS_1704_200="1500 1450 1400 1350 1225 1125 1025 925 875"
if [ $UV_TABLE = "7" ] && [ $CPU_MAX_FREQ = "1600000" ]; then
echo $STEPS_1600_200 > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
echo "-50mV Undervolt Levels SET"
elif [ $UV_TABLE = "9" ] && [ $CPU_MAX_FREQ = "1704000" ]; then
echo $STEPS_1704_200 > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
echo "-50mV Undervolt Levels SET"
fi
fi
Well I just flashed 2.8.1 (I used to be on 2.5.1 with the same issue), and it seems like the UV_TABLE, which is supposed to be in /sys/devices/system/cpu/cpu0/cpufreq/, isn't there. This means that neither the if nor the elif is being taken, which basically means the script is having no effect.
Am I reasoning correctly? If so, it seems like it would affect a lot of people who think they're undervolting but really aren't. Could someone with more familiarity Android possibly take a look?
Also, is there a way for me to check the current voltage at the CPU?
Thanks!
If no one can help me, could anyone point me to somewhere I can get my question answered?
It seems like a lot of people could be having this problem if they're expecting the init.d scripts to work when they're really doing nothing.
Thanks.
Check the permissions of the scripts. Make sure they are executable
The permissions are rwxr-xr-x, so they do indeed seem executable. In fact I can run them from a terminal emulator and they don't print anything out. This also leads me to believe that while they're running, they have no effect.
parth750 said:
The permissions are rwxr-xr-x, so they do indeed seem executable. In fact I can run them from a terminal emulator and they don't print anything out. This also leads me to believe that while they're running, they have no effect.
Click to expand...
Click to collapse
Interesting. I'm running those scripts in Blazer ROM, and they work really well. Hopefully someone on Calk's can square you away
Well thanks for taking a look. I actually modified the script slightly, just to make sure I wasn't crazy, so that if the first if wasn't taken it would print "Script had no effect". I just ran the modified script, and it does print just that.
Maybe after one of Calk's kernel changes he lost init.d support? I'm running the stock Desperado - I guess it doesn't have support.
Ah, I figured it out. For the last several months, Calk has been running on Stock kernels repackaged by Rouge. This obviously means the UV_mV_table won't be there, which prevents undervolting. I flashed to the latest Hitman kernel and everything works like a charm!
parth750 said:
Ah, I figured it out. For the last several months, Calk has been running on Stock kernels repackaged by Rouge. This obviously means the UV_mV_table won't be there, which prevents undervolting. I flashed to the latest Hitman kernel and everything works like a charm!
Click to expand...
Click to collapse
So the stock 2.8.1 does not have undervolting enabled?
Sent from my Epic 4G Touch
Vandam500 said:
So the stock 2.8.1 does not have undervolting enabled?
Sent from my Epic 4G Touch
Click to expand...
Click to collapse
I can't remember which version is which but I believe there was one that required Tegrak to undervolt.
Sent from my SPH-D710 using xda premium
Vandam500 said:
So the stock 2.8.1 does not have undervolting enabled?
Sent from my Epic 4G Touch
Click to expand...
Click to collapse
Calkulin's ROMs from 2.5.1 to 2.8.1 (maybe more, I haven't checked) use a stock kernel, which means no undervolting and any undervolt zips you do flash will have no effect.
EDIT: Just ran through the changelog. Looks like he's been using a stock kernel since v2.0.1a.
I wasn't seeing much difference from flashing the -100 and -50 scripts on 2.8.1 so I switched to Hitman kernel, flashed the stock mV script, and use SetCpu instead, now it seems to drain slower.
Transmission sent from a Galaxy S II with XDA Premium
maybe one of you guys can answer this for me so i dont have to post a new thread as the search brings me to this thread for the question i have.
is it as easy as uninstalling setCPU and re-flashing a kernel to get back my stock undervolt settings? or do i have to reflash the ROM?
i am running the latest blazer 3.8 with gunslinger kernel
If you're using SetCPU to change voltages, and you don't remember stock voltages, you could always reflash your kernel. Make sure you uncheck SetCPU's "Set on boot" options first.
Team Rogue's Stock kernels feature init.d support, which means Calk's scripts would work... make sure you don't have a conflicting program installed, and that the correct permissions are in place for the folder and the scripts.
parth750 said:
Hey All,
I'm new here so sorry if this has already been asked. I was poking around the init.d scripts Calkulin has put up and I noticed that it doesn't seem to work. Here's the "4undervolt" script which you can find in /system/etc/init.d.
Code:
#!/system/bin/sh
#
# Created by Calkulin
# Epic 4G Touch -50mV v1.1
if [ -e /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table ]; then
UV_TABLE=`cat /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table | wc -l`
CPU_MAX_FREQ=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq`
STEPS_1600_200="1450 1350 1225 1125 1025 925 875"
STEPS_1704_200="1500 1450 1400 1350 1225 1125 1025 925 875"
if [ $UV_TABLE = "7" ] && [ $CPU_MAX_FREQ = "1600000" ]; then
echo $STEPS_1600_200 > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
echo "-50mV Undervolt Levels SET"
elif [ $UV_TABLE = "9" ] && [ $CPU_MAX_FREQ = "1704000" ]; then
echo $STEPS_1704_200 > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
echo "-50mV Undervolt Levels SET"
fi
fi
Well I just flashed 2.8.1 (I used to be on 2.5.1 with the same issue), and it seems like the UV_TABLE, which is supposed to be in /sys/devices/system/cpu/cpu0/cpufreq/, isn't there. This means that neither the if nor the elif is being taken, which basically means the script is having no effect.
Am I reasoning correctly? If so, it seems like it would affect a lot of people who think they're undervolting but really aren't. Could someone with more familiarity Android possibly take a look?
Also, is there a way for me to check the current voltage at the CPU?
Thanks!
Click to expand...
Click to collapse
Based on my test, no init.d script was running at least on ICS. It's because there's something not working on the repacked kernel. There's workaround of this - check this out.
http://forum.xda-developers.com/showthread.php?t=1610741

[SCRIPT] Governor Tweaks | Increase performance

Hi everybody
Ones again I am here to guide you to increase there performance of you device.
To make it smooth n lag free.
Well, it took a whole week to complete these scripts so please shower this thread will positive views.
This Scripts are strictly for GALAXY Y only. Do not try it in any other device.
The following scripts attemps to make your phone battery dures more time or your phone more responsive and smoother by modifiing some governor's parameters.
It will set CPU min freq at 234 MHz and max at 832 MHz, the governor in the script name, BFQ scheduler and apply tweaked tunables for battery or performance.
Steps of Install
Download Script Manager
Download the script and placed it in the root of your sd-card
Open SManager >> explore to the scripts >> select the one you want to integrate >> check script >> root >> set at boot [set at boot is optional]
In arguments, write b or p within you want battery or performance optimisations
Click save
Click Run
Downloads :
1.Interactive-governer.sh
2.Conservative-governer.sh
The following scripts are tested and working on the following kernel :
1. Merruk kernel
2. Savie's kernel
Credits:
Pending....
Please test it on other kernels and report me, I will add you in Credits.
More scripts are comeing soon.
I will be not responsible if you brick your device or dead sd card or anything happen to your device.
Please give me credit if anyone mirror my work.
Dont forget to hit Thanks.
What Doesn't Kill Makes Me AWESOME
Governor for over-clocked devices are coming soon.
What Doesn't Kill Makes Me AWESOME
Downloading and trying...
Sent from my GT-S5360 using Xparent Cyan Tapatalk 2

[KERNEL] Next |Ep7.8 / 7.9| |Ep8.5| |Ep10.4| |Sense / AOSP|

Disclaimer : I'm no developer. I don't know how to write code. Just cherry-pick stuff. Flash at your own risk. Just thought to share.
Huge Credit & Thanks to these guy/lady :
LorD ClockaN, Thömy, n3ocort3x, maxwen, franciscofranco, faux123, Xmister, show-p1984, lyapota, tbalden, metallice, tripnraver,Christopher83, AICP Team, p880 devs, all rom/kernel developer, all guide author and the community.
Were tested before release. But not fully on sense. AOSP my daily driver.
Feature
Govenor : + smartmax, smartmax eps, gaming, intelliactive, wheatly
Scheduler : + BFQ, ROW,SIO,VR
Extra : GPU overclock (default at 520), LP core overclock (640) Undervoltage (LP,GPU,RAM,MPU,CORE), Sweep to Wake (S2W), Double Tap to Wake (DT2W), pocket protection, LP core interface, Button backlight brightness, button blink notification
*Do Not Repack For CpuQuiet Version*
Sense / Aosp
Cpu Quiet : Ep 7.8 / Ep 7.8 OC / Ep 7.9
MPdecision : Ep 8.5 / Ep 8.5 OC
Intelliplug : Ep 10.4 / Ep 10.4 OC/Ep 10.5/Ep 10.5 OC
Older Released : Kernel Folder
Change log see post #2
How to flash:
For S-OFF
1. Download ZIP file and put to SD card
2. Flash ZIP from recovery
For S-ON
1. Download ZIP file and extract kernel\boot.img to Kernel Flasher fastboot dirrectory on the PC
2. Put ZIP file to SD card and flash from recovery
3. Reboot to bootloader and flash kernel by Kernel Flasher from PC
Next Kernel Source
> Be gentle
Changelog
Best Trade Hotplug Commit
Cpu Quiet/Intelliplug Commit
MpDecision Commit
Next Kernel Parameter (init.d script)
#!/system/bin/sh
# **************************************
# init.d script for Next kernel
# **************************************
#***************************
# Cpu Freq & Governor Setting
#***************************
# Gov = ondemand, performance, interactive, smartmax, smartmax_eps, intelliactive, gaming, wheatly
#echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
#echo "ondemand" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
#echo "ondemand" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
#echo "ondemand" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
# Freq min = 51000, max = 1600000
#echo "51000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
#echo "1600000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
#*******************
#Sweep2Wake Setting
#*******************
#enable=1, disable=0
#echo "0" > /sys/android_touch/sweep2wake
#echo "9" > /sys/android_touch/s2w_register_threshold
#echo "325" > /sys/android_touch/s2w_min_distance
# Sweep direction
#echo "1" > /sys/android_touch/s2w_allow_stroke
#enable=1, disable=0
#echo "0" > /sys/android_touch/doubletap2wake
# 0 = use whole screen
#echo "1300" > /sys/android_touch/doubletap_barrier_y
# Duration between tap, min = 120, max =350
#echo "150" > /sys/android_touch/doubletap_duration
#echo "150" > /sys/android_touch/doubletap_threshold
#enable=1, disable=0
#echo "0" > /sys/android_touch/pocket_detect
#*********************
# LED button
#*********************
# Enable=1, disable=0
#echo "0" > /sys/class/leds/button-backlight/slow_blink
# Value Min=0 , Max=225
#echo "225" > /sys/class/leds/button-backlight/button_brightness
#******************
# Touchscreen
#******************
# Enable=1, disable=0 - for multitouch issue
#echo "0" > /sys/android_touch/calibration_control
#*******************
# Audio Freq
#*******************
# Enable this if playing music stutter
#echo "204000" > /sys/module/snd_soc_tlv320aic3008/parameters/audio_min_freq
#*******************
# Cpu Freq Hard Cap
#*******************
#echo "1200000" > /sys/module/cpu_tegra/parameters/cpu_user_cap
#******************
# CpuQuiet
#******************
#To limit how much cpu online, min=1, max=4
#echo "4" > /sys/devices/system/cpu/cpuquiet/tegra_cpuquiet/max_cpus
#echo "1" > /sys/devices/system/cpu/cpuquiet/tegra_cpuquiet/min_cpus
#******************
# Mp Decision
#******************
#To change those frequencies echo the cpu number + the frequency in khz.
# To verify [ cat /sys/kernel/tegra_mpdecision/conf/boost_freqs ]
#echo "0 102000" > /sys/kernel/tegra_mpdecision/conf/boost_freqs
#echo "1 102000" > /sys/kernel/tegra_mpdecision/conf/boost_freqs
#echo "2 102000" > /sys/kernel/tegra_mpdecision/conf/boost_freqs
#echo "3 102000" > /sys/kernel/tegra_mpdecision/conf/boost_freqs
#To limit how much cpu online
#echo "4" > /sys/kernel/tegra_mpdecision/conf/max_cpus
#echo "1" > /sys/kernel/tegra_mpdecision/conf/min_cpus
#****************
# Frandom
#****************
# Script to launch frandom at boot by Ryuinferno @ XDA
#insmod /system/lib/modules/frandom.ko
#chmod 644 /dev/frandom
#chmod 644 /dev/erandom
#mv /dev/random /dev/random.ori
#mv /dev/urandom /dev/urandom.ori
#ln /dev/frandom /dev/random
#chmod 644 /dev/random
#ln /dev/erandom /dev/urandom
#chmod 644 /dev/urandom
can i install aosp one on cm10.1 ?
Hey man! Nice to see a pretty decent aftermarket kernel on our forums again, How does Android 4.4 support look like right now? Would you it's ready to use? *I'm flashing it anyway *
deathgame said:
can i install aosp one on cm10.1 ?
Click to expand...
Click to collapse
Ops...don't have time to test on cm10.1..sorry..you could try repack and report if it run ok. Why don't jump to cm10.2? It pretty stable now.
humzaahmed155 said:
Hey man! Nice to see a pretty decent aftermarket kernel on our forums again, How does Android 4.4 support look like right now? Would you it's ready to use? *I'm flashing it anyway *
Click to expand...
Click to collapse
My aim to help sense user so n3o can focus on aosp. .. It my daily driver..I can live with minor bug. Now I'm using custom cm from temasek. Need halo. Jump to aicp when they release.
Sent from my HTC One X using Tapatalk
Thanks I'm on viperx I will flash it and post back my thoughts nice to see things happening on our hox at last
Sent from my HTC One X using Tapatalk
Finally. Great.
All booted fine can I ask for some info on the new smartmax eps governor please
Sent from my HTC One X using Tapatalk
Smartmax eps = extreme power saving
Great Work...Atlast you've posted your kernel in XDA...
Congrats....As said in G+, very happy to see your first kernel here... I hope your kernel would surely help a lot of Users and Devs here...
Keep rocking... :highfive::highfive::highfive:
Ram
Just flashed your kernel on CM11, runs exceptionally faster than stock, only issue was when I was installing the kernel I realised the updater script isn't compatible with the new KitKat recovery, so I had to flash back to twrp to get it running
Sent from my HTC One X using Tapatalk
Aweseome u made it. Just a little info for AOSP/SENSE. U will need 2 defconfigs. Where in AOSP one for example # HTC_PNPMNGR is not set (what fixes core usager on AOSP) u will need it in SENSE defconfig set to HTC_PNPMNGR=y (otherwise u could run into issues). There is a lot of other stuff disabled in our AOSP defconfig, you should re-enable that for sense (SENSE PLUS is such a value, just check git waht thömy and me reverted and revert it back for Sense version)
Keep the kernels coming :highfive:
Smartmax seems a bit slow I tried to play temple run but it as to chuggy and system stalled for a few seconds also ui is not very responsive hope this helps
Sent from my HTC One X using Tapatalk
needs adjustments for tegra, what i expected, its too conservative
On demand seems normal no issues that I can notice
Sent from my HTC One X using Tapatalk
Firstly may I say thank you for you work, your kernel is snappy and all seems good. Is it possible for sweep to unlock?
Sent from my HTC One X using XDA Premium 4 mobile app
Has anyone else had issues waking the phone up?
Sent from my HTC One X using Tapatalk
Edit: it seems as if it was just cold temperatures preventing the phone from turning on
myheroduane said:
Firstly may I say thank you for you work, your kernel is snappy and all seems good. Is it possible for sweep to unlock?
Sent from my HTC One X using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Its there but its off by default.
You can enable it with trickster mod for example.
Gesendet von meinem HTC One X
Using your Kernel right now, Thanks for another option in Kernel Flashing
Using smartmax and rest pretty much default. Running nice so far.
Thanks again and good luck for your development. :good:
I have a question regarding kernel same page merging is it worth using I have found the option to enable it in venom tweaks cpu settings unfortunately it isn't in trickster and in venom tweaks I can't get it to stick after reboot any advise would be appreciated thanks
Sent from my HTC One X using Tapatalk
smeejaytee said:
I have a question regarding kernel same page merging is it worth using I have found the option to enable it in venom tweaks cpu settings unfortunately it isn't in trickster and in venom tweaks I can't get it to stick after reboot any advise would be appreciated thanks
Sent from my HTC One X using Tapatalk
Click to expand...
Click to collapse
Some info
By everyday use I don't see much different.

[WAR MOD] || CPU & VM Tweaks | Battery Saving

Please read this entire post before doing anything.
Pretty straight forward modification that will increase performance and save battery life. You must be rooted to apply this.
Drop this file: https://drive.google.com/file/d/1h0ET7pYHdPB32v-ZtK5pEMlwlHNn8O46/view?usp=drivesdk
... into this location (replacing the existing stock one):
Code:
/system/vendor/bin
Basically, there is a file in that sub-folder "init.qcom.post_boot.sh"
You are replacing that file with mine, which I've made the following changes to:
-modified hispeed_freq and hispeed_load parameter for both CPU clusters so they run more efficiently
-modified vm parameters in /proc/sys/vm to allow a little more RAM to be used. USE YOUR RAM, that's what it is for! I don't like having a full 900Mb of free RAM, then having apps refresh when they are opened again.
-added a script to limit the maximum display brightness (this is still very usable, but it will be more power friendly. The stock settings are way too aggressive)
- there will be much more to come, this is just to start us off
Also, after you drop the new file into the folder, change the permissions to:
Code:
rwxr-xr-x
then reboot/power up
The .sh file executes on its own after each boot. No more CPU apps.
You will see a noticeable difference in battery life and performance. :good:
Yes could you please give me step by step on how I post apply this to my device because I cannot give it permission and then when I do get to permission changed it keeps saying that ignore it it snow please help
Hey bro,
Can you make this mod for the sdm 636?
TKS
---------- Post added at 03:35 PM ---------- Previous post was at 02:58 PM ----------
what is the soc_id of your device?
Igorfmedeiros said:
Hey bro,
Can you make this mod for the sdm 636?
TKS
---------- Post added at 03:35 PM ---------- Previous post was at 02:58 PM ----------
what is the soc_id of your device?
Click to expand...
Click to collapse
SMD632 is the ID.
Pretty sure yours is SMD636
replace file let's see if anything improves
original file has size 200k
your 41k
restart system has again 200k
this is normal ?
How is this working for those that have used it?
I'm curious too..I've benchmarked my G7 and got a baseline for performance and will eventually try this to see if it improved things..but first I plan on trying some of the tweaks available in Magisk.
this mod doesn't seem to stick as it always reverts to the stock file. why not just make a custom flashable kernel?
Is there guidance to make the change persistent after a reboot. This is my first A/B device and things seems little different now. I am unsure if Motorola is restoring the vendor partition or if the reset isn't related to something else.
I've been trying to avoid installing TWRP due to lack of development and was hoping to apply this with either the stock recovery of just in the file system.
*edit.
I guess Ill look into disabling dim-verity without TWRP, I think I saw a way to do it. Or maybe boot TWRP from the command line instead of installing it.
I made a magisk module to load this file.
See Page 2 to download.
Download ?
idcamper said:
Download ?
Click to expand...
Click to collapse
*module fixed
Use Magisk to make this change stick
*module fixed, we down a few posts.
HT123 said:
I made a magisk module to load this file.
Let me know if anyone wants it.
I went this route becuase I didn't want to install TWRP yet.
Click to expand...
Click to collapse
The unofficial Twrp actually works quite well on my Moto G7.
maybeme2 said:
The unofficial Twrp actually works quite well on my Moto G7.
Click to expand...
Click to collapse
Without anyone making twrp flashable zips of the updates I am remiss to install it. If more mods come along that require workarounds like this one I will pull the trigger but for now, this one change does not warrant TWRP for me anyway.
HT123 said:
I made a magisk module to load this file.
Let me know if anyone wants it.
I went this route becuase I didn't want to install TWRP yet.
Click to expand...
Click to collapse
can you send me?
absvini said:
can you send me?
Click to expand...
Click to collapse
*module fixed
Magisk Module fixed
HT123 said:
The mod didn't work. While the file was replaced, it was not processed, look up a few posts to see how to do it without a module.
Click to expand...
Click to collapse
Someone can feel free to fix my misspelling of Kernel in the mod as well.
I had some free time this morning and I fixed the module. I have no idea if it helps or not.
It does not include everything in the original post, only the changes at the bottom. I take no credit or responsibility for this, all I did was turn the changes into Magisk Module. The code below is the changes that get made.
Code:
# WarBeard mods
#
sleep 20
# Adjust CPU parameters to save battery
echo 1036800 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/hispeed_freq
echo 75 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/hispeed_load
echo 1401600 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/hispeed_freq
echo 95 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/hispeed_load
# Adjust VM parameters
echo 10 > /proc/sys/vm/dirty_background_ratio
echo 4 > /proc/sys/vm/dirty_expire_centisecs
echo 20 > /proc/sys/vm/dirty_ratio
echo 8 > /proc/sys/vm/dirty_writeback_centisecs
echo 100 > /proc/sys/vm/swappiness
echo 50 > /proc/sys/vm/vfs_cache_pressure
# Limit maximum brightness of display
echo 150 > /sys/class/leds/lcd-backlight/max_brightness
[\code]
idcamper said:
replace file let's see if anything improves
original file has size 200k
your 41k
restart system has again 200k
this is normal ?
Click to expand...
Click to collapse
Same happens to me, just rebooted. I'll check my current file with the one he uploaded on Google Drive by comparing them in a text editor?
HT123 said:
Someone can feel free to fix my misspelling of Kernel in the mod as well.
I had some free time this morning and I fixed the module. I have no idea if it helps or not.
It does not include everything in the original post, only the changes at the bottom. I take no credit or responsibility for this, all I did was turn the changes into Magisk Module. The code below is the changes that get made.
Code:
# WarBeard mods
#
sleep 20
# Adjust CPU parameters to save battery
echo 1036800 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/hispeed_freq
echo 75 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/hispeed_load
echo 1401600 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/hispeed_freq
echo 95 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/hispeed_load
# Adjust VM parameters
echo 10 > /proc/sys/vm/dirty_background_ratio
echo 4 > /proc/sys/vm/dirty_expire_centisecs
echo 20 > /proc/sys/vm/dirty_ratio
echo 8 > /proc/sys/vm/dirty_writeback_centisecs
echo 100 > /proc/sys/vm/swappiness
echo 50 > /proc/sys/vm/vfs_cache_pressure
# Limit maximum brightness of display
echo 150 > /sys/class/leds/lcd-backlight/max_brightness
[\code][/QUOTE]
This Magisk module provides the exact same thing as the .sh file in the original post? The exact same benefits?
Click to expand...
Click to collapse
HT123 said:
Someone can feel free to fix my misspelling of Kernel in the mod as well.
I had some free time this morning and I fixed the module. I have no idea if it helps or not.
It does not include everything in the original post, only the changes at the bottom. I take no credit or responsibility for this, all I did was turn the changes into Magisk Module. The code below is the changes that get made.
Code:
# WarBeard mods
#
sleep 20
# Adjust CPU parameters to save battery
echo 1036800 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/hispeed_freq
echo 75 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/hispeed_load
echo 1401600 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/hispeed_freq
echo 95 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/hispeed_load
# Adjust VM parameters
echo 10 > /proc/sys/vm/dirty_background_ratio
echo 4 > /proc/sys/vm/dirty_expire_centisecs
echo 20 > /proc/sys/vm/dirty_ratio
echo 8 > /proc/sys/vm/dirty_writeback_centisecs
echo 100 > /proc/sys/vm/swappiness
echo 50 > /proc/sys/vm/vfs_cache_pressure
# Limit maximum brightness of display
echo 150 > /sys/class/leds/lcd-backlight/max_brightness
[\code][/QUOTE]
I notice quite a difference
Click to expand...
Click to collapse

Categories

Resources