yashsingh1/xdaforums huggingface dataset:
[Verizon Samsung Galaxy S III] Hulk0069:
https://www.youtube.com/watch?v=FhH4Gf8Az5o&feature=youtube_gdata_player

You be the judge

Sent using xda premium
[Verizon Samsung Galaxy S III] sRDennyCrane:
Outstanding... the FIRST unbiased analysis of this app.
[Verizon Samsung Galaxy S III] cbrehob:
People who say it's a placebo are the ones who are pissed they didn't discover it first... What it seems like to me. *shrug*
[Verizon Samsung Galaxy S III] aj8600:
I'm pretty sure the placebo that the google Dev was talking about was wiping battery stats to calibrate. That and linaro, both were discussed as placebos. I'm not sure exactly how this speeds up the phone but if it's one of those two then people are correct when they say that a Google Dev did call them placebos. If not, then I think it's all good. I'm gonna try it either way!
[Verizon Samsung Galaxy S III] malo1m:
A bit of speed over battery life I guess is where you have to choose here. But as the video says...nothing you cannot do already with a kernel and proper tweeks
[Verizon Samsung Galaxy S III] :
This seeder app seems almost the same as the v6supercharger program
[Verizon Samsung Galaxy S III] Chuckleb0ne:
Yea I guess you could say that. But the V6 skript makes the battery run hot.
[Verizon Samsung Galaxy S III] TXI Kaze:
Never had that issue.
[Verizon Samsung Galaxy S III] :
I had bad battery heat issues with v6. Charging with ktweaker kernel fast charge on and mobile browsing. Phone would actually shut down.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Gaming Mode Script

As you all know our phone with ICS update struggles in gaming even at games that don't use a lot of ram.

The constant restarting of services that were killed are simply drag every game to hell.

There are many apps in Play Store that are doing what my script does.

But the problem is that most facing a problem in closing the swap file and they just re-enabling it.

That's a problem because even with a class10 SD card the phone is a lot laggy with swap.

Programs need seconds to open and to go to homescreen sometimes needs even 5 seconds and more.

Here's the solution. A simple switchable Script that will give you the extra juice only when you want to game hard.

UPDATE:

Added swap in partitions.

Requirements:

Needs working Busybox and SU

Instructions:

1. Copy the script from inside the appropriate zip to /data or /system and make the permissions to rwx-rwx-rwx (0777).

2. Use Script Manager or what you want,

and make a widget in your homescreen for easy access. Be sure to enable SU in options!

Also install SM widgets so you can set your script as a shorcut in homescreen. That way Smanager will not take any RAM.

3. Tap the widget and after it's done close SManager and you are ready to rumble and enjoy lag-free games.

4. After you are done, press once again the widget and the swap file will be removed. Enjoy your phone back to it's lag free condition.

swaponoff.zip for swap in a file

swappartonoff.zip for partitioned swap

Config:

You can change preferences by editing the script. DON'T use notepad! it will break the unix encoding that it's needed for the script busybox commands.

SWAP_FILE: Where to save the swap file.

SWAP_SIZE: Swap file size in MB. Default is 128MB

SWAPPINESS_OPTION: How much to swap. Default is 10, to avoid unnecessary swapping.

For partitions chage SWAP_PART="/dev/block/mmcblk0p3" Change 3 to what your swap partition number is

Notice:

That will give you lag free games only. Using swap always on will make your phone laggy in general usage.

Also always close the swap file before connecting the phone to usb mass storage!!

Credits go to mrvek for his swap script, which I used as a base.

If you like it, please press thanks!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] odie70:
did this script need partition swap or not?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] xeraphael:
Can I ask why will a swap file increase gaming performance? If it does, why will it lag the phone during normal use? What's the difference?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] MrTapa:
The system can push te apps into swap. Without need of to kill them(before it kills tehm but they keep restarting afterwards so this is why some games lag) Some other games need alot of memory to even start. So when you have swap. the game can use all the 300mb ram(at least 30 are for frameworkcs, etc)

And CTCaer. I think you shall add that it srecommended to use swap partition. Its better ... at least for me
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Nope. It makes use of your sd card. It mounts a certain file there.

A partition for swap was never needed. Also if you use for example noop i/o scheduler for sdcard, this will make the need for swap partition obselete. Because it will not prioritize the writing/read and will work like if you had 2 partitions in sd.

Well in ICS every library and framework and the default use of gpu make use of a lot ram. More ram than GB.

Most games need 60-120mb ram to play.

That makes android to kill services running, like widgets, homescreen, messengers and more to free ram.

The problem is that many of them the restarting almost immediately (like whatsapp) and others restart like normal when android sees that

there's free ram (like when you enter a menu in game, ram usage drops).

That creates an endless loop and make the games laggy and the worst of all makes the touchscreen unresponsive.

So the extra virtual ram helps so that these services remain open and not make an impact in your playing by restarting endlessly.

Android and in generally linux makes use of swap only for apps that are not needed.

That means that your game will be mainly in the real ram and will not lag.

In contradiction swap will make your phone laggy for general use because every time you open an app, another app or services will use the swap file (like homescreen).

So when you return to homescreen or to an app that is cached in swap, android will retrieve it from it to the main ram.

This will cause a delay to opening the map and a general lag feeling for 2-5 seconds (according to how much of it went to swap).

I even disabled zram for almost that reason (it takes cpu cycles), as i needed it for game before using swap only when gaming.

To sum it up,

only one thing I saw from using this script when gaming: ALL games now feel like i have gingerbread in my phone.

Only downside is that some gameloft games need a little more time to load, but when android gets done with swapping the unused services, it fades away.

Extra tip: Enable swap when using google maps. Same win like games
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] mvoid533:
Whats the different with ram xpander apps

I used this apps and create 1020 Mb memory swap

This apps used my sd card for supporting the internal memory

And this minimize the force closed apps when we need a lot of ram to open hard apps
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
The only difference is that with my script you don't need an app and that app will take ram as it's always there.

And because some swap apps don't let you disable easily or even at all the swap.

The script is mostly for people that want to have extra virtual ram only when gaming or using google maps.

And btw if needed i can make a script like that for swap in partition.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] mvoid533:
So how to create it

Or i am just edit your script from 128 to 1000 Mb swap
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Check OP i've added for partitions.

just fix the number of your partition.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Will Hong:
Turning off swap doesnt work:(

when I tap the widget with swap on, It doesnt erase, nor stop swapfile and it just give me errors

Here is the result when I try to disable swap file:(:(

exec /system/bin/sh '/mnt/sdcard/swaponoff/swaponoff.sh'

n/sh '/mnt/sdcard/swaponoff/swaponoff.sh' <

/mnt/sdcard/swaponoff/swaponoff.sh[8]: grep: not found

write: Broken pipe

Gaming Mode Script

by CTCaer

credits to mrvek @ XDA for the original script.

Creating SWAP file of 128 MBs...

dd: can't open '/mnt/sdcard/.swapfile': Text file busy

Fromating SWAP file...

Setting up swapspace version 1, size = 134213632 bytes

UUID=f7040068-5019-4fd0-b8e6-1231df0545b8

Enabling SWAP...

swapon: /mnt/sdcard/.swapfile: Device or resource busy

Done! Ready to game!

I hope you guys have answer to this problem :o
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Will Hong:
Well after updating busybox, problem was solved :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Yeah, i forgot to write it. I'll update the OP and say that it needs busybox.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] mvoid533:
Yeah it work

I made 256 Mb swap

So if I am not a gamers

I cant use it

Hahahhaha

Lol

:D:D
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Well if you are not a gamer it's not needed. 347mb ram is plenty for everything in our phones except google maps and chrome :P
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] mvoid533:
No its not enough

Cos I have used smart experia Rom

And needs a lot of ram

Cos I have some lag on the root eksplorer

And more

FB sync to much : Timescape, walkman, album, etc. Its sync to fb and I need more ram I guess
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Ah well i have completely removed facebook integration and timescape from my rom.

But i have Next Launcher that gets 25-35mb ram and it's locked in ram. Beatiful widgets, switch pro widgets, contacts, whatsapp and more that are open and it never lags with or without zram.

Anyway if your rom needs more ram then this script is not good for the swap to be always on. Better stick to an app that will auto switch it off when mounting to mass storage and to auto start it at boot.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] mvoid533:
Thank for the suggestion

I used razr m homescreen with circle 3d widgets and new jb Sony home

I think everythink will be ok

:D:):D
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] odie70:
well that's sound's good,, thanks,, i'll try it!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
No problem. Not every user has the same needs. Because i made a script doesn't mean that will work good for anyone.

Thats why XDA exist. To share and learn.

My script is for users who need that extra juice only when opening an app that demands a lot of ram.

I uploaded a script for partitioned sd cards if you want.

But yeah that's how it's done.

With deadline and swap in scard, your kernel will prioritize the read/write to the sdcard between reading files for your game and read/writing for swap.

Noop will use 1st in read/write command -> will be the 1st out.

If you use a partition for swap and deadline, android will prioritize the read for your game only.

The scheduling of read writing for swap partition and together with the game will fall to SD Card. Which is like noop. 1st command in ->the 1st to be executed.

I hope i explained the main differences about swap on file or partition.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] PablooRupertooo:
Install Ram Manager instead. lol
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Will Hong:
not working on cm10 with latest busybox installed

Sent from my Xperia Ray
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
That script is not rom dependand.

It only needs root, busybox and a kernel that have swap support.

Start with your kernel. Check if it supports swap.

Check if the program you use to run the script takes root rights before executing it.

About busybox the script will only not work if you don't have the path to busybox in PATH.

Normally PATH=/sbin:/vendor/bin:/system/bin:/system/xbin.

In bold are crucial ones.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] matgras:
Supports the stock ray rom swap?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] jmurugesh:
Whether CTCaer v2.51 Kernel is Swap supported

Hi CTCaer,

The script is not running due to permission issues. It is not able to create the deirectory structure "/proc/sys/vm/swappiness". Any suggestions?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
the commands do not change whatever swap code you use.

So yeah it's working. Also don't confuse swap with zram.

Even if it fails to write at swappiness, as long as the other commands run fine you don't have a problem.

swappiness is a little optimization to make the kernel not use swap without really needing it
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] matgras:
I never used an script before, and its not working, i followed the steps and checked them twice, see here some screenshots

sony xperia ray

ics 4.0.4 rooted

stock rom
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] yousufhere:
I also have same prob!View attachment 1811155

Via XDA Premium
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
You can't save the script at / and then find it there again after a reboot.

/ is rootfs and get's wiped after a reboot. Save the script to /data or /system with full permissions and it will work.

Well that's not the same.

The swappartonoff script is for swap enabling on partitioned sd cards.

That means that you must have a partition which has a fat32 (mmcblk0p1), a ext partition (mmcblk0p2) and a swap partition (mmcblk0p3).

If you really have partitioned your sdcard and you missing the ext partition or you have more than 3 partitions,

you have to edit the script and change mmcblk0p3 to what your swap partition is in your sdcard.

If you don't have a swap partition use the one (swaponoff) that makes a swapfile in sdcard fat32 partition.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] yousufhere:
Ok got it bro

Via XDA Premium
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] matgras:
Thanks ctcear, i think i will try your kernel out soon :D

sony xperia ray

ics 4.0.4 rooted

stock rom
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] firdyRAY:
CTCaer, please provide step by step instruction. Its not very clear.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Vic.:
I don't have any problem enabling swap, but when I try to disable it this comes up:

root@android:/ # exec /system/bin/sh '/storage/sdcard0/swaponoff.sh'

Gaming Mode Script

by CTCaer

credits to mrvek @ XDA for the original script.

Creating SWAP file of 256 MBs...

dd: can't open '/mnt/sdcard/.swapfile': Text file busy

Fromating SWAP file...

Setting up swapspace version 1, size = 268431360 bytes

Enabling SWAP...

swapon: /mnt/sdcard/.swapfile: Device or resource busy

Done! Ready to game!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] matgras:
You have to put it in /data or /system

sony xperia ray

ics 4.0.4 rooted

stock rom
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Vic.:
It's in /data now with the right permissions and it still doesn't work.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] matgras:
You have unzipped it?

sony xperia ray

ics 4.0.4 rooted

stock rom
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Vic.:
Of course I did, I'm not that stupid lol. I've tried to run it from /system too, it still doesn't work. I have zRAM disabled btw.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] matgras:
Well i forgot to unzip it the first time,

I think you will have to wait until ctcear will help us out again :D

sony xperia ray

ics 4.0.4 rooted

stock rom
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Instuctions for what exactly?

The script must be saved at /data or /system partitions with the right permissions (rwx-rwx-rwx, 0777)

Then run it as root.

Creating SWAP file of 256 MBs...

dd: can't open '/mnt/sdcard/.swapfile': Text file busy

For some reason it can't grep /mnt/sdcard/.swapfile from /proc/swaps and so the switch (that decides to enable or disable the swap) doesn't work.

Probably of busybox version. I'm not sure though...

Inside the script you can see `cat /proc/swaps | grep $SWAP_FILE`

It greps /proc/swaps for /mnt/sdcard/.swapfile. If there exists it understands that swap is on and proceeds to disable it.

For you it goes to enable part..

I can't propose you something else than try to reinstall busybox.

Also if you use stericson's busybox don't update to latest one because it has some problems and it's unstable.

The latest stable version is 1.20.2 as shown at: http://www.busybox.net/

The script is tested with busybox 1.16.2-android-minimal (recovery, sbin) and 1.20.2-stericson (/system/bin, xbin).

ps: Also have in mind that if it's working sometimes you cant disable it cause of heavy usage of swap. It disables after several tries though.

But the above line is not your current problem.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Vic.:
I've tried with busybox 1.20.2-cm9 and 1.19.4-cm9, both installed through Busybox Installer from Google Play, still no luck. I've checked /proc/swaps and it's empty.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Hmm if /proc/swaps is empty then it's disabled.

Restart and delete /sdcard/.swapfile

And run the script to enable it.

Check /proc/swaps and see if it's really enabled

After that try to disable it.

If it does the same check swaps if it exists.

I don't know why this happens though.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Vic.:
Checked /prop/swaps, it's still empty after doing that :confused:.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
What kernel you use? It has swap?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Vic.:
I'm on Fusion 5.0, I can't see swap mentioned in the OP, but when running the "free" command in Terminal Emulator it shows the used and free values of swap, so I guess it works.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Swap shows on free command for 2 reasons. For zRam and/or swap.

You have to ask the kernel's thread if it really supports swap.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Vic.:
I have zRam disabled, and the size show for swap is right, so I'm pretty sure it supports swap. Also, the phone gets laggy when activating it.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] matgras:
How to disable zram?

sony xperia ray

ics 4.0.4 rooted

stock rom
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
It's not so good to disable it. It's better to lower how much data can commpress.

For disabling rename /system/bin/zram.sh to zram.sh.old

If you want to lower it you have to edit the script and lower the number 60 to a lower one.

Have in mind that 60mb is not the ram usage. But how much it will commpress.

For example if it can take 60mb of data and compress it to 24mb then it will use 24mb.

If you want to lower it just change it to 16 or 30
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] doujinsinner:
got some question to ask. Is stock kernel support swap files?

thank.

Sent from my ST18i
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] matgras:
Yes, as said before

sony xperia ray

ics 4.0.4 rooted

stock rom
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Yes stock ics kernel has swap.

You could have tried anyway.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] digitalac3:
Swap file script working without any problem :D but I have been trying to play Gears and Guts for sometime but it always FC before getting to the menu while loading. I have used many roms and kernels (ics based) but the problem still the same. I thought this script will help but unfortunately no. :( Any idea? :confused:

Thank you.

Sent from my ST18i
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] firdyRAY:
Can someone please teach me step by step? I'm using Ultimate HD with CT Caer 2.8.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Davest87:
I try this script for gaming (swaponoff.zip for swap in a file), but doesn't work for me. I have Xperia ray Atomic GB (2.3), stock kernel with init.d support and last busybox, but I have this massage:

Enabling SWAP:

swapon: /mnt/sdcard/.swapfile: Function not implemented

Any idea? :confused: THX
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
This script needs a working full busybox for android. I use busybox (stericson) with no problems.

Also if a game FCs you need to lower the foreground (1st) minfree.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Davest87:
I have already installed busybox stericson, I chose normal mode installation, not smart mode. Is correct?

Sorry I noob, but what does FCs mean? I don’t understand the second part. :eek:

I have some reboot to home screen, when I play to Real Racing 3.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Well always use smart, because some modules shouldn't be replaced.

FC means force close. It happens when the phone doesn't have enough memory, even after killing uneeded apps, and then it kills the app you are currently viewing.

Sometimes users use "FC" for a bug that crashes the app though.

So probably what happens with RR3 is that the game get's killed and you are booted back to homescreen or the previous app.

If in the Foreground applications you only have Android system, phone, SystemUI and some other system apps (like customizationprovider)

and your app get's killed, I don't think there's a way to really run it.

The system must 1st heavily do swapping in order to reduce the ram usage of these. Then probably it will run.

Unfortunately many games now exceed 200mb ram and in many cases these do not run on xperia 2011.

As always, for hardcore gamers, the best roms are the gingerbread ones.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Davest87:
Thanks for the explanation, very good! :good: :victory:

But I reinstall busybox with smart installation, but I have the same problem.

I have a GB rom by the way, and is this script compatible on GB? :confused:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Oh, just saw that you use stock GB kernel.

The stock gingerbread kernel doesn't support SWAP.

Try to find a stock based GB kernel for your device that support swap (it will say on features list probably).

As for proposing one, I can't. I am using ICS since summer of 2012. The last I used was aire's kernel (4pda.ru). I think it was version 7.6uv.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Davest87:
Oops, my fault! :p I can't change kernel, I have bad block in Nand memory and I can't flash custom kernel (phone bricks).
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
If it's indeed a bad block and not a locked bootloader, then yeah, you can't use swap with GB.

But if you value your HD gaming, stay on GB.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] JpDany:
The script doesn't seem to execute in my phone:( everytime I run it I get this sequence...
[Eee Pad Transformer Accessories] joeleenus:
Hello!

I have had my TF101 for little over a year and have it rooted and running Revolution.

However, I have recently began to use the pad for more work and noticed that the i, u, h & b keys are not working.

I have had a look about and think this is probably a hardware problem that I have spotted ridiculously late and need to send off to ASUS?

However, when rooting I did not have the dock connected. Would this have any influence? Does anyone have any suggestions or is it as I fear a hardware issue?

Thanks in advance!
[Eee Pad Transformer Accessories] kenshin1388:
The only thing I could suggest is to try to run a key test in recovery. If other keys work but those still don't appear then its a hardware problem.
[HTC Droid DNA] Jinsuke32:
I couldn't find this question asked anywhere else so I was just wondering if the DROID dna uses sharps igzo display or not
[T-Mobile Samsung Galaxy Note II] witeboy07:
A new updated video showing the powers of this gadget. For those looking to get a look at the note 2 before they shell out their cash.

https://www.youtube.com/watch?v=rVu_CvIgnNA&feature=youtube_gdata_player
[T-Mobile Samsung Galaxy Note II] Hgaara:
Dang... 22 minutes... is there a cliffnotes somewhere?
[T-Mobile Samsung Galaxy Note II] witeboy07:
It's a video about fun and interesting stuff