[Q] Swap not working "LT15i 4.1.B.0.431 " - Android Q&A, Help & Troubleshooting

HI,
It's my first post here and I'm glad to be a member on this fantastic website.
I have a problem with the swap partition on my device, Xperia arc.
I flashed my device to "LT15i 4.1.B.0.431 Generic Global World" follow by this post.
I found that lacking in memory so I tried to use swap partition and created 256 Linux swap partition on my SD card. But "free" commend still shows swap=0
However, I decided to use swapper 2. Still no effect and I couldn't get swap although swapper did its job without fail!
After few days search I found that the kernel doesn't support the swap, So, I tried to use "Kernel.sin unpacked and added CWM options" form here. It also didn't work, neither "init.d zram scripts from wedgess" from the same page.
However, I'm looking for help to use swap on my device or any suggestion that can help me to improve memory in my device.
P.s. I'm a newbie in Android and still don't understand it very well specially those names like rom and etc, but I have been using Linux (Fedora) for 6 years.

edanny101 said:
HI,
It's my first post here and I'm glad to be a member on this fantastic website.
I have a problem with the swap partition on my device, Xperia arc.
I flashed my device to "LT15i 4.1.B.0.431 Generic Global World" follow by this post.
I found that lacking in memory so I tried to use swap partition and created 256 Linux swap partition on my SD card. But "free" commend still shows swap=0
However, I decided to use swapper 2. Still no effect and I couldn't get swap although swapper did its job without fail!
After few days search I found that the kernel doesn't support the swap, So, I tried to use "Kernel.sin unpacked and added CWM options" form here. It also didn't work, neither "init.d zram scripts from wedgess" from the same page.
However, I'm looking for help to use swap on my device or any suggestion that can help me to improve memory in my device.
P.s. I'm a newbie in Android and still don't understand it very well specially those names like rom and etc, but I have been using Linux (Fedora) for 6 years.
Click to expand...
Click to collapse
Did you try manually turn on swap with "swapon"?
Also you can create swap in file.
Code:
cd <to your SD card>
dd if=/dev/zero of=swapfile bs=1024 count=65536
mkswap swapfile
swapon swapfile

Thanks a lot for your kind reply.
I flashed my device to cm10 and it works much better.
I tried to remove this post but I could not.
Thanks anyway for your time to read my post and reply.
Cheers.

Related

Custom scripts for Archangel root for firmware 2.0.71, 2.1.02, 2.1.03, 2.1.04, 2.1.08

Finally we have a method to obtain root that does not involve installing the SDE and that works on at least three different firmware versions. 2.0.71, 2.1.02, 2.1.03, 2.1.08. For all the details see http://forum.xda-developers.com/showthread.php?t=928767
This program has the possibility to execute a script after root is acquired. See the readme.txt of Archangel v2.
You can create a script in /sdcard/sdcard/extraroot.sh and this will be executed as root
whenever you reboot, so you can use this to do any additional root functions you want.
If you make an error with this script which causes you a problem then you can eject your
sd card and reboot and it then will not execute.
Click to expand...
Click to collapse
NOTE: For windows users. Please use Notepad++ to edit the extraroot.sh and convert the file to unix format. In the menu choose "Format" -> "Convert to UNIX Format". This option is available with version v5.1.4 of Notepad++ it has been reported that it's not available in other versions.
Please post the firmware version, your script and a little description here.
Firmware 2.1.02, 2.1.03, 2.1.04,2.1.08 - Disable Swap
Swap is automatically enabled in these firmware versions.
Code:
swapoff /dev/block/mmcblk0p3
To verify that swap is turned off go to the Terminal Emulator and type free
Code:
/ $ free
total used free shared buffers
Mem: 243824 230972 12852 0 4332
Swap: 0 0 0
Total: 243824 230972 12852
Another way to turn off swap permanently without using the a script is to disable the swap service. This can be done from within the Terminal Emulator with the following commands
Code:
$su
#setprop persist.sys.archos.swapctl.en 0
Then reboot the device.
This only needs to be done once.
Firmware 2.0.71, 2.1.02, 2.1.03, 2.1.04, 2.1.08 - Disable ads
Disable ads. This was posted by archaism1 here http://forum.xda-developers.com/showthread.php?p=10941853#post10941853
Code:
cat <<EOF >/tmp/hosts
127.0.0.1 localhost
127.0.0.1 pagead2.googlesyndication.com pagead.l.google.com googleads.g.doubleclick.net
127.0.0.1 api.admob.com mm.admob.com r.admob.com mob.adwhirl.com cus.adwhirl.com met.adwhirl.com
EOF
mount --bind /tmp/hosts /etc/hosts
I have not tested this myself because I think the devs of applications need the ads to make some money.
Firmware 2.1.02, 2.1.03, 2.1.04, 2.1.08 - Swap on sd-card
Disable swap on internal storage and create a swap file on sd-card. The swap is 256Mb big to change the size just adjust the 256 value in the script.
ATTENTION: it can take a few minutes the first time the script is executed.
Code:
swapoff /dev/block/mmcblk0p3
if [ ! -f /sdcard/sdcard/myswap ]
then
echo "Creating swap file"
dd if=/dev/zero of=/sdcard/sdcard/myswap bs=1M count=256
mkswap /sdcard/sdcard/myswap
fi
swapon /sdcard/sdcard/myswap
And here the result of free
Code:
# free
total used free shared buffers
Mem: 243824 241432 2392 0 6232
Swap: 262136 320 261816
Total: 505960 241752 264208
WARNING: if you use a swapfile, which is described here, you can't use a usb connection to copy files without disabling the swap with the following command.
Code:
$su
#swapoff /sdcard/sdcard/myswap
Credit for this goes to http://forum.archosfans.com/viewtopic.php?f=74&t=42718
Hondaracer posted some scripts I'll include them as attachments
Advanced stuff.
Loading kernel modules.
There was a post in another thread about CifsManager here
chulri was so kind as to build the module. You can download it here.
Unzip the downloaded file and place it in a directory under /sdcard I suggest /sdcard/modules/
Add the following code to the extraroot.sh
Code:
insmod /sdcard/modules/cifs.ko
and reboot.
Now you can install CifsManager and start mapping drives.
Disable swap without using scripts
In Terminal Emulator execute following commands
Code:
$su
#setprop persist.sys.archos.swapctl.en 0
I have to create a file named extraroot.sh and and put it in /sdcard/sdcard ?
Do I need to make it executable ? (chmod +x)
Does it work only with permanent root ?
Thanks
ben.daccache said:
I have to create a file named extraroot.sh and and put it in /sdcard/sdcard ?
Do I need to make it executable ? (chmod +x)
Does it work only with permanent root ?
Thanks
Click to expand...
Click to collapse
You don't need to make it executable it's executed with sh /sdcard/sdcard/extraroot.sh
And you don't need the permanent root option either. It is also executed when you push the button.
Have tried your "Disable ads" script and it works perfect
No ads.
Why disable swap? Is there any reason?
cu
pOpY
PS: is there any way to increase the app storage size without using urkdroid?
popy2006 said:
Have tried your "Disable ads" script and it works perfect
No ads.
Click to expand...
Click to collapse
Good to know.
popy2006 said:
Why disable swap? Is there any reason?
Click to expand...
Click to collapse
There is some concern that swap on internal flash may reduce the lifetime of the flash. i just posted a way to enable swap on the sd-card . This is safer as the sdcard can be replaced the internal flash can not be replaced.
popy2006 said:
Is there any way to increase the app storage size without using urkdroid?
Click to expand...
Click to collapse
I'll look into it but i doubt it.
oh, thats a good reason to disable swap on the internal flash.
But i dont have an sdcard yet
Why then archos enables the swap default?
cu
pOpY
popy2006 said:
oh, thats a good reason to disable swap on the internal flash.
But i dont have an sdcard yet
Why then archos enables the swap default?
Click to expand...
Click to collapse
I have no idea why this was enabled by default. You have to ask Archos.
Swap
Will Swapper for Root or Swapper 2 (for root user) do the same thing for us noob's?
Mod57 said:
Will Swapper for Root or Swapper 2 (for root user) do the same thing for us noob's?
Click to expand...
Click to collapse
From what I can see all the commands to manage swap are present on the archos so both will probably work.
I'll get back to you.
Mod57 said:
Will Swapper for Root or Swapper 2 (for root user) do the same thing for us noob's?
Click to expand...
Click to collapse
Swapper for root is no solution as the swap file is created on the internal flash.
Swapper 2 on the other hand is working fine. But remember to place the swap on the external sd-card /sdcard/sdcard/swapfile.swp
I still placed
Code:
swapoff /dev/block/mmcblk0p3
in the extraroot.sh to be sure the internal swap was off.
Swap
Thank you.
wdl1908 said:
Originally Posted by popy2006
oh, thats a good reason to disable swap on the internal flash.
But i dont have an sdcard yet
Why then archos enables the swap default?
Click to expand...
Click to collapse
I have no idea why this was enabled by default. You have to ask Archos.
Click to expand...
Click to collapse
Probably the realization that they screwed up with only 256MB of RAM.
ARCHOS PRESIDENT: We get lots of complaints about the small RAM... what could we do?
ARCHOS ENGINEER: We can always use some of the internal flash for a swap.
ARCHOS PRESIDENT: Won't that decrease the life of the flash memory?
ARCHOS ENGINEER: Yes, but by then we'll have Gen9 out.
ARCHOS PRESIDENT: Great... go with it...
argie said:
Probably the realization that they screwed up with only 256MB of RAM.
ARCHOS PRESIDENT: We get lots of complaints about the small RAM... what could we do?
ARCHOS ENGINEER: We can always use some of the internal flash for a swap.
ARCHOS PRESIDENT: Won't that decrease the life of the flash memory?
ARCHOS ENGINEER: Yes, but by then we'll have Gen9 out.
ARCHOS PRESIDENT: Great... go with it...
Click to expand...
Click to collapse
LOL Good one.
I'v been doing some testing with swap and i'v seen not a lot of improvement.
Some tests I did.
Disable swap
install the flash plugin.
Go to the site of archosfans with the stock browser
Play the first flash video on the site.
The result is that after the video has started all apps in the background are killed off by the android memory manager and even ADW launcher is killed.
So second test
Enable swap
Go to the site of archosfans with the stock browser
Play the first flash video on the site.
Check with the command free via adb
The result is exactly the same as above and only 10Mb swap is used.
So for me swap is useless under android.
I suspect the android memory manager kicks in before the linux kernel has time to swap out the programs to free memory.
I also suspect that non of the real android apps are swapped out to those 10Mb but only the real linux programs are swapped out. I can't verify it at the moment as the top command thats installed does not show if a program is in swap or not.
Confirmation that it works on 2.1.04 from ShadowZephyr
I'm kinda lost when it comes to the extraroot.sh file. I created a sdcard folder in the sdcard, copy and pasted the script into a .txt file and renamed it to .sh. I'm guessing its wrong since nothing is happening. Could any kind soul shine a light on this?
Do these scripts work with the overclock zimage? Can i just point to the extraboot.sh in the init.rc?
smile_gerard said:
I'm kinda lost when it comes to the extraroot.sh file. I created a sdcard folder in the sdcard, copy and pasted the script into a .txt file and renamed it to .sh. I'm guessing its wrong since nothing is happening. Could any kind soul shine a light on this?
Click to expand...
Click to collapse
What do you mean when you say nothing is happening? What do you expect to happen? You won't see anything on the screen. And the script will only be run when the Archangel script tries to root the device.
liutszho said:
Do these scripts work with the overclock zimage? Can i just point to the extraboot.sh in the init.rc?
Click to expand...
Click to collapse
Why would you want these scripts to run on a fully rooted device. You can do anything you want on your device if it's fully rooted.
These scripts only make sense when used together with the Archangel root app.

[TUT] Android 2.2 on SD card (OUTDATED)

I made it for all of you who prefer to have their Android to be installed on SD card.
What do we need:
SD card with ext2 as a second partition (I believe that most of you know how to use gparted or any other linux partition manager)
filesystem: http://www.2shared.com/file/8p5Ci18r/SDAndroid.html
fota (the same as in Shodow's tut, so if you have this, there is no need to reflash it)
Step 1
Unzip downloaded filesystem.
Step 2a
Copy the "galaxyboot" folder into internal memory of your phone (or, as Shadow named it "Bada root").
Step2b
Copy the content of "filesystem" folder into ext2 partition on your card.
Step3
Open the terminal in this directory and type:
sudo chmod -R 0777 ./*
sudo sync
Step4
Unplug your sd card and boot by pressing start call button + on/off button.
Of course, all those steps must be done under Linux.
For those who do not have custom fota flashed:
Step5
Under Windows open Multiloader, select LSI, serach for fota and download it to your phone.
This is mixed version of first version of Android port and the filesystem posted by mylove90. It provides all functions which the newest version of Android from Shadow's tutorial has.
Great thanks to Bedson from bada-os.info for keeping all the old files.
Would this port still have "easy crash" after several reboot?
*yet again mumbles something about the annoyances of more than one tutorial*
part of the reason we moved to the scripted moviNAND version is because people time and again have difficulty running commands on a Linux commandline, if someone wants to create more tutorials it would be preferred that their filesystems have chmodding and partitioning scripted requiring no user intervention through a Linux distro, if possible.
EDIT: also be prepared to answer questions and to make it known that your tutorial isn't dev-created and thus for people following it to not PM devs asking why it won't work
@nbates66
As you said, the version for movinand is a way more simple to apply. On the other hand using this version is meant to be only for those with fast small files write on their SD card (fast, i mean aroud 1 - 2MB for 4KB Q1, where most of cards are about 0,01 - 0,04MB).
And there is one more thing... Bada 2.0 which made this section a bit less popular within couple of last weeks (and I think this won't change till Oleg give us new version).
@NitramNach
The entire process hasn't been changed when compared to the old version from Shadow's TUT, so it might be as unstable as you said. I think it's rather the matter of SD card, cause I haven't crashed my phone yet.
I'm using Class 4 Sandisk SDSDQM-032G-B35, but it's like rebranded Class 2 (9MB sequential read, about 5,5MB sequential write, 1MB random 4KB Q1 read, and 2MB random 4KB Q1 write).
i'm sorry, so may i ask, it means it's stable now?
does installing android on sd card will affect the already presend bada in the phone by any way ?
am asking this becoz am very very newbie,,, never tried flashing and dont want to have the risk of flashing ,,, so , if this way dont affect the already presend bada 1.2 in the phone , i may try to install android on sd card coz really want to c android on my s8500 ...
my firmware is jpkc1 ....
@chriszue
It depend on that what do you mean by stable.
It's the same version as published by devs in Shadow's tut, but this one is prepaired to be installed on SD card.
Though the speed and stability depends on your card I can say that I've used it for 4 days without any problem.
Now I'm using Bada 2.0, so I had to resign of Android.
@sarmoodi
Nor this or the version presented on Shadow's tut have any influence to Bada.
But if, you're not familiar with linux I suggest using the movinand version.
@Qron
thanx alot for the super fast reply..
Was the microphone working in this version?
Dude I want u r help...
i compare galaxy 3 and wave 723 and they are almost got same things..>
so i m thinking about about port galaxy 3 android froyo on wave 723 is that possible to do?
if wave 2 can run android they y not wave 723?
I'm not capable to help you. I simply made a conversion of newest filesystem so it could be installed on SD card. Nothing less, nothing more. I don't have proper knowledge to make any port.
what do you meaning by "It provides all functions"?
can you make calls on this methods?
Are You kidding me??
You rip this out of context. The whole sentense was "It provides all functions which the newest version of Android from Shadow's tutorial has."
So NO!, you can not make calls using this method.
Terminal commands
I cannot access the ext2 partition through the terminal and execute sudo chmod -R 0777 ./* and
sudo sync, that is I cannot find the folder in the FileSystem where Ubuntu places the mounted partitions. Could you tell me how to do this?
I have Ubuntu 11 installed through wubi if that makes any difference.
10x in advance
Root
It would be really helpful if someone could give the syntax for rooting froyo for this SD card version.
rohitman said:
It would be really helpful if someone could give the syntax for rooting froyo for this SD card version.
Click to expand...
Click to collapse
chmod -v -R 4755 ./system/xbin/*
badelemental said:
chmod -v -R 4755 ./system/xbin/*
Click to expand...
Click to collapse
Thanks for the reply.
I've come up with another problem though, On starting Market a white screen opens & the market closes, no message though.
Should I reinstall Android to fix the problem ?
rohitman said:
Thanks for the reply.
I've come up with another problem though, On starting Market a white screen opens & the market closes, no message though.
Should I reinstall Android to fix the problem ?
Click to expand...
Click to collapse
Yes, give it a try, as far as I'm aware it should work. Maybe the installation went a little wrong, probably nothing to do with you ^^.
Hope I've helped.
i followed all the steps several times and my phone keeps hanging at galaxy s screen.
any idea of what im doing wrong?already tried ext2 and ext3.
I am unable to use the touchscreen functionality properly in android on bada. I have loaded on SD card dual boot with Bada 2.0.
I am finding difficulty in scrolling or long-press (to create shortcut in home screen) or play "angry bird" , I cannot pull and hold the catapult.
Is there any workaround ? Have others faced this problem ?

Guide: Partitioning SD-Card 4 apps2sd & swap partition, the easy way.

Ok. I do not mean any offence to junghyun01.
However this is another method & the one that I personally use.
This requires: stock kernel & dual mode recovery (ClockWorkMod).
Some version of ClockWorkMod that come with custom kernels do not include the necessary options to format your sd-card.
To return to stock kernel on gingerbread or froyo, follow this guide:
http://forum.xda-developers.com/showpost.php?p=21238366&postcount=2
This is the easiest way to create sd-ext/2nd partition+swap partition on sdcard with our phones:
1: Backup all data from sdcard to computer *Important*.
2: Boot into ClockWorkMod by tapping touch-screen while on Sony Ericsson screen
WARNING: We will now delete all data on sdcard, that is why you made a backup.
3: Advanced => Partition SD Card => 512M or 1024M (depending how many apps you want to install & the size of your sdcard) => 0mb for swap size (or if using a custom kernel you can set a swap size of 128m) => Yes to format.
4:Power Off phone.
5:Remove sdcard and put into computer, put the files that you backed up to the computer back on the sdcard.
6:Insert sdcard back into phone and power on. Click thanks.
How to enable swap? Warning: This can & will shorten your sd-cards life. Read post #2!
(Swap will only work on a custom kernel!)
After flashing the rom of your choice, flash the add-on "x8EnableSwapPartition2.zip" in ClockWorkMod to enable swap or download ResetSwap from the market.
Credits:
junghyun01 go on give him a thanks for giving me the motivation to create this thread.
[email protected](me): Flashable add-on zip, guide, time, information. Click thanks!
x8EnableSwapPartition2.zip=Swappiness set at 40%.
x8EnableSwapPartition.zip=Swappiness set at Android default 60% or whatever % your rom developer has set it at.
More Information: (You don't really need to read this but if you are interested...)
Stock Kernel?? Oh man...
I personally think it is worth it for all users to flash back to stock kernel & dual mode recovery. Why? Just so they can partition their sd-card like this, as sd-ext will be formatted in Ext4.
Ext4=Best speed/reliability overall. Why would you still be using ext2/3???
Why only 128mb swap size?
Because it is wasteful to create a larger swap partition. It never gets used. I have never seen 128mb's of swap used on our phone & that is even with heavy games/apps running in the background. You are just making your sd-card size smaller for no benefit.
Why not just use Swapper2 from the market with a swap(.swp) file?
Swapper2 is notorious for slowing down your phone as it likes to auto-start all the time also a swap file will not be as fast as a swap partition.
Will SWAP shorten SD-card lifespan???
Yes it undoubtedly will. Will you be able to notice this in any way? Most probably not.
Using swap will cause intensive reading/writing in one region of the sd-card. All flash memory devices (including our NAND internal memory) have limited write cycles. Excessive reading/writing causes bad blocks on your sd-card. Some sd-cards have extremely poor write cycles, so they can & will burn out when using swap.
Some people believe it would take a full year or even longer of using swap to actually cause any noticeable effect on your sd-card. Even if it does cause bad blocks on you sd-card, when formatting your sd-card with most modern-day file systems, these blocks will be marked as bad blocks and they wont be used. This equals to an extremely slow decrease in total capacity of your sd-card (which will be close to unnoticeable) .
Having said all of that there has been reported cases where SD-Cards have burned out and stopped working almost directly after enabling swap. Coincidence? Who knows but...What you do & flash to your phone is your own decision & no one else is in any way responsible for what happens except you.
And another method if you need it:
http://forum.xda-developers.com/showthread.php?t=1445543
Or guide with pictures:
You can create an ext partition on your sdcard in windows by downloading the newest Easeus Partition Manager Here or at their Homepage.
After installing the program use the guide found here:
http://forum.xda-developers.com/showthread.php?p=10654666
I have tried this method and it works with Ext2 and Ext3.
I use alf kernel + Gdx 21
I already partition my sd card using mini tool partition wizard as follow
1. primary Fat32
2. primary Ext4
3. primary LinuxSwap
already flash the addon , but still no swap active when i check on terminal.
i see on your zip that it make swap on /dev/block/mmcblk0p3
but in mine there's only /dev/block/vold -> which is empty also
I don't know if my swap partition is load .
still there's /sys/dev/blok/179:3 which refer to mmcblk0p3
and on sys/block/mmcblk0
I'm not familiar with linux , so please give me a guide what to do.
thanks
aries77 said:
I use alf kernel + Gdx 21
I already partition my sd card using mini tool partition wizard as follow
1. primary Fat32
2. primary Ext4
3. primary LinuxSwap
already flash the addon , but still no swap active when i check on terminal.
i see on your zip that it make swap on /dev/block/mmcblk0p3
but in mine there's only /dev/block/vold -> which is empty also
I don't know if my swap partition is load .
still there's /sys/dev/blok/179:3 which refer to mmcblk0p3
and on sys/block/mmcblk0
I'm not familiar with linux , so please give me a guide what to do.
thanks
Click to expand...
Click to collapse
How to u check if swap is running or not?? Type wat code on terminal..
Sent from my E15i using xda premium
kakho55 said:
How to u check if swap is running or not?? Type wat code on terminal..
Sent from my E15i using xda premium
Click to expand...
Click to collapse
on terminal type --> free
export PATH=/data/local/bin:$PATH
$ export PATH=/data/local/bin:$PATH
$free
total used free shared buffers
Mem: 186704 183584 3120 0 132
-/+ buffers: 183452 3252
Swap: 33596 25304 8292
$
So it work or not? ?
Sent from my E15i using xda premium
kakho55 said:
export PATH=/data/local/bin:$PATH
$ export PATH=/data/local/bin:$PATH
$free
total used free shared buffers
Mem: 186704 183584 3120 0 132
-/+ buffers: 183452 3252
Swap: 33596 25304 8292
$
So it work or not? ?
Sent from my E15i using xda premium
Click to expand...
Click to collapse
Swap: 33596 25304 8292
yes it work..
ok, it works now.
Re-download and flash.
(You can delete old script in etc/init.d)
8xfan said:
Swap: 33596 25304 8292
yes it work..
Click to expand...
Click to collapse
but i cant see any different .... ram still around 28mb ...><
Sent from my E15i using xda premium
lrakkarl said:
ok, it works now.
Re-download and flash.
(You can delete old script in etc/init.d)
Click to expand...
Click to collapse
thanks, it works now
works.. thx.. ..
btw, can someone please explain why did SWAP shorten SD card lifespan??
kakho55 said:
but i cant see any different .... ram still around 28mb ...><
Sent from my E15i using xda premium
Click to expand...
Click to collapse
LOL i dont know..maybe OP can answer it
Thankyou,thats worked!
Just forget to disable compcache,but there no problem at all!
I have updated both post #1 & #2 with the information requested. Please give it a read.
@kakho55
Swap allows you to run more apps/processes at any one time. The android operating system will still use all of your real ram too.
What about the swapping coefficient, in the script is not defined. This number is showed in procent and defines the ratio of swap partition being used by the system.
One question,i using Reset Swap and everytime i reboot i need to go to app and activate swap again,thats normal?And if i flash the EnableSwap.zip?
gdeliana said:
What about the swapping coefficient, in the script is not defined. This number is showed in procent and defines the ratio of swap partition being used by the system.
Click to expand...
Click to collapse
Uploaded new add-on & modified first post to answer your question.
(if no value specified then Android default setting is 60%)
RodrigoOgasawara said:
One question,i using Reset Swap and everytime i reboot i need to go to app and activate swap again,thats normal?And if i flash the EnableSwap.zip?
Click to expand...
Click to collapse
Yes that is normal if using ResetSwap. This is because it never auto-starts by itself.
If you flash the add-on zip then swap will be auto enabled every boot.
hi.. new addon.is for ??
lrakkarl said:
Uploaded new add-on & modified first post to answer your question.
(if no value specified then Android default setting is 60%)
Yes that is normal if using ResetSwap. This is because it never auto-starts by itself.
If you flash the add-on zip then swap will be auto enabled every boot.
Click to expand...
Click to collapse
Thanks mate

How to autorun swap Xperia Ray?

I have created a 1 GB a2sd partition in CWM, works perfect! Every app is on sd-card. In the same menu in CWM there was an option to create a swap partition, so I created a 256 MB partition. After reboot I checked in terminal if swap worked. Typed "su" followed by "free", swap showed 0 0 0... But then I found an app in Google Play named "ResetSwap" where I can turn swap partition on/off. When I check in terminal it works great! The "problem" is that every time I reboot I have to manually turn swap on in ResetSwap. Is there a way to make the swap partition autostart after boot??
Thanks in advance!
Sent from my ST18i using xda premium
U need another kernel rather than the official one
Hi there
what u need is to flash a kernel support swap function which the official doesn' t.
swap needs kernel support to work.
AND flash unofficial kernel means U need get ur bootloader unlocked.
If that's what u don't want , then give up.
if not there are instructions on this forum, just follow it.
In my opinion, if u don't play huge game ,ray's 512 ram is just enough for daily surf and simply work.
Hi!
Thank you for answering. My bootloader is unlocked, I'm running Sirkay v.6 @ 1,6 Ghz. Rooted + supercharged. The stock Xperia Home is freezed in Titanium Backup, I only use Launcher Pro. I have got the swap partition to work, only it doesn't start automatically when boot. It has to be done manually. I want it to start automatically. But I have found that there's use for the swap. I have lots of apps that together eats a lot of ram. Generally I have about 50-60 MB of free ram and the system also uses about 120-150 MB of the swap partition! I know the SD-card isn't as fast as the ram, but I don't see any difference when using it. Its an Samsung 32 GB class 10. Before I created the swap partition I got lot of crashes from several apps, I guess it ran out of ram. Maybe some say its not because of low ram that makes them crash, its because Launcher Pro isn't built for ICS. But I'm using the phone all the time, lots of multitasking. Have to charge the battery at least 2 times every day. So I'm pretty sure the swap file is working great, I get no crashes with the swap enabled. But I do get them without, several times every day. But basically, I just wanted to know if its possible to autostart the swap-file.
Best regards!
Sent from my ST18i using xda premium
open notepad or creat newfile with xplorer, name it swapper or what you like. type this command
#/system/bin/sh
swapon /dev/block/mmcblock0p3
save it and put it to /etc/init.d chmod it 777
hope it work for u
It's actually swapon /dev/block/mmcblk0p3 not mmcblock0p3.

[GUIDE][SWAP]Increase virtual ram easily in simple steps

Hello all, as some of you know that there is a way that lets you increase your device's ram capacity, and that is by swap, well am here to give you simple and easy steps to enable swap on your device.I only tested this on few devices so don't complain if it didn't work.
I'am not responsible for any damage could happen, you are doing it at your own risk.
Prerequisites
1-An android phone (duhh )
2-Must be rooted.
3-Busybox xbin. (Read below)
4-Kernel Must Support Swap
Tested devices
-Galaxy Ace S5830
-Galaxy Ace S5830i
-Galaxy Ace 2
-Galaxy S4 (don't ask why!)
-Galaxy S4 mini
-Galaxy Ace Plus
-Sony Xperia Sola
Tested android versions
-2.3.x
-4.0.x
-4.1.x
-4.2.2
-4.3.0
-4.4.2 (got some problems)
-4.4.4 (got some problems)
kitkat users may find a problem that swap has a limit of 50 MB or 150 MB ( Caused by the new 4.4.x kernel Just Try It)
Installing busybox xbin
{If you are not sure what is this then just go to how to swap
And if swap didn't work the come back here and apply the steps}
1-Download busybox from playstore or buy the pro version
2-Run busybox
3-Wait for the loading
4-Then normal install or smart install in case you are in pro.
5-When done installing restart your phone
How to swap
1-Install simple root swap
2-Run it and give it root permission
3-Specify the size of swap file (how much MB you want to add as virtual ram) (big size needs more time)
4-Create swap file
5-Check enable at boot
6-Click on
7-Check if the swap worked
8-Enjoy...
reserved
I did every thing and nothing happened ?
I have xperia u with Experimental v12...
Sent from my Xperia U using XDA Premium 4 mobile app
Heads up! using swap on SD card may decrease your SD card's lifetime.
Can we damage our systems any how?Can I try this on a auto navi system with Android 4.0.3?
Thx
Sent from my iPhone using Tapatalk
Csi02 said:
Can we damage our systems any how?Can I try this on a auto navi system with Android 4.0.3?
Thx
Sent from my iPhone using Tapatalk
Click to expand...
Click to collapse
Since the swap file in made on the SD Card, No, it will not damage your system but there is a high chance it can affect the SD Card. If you have an SD Card, then yes you can try this on Auto Navi System with Android 4.0.3. Make sure to have a class 8 or greater SD Card to get maximum speed. Hope I Helped
Thx for your answer! I will try it after I buy another SD class! I hope that will make my unit a little smoother!
Sent from my iPhone using Tapatalk
It does NOT work on Galaxy Ace S5830i with this ROM and this kernel...
MorgenTee said:
It does NOT work on Galaxy Ace S5830i with this ROM and this kernel...
Click to expand...
Click to collapse
Can you find the swap file on your SD Card? If not then can you tell us exactly what happens when you choose to create swap?
mahithm said:
Can you find the swap file on your SD Card? If not then can you tell us exactly what happens when you choose to create swap?
Click to expand...
Click to collapse
The file is there, it has the size that I choose in "Simple Root Swap". I tried 200 MB and 100 MB.
The "Info" tab of "Simple Root Swap" tells me however:
Status Swap:
Total Swap: 0MB
Used Swap: 0MB
Free Swap: 0MB
When I open a terminal emulator "free" tells me 0 swap, "swapon -a" tells me that /etc/fstab does not exist...
MorgenTee said:
The file is there, it has the size that I choose in "Simple Root Swap". I tried 200 MB and 100 MB.
The "Info" tab of "Simple Root Swap" tells me however:
Status Swap:
Total Swap: 0MB
Used Swap: 0MB
Free Swap: 0MB
When I open a terminal emulator "free" tells me 0 swap, "swapon -a" tells me that /etc/fstab does not exist...
Click to expand...
Click to collapse
Did you press the On button below Auto Start? Once you create the Swap file using the Re/ Create button, tick the Auto Start box and press the On button below that. That should activate swap on SD Card. Now check Info to see your swap details or use "free" on Terminal. Do post the result. Hope I Helped
mahithm said:
Did you press the On button below Auto Start? Once you create the Swap file using the Re/ Create button, tick the Auto Start box and press the On button below that. That should activate swap on SD Card. Now check Info to see your swap details or use "free" on Terminal. Do post the result. Hope I Helped
Click to expand...
Click to collapse
I have done that already. After the creation of the swap file, I checked "Auto Start" and clicked "on". I also tried restarting the phone, but it didn't change anything.
MorgenTee said:
I have done that already. After the creation of the swap file, I checked "Auto Start" and clicked "on". I also tried restarting the phone, but it didn't change anything.
Click to expand...
Click to collapse
Did you install BusyBox? Creating and running swap requires certain binaries which may not be present in the rom by default. Do post the result.
mahithm said:
Did you install BusyBox? Creating and running swap requires certain binaries which may not be present in the rom by default. Do post the result.
Click to expand...
Click to collapse
Yes, I followed the instructions (see below) in the first post exactly.
Installing busybox xbin
{If you are not sure what is this then just go to how to swap
And if swap didnt work the come back here and apply the steps}
1-downlpad busybox from play store or buy th pro version
2-run busybox
3-wait for the loading
4-then normal install or smart install incase you are in pro.
5-when done installing restart your phone
How to swap
1-install simple root swap
2-run it and give it root permission
3-specify the size of swap file (how much mb you want to add as virtual ram) (big size needs more time)
4-create swap file
5-check enable at boot
6-click on
7-check if the swap worked
8-enjoy...
Click to expand...
Click to collapse
Is it possible that the kernel I am using is lacking swap capabilities and therefore, the app cannot make swap work?
MorgenTee said:
Yes, I followed the instructions (see below) in the first post exactly.
Is it possible that the kernel I am using is lacking swap capabilities and therefore, the app cannot make swap work?
Click to expand...
Click to collapse
Since you have followed all the instructions perfectly, it must be the kernel. Rafael's kernel does have swap support though.
mahithm said:
Since you have followed all the instructions perfectly, it must be the kernel. Rafael's kernel does have swap support though.
Click to expand...
Click to collapse
Thanks! Too bad that it won't work for my setup. I will consider trying the other kernel once I do have some more time on my hands.
This worked very well for me. Thanks OP! :good:
MorgenTee said:
The file is there, it has the size that I choose in "Simple Root Swap". I tried 200 MB and 100 MB.
The "Info" tab of "Simple Root Swap" tells me however:
Status Swap:
Total Swap: 0MB
Used Swap: 0MB
Free Swap: 0MB
When I open a terminal emulator "free" tells me 0 swap, "swapon -a" tells me that /etc/fstab does not exist...
Click to expand...
Click to collapse
Your kernel might not support swap...
M2M_RockS said:
I did every thing and nothing happened ?
I have xperia u with Experimental v12...
Sent from my Xperia U using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Check your kernel swap support...
Sorry for flooding... I hv a que. Can I use swap in rom TWRD 1.0
Sent from my GT-S5830i using xda app-developers app

Categories

Resources