yashsingh1/xdaforums huggingface dataset:
[HTC One X] Supaiku:
With constant music?

Anyhow, the Tegra 3 is supposed to have the support core which may improve battery life significantly when the screen is off (even if listening to music?)

Maybe I can try some tests! :)

I only just got mine.

Then there's always SetCPU (and it's profile functionality).
[HTC One X] BarryH_GEG:
Here's a screen shot of mine 3G streaming a couple of hours of Rhapsody over BT today with not much display on-time. From my experience, Wi-Fi drains the battery less than 3G. The display is the big battery eater so for music with the display off you should make your 13 hour goal.
[HTC One X] orb3000:
I say yes! go for it!

My batt is now in 51% and has been used for 13 hrs with screen on 1.40hrs
[HTC One X] fredfb:
I have no issues with screen or anything else.

Can't complain about battery life but my use has been light so far.
[HTC One X] CroatianBoy:
That's why I love the XDA community, it's always ready to help :) Thank you once again and wish me luck in getting a problem-free One X :D
[HTC One X] Watcheet:
Had this phone for a week now and it's a perfect device. No issues at all, build quality is awesome, software could be a bit more tuned and optimized, but really, this is the best smartphone on the market at the moment. I'd give it 9/10. Sretno :)
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] AMoosa:
I'm using an ICS ROM (midnote3.4) and would like to change the functions of the hardware buttons round. I know I can't change the symbols but the functions.

The reason for this is 2-fold. I've come from a Galaxy Nexus and got used to 'back' being on the left. And for one-handed operations, it is more convenient.
[Galaxy S I9000 General] Segnale007:
Alright folks, you asked for it and here's a simple how-to that will guide you to create and enable a swap partition on external micro-sd on our SGS.

First things first I assume you have already flashed the kernel Devil2_0.73_swap_i9000_CFS_BLN_CMC_20120420 or any other kernel which supports swap partition.

First thing, you want to partition your SD card in order to create our swap partition, I recommend you to follow this accurately.

If you are on mac you can use iPartition to partition your sd-card, while linux users can use Gparted or any other partition tool they may like.

Now that we have successfully created our swap partition, we want to boot up the phone and enable our swap partition in order to be accessible to the kernel.

To detect the swap partition that we have just created open up a ADB terminal and type

fdisk -l dev/block/mmcblk1

it will look something like this

/dev/block/mmcblk1p2 1861 1924 514080 82 Linux swap

write down the exact number of the swap partition and let's activate it by typing

swapon /dev/block/mmcblk1pX

** where X is the number of the swap partition **

We can now check if our swap partition has been activated by executing the command free

Now we want to make our swap partition to be activated at boot time, without having to activate it manually everytime we reboot the phone.

Assuming you know how to at least write and save a text file in VI, let's go back to our fido ADB shell and type

vi /system/etc/init.d/05userinit

now lets drop few lines in

#Activate swap at boot

#!/system/bin/sh

swapon -a

If you are not really comfortable with VI you can also use Nano or even RootExploer or any other root editor if you are more comfortable with UI.

save it and once again in ADB shell lets make it executable

chmod 750 /system/etc/init.d/05userinit

Now lets create a fstab file so that the kernel can look at and activate the correct swap partition

vi /system/etc/fstab

Here it goes our swap partition. Remember where X is your actual swap partition according to your partition layout.

/dev/block/mmcblk1pX swap swap

As last step you may want to change the swappiness value. Note that most of the roms have it set to 60 by default, which is good enough in my opinion, although setting it to higher (max is 100) may help to improve overall performance, while setting it to lower may increase interactivity and overall stability.

Temporary change (until next reboot)

echo 60 > /proc/sys/vm/swappiness

Permanent change

echo vm.swappiness=60 >> /system/etc/sysctl.conf

As result

shell@android:/ # free
total used free shared buffers
Mem: 385772 376352 9420 0 26420
-/+ buffers: 349932 35840
Swap: 514076 0 514076

** few notes **

I don't intend to take credit for this how-to as it takes few pieces of commands and hints from any guides out there which covers this topic, and anyways its basic linux knowledge really..

/** A special shout goes out to @DerTeufel1980 for listening to our request and enabling swap on his kernel. **/

So cheers you all and enjoy :)
[Galaxy S I9000 General] Segnale007:
You never know...
[Galaxy S I9000 General] lerkin:
Thanks for great guide!!
[Galaxy S I9000 General] dark_knight35:
Thx for this great guide.

Will try it out soon.
[Galaxy S I9000 General] omyg:
is it possible to make swap on internal flash storage ?
[Galaxy S I9000 General] dark_knight35:
Maybe, but most external sd cards are faster. And it's saver.
[Galaxy S I9000 General] sthomas38:
Where can we find Devil2 73 please?

Envoyé depuis mon Amazon Kindle Fire avec Tapatalk
[Galaxy S I9000 General] lerkin:
http://xdaforums.com/showthread.php?p=25085260
[Galaxy S I9000 General] -ReaL-:
it must be said that the card such use may come into disrepair faster
[Galaxy S I9000 General] Segnale007:
Thank you all.. Your feedback is really important to me .

This guide has been tested on ICSSGS RC 4.2 with kernel Devil2_0.73_swap_i9000_CFS_BLN_CMC_20120420 . However it should just work fine on every roms and kernels which supports swap and do not mess with init.d.
[Galaxy S I9000 General] Segnale007:
Yes it is, but it wont worth to use ur nand as swap as the function of the swap is to read and write cpu data, and its usually very aggressive.

Yes it is faster, but it will most likely going to damage the nand, while using a sd-card is usually slower but the worst scenario is that u will have to trash your sd-card after a couple of years, not the phone..
[Galaxy S I9000 General] gokussjx:
Great Guide! Quite detailed :)

So, did you notice any heavy good change using SWAP?

Or is it just noticeable?

And what about Multitasking?
[Galaxy S I9000 General] shawtylolo:
swap for sgs... great i watin for roms with this . dont forget about power ow swap
[Galaxy S I9000 General] Segnale007:
Thank your for the feedback. However I can say I have suddenly noticed a speed bost in the way the phone response, especially whit multiple applications open and services running in background. Till yesterday without swap I had to close like some apps each 4/5 opened and left in background. Right now I am playing GTA and I have like 8 apps opened in background.
[Galaxy S I9000 General] dark_knight35:
How big is your swap partition?

Looking forward to getting a new micro sd to also feel the speed.
[Galaxy S I9000 General] lerkin:
Now I use 512 mb swap on 10 class sd-card partitioned and set up by this guide. Works well. Feels like much better than with swapper2. Thanks
[Galaxy S I9000 General] dark_knight35:
What's the name of your sd card? I want to buy a new one, because I only have class 2 atm.
[Galaxy S I9000 General] lerkin:
It's a cheep Silicon powder)
[Galaxy S I9000 General] dark_knight35:
Thx. I'm gonna buy this xD.
[Galaxy S I9000 General] Segnale007:
My pleasure :)
[Galaxy S I9000 General] Segnale007:
My swap partition is 512mb, but with heavily usage and lots of apps open in background I barely get to use 150mb of it..
[Galaxy S I9000 General] lerkin:
I have 220/512 mb used of my swap.
[Galaxy S I9000 General] badgerpapa:
Thanks for this.

What happens when you plug into a PC (or unmount external sd under settings->storage?) Does it attempt to unmount the swap partition and present it to the the PC or does it leave it untouched and only unmount the vFat partition?

If it gets unexpectedly unmounted, obviously the device will be unhappy. Perhaps there's a way to trigger a swapon/swapoff script?
[Galaxy S I9000 General] ohcanada:
Just a small OT

you know your phone is getting old when someone is trying to teach others "how to setup swap partition"....I know that feeling man, I was once a proud owner of the legendary HTC G1, I had all these crazy tweaks like compcache, swap, overclock, changing unsafe radio.img, modifying mtd to fit gb etc......

but none the less your guide works:D
[Galaxy S I9000 General] lerkin:
You don't need to think about it. Only fat partition unmounts than you plug your phone to pc. It's safe.
[Galaxy S I9000 General] dawidk750i:
Can I do it on CM9 and seamphore kernel 1.0.0s ?
[Galaxy S I9000 General] lerkin:
Nope... You need different kernel
[Galaxy S I9000 General] dawidk750i:
Where I can find this kernel?
[Galaxy S I9000 General] gokussjx:
I did some digging, & according to many people, Class 10 apparently causes stability/compatibility issues with Android!

Apparently, Class 4/6 is best for Android, & anything higher, is best for high speed camera devices etc, & Android's not recommended.

I don't know if it valid or not, but can anyone verify this? (I would love to hear if Class 10 is recommended, coz I was about to buy one. Need the best of SWAP ;) )
[Galaxy S I9000 General] lpalvaro:
i've used a class 10 micro SD for months without any problem
[Galaxy S I9000 General] dreamer94:
Amazing guide! But i wanna ask

If our sd card speeds low,(mine is class 4 for ex.) don't we get lag on games?

cheers

sorry for my english :(
[Galaxy S I9000 General] lerkin:
Highly unlikely , foreground games will be in ram, not cached in swap.
[Galaxy S I9000 General] Leonardus97:
Does it work with Semaphore 1.0.0 s?
[Galaxy S I9000 General] lerkin:
it was answered on previous page.
[Galaxy S I9000 General] Leonardus97:
ok, how do I do this?

first is adb terminal on the computer or on the phone (bte)?

also what's the swap number from

/dev/block/mmcblk1p2 1861 1924 514080 82 Linux swap ?
[Galaxy S I9000 General] Segnale007:
ADB is the tool u gonna use to access into ur phone from your computer. However you can do it from the phone using the terminal application if ur comfortable with it.

Btw /dev/block/mmcblk1p2 should be the swap partition.
[Galaxy S I9000 General] sunra0815:
Thanks for the guide. I got it working. Don't you think we could make a script flashable via cwm to automate these steps after flashing a new ROM or nightly build?
[Galaxy S I9000 General] dawidk750i:
I downloaded swapper2 from Android Market and i have devil kernel with swapp and all working without this guide
[Galaxy S I9000 General] Segnale007:
Well I been thinking about that.. But do we really need a clockworkmod flashable zip for few easy and well detailed steps??
[Galaxy S I9000 General] dark_knight35:
It`s working better with this guide. For me, phone is very slow after booting with swapper2. And it consumes a few Mbs of RAM ;).
[Galaxy S I9000 General] sunra0815:
It would be nice for people who flash nightlies regularly or want to compare different ROMs. Maybe I make a script after I have done the steps the third time and feel bored ;)
[Galaxy S I9000 General] Segnale007:
Uhm alright but I will be very busy for the next 10 days since I'm moving back to Toronto on Saturday.

Honestly what stops me from doing it now is that I don't know how the script should detect the right swap partition and add it to fstab. Each layout partition scenario can vary depends how you have partitioned the sd-card.

Anyways I will find that out as soon as I have some spare time.
[Galaxy S I9000 General] didicola:
how many mbytes should be the linux swap partition?

i made it 1gb th elinux swap partition

but i cant lockate it in adroid so it can locate it to use it

plz help my friends
[Galaxy S I9000 General] Segnale007:
1GB is way too much for a mobile OS, unless if you have a full linux distro running within android...

Personally I have a 512mb but I can't even get to use half of it..
[Galaxy S I9000 General] sunra0815:
ok guys, I made a package with devil kernel and swap settings.

1. Read the op carefully!

2. Make a swap partition on your /emmc (512mb should be more than enough)

3. It will only work if you have the following swap partition number!!!

/dev/block/mmcblk[COLOR="Red"]1p2[/COLOR]

4. Flash the package via cwm.

5. After a reboot check out if it works with the "free" command.

6. enjoy

If your swap partition has an other number you can change it in the scripts in the .zip package with notepad++ or any linux editor.

1. /systm/etc/fstab

2. /swap.sh

If you do not know what I´m talking about do NOT flash!!!

I´m not a pro. I made this for myself, but maybe it is usefull for you too ...

Please make a Nandroidbackup before and let me know if it works for you.
[Galaxy S I9000 General] didicola:
and what is the swap size of this my friend?
[Galaxy S I9000 General] sunra0815:
:rolleyes:

The swapsize is as big as you made it!
[Galaxy S I9000 General] didicola:
ok i got it you just enable permenently the swap partition i created

if devil continuous to support the swap partition your modifications would be interesting for all people

and one last: any reliable application to check the ram used and swap plz?
[Galaxy S I9000 General] sunra0815:
type "free" in a terminal emulator on your device or via ADB.
[Galaxy S I9000 General] didicola:
so now it is ok right?
[Galaxy S I9000 General] Segnale007:
Good move.. However we need to find out a way that the script will automatically detect wich partiton is the actual swap partiton to be added on /system/etc/fstab ..
[Galaxy S I9000 General] sunra0815:
Yes, at the moment I´m translating all those stuff for our german forum. Maybe I can find out how to grab the partition number later ...

@didicola: Looks good.
[Galaxy S I9000 General] Segnale007:
Yea its working..
[Galaxy S I9000 General] sunra0815:
I´ve found a bug. New Version attached!

echo vm.swappiness=60 >> /system/etc/sysctl.conf

... didn´t work in the swap.sh

Now there is a new line in the 05userinit file:

echo 60 > /proc/sys/vm/swappiness

This works properly.

Thanks to scheichuwe!
[Galaxy S I9000 General] didicola:
there is a new 0.74 version plz integrate it too
[Galaxy S I9000 General] ovedby:
shell@android:/ # free
total used free shared buffers
Mem: 385772 376352 9420 0 26420
-/+ buffers: 349932 35840
Swap: 514076 0 514076

the used part is remains on 0

is this ok?

sorry for the bad eng...
[Galaxy S I9000 General] sunra0815:
Open some apps and games and then check the free space again ...
[Galaxy S I9000 General] ovedby:
Still the same..

Maybe I did something wrong... :confused:
[Galaxy S I9000 General] lerkin:
Wait a couple of hours
[Galaxy S I9000 General] Segnale007:
Did you format the file system in Linux swap?

Try to format it just in case

mkswap /dev/block/mmcblk1p2
[Galaxy S I9000 General] Segnale007:
Also make sure you have set a swappiness value that is at least 60 or higher.
[Galaxy S I9000 General] ovedby:
Now its OK... :)
[Galaxy S I9000 General] dawidk750i:
Segnale could you do package kernel with 256 mb swap because I can olny do 256mb partition swap
[Galaxy S I9000 General] didicola:
this what he explained to me here

you by your self make the size of linux swap during repartition of the card

@sunra0815

plz integrate the swap for Devil2_0.74_i9000_CFS_BLN_CMC_20120422.zip from here

thanks a lot my friend
[Galaxy S I9000 General] Segnale007:
Is it that hard to partition a sd-card? I honestly have no time to do such a script and for a bunch of different sizes.
[Galaxy S I9000 General] sunra0815:
Sorry, I don't have time to compile a kernel and afaik swap isn't activated in v 0.74 ...
[Galaxy S I9000 General] dawidk750i:
I tried partition on my pc with mini tool but i it doesn't work. in recovery I can do only 256mb swap
[Galaxy S I9000 General] Segnale007:
You are clearly doing something wrong..
[Galaxy S I9000 General] didicola:
here you decide how much size will the linux swap size be
[Galaxy S I9000 General] sunra0815:
@Segnale007:

Here is a command to readaout the swap partition (don´t know if that only works while the swap partition is active??):

awk -F" " '{if (NR!=1) {print "\r",$1}}' /proc/swaps
[Galaxy S I9000 General] dawidk750i:
didicola, yes I decided
[Galaxy S I9000 General] dark_knight35:
@segnale007 I know it's a bit OT, but could you also make a guide for data2sd? It would be nice to have the apps on sdcard, so that you don't have to backup them for changing ROMs. And reading speed of external sd is also faster.
[Galaxy S I9000 General] bennybaz:
Sorry for being a NOOB,

but I'm asking you guys for a little info about this swap thing.

I tried to google it but found nothing informative.

I have a 8GB external SD card.

Thank you!
[Galaxy S I9000 General] Segnale007:
Uhm it needs to be tested.. Anyways like I said I have really no time atm to work on a flashable cwm zip to automate few steps..

I understand this can be very useful for some users, mainly nightly flashers, however the main purpose of this guide is to illustrate the users a option to not have to relay on a third party app with limitations and additional ram consumption.

Thank you all for your understanding.
[Galaxy S I9000 General] Segnale007:
If I am not wrong data2sd+ its a script and has to be ported on individual roms.

I have never really messed with it but it should be your rom developer to implement it I think..

I am using ICSSGS and honestly it'd be nice to be able to install apps out of a sd.

Anyways, I am not promising anything but I will certainly give it a look.
[Galaxy S I9000 General] Segnale007:
Doing some researches I came across this post where this guy @fabsifabsi has managed to port data2ext on ICS for the HTC Legend..

I am sure with a bit of work data2ext can be ported on most ICS roms for the SGS as long as those supports initd.

Will give it a closer look as soon as I have some spare time..
[Galaxy S I9000 General] aToS88:
Hi,

It sounds great, awesome work! :)

I have Amestris v7.3 Rom with Semaphore 2.5.0sc kernel, free and swapon commands are working in terminal, can I use swap with these? I do not really want to change kernel if not necessary, neither my Rom (ICS can wait...)

Thank you :)

update: ok, I tried it, function not implemented... can I do it without ICS?
[Galaxy S I9000 General] Segnale007:
I have no idea if there are any gingerbread kernels which supports swap..
[Galaxy S I9000 General] Szighy:
Hi, I want to do the partition on my micro sd but I don't have a USB SD Card reader, can i do it somehow while the sd card is in the phone?
[Galaxy S I9000 General] AbuYahya:
Does the use of a swap have significant effects upon battery ?

Sent from my fone.
[Galaxy S I9000 General] hellboy2703:
Can someone please make an automatic patch for the new Devil's kernel 0.79, like sunra made for 0.73. It's working nicely for Dark Knight 5.5 .

As on devil's thread it is mentioned that it maybe possible.

http://xdaforums.com/showthread.php?p=25574024

Please pardon me for my terrible English
[Galaxy S I9000 General] bitblaster:
Hi guys, great thread.

I tried the zip from sunra and works great, but it has 2 issues i wanted to address:

It doesn't automatically detect the swap partition

It is embedded with a specific version of Devil kernel

I updated swap.sh to automatically detect the kernel support for swapping and the swap partition name (in the external sd only, as it's dangerous to enable such a partition in the internal sd).

Also the updater-script gives some output on the operation (success, swap not supported by kernel, swap partition not found).

Just install it from recovery AFTER installing a kernel that supports swap (for example Devil 0.79)

Thanks to Segnale007 and sunra0815 for the idea.

Please try it and let me know if works correctly!
[Galaxy S I9000 General] hellboy2703:
Thanks... its working.....
[Galaxy S I9000 General] CheekyLord:
---

you can try one of 'existz' 'Talon' kernels. (05x/06x Versions) for Gingerbread.

this dev invest much time for swap in GB ROM's and Talons are very fast Kernel.

---
[Galaxy S I9000 General] Segnale007:
Nope it doesnt..
[Galaxy S I9000 General] thoiloidainhan:
thanks bitblaster, the script works beautifully. I have a question, when I reached the step where I tried to verify the swap partition with this

fdisk -l dev/block/mmcblk1

I got the error 'cant open dev/block/mmcblk1: permission denied'. anyone care to enlighten a SuperNoob. thanks
[Galaxy S I9000 General] dark_knight35:
You have to type 'su' first and enter, to get superuser permissions. Next time you enter a command which is system related, permissions should be given automatically.
[Galaxy S I9000 General] gokussjx:
THis is what I get after creating swap partition, & flashing the zip...

What am I missing? :mad:
[Galaxy S I9000 General] dark_knight35:
Which kernel do you use?
[Galaxy S I9000 General] gokussjx:
Devil's 2.0.83... The one with SWAP feature available.
[Galaxy S I9000 General] dark_knight35:
Did you partition your sdcard?

And did it work before?
[Galaxy S I9000 General] dark_knight35:
Oups... fail
[Galaxy S I9000 General] gokussjx:
Yup. Created a 512MB Swap, & the rest as Fat32 system.

And this is my first try to experience swap on Android.

What do you think is wrong?
[Galaxy S I9000 General] dark_knight35:
It didn't enable swap. Flash again. Does it success(read the output)?
[Galaxy S I9000 General] gokussjx:
I enabled it manually.

Then it works.

I checked the results of the scripts, & found the required files & commands at the right places.. yet, it didn't enable by default.

I need to check more to see what happened.

Will report what happens at next boot...

---------- Post added at 02:36 AM ---------- Previous post was at 01:45 AM ----------

Found it.

Devil's 2.0.83 has a bug. It isn't booting the init.d scripts at all.

Gotta use 2.0.72.
[Galaxy S I9000 General] khiyatesh:
does this swap thing has anything to do with the datafix?applying datafix makes sgs quiet laggy,i guess i will need swap to speed up my sgs.

And i m having class 4 32 gb micro sd,will it be able handle aggresive cpu writes to it?

someone kindly answer :)
[Galaxy S I9000 General] dark_knight35:
I also have this problem, but for most people init.d is working. DerTeufel said that in next release init.d is read twice. Should fix the bug.

Datafix moves the folder where your apps are installed to, swap uses a partition on your sdcard as RAM. All microsd cards can handle swap, but class 4 or 6 is recommended. But card will die faster, as it is often read/written.
[Galaxy S I9000 General] pizz0wn3d:
I just want to say thank you tons for this! It has helped a lot of people in the cappy section (including myself) that would otherwise not be able to get swap working (I was having issues with the VI not having permission to save on the fstab step). Plus, it's makes the updating process so much easier. Especially considering how often DerTeufel likes to update the kernel ;P

Herp derp Captivate Tapatalk 2
[Galaxy S I9000 General] NDeaz:
How to disable swap at boot after http://xdaforums.com/showpost.php?p=25578231&postcount=83 ?

Thanks.
[Galaxy S I9000 General] gabytzuuuz:
hello guys

A used de .zip from bitblaster (10x man ! ) and I had the confirmation of swap partition "success" (yeeey :) ) . So that means,now,my OS can use swap partition....

I'm new on this so I have two qustions:

1. If I restart my phone this setting will stay?

2. Any ideeas for setting "swappiness" and "fudgeSwap" to have great mutitasking and fluid UI? Now my settings for devil_079 are like this:

RAM setting: BigMem

Swap ON

Swappiness : 65

FudgeSwap: 512

Guvernor: lagfree

Deep Idle : on

I/O Scheduler: sio
[Galaxy S I9000 General] jdogzilla:
Running Tiramislim Final v2, and after enabling Swap with Devil3_079, phone becomes very unstable ... with apps crashing all the time. Any suggestions?
[Galaxy S I9000 General] Segnale007:
I am sorry I am out of the SGS development scene .. I can tell u for fact that everything was smooth on 073.
[Galaxy S I9000 General] KUN1:
What do i do wrong?

Rom: SlimKat Weekly 4.6

Kernel: Semaphore
[Galaxy S I9000 General] knuckles1978:
Does anyone have a working link for the required devil kernel, or could please send me it?

Sent from the immortal Galaxy i9000