yashsingh1/xdaforums huggingface dataset:
[Xperia Arc Android Development] hygge:
Here is the script with my modifications manually creating a new loop devices. I have used loop50 as 0-38 was allready in use and it would leave some room for new loop devices.

I am using scriptmanager to either run the script manually or run it at boot.

Have marked my changes with bold

#!/system/bin/sh

if busybox [ ! -f /cache/swap/swapfile.swp ]

then

echo "Create Swapfile"

mkdir /cache/swap

busybox dd if=/dev/zero of=/cache/swap/swapfile.swp bs=1M count=64

busybox mkswap /cache/swap/swapfile.swp

busybox chmod 0600 /cache/swap/swapfile.swp

else

echo "Swapfile Exist"

fi

echo "connect loop devices"

mknod -m640 /dev/block/loop50 b 7 50

losetup /dev/block/loop50 /cache/swap/swapfile.swp

echo "use loopdev for swap"

swapon /dev/block/loop50

echo "raise swappiness 2 "

echo 90 > /proc/sys/vm/swappiness

cat /proc/sys/vm/swappiness

free
[Xperia Arc Android Development] matus201:
Thanks a lot for the script. What is this loop anyways?
[Xperia Arc Android Development] hygge:
It is a device driver in linux, the loop device driver is created as a block device which functions as disc device. The loop device driver are used to loop back into local imagefiles on the existing filesystem.

You then use losetup to point the loop device file towards an imagefile on the existing memory devices. In this case it is configured to point towards the new empty 64MB file that are created in the beginning of the script.

You now have a small 64MB filesystem attached that we can use as linux swap :)
[Xperia Arc Android Development] haimelf:
Why not making a 128 swap file to improve even more?!

I'm a noob... So I just intested to know how it works...
[Xperia Arc Android Development] skyboyextreme:
must this be added for your kernel to start swapping inactive applications from the RAM to the cache partition ?!

thanks man

---------- Post added at 09:30 PM ---------- Previous post was at 09:29 PM ----------

the cache partition is only 100mb
[Xperia Arc Android Development] inteks:
yes
[Xperia Arc Android Development] skyboyextreme:
i heard that swap would wear the cache partition in time thus making it un-useful @ all for it's original use , i believe that cache is used for stuff like downloading apps from market !

thanks :)
[Xperia Arc Android Development] chitose_ndy:
What is "chmod" ??
[Xperia Arc Android Development] skyboyextreme:
it's set permissions , you can do this by highlighting the file u want to chmod using root explorer and then select permissions and then tick all the boxes and you are all set
[Xperia Arc Android Development] chitose_ndy:
Increase my phone memory about 20%

Thank you :D
[Xperia Arc Android Development] hygge:
I do not know how many times you can read/write to a flash memory before it breaks down. I have a mem stick that I have used as readyboost cache for my work windows laptop, and it is used extensively every day for many hours. Still going strong after 2 years.

Have also wondered if it would have any sideeffect only having 36MB left on the cache partition. I do not think it will have any ill sideeffect during normal day to day use. You might have to delete the swappartion file when you are going to download a huge app from the marked.

I belive the zipit speed up scripts actually move the java cache to the cache partition making even less cache space available, I do not have this installed but have looked in the script files.
[Xperia Arc Android Development] xexijreil:
Sorry for my ignorance, but as I have read this is not good for downloads of big files, how would Arc behave while for exaple watching a stream flash video(megavideo?) cause I believe u need both ram and cache for it(I believe, but as I previously said I have no idea for sure), would this script be better for this? or worst?

Thanks!!
[Xperia Arc Android Development] gaiger:
can i install this in stock rom?

I'm using xperia neo v, stock gingerbread rom, and a stock kernel.

I don't know if stock kernel can install this.
[Xperia Arc Android Development] skupi20:
No, cant. You need kernel with swap support.

Wysłane z mojego MT15i za pomocą Tapatalk
[Xperia Arc Android Development] bern4d1:
I don't get it. Could someone make a step by step installation?
[Xperia Arc Android Development] iridaki:
Just remove the .sh extension, put the file in /system/etc/init.d/, give it all permissions (either by chmod 777 or with Root Explorer) and then reboot your phone! ;)

Don't forget your kernel has to support swap, so it has to NOT be stock kernel.
[Xperia Arc Android Development] bern4d1:
thanks. but what is suppose to change by putting this script?

sorry for noob question.
[Xperia Arc Android Development] Riyal:
It creates a swap file... It's more of like an additional memory for your phone but performs less compared to original RAM.

@OP

Don't you think putting the swap file on sdcard is much more convinient than putting it on cache partition? Present flash memories now really can withstand vast amount of IO but that doesn't mean it won't degrade it's performance. There's would be still bad blocks if it is being used up continuosly.

Swap is just mainly used for dumping low priority & idle applications or a reserved memory in case the system needs more. I don't think putting it on cache partition would improve performance unless someone uses up super applications like a PSX emulator & stuffs.
[Xperia Arc Android Development] iridaki:
Putting swap file on sdcard is not as good as it sounds.

SD card performance depends on various factors and it is not always as reliable as internal memory.

Plus, you will not be able to mount your SD card on your PC while the swap file is in use.

As for the max limit of I/O, you'll probably won't keep the phone long enough to see any sort of degradation. ;)

It can help a lot with multitasking, at least in my experience.

Of course, one has to try it and then decide for himself, right?

Why people want to try things they have absolutely no idea what they do, is really beyond me... :confused:

First search, then decide if you need it, then ask for installation instructions.
[Xperia Arc Android Development] abrarabbu:
Anyone who has never made a mistake has never tried anything new.

--Albert Einstein
[Xperia Arc Android Development] rashid.fairus:
and made a backup

Sent from my LT18i
[Xperia Arc Android Development] iridaki:
Trying something new without having the slightest clue about what and

why

you're doing it, is so NOT Einstein. :p :D
[Xperia Arc Android Development] Riyal:
Thanks! Didn't know you can't mount External card to PC when on swap... I thought you would just loose the swap space when mounted. Also depends at all.. :D with a phone running swap 24/7 you will already see bad block within a quite estimated time of 4 to 6 months and would see a gradually reduced memory space by probably 1 year. But yeah won't matter to average users at all.

True indeed! But with the exception of cavemen discovering fire :D
[Xperia Arc Android Development] alonewind:
Marked for use,thanks
[Xperia Arc Android Development] Soulfly1976:
you have to change this line

swapon /dev/block/loop50

to

busybox swapon/dev/block/loop50

worked for me. I can now browse faster using opera ;-)
[Xperia Arc Android Development] hootnath:
doesnt using swap lower your flash memory's life?

---------- Post added at 06:52 AM ---------- Previous post was at 06:48 AM ----------

i have a class 10 microsd. i'd rather put swap on the sd cuz its replaceable. it'd be nice if one could make a special i/o governor optimized for swap usage on an sd-card. besides of course one can mount the sd on pc if there is a separate swap partition. abt the keeping the fone long enough, ppl in asia generally keep their electronics for much longer than the ones in us or greece for that matter.

---------- Post added at 06:59 AM ---------- Previous post was at 06:52 AM ----------

does the fxp/cm9 kernel have swap support?

also, does anyone have any tweaks to make zram faster (i don't play games, just reading, browsing n messaging ; n tweaking) ;; i could try to figure it out myself, but i don't want to reinvent the wheel.
[Xperia Arc Android Development] Pavl0o:
I can't download this. Please upload on other serwer.
[Xperia Arc Android Development] Kajendran:
do I only have to change,

busybox dd if=/dev/zero of=/cache/swap/swapfile.swp bs=1M count=

64

to change the swap size..???

and

What should i edit to change the swappiness...?????
[Xperia Arc Android Development] inteks:
swapiness is how aggressive the kernel swaps out

btw. latest version of setxperia can do this for you :-)

Gesendet von meinem LT22i
[Xperia Arc Android Development] Kajendran:
thanx... but,

I know what swapiness is...

I just wanna no how to change it in this script

I mean what values should I edit to change the swapinness level..

Can setxperia create a swap in the cache memory...???
[Xperia Arc Android Development] inteks:
yes ;-)

Gesendet von meinem LT22i
[Xperia Arc Android Development] miqz:
how amount of swappines you recomend from 0-100 ?
[Xperia Arc Android Development] lake0ftearz:
I'm using Link2SD

Can I move swap to SDExt2 ?
[Xperia Arc Android Development] Kajendran:
Nope...

U can use "Swapper 2" to create a swap in SD.
[Xperia Arc Android Development] HGH_h986:
swappiness is amazing....100% use it...i enjoy my device until i can , and IF sd broke!(as some guys say) i return it to warranty!! lifetime warranty!!!!
[Xperia Arc Android Development] nvo2411:
Can this be reversed once done and if yes then how?

Please help.
[Xperia Arc Android Development] HGH_h986:
Simply remove the script...
[Xperia Arc Android Development] stanlin salu:
Guys, how wil I knw my swap is enabled, my internal memory wil increase or Ram wil increase??
[Xperia Arc Android Development] Kajendran:
Type "free" in terminal emaluator,

and it will show the swap space...
[Xperia Arc Android Development] stanlin salu:
By enabling swaps,what are the benifits I get!, pls help!

---------- Post added at 06:40 PM ---------- Previous post was at 06:32 PM ----------

When I typed , free its saying not found. Can anyone pls tell me all the procedure to install this script, and enable swap! I would be greatful, any good soul,help me! Becoz,am totally confused! Plsz!
[Xperia Arc Android Development] Kajendran:
Just copy and paste the script at the end of hwcofig.sh

Make sure ur kernal supoorts swap...!!!
[Xperia Arc Android Development] vr5411:
.587 kernel support swap.
[Xperia Arc Android Development] stanlin salu:
Where can I find hwconfig.sh
[Xperia Arc Android Development] mando508:
Are you sure? When i type "free" in console it says "swap 0 0 0 blah blah".
[Xperia Arc Android Development] gu5t3r:
confirmed, made swap on /cache with SetXperia, but using only zram at the moment

made script for easier swap monitoring

download here http://xdaforums.com/showpost.php?p=31705363&postcount=24
[Xperia Arc Android Development] Publiuss:
Hi

I set some swap (64M) in /cache.

My phone lagged as hell!!! :mad:

I don't know if it's a issue of my device or something else...

Device: Sony Xperia SK17i
[Xperia Arc Android Development] Siddhesh:
system/etc/hw_config.sh

Sent from my WT19i
[Xperia Arc Android Development] tanvir108115:
when I type free in terminal emulator it says not found. how do I check if the script worked?
[Xperia Arc Android Development] KingKRoBot:
Hello,

can someone make an better tutorial ??

Das ist schlecht erklärt.
[Xperia Arc Android Development] zgmfx20:
Just do above instruction. For the permissions, after copying to /etc/init.d, change permissions with rwxr-xr-xr with root explorer.
[Xperia Arc Android Development] leolawliet:
[MENTION=347468]inteks[/MENTION] I hope you don't mind, I really love this script and wanted to include it in my Roms. Made data and system versions too (could be risky but was blazing fast)
[Xperia Arc Android Development] KingKRoBot:
Now I have it, but when i type "free" in Terminal, it says that /system/bin/sh free is no found"..

How can I fix it?

Before i use this script, ram expander says 852 MB Memory but now it says 916MB

so im sure it is working.

My Tutorial:

1. Download the Script from first page, extract and copy it into your sd card.

2. Now go into your sd card with Root Explorer or Explorers with Root permissions, and

copy your "swap2cache.sh" into system/bin and give these permissions -> | ' |

3. Go back to your SD card and rename your "swap2cache.sh" to "swap2cache" and copy it

into system/etc/init.d and give FULL permissions like -> | | |

4. Open "swap2cache" with your TextEditor, and copy all of the script, and paste it into /system/etc/hw_config.sh but make sure that you have an free line over your new script.

5. Save your hw_config file and delete you hw_config.sh.bak if you want.

Now reboot your Phone and your have 65mb more RAM.

Iam Sorry if you type free in your terminal over this way, it will tell you that free is not found.

so if someone tell me why it is so, i can edit the Tutorial.
[Xperia Arc Android Development] martirio3000:
Isnt this going to "kill" the internal memory of the phone? ( i mean make it useless/corrupted)
[Xperia Arc Android Development] tennyleaz:
Working good on my arc S, I'm having ~20MB more free ram!

:good:
[Xperia Arc Android Development] zgmfx20:
free:not found is caused by an outdated busybox. try updating your busybox.

another command if you want to see swap is working, type in terminal

cat /proc/meminfo

under swaptotal and swapfree
[Xperia Arc Android Development] KingKRoBot:
Thank you :)

I use Swapit Ram Expander to see it.
[Xperia Arc Android Development] Vishalkris:
Tried to use it on 4.3 ROM beanstalk... But it doesn't work... No block 50...suggestion???

Sent from my Xperia Arc S using Xparent Cyan Tapatalk 2
[HTC EVO 3D] greeg32:
Is there a way to add a governor? Just flashe a new kernel and lagfree is gone. Thanks!
[HTC EVO 3D] joehunni:
I don't believe so, certain governors are either supported by the kernel or it isn't.
[HTC EVO 3D] hitman4274:
Well long story short... The answer is no...

However if you take the kernal and mod it and put lagfree in it then yes... But this requires developer know how... My advice go back to old kernal or if the one your on now is better don't even worry about lagfree.

Shot from my shooter in 3D

injected with cleanrom2.7
[Thunderbolt General] ssojyeti2:
When my phone isn't working right I used to take out the battery and manually boot to recovery ( power and volume down). Every single time I'm in the manual recovery screen I click volume down and all it Does is say install .zip update and everytime I let it do it and it still does that thankfully I always fix it on my computer but sometimes I'm not near my computer and i have a feeling soon something will not be working and I will really need to use my phone and I won't be able to bot into recovery. So does anyone have the same problem and does anyone know how to fix it????????
[Thunderbolt General] bpyazel:
It's because you left an ruu or radio on the root of the sdcard card. Delete the PG05IMG.zip off it.
[Thunderbolt General] davidbudd1:
What he said. YOu have a PG05.img file on the root of your sd card. It is a good habit to always delete it when you are done that way if something does happen you can get into recovery.
[Thunderbolt General] eNomineZerum:
At the very least rename that file or move it out of the root folder.

Also, what do you mean "when my phone isn't working right"? Are you still stock? What Rom, Kernal, etc are you on?

The most obvious solution would be to prevent your phone from messing up in the first place.
[HTC ChaCha] astro11:
I'm using my HTC ChaCha for a week now and I'm 100% sure that the most annoying problem with it is the internal memory space.

My battery lasts at least 24 hours, and I don't expect more for a smartphone to be honest. I just charge it everytime I go to sleep and that's good for me. I don't have the "blue icon" issue and everything else works like a charm.

But the internal memory space... wow, that's a real issue. Try to install more than 5 games and you're dead. That's is not even acceptable.

Going to the point:

I live in Brazil and a XTC Clip here practically doesn't exist. Going into our brazilian version of eBay, there are only two sellers (this is very, very low) and the cheapest is R$200 (U$80). There is no "GSM Service" here with XTC Clips. Thing is critical here.

That's why I'm willing to do whatever needs to be done to achieve permanent root or S-OFF that doesn't involve buying the expensive XTC Clip.

I know some guys already tried some alternatives like the "gfree" exploit and temporary root. But what do you, developers, think that we can try to go to the next level? I'm sure that all developers out there already have rooted their phones because a XTC Clip is not impossible, it's actually very easy to get. That's why we, normal users, need at least some guide from the experts.
[HTC ChaCha] Alex C.:
Unfortunately there is no other way except XTC clip. Either wait for alpharev or HTC to unlock the bootloaders.

As for the internal memory, I presume that you already performed at least one factory data reset?
[HTC ChaCha] astro11:
xdbg also said in another thread that it could be possible only exploring some HBOOT exploit. of course I don't have the technical knowledge to find exploits and try low level coding. is there someone else we can ask for help? like the developers of other exploits or something like that?

i'd love to try to negotiate with someone who can help us achieve this.

and yes, i did one factory data reset, but this is only a temporary problem solver... the internal memory remains small and sooner or later i'm unable to install new apps again.
[HTC ChaCha] qbert456:
I never did a factory reset, have it s-off and use the amazing Link2sd.

Memory never less than 60 mb yeah it started at over 100 but its stable now at 60 and I have loads of apps...

The reset does according to guys on here help, but lots of my apps are non market acquired so they don't get re installed so currently not worth the bother as my memory is suffice.
[HTC ChaCha] astro11:
you can only use Link2SD if you're root, right?
[HTC ChaCha] e.japonica:
xtc clip reseller ship to brazil USD54.13(free shipping available but take 7-11days)
[HTC ChaCha] astro11:
This is exactly 100 BRL, almost 1/3 of the full value I paid for my ChaCha. This is unacceptable. I'm willing to use all other options available until I have to buy the XTC Clip. I'm emailing AlphaRev/revolutionary guys and I'll join their irc channel later to have a good chat.
[HTC ChaCha] e.japonica:
sorry didn't know your chacha was so low price over there... for me xtcclip was 6times+ lesser then my chacha in Singapore(retail price).
[HTC ChaCha] astro11:
As I said before, I tried to contact people from AlphaRev and Revolutionary on their IRC Channel (#revolutionary @ irc.freenode.net). I didn't have much success - I just tried once and none of the OPs answered.

I'm really busy this end of year, but I believe if a lot of people talk to these guys, we may be able to achieve something and find an exploit on ChaCha's HBOOT. I really believe they're our last chance.

If someone can talk to these guys, please say that we are willing to help giving any information they may need and even donate so they can buy a HTC ChaCha, if that's is the necessary thing to do to have S-OFF and be removed from Legacy & Low Activity Devices...
[HTC Incredible S] hsahin4:
Hello everone,

I have Incredible S (s710e)and using RUU_Vivo_Gingerbread_S_HTC_WWE_2.30.405.1_Radio_20 .2808.30.085AU_3805.06.03.03_M_release_199308_sign ed firmware. I upgraded in May and there is no update since May.

Could anyone tell me this is latest ROM for my device? or which rom latest released would be useful for me

Note : I bought from England. Device has no any brand and simfree.

Rom Build Number : 2.30.405.1 CL88716 release-keys
[HTC Incredible S] tpbklake:
That is the latest WWE build for the S710e IncS. This has been reports of a Gingerbread 2.3.5 version with Sense 3.0 interface that will be available in the near future. The Desire S has already begun to receive this update, so it is only a matter of time before we see it on the IncS.
[HTC Incredible S] hsahin4:
Thanks mate, do you know which IncS rom has Turkish support? I use morelocale2 to have Turkish support.
[LG Optimus 2x] not_a_username:
hi, I am looking for stock camera for stock LG Gingerbread no shutter sounds but without the "improved Pic/Vid quality" part (I do not have external sd card so I try to take the most of the internal one, using the best compression to save space... , and besides my vids are meant to be shared on internet) , thanks in advance.
[LG Optimus 2x] not_a_username:
re-lancing request. anybody? thanks.
[LG Optimus 2x] CaFFeiNe666:
don't know where is the problem, usually quality mods, also have lower quality settings, so you can use those ;)

for example andicp mod

Picture quality:

Set normal picture quality to 80

Set fine picture quality to 90

Set superfine picture quality to 100

1080p:

Set FPS to 30

Set normal video quality to 7Mbs (=fine in LG app)

Set fine video quality to 12Mbs

Set superfine video quality to 17Mbs

720p:

Set normal video quality to 4Mbs (=superfine in LG app)

Set fine video quality to 9Mbs

Set superfine video quality to 14Mbs

you can use the normal quality setting for less space ;)
[LG Optimus 2x] Flix123:
Andicps mos is good, but it doesn't work on V20L.:(
[LG Optimus 3D] blazer345:
hello anyone here can make it work on our phone? please reply and let's discuss it here thank you!
[LG Optimus 3D] adixtra:
Yes it's working fine.

Now i see available is Backstab 3D, Order & Chaos Online 3D HD, and Tom Clancy's Splinter Cell Conviction™ 3D HD
[LG Optimus 3D] jimakos29:
+1 it's been working since 2 versions back. Latest is 3d also though...
[LG Optimus 3D] TelmoFT:
Where you found that? in Market?
[LG Optimus 3D] adixtra:
gameloft wapstore http://wapshop.gameloft.com/wifi/pg...91225616128&from=IGAP103&setCookie=true&c=170
[LG Optimus 3D] kirpeace:
i got shadow guardian, rf 2011, avatar,star battalian for free from the phone.
[LG Optimus 3D] adixtra:
How u do that ?? :)
[LG Optimus 3D] kirpeace:
i used the 3dgames shortcut to download it. some games become free.
[LG Optimus 3D] blazer345:
thanks for this bro already bought Backstab :D
[Galaxy S II Q&A, Help & Troubleshooting] heso_man:
My Galaxy does not appear any internet signs (3G, H, ...) , I called Vodafone support but nothing, how to fix this problem.

Galaxy Specs:

GT-I9100

Android version: 2.3.3

Baseband version: I9100XXKG5

Kernel version: 2.6.35.7-I9100JPKH1-CL453266 root@DELL140#2

Build number: GINGERBREAD.JPKH1
[Galaxy S II Q&A, Help & Troubleshooting] skimminstones:
have you ticked use packet data under menu>settings>mobile networks?
[Galaxy S II Q&A, Help & Troubleshooting] ephraim:
Have you even tried looking at your APN???
[Galaxy S II Q&A, Help & Troubleshooting] maverick1103:
Reset your APN to default and jobs a good one!
[Galaxy S II Q&A, Help & Troubleshooting] onejay10:
You could allways check if its ur sim card or network provider!
[Galaxy S II Q&A, Help & Troubleshooting] heso_man:
The problem solved.

I was checked all settings and every thing is ok and change my sim card to a new one still not worked, Finally the problem was my line the vodafone support said that to me and took 20 min to solve it, I did not understand what is it.

Thanks to all.
[Galaxy S II Q&A, Help & Troubleshooting] hassan11:
Hi there, i've just installed the old version of android amrket (2.3.6) on a stock rom XXKI3, but when i open the market i'm surprised that it has been updated without my permission, how can i stop the automatic update of the market ?

thank's
[Galaxy S II Q&A, Help & Troubleshooting] skimminstones:
if youre rooted use titanium backup to freeze market updater
[Galaxy S II Q&A, Help & Troubleshooting] hassan11:
ok i'll try thank's a lot ;)