yashsingh1/xdaforums huggingface dataset:
[XPERIA X8 General] SpyderX:
Use script manager and set /etc/init.d/99supercharger to run at boot to stick. I think that it is better than Juwe's ram script. I love the no launcher redraws :D.
[XPERIA X8 General] Pjay12:
Ok ill try that :-)

Edit - My results after trying the supercharger script..

Running on GingerDX007 (updating to 008 today THANKS DX)

No overclock.

After running the script on option 6 (Balanced 3)

Free RAM went from 20-30 to between 50 and 60. Even after it drops back to 30 everything is smoother. Including scrolling in GingerDX which, with a lot of apps tends to get a bit laggy (for me at least)

Games don't have that much of a difference. NFS still has occasional lags. Asphalt lags quite a bit. (possibly cos I have a lot of apps installed) Overclocking to 691-729 should solve that.

Personal differences - Phone is a lot smother. Even after continued use it runs smooth. Multitasking is like a dream. Listening to music while facebook, gmail and something else were updating in the background and playing angry birds (theyre so cute :D) and later using xda app. And when you click the home button launcher pops up like whoa! (disable CM settings lock home in memory) No probs with SMS pop ups. First script that I noticed any difference. Hasn't affected battery life at all.

My recommendation - Try it and see if it works for you. Its really simple to run. Any questions, Ill be glad to help with what I can.

@spyder12345 - Could you please explain -

Whats ext4?

How does dalvik2sd work?

And on what option do you use supercharger?

Thank you!
[XPERIA X8 General] Dexter_prog:
that doesn't work with gingerDx. Values still get reverted.
[XPERIA X8 General] XperianPro:
Simply after reboot value become old where task manager free ram at 60 MB of free ram
[XPERIA X8 General] Dare-Devil Inside:
My phone rebooted when I came to this
[XPERIA X8 General] Dexter_prog:
but if the values don't match, then it is not working.
[XPERIA X8 General] Pjay12:
I ran the script twice. It said Minfree values match the script values. Cant remember exact wording but it matches. Daredevil did you put the script on your sd card and script manager on your phone?
[XPERIA X8 General] Dexter_prog:
does it match for your after rebooting?
[XPERIA X8 General] Pjay12:
I didn't try running on boot yet. When I have access to a comp with Seus (just in case) ill let you know
[XPERIA X8 General] Pjay12:
Running on boot option doesn't work. I'll do some digging around. Also, some memory management apps reset Minfree values. If you have any, freeze them and try. I'll dig around and tell you if I have any progress. Running the script once activates it until the next reboot. At least that's what I understand.
[XPERIA X8 General] Dexter_prog:
Yeah. I am not using any other ram managing apps. Maybe there's something in the init.d folder overriding this script's settings?
[XPERIA X8 General] Pjay12:
I'll look into it. Did you try running the script once to set the values. Then choose option 17. Exit to home screen, then run the script again and see if the values match. Then try things on your phone that were not smooth earlier. Tell me if you notice any differences :-)
[XPERIA X8 General] Dexter_prog:
From the first time I run the script I noticed my phone smoother already (I guess it has to do with the re-sorting of app priorities it does). The values stick until I reboot.
[XPERIA X8 General] Pjay12:
Yep.. Ill full wipe and try it on a few roms. Atm im testing the different options. The multi task option (7 I think) seems to be working pretty well. Im gonna try aggressive mode for gaming. And see how it works along with smartass.

EDIT - I got it to run on boot. Sometimes it works, sometimes doesn't. Trying to figure out the prob. Ill post soon (hopefully)
[XPERIA X8 General] SpyderX:
I use aggressive 1. And yeah, even the run script at boot doesn't seem to stick. I suppose the only way is to not reboot, it should still work without rebooting. Ext4 is an extended filesystem for linux that includes some tweaks, on android it is used on the sd card for moving all apps insed in /data the sd card automatically every app install. It also increases I/O score. Dalvik2sd is moving the dalvik cache which takes up a lot of space in internal memory to the ext partition on the sd card.
[XPERIA X8 General] Pjay12:
Ok I dont know what I did but I got the Minfrees to stick for 2 reboots and now its not sticking. The hard to kill launcher and all the other tweaks stick. Just the values are reset.

What I did-

1. I ran /system/etc/init.d/99SuperCharger as root from boot using script manager.

2. Download Autostart (root) from market and ran /data/opt/autostart.sh (renamed various scripts to autostart.sh and chmod 777 both opt and aurostart.sh)

3. Tried editing hw_config.sh and tasker (with locale plugin) to run the script from boot, without any success. (This was more of a desperate attempt. Didnt expect either to work)

Other - Tried running various scripts from sdcard, /data/SuperChargerMinfree, but no success there either.

You're welcome to try your luck. I tried it on full wiped GingerDX 008 (GingerDucks! :D) and full wiped XGin5.4. I can guarantee I got the values saved for 2 consecutive reboots . I thought I had solved the problem but after a few more tests it went back to resetting values. I shall look for more possible solutions. Maybe creating a script based on what SuperCharger.sh does AFTER entering option 6 and using script manager/autostart to run it on boot. Ill need a little help with that if Im gonna attempt :)

How does ext4 and Dalvik2sd affect your phones performance? And will class 4 SD suffice for this? aaaand.... could you explain to me how to do those 2. Or links to threads regarding ext4 and dalvik2sd? :D
[XPERIA X8 General] SpyderX:
Dalvik2sd is done once you partition sd card to have an ext partition. The way to partition is dependent on which ext you want. Don't partition to ext3 permanently as ext4 is better and does the same thing. Ext2 is faster than ext4 but ext4 has less chance of data loss. Generally you can use minitool partition manager or paragon to partition to ext2 or ext3 or ext4. Cwm recovery partitions to ext3. Both methods will erase everything on your sd card so backup the stuff to the computer before partitioning. If you are on ext3, you can upgrade to ext4, just search on google about methods to upgrade ext3 to ext4 using terminal emulator or adb shell. And these will slow down your phone slightly. Search for the appropiate steps online because it is complicated to explain here. :D
[XPERIA X8 General] Pjay12:
Ah k. Thanks (pressed it :P) erase my sd card huh.. I already have like 12gb used on it.. ill hold off for now . The copying will take forever. Thanks again :D and if you come across any way of getting supercharger values to stick please let me/us know :D
[XPERIA X8 General] SpyderX:
Maybe doixanh will know the answer...
[XPERIA X8 General] Pjay12:
That guy is like a demiGod of programming. He'll do it in a few mins lol. Thing is someone(s) already pis*ed of Racht and I dont want to risk bugging doixanh for something like this. He's into development of GingerDucks (Hes SENSIFYING IT!! THATS SO COOL!) Im trying to get it to run on boot for convenience. He knows the thread exists and if he sees it and decides to help......... I dont want to ask him. Not just yet anyway :) Ill keep poking my nose in all the wrong places till I get the right one. Until then....

For other users - rename the script to v6.sh and save to sdcard.

After each reboot, just run Terminal Emulator and

su

sh sdcard/v6.sh

Press 0 when it asks for the first option

Press 6 (or any other digit depending on which option you want)

Press back or home button

TA-DA!

Whole process takes less than 30 secs. And with this running, you won't need to restart to free up RAM :D (I've tried AMM, AKMO, Juwe's script, Task Killers, Fast reboot, Overclocking, a few more and nothing works like this. Trust me)
[XPERIA X8 General] Chris_Castro:
It works on my FroyoBread 023b...Can't get fixes to stick. I'll run the script after each reboot. Phone does feel smoother.
[XPERIA X8 General] SpyderX:
So can it be concluded that this script is useful for x8 users? This may prevent many complaints about lag.

And yes, my username changed, for those wondering.
[XPERIA X8 General] Pjay12:
Okay. Glad its smoother for you. Anyone else who tries it, let me know what you think. If I helped hit Thanks :)

Progress - (or what I think is progress)

I messed around for hours with all sorts of sh files and script running apps and all the jazz I could think of. I think our minfree values dont stick becaaaauuse...... The script is supposed to edit local.prop. But, before running the script and after, the values weren't changed. Also there's supposed to be a ro.CONTENT_SERVER value (I THINK!!) but its not there.

Im going to try editing local.prop directly..

Edit - that didnt work..

Edit2 - Ok. I found a sort of a work-around. Im sure a lot of you have done this. Get Auto Memory Manager, grant root access.

Click menu > Preferences and make sure Use Expert Mode is ticked.

Click menu > Advanced

Foreground Application - 6

Visible Application - 8

Secondary Server - 26

Hidden Application - 28

Content Provider - 30

Empty Application - 32

After a reboot just start AMM and click Apply. If you want to test, run the script after you click apply and see if the minfree values match. Its faster than running the script every reboot. Use AAM only to set the values. Hard to kill launcher and the other tweaks from the script are saved. Temporary solution. Tell me if it doesnt work.
[XPERIA X8 General] Dexter_prog:
I value your work, man. I guess I am gonna do that as well. I wonder if we can get DX to take a look at this. Being it his rom, he problably understands better than us what can be causing the values to revert to stock ones.
[XPERIA X8 General] Chris_Castro:
MinFreeManager

I found this app at the Market:

https://market.android.com/details?...d=com.dustypixels.minfreemanager&rdot=1&pli=1

You can apply these settings directly and apply at reboot. When I rebooted the phone, the app was presenting the correct settings: 6, 8, 26, 28, 30, 32. No need to run the script again. But here's the catch:

I tried to run the script to make sure V6 SuperCharger was in place. It showed that settings were NOT as previous script...:confused: I exited the script (17) and phone seems smoother as it was. More important, I had 82 Mb free RAM! :D (I used to have 45-52 Mb tops! I don't know what matters most.

Any advice? Hard to Kill should be in place (saved) and all other tweaks? If that's the case, this app can fix the situation.
[XPERIA X8 General] Dexter_prog:
Oh, that one sounds good too. Gonna try that one first (as I already know AMM). Thanks!
[XPERIA X8 General] Chris_Castro:
V6 Supercharger

Script its good as you may want to go aggressive, then you check the settings for MinFree, and apply...Or other way around.:D
[XPERIA X8 General] Pjay12:
Good find. But with minfree, I have to re enter all my values. Or select the custom option and then apply. I'm trying to figure out the local.prop problem..

To your post - none of the apps- script manager, AMM, and now minfree something do not set the values at boot. Thats what I'm trying to figure out. I thought it might be the rom root problem but it's like this on cm6 as well..
[XPERIA X8 General] kuyagaol:
are the most of you using gdx?

because since dx fix 3mp camera, my v.3 rom which use several gdx lib is lag when using live wallpaper (at launcher drawer).

now i just try gdx8, and having the same issue.

all cm7 before 3mp camera didn't have this.

Idk if the fixed lib causing this, maybe dx can look at it.
[XPERIA X8 General] Pjay12:
Yea im testing on GDX. You mean cam libs causing live wallpaper lags or minfree reset? Also, it is possible to bulletproof apps (other than the launcher) ill try it with live wallpaper and see if it helps.
[XPERIA X8 General] Chris_Castro:
MinFree shows the correct settings even after the reboot. The problem was that when I ran the script, settings presented were the original ones. However, since the phone is running smoothly, I believe MinFree has set the correct values at boot, so you don't need to run scripts anymore (unless you want to go from one setting - agressive to balanced, or the other way). Sorry for the post, I just wanted to give you a clear pic of what's going on with my phone. Thanks for replying. It would be great to have all set at boot.:)
[XPERIA X8 General] deedii:
Im confirming this one. ya it lags on live wallpaper my mini aquarium wallpaper, fish cant hardly play..
[XPERIA X8 General] Pjay12:
Ah. thanks. The scripts in init.d don't run... it's annoying.... lol fish can't play. Bulletproofing lwp won't work until the damn scripts run on boot. Tried Gscript as well..
[XPERIA X8 General] Pjay12:
After reboot, before running script or manually applying minfree values, please check sys/module/lowmemorykiller/parameters/minfree and tell me the values in that. Something changes that value every reboot. May be CM settings somewhere... lol so confused.
[XPERIA X8 General] zeppelinrox:
Why not have Script Manager load /system/etc/99SuperCharger or /data/99SuperCharger.sh at boot and as root instead of having another app set minfrees on boot?

99SuperCharger doesn't only load minfrees.

It sets the OOM groupings too.

So... if only minfrees are loaded on boot, nearly everything will be in the wrong slots.

The apps that are supposed to be in slot 3 will be in slot 5 instead and will be killed alot sooner than you would think.
[XPERIA X8 General] Pjay12:
Well well well.. The creator himself. Hello Sir!

I tried that. Thing is when I reboot, After a few secs I get the toast notification "Script manager has been granted superuser bla bla" but when I run the script on terminal, it says values do not match.Script Manager doesn't set values at boot. It was the first thing I tried.

I also tried making a script to automatically run what the script does AFTER pressing 6 (Balanced 3) but the script is interactive and im a confused person. Any solutions?
[XPERIA X8 General] SpyderX:
Settings still don't stick even with setting /etc/init.d/99supercharger to load on boot with script manager. Only minfrees don't match though, rest of the settings work.

Thank you, for your script, my phone is now blazing fast and launcher doesn't redraw. :D
[XPERIA X8 General] zeppelinrox:
You're welcome :)

Interesting tho... what busybox version are you guys using?

Another thing to check is to load script manager and run the V6 script to check the minfress after the toast notification.

I wonder if they get applied and then something else applies minfrees.

You can also double check the OOM groupings with AMM.

If AMM show groupings properly with most of your apps in slot 3, then the script ran since the groupings are correct.
[XPERIA X8 General] alfsamsung:
A huge load of credit to zeppelinrox for making the supercharger script:) I put all my tweaks inside the hw_config.sh file like this:

# we love fast sd speed
echo 512 > /sys/devices/virtual/bdi/179:0/read_ahead_kb

# sysctl and ram tweak
echo "0" > /proc/sys/vm/swappiness	#No swap	#60
echo "2000" > /proc/sys/vm/dirty_writeback_centisecs	# Misc tweaks for battery life	#500
echo "1000" > /proc/sys/vm/dirty_expire_centisecs	#200
#echo "200" > /proc/sys/vm/vfs_cache_pressure	#sysctl vm tweaks org	#100
#echo "80" > /proc/sys/vm/dirty_ratio	#10
#echo "40" > /proc/sys/vm/dirty_background_ratio	#5
#echo "1" > /proc/sys/vm/oom_kill_allocating_task	#0
echo "2048" > /proc/sys/vm/min_free_kbytes	#1869

# tweak launcher hard to kill from supercharger
echo "0,3,5,7,14,15" > /sys/module/lowmemorykiller/parameters/adj	#0,1,2,7,14,15
echo "1536,2048,7680,8960,10240,12800" > /sys/module/lowmemorykiller/parameters/minfree
echo "0" > /proc/sys/kernel/panic	#1
echo "0" > /proc/sys/vm/oom_kill_allocating_task	#OBS 2 of these
echo "0" > /proc/sys/vm/panic_on_oom	#0
echo "1" > /proc/sys/kernel/panic_on_oops	#1
echo "0" > /proc/sys/kernel/panic	#1

#Drain battery fix ??
mount -o rw,remount -t yaffs2 /dev/block/mtdblock0 /system
chmod u+s /system/bin/charger
mount -o ro,remount -t yaffs2 /dev/block/mtdblock0 /system

# remount (e.g battery fix)
mount -o remount,noatime,rw /dev/block/mtdblock0 /system

It's easy to edit and if i update or change roms, I put in my hw_config.sh file with all my tweaks.The values # on the right side is default GDX values
[XPERIA X8 General] zeppelinrox:
check my thread... just uploaded a couple of files for testing on the last page

http://xdaforums.com/showthread.php?p=16635742#post16635742
[XPERIA X8 General] Pjay12:
@Zeppelin - JRUMMY16's busybox says v1.15.3

Titanium Backup says Busybox 1.18.4-Titanium from app

idk which one it is lol.

After toast notification, values are unchanged. Values do not match.

Also, like in alfsamsung's post I put the line

echo "[The minfree values of Balanced 3 setting]" > /sys/module/lowmemorykiller/parameters/minfree

in hw_config (without the "") edit- (didnt work lol)

Ill test the 3Gsupercharger. Ill post results here (if you dont mind? :) )

@Alfsamsung - Do your minfree values stick on boot with that added to hw_config?
[XPERIA X8 General] alfsamsung:
@Pjay12 Yes they do stick.Just did a test.

In addition I use Tasker to run this script when screen off or on with some delay.First value is screen off.

#!/system/bin/sh
if [ $1 == "on" ]
then
echo "2048,3072,12800,15360,16640,17920" > /sys/module/lowmemorykiller/parameters/minfree
else
echo "1536,2048,6144,6912,8960,11520" > /sys/module/lowmemorykiller/parameters/minfree
fi

If the screen have been off for a while I have a lot of free ram.
[XPERIA X8 General] zeppelinrox:
I'd use at least version 1.16.2

Titianium version is only used internally by Titanium...
[XPERIA X8 General] Pjay12:
Great! I copied your hw_config, will test asap with my values :)

How did you config tasker to run the script like that. I read up on tasker only to see a couple of things. Could you please say how to run the script on screen off/on? Or link me to a thread? :D
[XPERIA X8 General] alfsamsung:
http://tasker.wikidot.com/rootbasic You need a plugin called Locale Execute Plug-in.Save the script to sdcard and use the plugin in tasker to run it.I use the on command for screen off.Important you need to give it root access,so run a test first so you can give it root.
[XPERIA X8 General] Pjay12:
Did some tests.. alfsamsung, I entered some values, but didn't stick. I'll post more results in a while. Gotta run lol.

Thank you alfsamsung. Although values didn't stick, startup seemed a lot faster. Phone feels smoother, not sure what you did.

Zeppelinrox, I ran kickass kernel something, not sure what it's supposed to do lol. Cant run 3G turbo charger. When I press 1 it says invalid.

Also when I installed busybox I read never to change it. So I'm gonna wait a bit before I try changing busybox.

If anyone, who has access to SEUS, (cos I changed it once and semi-bricked mine) can try it, please install the version zeppelinrox suggested and tell me if it boots properly. Thanks :-)

Btw phone is running a lot smoother, ill post a complete list of what I did along with a few benchmarks soon. Thanks to all of you :D
[XPERIA X8 General] Dexter_prog:
Thanks Zeppelinrox for coming here to try and exorcize our roms, haha. I'll try your suggestions soon and post the results back.
[XPERIA X8 General] alfsamsung:
@Pjay12 How are you confirming that the values are changed? I use root explorer and I have checked 99% of my tweaks, and they all "stick"

Note:Be carefull with busybox.The chance for messing up is big.
[XPERIA X8 General] Chris_Castro:
Great Thread!!

It's great to discuss with such talented people. Being a noob myself, could someone post a quick tutorial on the changes needed for the settings to stick?

zeppelinrox, your script is amazing. THANK YOU!
[XPERIA X8 General] Pjay12:
Yea. Values are reset on reboot. First time hw_config is failing for me.. ill try full wipe and try a different rom. When you reboot the settings in sys/module/lowmemorykiller/parameters /minfree are changed to your settings?

@chris- no confirmed method for doing this yet. Works for some people. Check alfsamsung's post a page or 2 back, copy his script, put your desired values and copy it to hw_config.sh. post your results :-)
[XPERIA X8 General] alfsamsung:
@pjay12 yes my settings works.I checked 2 times now.And it works via Tasker too.Are you sure you don't have some script in system/etc/init.d? What are your values changed too?Ramdisk values?
[XPERIA X8 General] Dexter_prog:
These are the ones I have in my idit.d folder. Could anyone of these be the one resetting Supercharger?

01sysctl

03firstboot

04modules

05mountsd

06gingerdx

06mountdl

10apps2sd

20userinit

And 99supercharger:
[XPERIA X8 General] Dexter_prog:
alfsamsung, are you setting tasker to run this script so that settings are set every time the phone boots?

I noticed that settings don't stick not even with Auto Memory Manager
[XPERIA X8 General] Chris_Castro:
Question

Do I have to copy all lines, or just the tweak launcher hard to kill piece?

Also, these values are different. For Balanced Option 6, It should read:

echo "1536,2048,6656,7168,7680,8192" > /sys/module/lowmemorykiller/parameters/minfree

For 6,8,26,28, 30 and 32?

Is this: echo "0,3,5,7,14,15" correct, also?

Thank you all in advance!

Any Help?
[XPERIA X8 General] zeppelinrox:
If AMM has superuser permissions, I'll bet money that you are loading AMM minfrees because AMM doesn't have an option to disable loading values on boot.

If AMM has superuser permission, it always loads minfrees when you boot up.
[XPERIA X8 General] Dexter_prog:
I didn't get your reply, but I set the values for Aggressive 1 on AMM and values didn't stick neither.
[XPERIA X8 General] zeppelinrox:
What values do show up?

V6 will tell you your current values, AMM won't
[XPERIA X8 General] Chris_Castro:
Well, here's an update:

I ran the script, Hard to Kill launcher was in place, and so was minfree values. I have MinFree Manager running, with settings applied at boot.

I rebooted my phone, guess what? I went back to MinFree Manager, values were OK. I went to check on Terminal Emulator, values were OK. So, I decided to go back to the script, see if it finally was OK.

Launcher was indeed Hard to Kill, but minfree values did not match previous script... Odd, hum? So, at boot, launcher is Hard to Kill...and minfree values are OK by MinFree Manager (and via Terminal Emulator)...why is the script saying it is NOT?

I'm confused.
[XPERIA X8 General] Pjay12:
Me thinks It's fixed. Few more tests. Will update soon.
[XPERIA X8 General] zeppelinrox:
Because the script is going with the file

/sys/module/lowmemorykiller/parameters/minfree

Which is where the values are.

Dunno where the other stuff is getting info from..

so you can put this in terminal:

cat /sys/module/lowmemorykiller/parameters/minfree

or just open up that minfree file with root explorer.

The numbers are in pages so just divide each number by 256 to convert to MB.
[XPERIA X8 General] Chris_Castro:
That's what I did (Terminal Emulator)

so you can put this in terminal:

cat /sys/module/lowmemorykiller/parameters/minfree

And the answer was OK. Still, the script was telling otherwise.