[Q] Problem to install interactive governor - XPERIA X10 Q&A, Help & Troubleshooting

Hello,
i use stock rom 2.3.3 and i've tried to install interactive governor. I've extracted cpufreq_interactive.ko to system/lib/modules, edited install-recovery.sh and added in it :
#modules
insmod /system/lib/modules/cpufreq_interactive.ko
#cpufreq governor
echo "interactive" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 85 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/go_maxspeed_load
echo 50000 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/min_sample_time
after reboot, nothing happens, no "interactive" in the menu of setcpu.
Thanks for the solution.

gravia said:
Hello,
i use stock rom 2.3.3 and i've tried to install interactive governor. I've extracted cpufreq_interactive.ko to system/lib/modules, edited install-recovery.sh and added in it :
#modules
insmod /system/lib/modules/cpufreq_interactive.ko
#cpufreq governor
echo "interactive" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 85 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/go_maxspeed_load
echo 50000 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/min_sample_time
after reboot, nothing happens, no "interactive" in the menu of setcpu.
Thanks for the solution.
Click to expand...
Click to collapse
With some custom kernels interactive does not work ex.Zkernel

But i'm under official kernel (stock rom SE)
Sent from my X10i using XDA App

gravia said:
Hello,
i use stock rom 2.3.3 and i've tried to install interactive governor. I've extracted cpufreq_interactive.ko to system/lib/modules, edited install-recovery.sh and added in it :
#modules
insmod /system/lib/modules/cpufreq_interactive.ko
#cpufreq governor
echo "interactive" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 85 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/go_maxspeed_load
echo 50000 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/min_sample_time
after reboot, nothing happens, no "interactive" in the menu of setcpu.
Thanks for the solution.
Click to expand...
Click to collapse
did u follow instrcutions exactly from here? http://forum.xda-developers.com/showthread.php?t=1221425

sofir786 said:
did u follow instrcutions exactly from here? http://forum.xda-developers.com/showthread.php?t=1221425
Click to expand...
Click to collapse
Thanks to help me but i'm newbie in the use of SDK.
For each code of this thread, i must use SDK or another tool ?

sorry, no one for help ?

Related

min scaling CPU freq != cpuinfo min freq

Hello,
Is there any reason why the scaling min freq is not equal to the cpuinfo_min_freq?
By default the scaling min freq is set to 245760
However the cpu can go to 122880
I have manual set this and the phone seems to run fine, changing freq on demand as need and slowing back as it should
I tried editing the /init.qcom.post_boot.sh so it does it every time on boot up but it just overwrote the file with the default
chris... said:
Hello,
Is there any reason why the scaling min freq is not equal to the cpuinfo_min_freq?
By default the scaling min freq is set to 245760
However the cpu can go to 122880
I have manual set this and the phone seems to run fine, changing freq on demand as need and slowing back as it should
I tried editing the /init.qcom.post_boot.sh so it does it every time on boot up but it just overwrote the file with the default
Click to expand...
Click to collapse
I use overclock widget and it do the job (need root)
True, overclock widget sets it perfectly, lets hope this saves more battery
To check cpu running speed use system panel ..
I think that there's a reason cause they set the kernel to that frequency. Probably 122mhz is too low for gsm csmda radio activity or probably cause after some tests they saw that there was no difference in stand by between the two power consumption levels.
I got no problem when on idel setting the max cpu freq to the lowest speed possible
If there were not problems about it they would set it to 122Mhz. Maybe they solved some lags, who know what. But if it's at 245Mhz a reason exists.
Anyway.... I don't know too, I think only Sony Ericsson developers could tell something about this choice.
Probably so their crappy interface and built in demo apps can work
Have had no issues running this at boot time ( via root )
---------------------- snip ---------------
#!/system/bin/sh
echo 122880 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
---------------------- snip ---------------
i save this as "slow.sh"
then run
#sh slow.sh
now idle uses 122.88 mhz and saves alot of battery!
morning_wood said:
Have had no issues running this at boot time ( via root )
---------------------- snip ---------------
#!/system/bin/sh
echo 122880 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
---------------------- snip ---------------
i save this as "slow.sh"
then run
#sh slow.sh
now idle uses 122.88 mhz and saves alot of battery!
Click to expand...
Click to collapse
Hi Morning_wood
Could you please share the whole procedure for us newbi's .. i think saving battery life would help us all allot
kimb0 said:
Hi Morning_wood
Could you please share the whole procedure for us newbi's .. i think saving battery life would help us all allot
Click to expand...
Click to collapse
use the "overclock widget" app
You have separate min/max speeds while idle and while running
kimb0 said:
Hi Morning_wood
Could you please share the whole procedure for us newbi's .. i think saving battery life would help us all allot
Click to expand...
Click to collapse
1. you need root
2. create file "slow.sh" with this entry ( can use notepad or whatever )
#!/system/bin/sh
echo 122880 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
save anywhere eg: /sddcard/slow.sh
3. open a terminal *ConnectBot works fine
4.
$su
#sh /sdcard/slow.sh
5. exit your terminal
note: you need to do this everytime you reboot your phone
I use Android System Info ( System / CPU tab ) to check the cpu usage
morning_wood said:
1. you need root
2. create file "slow.sh" with this entry ( can use notepad or whatever )
#!/system/bin/sh
echo 122880 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
save anywhere eg: /sddcard/slow.sh
3. open a terminal *ConnectBot works fine
4.
$su
#sh /sdcard/slow.sh
5. exit your terminal
note: you need to do this everytime you reboot your phone
I use Android System Info ( System / CPU tab ) to check the cpu usage
Click to expand...
Click to collapse
Thank you
morning_wood said:
I use Android System Info ( System / CPU tab ) to check the cpu usage
Click to expand...
Click to collapse
is this an app?
Could someone please give me some good running settings in overclock widget ?
pukidukie said:
Could someone please give me some good running settings in overclock widget ?
Click to expand...
Click to collapse
set min to the minimum and max to the maximum
The kernel uses a frequency scheduler that automatically changes the speed based on demand
Ok, thank you
Is there any way to fix cpu schedule file, with out widget or slow.sh file to make cpu idle frq constant 122880?
Sent from my E10i using XDA App
Yodd said:
Is there any way to fix cpu schedule file, with out widget or slow.sh file to make cpu idle frq constant 122880?
Sent from my E10i using XDA App
Click to expand...
Click to collapse
Setcpu works fine...
forum.xda-developers.com/showthread.php?t=505419
mo more slow.sh - the easy way revised
----------------------------------------
http://de.blank-online.eu/file/autostart.apk
How to do the slow-cpu
Make a autostart.sh file on your desktop containing this line:
echo 122880 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
Copy to /sdcard/
Install the autostart.apk
Reboot phone / say yes to superuser
Plug in phone * with usbdebuging of course
ADB shell, su to root
In ADB shell do...
mkdir /data/opt
cd /data/opt
busybox cp /sdcard/autostart.sh /data/opt
chmod 777 autostart.sh
reboot
Enjoy slowcpu at bootup!
morning_wood; said:
Make a autostart.sh file on your desktop containing this line:
echo 122880 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
Install the autostart.apk
In ADB shell do...
mkdir /data/opt
cd /data/opt
busybox cp /sdcard/autostart.sh /data/opt
chmod 777 autostart.sh
reboot
/QUOTE]
Not for me.....
I'm trying with #!/sh.....etc...
Thank you
Click to expand...
Click to collapse

Kernel Optimizations

If anyone is compiling a kernel, please unset CONFIG_UEVENT_HELPER_PATH.
It is currently set to /sbin/hotplug, which does not exist.
You might also set
echo 5 > /proc/sys/vm/laptop_mode
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
somewhere in the initramfs.
What does these settings do?
lynx2k50 said:
What does these settings do?
Click to expand...
Click to collapse
if CONFIG_UEVENT_HELPER_PATH is set, then the kernel tries to execute that helper tool every time a hotplug event occurs. Unsetting it would save a lot of forks at boot time.
Code:
echo 5 > /proc/sys/vm/laptop_mode
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
These settings delay the disk writeback, so the disk device has to wake up less often (given it goes into sleep mode ).
Ah okay so i can expect better battery life (more sleep time) and a faster booting.
Well done, thanks.
I hope some devs are going to integreate it.
OK good point to try.
Added now on my Cognition 1.07
Code:
bash-4.1# cat /etc/init.d/90laptop.sh
#!/system/bin/sh
echo 5 > /proc/sys/vm/laptop_mode
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
Code:
diff --git a/arch/arm/configs/c1_rev02_defconfig b/arch/arm/configs/c1_rev02_defconfig
index a7992c0..ccd06df 100644
--- a/arch/arm/configs/c1_rev02_defconfig
+++ b/arch/arm/configs/c1_rev02_defconfig
@@ -917,7 +917,7 @@ CONFIG_RFKILL_INPUT=y
#
# Generic Driver Options
#
-CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
+CONFIG_UEVENT_HELPER_PATH=""
# CONFIG_DEVTMPFS is not set
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
Can someone pls create a update.zip or else for the cognition rom?
Or a shirt instruction.
Sry for my englisch
from my SGS running MIUI 2.3.4
If you have the CF-Root kernel installed, you can just place this in /data/local/customboot.sh
Code:
echo 5 > /proc/sys/vm/laptop_mode
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
echo -e '\000\000\000' > /proc/sys/kernel/hotplug
saturn_de said:
If you have the CF-Root kernel installed, you can just place this in /data/local/customboot.sh
Code:
echo 5 > /proc/sys/vm/laptop_mode
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
echo -e '\000\000\000' > /proc/sys/kernel/hotplug
Click to expand...
Click to collapse
the first two might help. (does Solid State internal storage need "sleep" mode?)
but depending on when the custom script is run the last line may be useless here..
Does it only work with a CF-Kernel, i've tagraks kernel, and cant find any file in data/locel .
Greetz
saturn_de said:
These settings delay the disk writeback, so the disk device has to wake up less often (given it goes into sleep mode ).
Click to expand...
Click to collapse
It doesn't go into sleep mode since it's not a spinning disk.
(Or you could look at it as always being in sleep mode when not in use - there's no spindown/spinup phase.)
So you're not gonna see any battery benefits from that.
Added into my installation on my handset. No way to test it whether it will increase stabilty nor speed, but it does tidy thinngs up.

More battery juice

Hey guyz...
Im using CM7.2, v6 supercharger and setcpu. These help save up my juice alot. Are there any other tips, tricks or scripts for improving my juice???
Sent from my Dell Streak using XDA
Set the CPU governor to conservative
Sent from my GT-S5570 using xda premium
- use lower clock cpu
- tweaking values (BP & init)
- tweak/edit sysctl
I had read abt sysctl but i found it a lil confusing...wondering if sm1 could get a .zip for it
Also wats this bp and init ??
Sent from my Dell Streak using XDA
synicdevil said:
I had read abt sysctl but i found it a lil confusing...wondering if sm1 could get a .zip for it
Also wats this bp and init ??
Sent from my Dell Streak using XDA
Click to expand...
Click to collapse
sysctl, try this value (for VM tweaks):
echo 4096 > /proc/sys/vm/min_free_kbytes
echo 0 > /proc/sys/vm/swappiness
echo 5 > /proc/sys/vm/vfs_cache_pressure
echo 90 > /proc/sys/vm/dirty_ratio
echo 70 > /proc/sys/vm/dirty_background_ratio
echo 1000 > /proc/sys/vm/dirty_expire_centisecs
echo 2000 > /proc/sys/vm/dirty_writeback_centisecs
build.prop :
wifi.supplicant_scan_interval=300
you can use custom kernel that support lowest system clock/cpu (128MHZ) and set the gov to conservative
*dont try to modifying if you have no idea what just you doing, some bootloop may come as fail editing
hope it usefull

[Q] How to set-up and troubleshoot init.d scripts?

I have a Nexus 4, running CM10.1 and Faux123's latest kernel. I want to use an init.d script to set the governor, tuneables, and other things instead of an app (all of the apps I've tried have an issue with permissions/settings not sticking, plus I take any opportunity to eliminate 3d party apps when possible).
Running into some issues getting this to work right, hoping someone can help --
My init.d script successfully applies the following on boot: stop mpdecision, choose FIOPS as the I/O scheduler, put the GPU clock max at 400 mHz. However, any commands I have in the script that are related to the CPU governor, parameters, and eco mode/snake charmer do not work.
I thought I had put my script (named "userinit.sh", placed in /data/local) in the wrong place or something, but like I said it successfully stops mpdecision on boot, sets the i/o to FIOPS and makes the read-ahead 2048kb, and sets the GPU max to 400 mHz -- none of the other commands work though. Any ideas?
Running Cyanogenmod 10.1 nightlies with 002b6 faux kernel. I've also set the permissions of the file to 755 (rwxr-xr-x), is that right?
My script looks like this (the ones in green work fine, the rest in red don't work):
#!/system/bin/sh
su
stop mpdecision
echo "intellidemand" > /sys/devices/system/cpu/cpu0/scaling_governor
echo 594000 > /sys/devices/system/cpu/cpu0/scaling_min_freq
echo 1350000 > /sys/devices/system/cpu/cpu0/scaling_max_freq
echo 1 > /sys/devices/system/cpu/cpufreq/intellidemand/eco_mode
echo 1350000 > /sys/devices/system/cpu/cpufreq/intellidemand/lmf_active_max_freq
echo 1026000 > /sys/devices/system/cpu/cpufreq/intellidemand/lmf_inactive_max_freq
echo 1350000 > /sys/kernel/msm_cpufreq_limit/cpufreq_limit
echo "fiops" > /sys/block/mmcblk0/queue/scheduler
echo 2048 > /sys/block/mmcblk0/queue/read_ahead_kb
echo 400000000 > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk
I would love any advice on what steps I need to take to get this working correctly, as well as any info about init.d scripts generally, I threw this one together after some Googling but who knows if its even in the right format. Thanks!

My tuning script for Axon7 very good balanced.

My tuning script very good balanced.
For the kernel with zzmoove gov and fiops io scheduler.
I run the script with Tasker.
But you can copy it to /system/etc/init.d/
Don't forget, set it to 0755 perms
//
chmod 644 /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
echo 'zzmoove' > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
chmod 444 /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
chmod 644 /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
echo 'zzmoove' > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
chmod 444 /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
chmod 644 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 'zzmoove' > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chmod 644 /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo 'zzmoove' > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
chmod 444 /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo '0' > /sys/module/msm_performance/parameters/touchboost
echo '30' > /sys/module/cpu_boost/parameters/input_boost_ms
echo '0' > /sys/block/sda/queue/iostats
echo '0' > /sys/block/mmcblk0/queue/iostats
echo '4' > /sys/kernel/autosmp/conf/max_cpus
echo '2048' > /sys/block/sda/queue/read_ahead_kb
echo 'fiops' > /sys/block/sda/queue/scheduler
echo 'fiops' > /sys/block/mmcblk0/queue/scheduler
echo '1' > /sys/kernel/autosmp/conf/cycle_down
echo '0:844800' > /sys/module/cpu_boost/parameters/input_boost_freq
echo '2:940800' > /sys/module/cpu_boost/parameters/input_boost_freq
//
SOT 8 hour or more
AICP and Llama kernel Non EAS 0.5.
How is the performance on synthetics like antutu, games, and ui smoothness?
nfsmw_gr said:
How is the performance on synthetics like antutu, games, and ui smoothness?
Click to expand...
Click to collapse
Geek bench 4, single core 1682, multi cores 4190.
No laggy. I am happy. You can try it. ?
7hour Sot, very simple, if you don't play game.
denf666 said:
Geek bench 4, single core 1682, multi cores 4190.
No laggy. I am happy. You can try it. ?
7hour Sot, very simple, if you don't play game.
Click to expand...
Click to collapse
A Profile for kernel Adiutor would be nice. Much easier to handle and to adjust if needed.
stock rom is very good.İ think flash custom rom not needed.This phone's best thing is speaker.
i think My SoT is good
Edit : No lag of course this is sd820 .
atakan33 said:
stock rom is very good.İ think flash custom rom not needed.This phone's best thing is speaker.
i think My SoT is goo
Edit : No lag of course this is sd820 .
Click to expand...
Click to collapse
Which version?
yeah i agree on a kernel auditor profile but will it work with other ROMS?
denf666 said:
Which version?
Click to expand...
Click to collapse
B05 or B06 nougat
gecko702 said:
yeah i agree on a kernel auditor profile but will it work with other ROMS?
Click to expand...
Click to collapse
this is the KA profile. Enjoy.
{"version":1,"profile":{"commands":[{"path":"\/sys\/devices\/system\/cpu\/cpu%d\/cpufreq\/scaling_governor2","command":"#{\"path\":\"\\\/sys\\\/devices\\\/system\\\/cpu\\\/cpu%d\\\/cpufreq\\\/scaling_governor\",\"value\":\"zzmoove\",\"min\":2,\"max\":3,\"bigCpus\":[2,3],\"LITTLECpus\":[0,1],\"corectlmin\":2}"},{"path":"\/sys\/devices\/system\/cpu\/cpu%d\/cpufreq\/scaling_governor0","command":"#{\"path\":\"\\\/sys\\\/devices\\\/system\\\/cpu\\\/cpu%d\\\/cpufreq\\\/scaling_governor\",\"value\":\"zzmoove\",\"min\":0,\"max\":1,\"bigCpus\":[2,3],\"LITTLECpus\":[0,1],\"corectlmin\":2}"},{"path":"\/sys\/module\/msm_performance\/parameters\/touchboost","command":"echo '0' > \/sys\/module\/msm_performance\/parameters\/touchboost"},{"path":"\/sys\/module\/cpu_boost\/parameters\/input_boost_ms","command":"echo '30' > \/sys\/module\/cpu_boost\/parameters\/input_boost_ms"},{"path":"\/sys\/block\/sda\/queue\/iostats","command":"echo '0' > \/sys\/block\/sda\/queue\/iostats"},{"path":"\/sys\/block\/mmcblk0\/queue\/iostats","command":"echo '0' > \/sys\/block\/mmcblk0\/queue\/iostats"},{"path":"\/sys\/kernel\/autosmp\/conf\/max_cpus","command":"echo '4' > \/sys\/kernel\/autosmp\/conf\/max_cpus"},{"path":"\/sys\/block\/sda\/queue\/read_ahead_kb","command":"echo '2048' > \/sys\/block\/sda\/queue\/read_ahead_kb"},{"path":"\/sys\/block\/sda\/queue\/scheduler","command":"echo 'fiops' > \/sys\/block\/sda\/queue\/scheduler"},{"path":"\/sys\/block\/mmcblk0\/queue\/scheduler","command":"echo 'fiops' > \/sys\/block\/mmcblk0\/queue\/scheduler"},{"path":"\/sys\/kernel\/autosmp\/conf\/cycle_down","command":"echo '1' > \/sys\/kernel\/autosmp\/conf\/cycle_down"},{"path":"\/sys\/module\/cpu_boost\/parameters\/input_boost_freq0","command":"echo '0:844800' > \/sys\/module\/cpu_boost\/parameters\/input_boost_freq"},{"path":"\/sys\/module\/cpu_boost\/parameters\/input_boost_freq2","command":"echo '2:940800' > \/sys\/module\/cpu_boost\/parameters\/input_boost_freq"}]}}
Here is a created profile everyone could import.
Just unzip and import afterwards through kernel Adiutor.
http://cloud.tapatalk.com/s/59e6649a10013/TuneZZmoove.zip
SilentEYE said:
Here is a created profile everyone could import.
Just unzip and import afterwards through kernel Adiutor.
http://cloud.tapatalk.com/s/59e6649a10013/TuneZZmoove.zip
Click to expand...
Click to collapse
Are u using this profile?
denf666 said:
Are u using this profile?
Click to expand...
Click to collapse
Yes I applied it yesterday and testing it out now on llama 0.5 kernel.
Script noob here. Be gentle.
Any tips for using with EX Kernel Manager? I have never messed with scripts. I added the json to see what would happen. Magisk log shows TuneZZmoove executing but I get no output when running in EXKM. Then again, that may be normal.
Researching in the meantime.....
Cablespider said:
Script noob here. Be gentle.
Any tips for using with EX Kernel Manager? I have never messed with scripts. I added the json to see what would happen. Magisk log shows TuneZZmoove executing but I get no output when running in EXKM. Then again, that may be normal.
Researching in the meantime.....
Click to expand...
Click to collapse
KA Profil is only for KA, but you can run the script with Tasker or init.d.
Hi,
can I use this script on AMD stock rom with stock kernel? if yes, how....?
My SOT is max 3,5-4hours...too bda for me...
thx
kraljan66 said:
Hi,
can I use this script on AMD stock rom with stock kernel? if yes, how....?
My SOT is max 3,5-4hours...too bda for me...
thx
Click to expand...
Click to collapse
This is only for kernel with zzmoove and fiops support.
ok thy, maybe stupid question, but is any kernel with supprot as you write for this rom/stock...? I have not see yet here...
kraljan66 said:
ok thy, maybe stupid question, but is any kernel with supprot as you write for this rom/stock...? I have not see yet here...
Click to expand...
Click to collapse
Just tested on LOS based Rom.
I added it to init.d for the time being. Will test after this charge.

Categories

Resources