Related
======
Preface
======
The script is actually Base on Juwe11's RAM script
which you can found here... http://forum.xda-developers.com/showthread.php?t=1111145
==========
Main Content
==========
The adj value of his script is a bit too tight for Our O2X...
so the Launcher is killed quite often if many apps opened in the background.
Here's the adj value changes I made, originally, Juwe11's values are..
"0,1,2,4,6,15" and I change it to, "0,1,2,7,8,9"
the forth value is for HIDDEN_APP_MIN_ADJ, which including the Launcher (I'm using LauncherPro) belongs to this category when you open some foreground application.
the default android value for this is also 7, and I find the OOM value for Launcher is 6 usually... so Juwe11's "4" will lead to our Launcher being Killed, keep it at 7, never tried to have mine killed yet.
The last 2 vaule just make sure the last category EMPTY_APP_ADJ is kill earlier than the previous..
About the minfree vaule...
I change it to "1536,3072,4096,7680,8960,10240" which actually the same values of "Moderate preset" of autokiller
which is enough to ensure most RAM being use before killing for faster task switching...
=====
Credit
=====
!! Credit goes to Juwe11 for his mighty RAM script~ !!
Backup your RAMscript and remove it to somewhere before install this...
install via CWM, it will put the script into your /etc/inti.d/ that's it, boot and try
i just installed it,
i will let u know what are the results,
u are correct, the original script kills the launcher and apps specially XDA
will try this configuration on auto killer memory seems good m8 to set it to moderate
shpapy said:
i just installed it,
i will let u know what are the results,
u are correct, the original script kills the launcher and apps specially XDA
Click to expand...
Click to collapse
I'm not sure if other Launcher would have a different OOM value~
I have Autokiller memory optimizer which I paid before...so I can view OOM value easily..
But with this Script... I guess really no task killer needed for our 2X already.
antec123 said:
will try this configuration on auto killer memory seems good m8 to set it to moderate
Click to expand...
Click to collapse
so, just edit the minfree value according to the values inside AutoKiller if you find some other setting suits you more
but about the adj value... I guess that part is already good enough
now I find my phone already got around 60-90 free RAM at any time...
Multiple games running at the background while web browsing...
and the Browser usually got a higher OOM, which tends to kill earlier than Games..
it is reasonable.. as the WEB you can load again with the same URL..
while the game got killed, you lost the state... android is doing it's work nicely I guess.
best memory managment script i have tryed is v6supercharger http://forum.xda-developers.com/showthread.php?t=991276
I think its the best of the best.
orlox said:
best memory managment script i have tryed is v6supercharger http://forum.xda-developers.com/showthread.php?t=991276
I think its the best of the best.
Click to expand...
Click to collapse
I tried both V6 and Juwe11's before...
and I manage to be patient enough to follow step by steps...
for installing so many things... and it just put a script in init.d at the end...
And I found it do not contain adj value in it, so I come back to Juwe11's
but anyway, this is your choice...
thanks for that script
just a quick question
would this script also work on a sgs2, running oxygen aosp stock rom?
pa.pn2 said:
thanks for that script
just a quick question
would this script also work on a sgs2, running oxygen aosp stock rom?
Click to expand...
Click to collapse
same as Original Juwe11's version.
it was suppose to work on any ROM which support init.d
but the values may need some tweaking accordingly.
squide said:
I'm not sure if other Launcher would have a different OOM value~
I have Autokiller memory optimizer which I paid before...so I can view OOM value easily..
But with this Script... I guess really no task killer needed for our 2X already.
Click to expand...
Click to collapse
Sorry to let you down. But the results are the same......
Sent from my LG-P990 using XDA App
squide said:
I tried both V6 and Juwe11's before...
and I manage to be patient enough to follow step by steps...
for installing so many things... and it just put a script in init.d at the end...
And I found it do not contain adj value in it, so I come back to Juwe11's
but anyway, this is your choice...
Click to expand...
Click to collapse
adj values are in /data/SuperChargerAdj while minfree values are in /data/SuperChargerMinfree.
it's just a script in init.d at the end, you only need to follow it step by step...
squide said:
so, just edit the minfree value according to the values inside AutoKiller if you find some other setting suits you more
but about the adj value... I guess that part is already good enough
now I find my phone already got around 60-90 free RAM at any time...
Multiple games running at the background while web browsing...
and the Browser usually got a higher OOM, which tends to kill earlier than Games..
it is reasonable.. as the WEB you can load again with the same URL..
while the game got killed, you lost the state... android is doing it's work nicely I guess.
Click to expand...
Click to collapse
i set the preset to moderate and get about 126-128mb on free ram pretty impressive and the stock browser don't get close so quickly nice! i use v10e ESA and neoblaze kernel
Works on CM7?
_Vegas said:
Works on CM7?
Click to expand...
Click to collapse
it should work on all ROM supporting init.d
in case you don't like it, go to /etc/init.d to remove the script and reboot.
it wont modify your file system..
it just override some system value on boot.
if you removes the script.. your phone would back to the state before you install this.
so, just try see if u like, if not, delete it, reboot, that's it.
Works really nicely on CM7 nightly.
Sent from my Optimus 2X
Bit of a Dumb question but my phone still has the Stock rom and doesn't have the init.d Folder
if I created /system/etc/init.d and copied the script into that would this work?
waynefox said:
Bit of a Dumb question but my phone still has the Stock rom and doesn't have the init.d Folder
if I created /system/etc/init.d and copied the script into that would this work?
Click to expand...
Click to collapse
Sorry, no. You need a custom rom of some sort to get init.d support.
TrymHansen said:
Sorry, no. You need a custom rom of some sort to get init.d support.
Click to expand...
Click to collapse
You need a Custom Kernel supporting init.d to be more accurate.
and NeoBlaze is a good one to try with.
if you really need to keep your stock ROM..
First of all you still need to root your phone
Install ROM manager from market
flash the Clockworkmod via ROM manager
install NeoBlaze Kernel, then you're ready.
if warranty is your concern, take a look to the Nvflash thread..
O2X is ALMOST unbrickable, almost.
squide said:
You need a Custom Kernel supporting init.d to be more accurate.
and NeoBlaze is a good one to try with.
if you really need to keep your stock ROM..
First of all you still need to root your phone
Install ROM manager from market
flash the Clockworkmod via ROM manager
install NeoBlaze Kernel, then you're ready.
Click to expand...
Click to collapse
I'm pretty sure that won't work. You need ROM-support as well. (A Ramdisk script which starts the init.d. thing to be even more accurate.) Feel free to prove me wrong.
TrymHansen said:
I'm pretty sure that won't work. You need ROM-support as well. (A Ramdisk script which starts the init.d. thing to be even more accurate.) Feel free to prove me wrong.
Click to expand...
Click to collapse
Ramdisk is a part of the kernel, so if you bung a kernel that supports init.d on (any) rom it'll run what's in there assuming it's eXecutable.
You can do it on the stock rom even, as long as you have a init.d kernel (and create the entries in ../etc/init.d/).
Although I can't "prove" this to you at the moment...
Hello guys!
This script is originally come from the Juwe11 ramscript but its far more advanced now, so i decided that make an own thread for this.
This script is an init.d script for our O2X but working with many other phones too. Working with every ROM what is supported init scripts. However optimized and working best with the ironkernel because some option is based on this kernel ramhack. Its working any other kernels too but may be need to adjusted some parameters.
The script started the configuration options:
1)
SMODE
if this set to on the script will be change many parameters in the proc filesystem, otherwise not however some part of the script is unaffected of this!
2)
LMKMODE and LMKVAL
lowmemorykiller and basic memory management tweak
if the LMKMODE value is on the basic_mem_tweak procedure will called.
if the LMKMODE is on then the LMKVAL define the lowmemorykiller mode.
you can change this static values:
def: stock values 2048,3072,4096,6144,7168,8192 (CM7)
std: standard values 1536,3072,4096,7680,8960,10240 (recommended for low memory models <256MB)
opt: optimum values 1536,2048,4096,10240,12800,15360 (recommended for the most)
str: strict values 1536,2048,4096,15360,17920,20480 (best for heavy multitasking)
aggr: aggressive values 1536,3072,4096,21000,23000,25000 (our O2X will handle this without problem)
extr: extreme values 1536,3072,4096,38400,40960,43520 (recommended for heavy HD games)
ult: ultimate values 1536,3072,4096,51200,57600,64000 (use with caution! only for high-end devices!)
or you can use the 'auto' values.
lowmemorykiller auto management is depend on the total memory size. if you are using stock rom then this value set to aggressive by automatic because the freeing the memory is important.
if you are familiar with ironkernel and using some of the ramhack version then this value is more softer then the total memory is increasing (more memory dont need so strong garbage collection)
lowmemorykiller parameters intact when the SMODE is off
3)
NETTWEAKS
its affected the tcp/ip procs and some kernel parameters. helping that the phone network will working faster and better
network parameters intact when the SMODE is off
4)
VMTWEAKS, COMPCACHE, CS_SIZE, CS_RATIO, INTERVAL
this part is the memory management
vmtweaks will disable normalized sleeper and change many values in the /proc/sys/vm.
vm parameters intact when SMODE is off
COMPCACHE will enable the compcache (i know CM7 supported this but its not working some case if you are using the cm settings menu)
CS_SIZE determine the compcache memory size. im using only the zram device for the compressed memory, this dont making any swap file on the block devices.
if CS_SIZE is set to auto then you can define the CS_RATIO. this parameter define the amount of the total memory what can be used as compcache. so in this case the compcache size is changed dynamically. its make sense when you are using the ramhack ironkernel
INTERVAL define that the period of the force cache drop. if you are using compcache it can be helped avoid that the phone become laggy after a while.
5)
MTWEAKS and SCHEDULER
MTWEAKS procedure will remount every partition with noatime,nodiratime,commit=180,noauto_da_alloc
and adjust many parameter what is related to the block devices
SCHEDULER will define the default io scheduler (its bfq by default, like in many kernels)
this script is working alone, dont need any other tweak script. every modifycation logged to /cache/tweaklog.txt in human readable format
this script will not gain extra point in any benchmark (maybe a little) if you want this you need to overlock your phone. remember that.
you can install with the cwm installer or simply copy the 90tweak file for the /system/etc/init.d/ and change the perms to 777
the required files in the attachment or in my sig
nice work!
use your script for 2 months, but somehow never created / cache / tweaklog.tht
can change the path to / sdcard / tweaklog.tht
20l + HP RC9 + pp9
20l + fps 0.2a
Great, thanks a lot!
Inviato con il P990 DjangoManouche!
PAIIITET said:
use your script for 2 months, but somehow never created / cache / tweaklog.tht
can change the path to / sdcard / tweaklog.tht
20l + HP RC9 + pp9
20l + fps 0.2a
Click to expand...
Click to collapse
sdcard is unaccessible while the init process, thats why im using the cache partition. its a small log file and recreated at every reboot.
and the name is tweaklog.txt
Can is use this with V6 supercharger?
norbee007 said:
Can is use this with V6 supercharger?
Click to expand...
Click to collapse
i dont recommended that.
vadonka said:
i dont recommended that.
Click to expand...
Click to collapse
Why not man ? With CM9 SK3 it's not so bad...
Simply because supercharger overwrite some tweak of this script
Inviato con il mio P990 DjangoManouche!
carburano said:
Simply because supercharger overwrite some tweak of this script
Inviato con il mio P990 DjangoManouche!
Click to expand...
Click to collapse
Eh ok buon uomo
But it's very fast with V6SC - Param 8
I'm testing it in latest ICS and it sounds good.
There'll an update of Vodonka's scrip for ICS roms too ?!
i cant find a tweaklog.txt either.
any ideas?
Little question... This script, when flashed from CWM,
works in ICS roms ?
PYCON said:
Little question... This script, when flashed from CWM,
works in ICS roms ?
Click to expand...
Click to collapse
no
dont use with the ics, its interfered many things.
will this work on stock V20q?
hey guys,
i know it may sound like a noob question but how can i set swappiness?
i flashed 'x8EnableSwapPartition', tryed to change swappiness in this script, but still 20..
then i tryed to set swappiness via hw_config.sh: still 20..
i feel like i'm going crazy
You're on custom kernel? If you are, there's a guide here. Try searching for that if you haven't.
Please give credit where credit is due..
If you can't even search how can I help you??
sorry, but there is no working guide...
its not the first time i used swap, but it always worked... well, actually it works but just about 14-18 MB due to 20 swappiness
and yes, of course i'm running a custom kernel
Install SetXperia from the PlayStore.
With it you can control cpu, swap and loads of really great extras.. You can even set a swap file @ boot and yes, swappiness..
thanks, it works
but there has to be another way to set swappiness, like in other roms too, without an app
laufersteppenwolf said:
thanks, it works
but there has to be another way to set swappiness, like in other roms too, without an app
Click to expand...
Click to collapse
yeah... it worked...
after reboot: 'can't get root access'... but superuser allows root...
anyone an idea to set it via script at boot?
Push SetXperia into system apps and set permissions and owner same as others..
laufersteppenwolf said:
thanks, it works
but there has to be another way to set swappiness, like in other roms too, without an app
Click to expand...
Click to collapse
sysctl -w vm.swappiness=x
where x is the value in which 0<x<100
and where do i have to add this line? hw_config ?
laufersteppenwolf said:
and where do i have to add this line? hw_config ?
Click to expand...
Click to collapse
create a new init.d script & name it to 15swappiness or anyname you want as long as there is number in front
Example:
#!/system/bin/sh
# Set swappiness to 40
sysctl -w vm.swappiness=40
Is there a possible method to change default governor like "ondemand" to "conservative" before flashing the ROM ??? What I mean is can any user change any ROM value in any file to achieve the same so that ROMS which does not have CPU Control ( Like AOSP ) can boot up with conservative governor ???
biswatmak said:
Is there a possible method to change default governor like "ondemand" to "conservative" before flashing the ROM ??? What I mean is can any user change any ROM value in any file to achieve the same so that ROMS which does not have CPU Control ( Like AOSP ) can boot up with conservative governor ???
Click to expand...
Click to collapse
AFAIR,in kernel config u need to change this while compiling:
# CONFIG_CPU_FREQ_DEFAULT_
GOV_PERFORMANCE is not set
CONFIG_CPU_FREQ_DEFAULT_
GOV_USERSPACE=y
Or use an init.d script,copy paste this and set permissions
echo "governor-name" > /sys/devices/system/cpu/cpu0/
cpufreq /scaling_governor
side_effect said:
AFAIK, in kernel config u need to change this while compiling:
# CONFIG_CPU_FREQ_DEFAULT_
GOV_PERFORMANCE is not set
CONFIG_CPU_FREQ_DEFAULT_
GOV_USERSPACE=y
Or use an init.d script,copy paste this and set permissions
echo "governor-name" > /sys/devices/system/cpu/cpu0/
cpufreq /scaling_governor
Click to expand...
Click to collapse
FTFY
Sent from my GT-S5830 using xda premium
side_effect said:
AFAIR,in kernel config u need to change this while compiling:
# CONFIG_CPU_FREQ_DEFAULT_
GOV_PERFORMANCE is not set
CONFIG_CPU_FREQ_DEFAULT_
GOV_USERSPACE=y
Or use an init.d script,copy paste this and set permissions
echo "governor-name" > /sys/devices/system/cpu/cpu0/
cpufreq /scaling_governor
Click to expand...
Click to collapse
Look I was looking a more user point of view. Suppose I don't wan't to compile, then can I change the ROM's governor traits ????
biswatmak said:
Look I was looking a more user point of view. Suppose I don't wan't to compile, then can I change the ROM's governor traits ????
Click to expand...
Click to collapse
Read carefully.I already gave a method.
Or use an init.d script,copy paste this
and set permissions
echo "governor-name" > /sys/devices/
system/cpu/cpu0/
cpufreq /scaling_governor
Click to expand...
Click to collapse
edit:-.- quote fail
Ezet did a fantastic scripts for iodak 8 in Anykernel post.
With 95 iodak this script the kernel have a better performance and longer battery :laugh:
With 95cvt it has only better battery life but does not change the other parametters.
I have tried it with Mokee kernel and it is also working, so probably it will be useful in other kernels!
Please try it and report.
The script is easy to use:
Extract and paste it in the folder /system/etc/init.d
Be sure the permission are at least 775
Reboot and enjoy
Special thanks to Ezet :highfive:
the script have been modified and the vibration intensity has been removed as the ROM I use has this setting included
I think this is then script for cpuquite not dure if it does anything in a kernel without that
Sent from my LG-P880 using xda app-developers app
moneyvirus said:
I think this is then script for cpuquite not dure if it does anything in a kernel without that
Sent from my LG-P880 using xda app-developers app
Click to expand...
Click to collapse
Witch of the last kernels does not have cpuquite?
Anyway, edit the script and you will see there are other interesting tweaks that makes P880 run smooth and fast without devouring the battery
Tell me please! And can anyone make a zip, so you can install the script when you upgrade the firmware? I just do not know how to point to the updater-script, to set the system with the permissions of 775.
Hint to fix script permissions
negativman said:
Tell me please! And can anyone make a zip, so you can install the script when you upgrade the firmware? I just do not know how to point to the updater-script, to set the system with the permissions of 775.
Click to expand...
Click to collapse
I am using x-plore from google play
https://play.google.com/store/apps/details?id=com.lonelycatgames.Xplore&hl=en
Configure X-plore to have the maximum access to root
Move the script to init.d folder
Long tab on the script and check permissions: normally there are right :good:
if not add the missing ones.
alberteske said:
I am using x-plore from google play
https://play.google.com/store/apps/details?id=com.lonelycatgames.Xplore&hl=en
Configure X-plore to have the maximum access to root
Move the script to init.d folder
Long tab on the script and check permissions: normally there are right :good:
if not add the missing ones.
Click to expand...
Click to collapse
You did not understand me. I'm not talking about that. I update the firmware CM every day. Whenever you update the "hands" to copy this file to the system and grant permission is not very convenient. I want to install a recovery, as the kernel, modem, and so on.
negativman said:
Tell me please! And can anyone make a zip, so you can install the script when you upgrade the firmware? I just do not know how to point to the updater-script, to set the system with the permissions of 775.
Click to expand...
Click to collapse
Here is it: http://p880.skylam.eu/ezetscript.zip
The battery charges to 93% NO MORE with script
greece-for-ever said:
The battery charges to 93% NO MORE with script
Click to expand...
Click to collapse
Very extrange because the script is not tweaking the charging process
Not working for me.
I'm on CM 10.1.3. With Iodak 8.5
Took a peek in the scrpt, and looks harmless, with cpuquiet enabled and some network and IO buffer tweaks.
Though, battery drain has worsened a huge lot, getting to a -12% in two hours with data disabled and phone supposedly deep sleeping. (used to be <2% before, in the same conditions)
Performance wise I had no benefits at all, scoring a 16620 antutu score (it was 16660 before).
Uninstalled, but thanks all the same, worths trying, maybe it's just me, and the script is easy to install and remove.
Ottonet said:
Not working for me.
I'm on CM 10.1.3. With Iodak 8.5
Took a peek in the scrpt, and looks harmless, with cpuquiet enabled and some network and IO buffer tweaks.
Though, battery drain has worsened a huge lot, getting to a -12% in two hours with data disabled and phone supposedly deep sleeping. (used to be <2% before, in the same conditions)
Performance wise I had no benefits at all, scoring a 16620 antutu score (it was 16660 before).
Uninstalled, but thanks all the same, worths trying, maybe it's just me, and the script is easy to install and remove.
Click to expand...
Click to collapse
Thanks for reporting.
In my case I use latest CM4.3.1 and it has a great improvement with iodak that is the based kernel for Ezet to do the script but also with Mokee kernel that is much more battery demanding without this script.
alberteske said:
Thanks for reporting.
In my case I use latest CM4.3.1 and it has a great improvement with iodak that is the based kernel for Ezet to do the script but also with Mokee kernel that is much more battery demanding without this script.
Click to expand...
Click to collapse
I wrote my last post in a hurry and forgot to mention that after installing the script I lost RIL signal, which was not happening anymore since I upgraded to CM 10.1.3 Stable.
The only way to get signal back was to reboot the phone. The battery drain can be due to phone desperately trying to get a signal. This behaviour was quite common until Sept.23rd, when I upgraded.
As I uninstalled the script, the situation was reverted to normality.
95 cvt
I have added in the first page 95cvt that only plays with the wake locks and thus give a better battery life but does not change the other parameters also from Ezet :highfive:
Tried it on zaiben rc6+iodak v8, can't feel signifant improvement on battery, best manage to get just 2hr in single full charge, the rest mostly can achieve 1hr+ battery life only.
You guys understand there isnt anything in that script that will realistically increase battery life? Ezet would have made this script because iodak would have applied these parameters at the initrd level since anykernel replaces iodaks initrd, they have to be applied at the android level.
The first command scales the clock speed up to 750mhz on touch input, the second enables cpuquiet (which should be enabled by default, im not sure why it wouldn't be.) the third makes cpuquiet use the runnable governor (I believe balanced is more orientated to battery life, but this can be changed in trickstermod for example)
The rest of it disables ipv6, sets tcp buffer sizes and modifies some permissions, i dont think Ezet would have modified this from iodak's settings, but he can correct me if im wrong
JoinTheRealms said:
You guys understand there isnt anything in that script that will realistically increase battery life? Ezet would have made this script because iodak would have applied these parameters at the initrd level since anykernel replaces iodaks initrd, they have to be applied at the android level.
The first command scales the clock speed up to 750mhz on touch input, the second enables cpuquiet (which should be enabled by default, im not sure why it wouldn't be.) the third makes cpuquiet use the runnable governor (I believe balanced is more orientated to battery life, but this can be changed in trickstermod for example)
The rest of it disables ipv6, sets tcp buffer sizes and modifies some permissions, i dont think Ezet would have modified this from iodak's settings, but he can correct me if im wrong
Click to expand...
Click to collapse
It worked also in Mokke kernels and this why I opened the post...
It improves grately the battery life when the phone is not active and that is also important!
You can also use the other script that is not tweaking the data speed.
Can u repack it for stock roms ? Is it possible?
Sent from my LG-P880 using XDA Premium 4 mobile app
emre81tr said:
Can u repack it for stock roms ? Is it possible?
Sent from my LG-P880 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
This script is for all roms
alberteske said:
It worked also in Mokke kernels and this why I opened the post...
It improves grately the battery life when the phone is not active and that is also important!
You can also use the other script that is not tweaking the data speed.
Click to expand...
Click to collapse
That's not true. This script does not improve. I have tested several weeks, without success. I am sorry.
Best regards
varadinum said:
That's not true. This script does not improve. I have tested several weeks, without success. I am sorry.
Best regards
Click to expand...
Click to collapse
As mentioned in first post, the script was made by Ezet to improve battery life with iodak kernel.
There are a few that report the benefits of this tweak.
The script save battery especially when you do not use the phone and improves the speed of data when you use it.
I unpack the tweak and try it with Mokee kernel and it also gave longer battery life..
I posted to see if it is the same with other kernels and ROMs.
The result is that it varies from one ROM and Kernel to another.
I am on CM ROM and Mokee or Iodak kernel and it worked really fine.
Nevertheless it seems that from December releases, I would say that the script does not make much difference.
Probably Cm team fixed the wakelocks issues but I was unable to see it in the changelog.