im running the latest Drizzys hero and i need to set up my swap can anybody put the commands please and what do i use to set it up?....i'm running it o a G1 thanks in advance!!
Do you already have the third partition? If you do, then you can do this in terminal:
Code:
echo 80 > /proc/sys/vm/swappiness
Where "80" is my value for swappiness
I am M3 said:
Do you already have the third partition? If you do, then you can do this in terminal:
Code:
echo 80 > /proc/sys/vm/swappiness
Where "80" is my value for swappiness
Click to expand...
Click to collapse
how do u do this permanently from terminal?
ok so let's see if i got it....i did open Terminal Emulator and after i put that code i just get a # should i get any confirmation option? what is the code to check my swappiness at the moment?...and one more thing i should this everytime i reboot right?
DKM119 said:
ok so let's see if i got it....i did open Terminal Emulator and after i put that code i just get a # should i get any confirmation option? what is the code to check my swappiness at the moment?...and one more thing i should this everytime i reboot right?
Click to expand...
Click to collapse
You won't get any varification you'll just recieve no errors. If you want to check the swappiness
Code:
su
vi /system/bin/user.conf
look for cc_swappiness= [] <-- That's what you're swappiness is at.
Got it working ^^
Hi guys. can you please help me on swap. how can i enable it and disable it. and also set it to the amount that i want it. im still a bit new to this and i have also tried to look for a guide but cant find 1. thanks
Rawdi said:
Hi guys. can you please help me on swap. how can i enable it and disable it. and also set it to the amount that i want it. im still a bit new to this and i have also tried to look for a guide but cant find 1. thanks
Click to expand...
Click to collapse
If you are on Kings rom, it may be running already.
Type #free in terminal and see if it shows swap.
Rawdi said:
Hi guys. can you please help me on swap. how can i enable it and disable it. and also set it to the amount that i want it. im still a bit new to this and i have also tried to look for a guide but cant find 1. thanks
Click to expand...
Click to collapse
bbuchacher said:
In Terminal:
echo 30 > /proc/sys/vm/swappiness to change swappiness to 30 replace number with any number 1-100
cat /proc/sys/vm/swappinesss to see a current level
Click to expand...
Click to collapse
bbuchacher, just wrote it
thanks but the rom that im using is not using swap. how to i setup swap? can i push a user file?
Rawdi said:
thanks but the rom that im using is not using swap. how to i setup swap? can i push a user file?
Click to expand...
Click to collapse
It definitely depends on the rom. Some King roms he has a script you run. Other roms, all you do is go to Spare Parts and set what you want. It may be best to ask in the thread for that rom.
I remembered using this when I used CM:
http://forum.xda-developers.com/showthread.php?t=581328&highlight=swap
Enable swap
I used the method to enable swap in Linux on this and it worked fine on Cyanogen and Super-D.
I used Amon_RA Recovery 1.52 to partition my SDCARD and the new recovery lets you choose the size of your partitions.
so I created a 256MB Swap.
from a console/terminal do the following after creating your swap partition the size you want it:
1. mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system (makes system dir writable)
2. mkswap /dev/block/mmcblk0p3 (formats the swap partition on SD with swap format)
3. vi /system/etc/init.d/05userinit (make a new line at the bottom and add "swapon -a" with out the quotes this forced the swap to mount on boot if it is disabled in a kernel)
4. vi /system/etc/fstab (add a line that says "/dev/block/mmcblk0p3 swap swap" with out the quotes)
5. reboot
Hope you know how to use vi editor If not google it. "I" is insert mode and push track ball and hit 1 at the same time and that will esc you to command mode, in command mode do a :wq! and hit enter and that will save the file.
This works on all roms i have run into and no matter what others say it does help the performance.
I can make it easier (short of putting this in a script). Type each line in order and hit enter after each.
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
mkswap /dev/block/mmcblk0p3
echo "swapon -a" >> /system/etc/init.d/05userinit
echo "/dev/block/mmcblk0p3 swap swap" >> /system/etc/fstab
reboot
TGA_Gunnman
The UNIX Dude
NEW POST AT: http://forum.xda-developers.com/showthread.php?t=1297712
NEW POST AT: http://forum.xda-developers.com/showthread.php?t=1297712
this gingerbread rockz man
Thanks for all your work on the Tattoo camera. You are AWESOME!
Does Google Goggles work with the current state of the ROM?
not works with goggles and scan bar programs.
4 said:
Thanks for all your work on the Tattoo camera. You are AWESOME!
Does Google Goggles work with the current state of the ROM?
Click to expand...
Click to collapse
Is suposed to work but I never use it
You recived my pray?
Yesterday i install your rom following the spanish post, with google translate!
All works, only thing that i found is that with FactoryROM of Tattoo the browser render the website "nearest" than the GB Rom, it is normal?
@noob question:
I make the sdcard 3 partition 1 FAT32, 1 ext2 (sd-ext), 1 swap trought linux cfdisk and format the partitions using mkfs.* commands, but ClockworkRecovery doest see my sdcard anymore, so i have to reboot, and format the sdcard again, it is normal?
Kalim i believe in you
Dont miss :*
-vt- said:
You recived my pray?
Yesterday i install your rom following the spanish post, with google translate!
All works, only thing that i found is that with FactoryROM of Tattoo the browser render the website "nearest" than the GB Rom, it is normal?
@noob question:
I make the sdcard 3 partition 1 FAT32, 1 ext2 (sd-ext), 1 swap trought linux cfdisk and format the partitions using mkfs.* commands, but ClockworkRecovery doest see my sdcard anymore, so i have to reboot, and format the sdcard again, it is normal?
Kalim i believe in you
Dont miss :*
Click to expand...
Click to collapse
Partitioning sdcar is only for people willing to switch beetwen 1.6 and 2.3 OS. I you want this you nedd to create VFAT partition, ext3 partition labeled sd-ext, and swap partition labeled swap. then use the recovery I have compiled at HtcMania.
You're the best men, thanks for your job and wish a fully working camera
Nick85
Multilanguage
Can you tell me which languages contain?
hey man,im using your rom for 2 days now and is workin like a charm...its a litle slower then nFinityGB 0.5 but works,i specialy like built-in overclocking option ....just have one question: can you recommend me an app for monitoring temps and speed of CPU in real time?
Have you tried to use program like swapper or swapper2 ? they make my rom fly
after reboot try this from terminal
echo 3 > /proc/sys/vm/drop_caches
Usualy for linux cached memory is best of free memory, but i got boost from doing this command many times while testing
a little exaple
/data # free
total used free shared buffers
Mem: 190368 186228 4140 0 968
Swap: 49144 332 48812
Total: 239512 186560 52952
/data # echo 3 > /proc/sys/vm/drop_caches
/data # free
total used free shared buffers
Mem: 190368 157188 33180 0 16
Swap: 49144 332 48812
Total: 239512 157520 81992
/data #
Click to expand...
Click to collapse
this is a great achievement....but please can u correct a few issues im facing here
1)Status bar cannot be changed to white
2)Batter circle...takes steps of 5..
i mean from 100% it goes to 95% and then to 90%....
3)wifi is connecting properly....but must say this rom connects to the data connection very fast....
sorry for my bad english...
-vt- said:
Have you tried to use program like swapper or swapper2 ? they make my rom fly
after reboot try this from terminal
echo 3 > /proc/sys/vm/drop_caches
Usualy for linux cached memory is best of free memory, but i got boost from doing this command many times while testing
a little exaple
Click to expand...
Click to collapse
tnx for tip man.....
vman987 said:
this is a great achievement....but please can u correct a few issues im facing here
1)Status bar cannot be changed to white
2)Batter circle...takes steps of 5..
i mean from 100% it goes to 95% and then to 90%....
Click to expand...
Click to collapse
This is not an issue. its a custom circle battery mod that is supposed to work like that.
Can in future be more than 320 video recording? Maybe 480p or 720?
Been using this for past couple of days & very happy. Finally have camera... woohoo.
Keep up the good work, I have full faith in you getting our little camera the full functionality it should have.
djemm1996 said:
Can in future be more than 320 video recording? Maybe 480p or 720?
Click to expand...
Click to collapse
The camera doesn't actually work properly yet. Let alone video recording. If you want to film 720p videos, spend 50 quid on something that's designed to do it. It will do a 100x better job than a crap Tattoo.
-vt- said:
Have you tried to use program like swapper or swapper2 ? they make my rom fly
after reboot try this from terminal
echo 3 > /proc/sys/vm/drop_caches
Usualy for linux cached memory is best of free memory, but i got boost from doing this command many times while testing
a little exaple
Click to expand...
Click to collapse
If you test swap and find an improvement just let us know, so more people will try and I will add to the new ROM.
Hello, Thanks for all your camera work, but i have a Big problem with my Tattoo!
I am allowed to recive and make calls, and to recive messages, but not send...
I Gets this error "Message Not Sent - select to review the message and try again."
I have Just been in the secret Settings( "*#*#4636#*#*) and went wrong and changed the radio(have changed it back) and edited "WCDMA Preferred" to some thing else( switched back now).... I Need Help!
BTW, Nice Work!
On some roms i cant set swap, my 2nd partition is linux swap and than when i try to enable it its just showing enabling... and nothings happens, only got some SU permissions appearing all the time!
Is there any solution/fix for my problem?
goldenr said:
On some roms i cant set swap, my 2nd partition is linux swap and than when i try to enable it its just showing enabling... and nothings happens, only got some SU permissions appearing all the time!
Is there any solution/fix for my problem?
Click to expand...
Click to collapse
are you using swapper2 app? please specify more info on your problem
You dont need to use an app to get swap. I prefer three lines of code in /system/etc/hw_config.sh
mkswap /dev/block/mmcblk0p2
echo 30 > /proc/sys/vm/swappiness
swapon /dev/block/mmcblk0p2
Try this to see if works
hunff said:
You dont need to use an app to get swap. I prefer three lines of code in /system/etc/hw_config.sh
mkswap /dev/block/mmcblk0p2
echo 30 > /proc/sys/vm/swappiness
swapon /dev/block/mmcblk0p2
Try this to see if works
Click to expand...
Click to collapse
but if rom/kernel doesn't support then gonna use swapper2 from the market.
or else follow hunff instruction and open terminal emulator
-type free
-swap 0 0 0 = not active use swapper2
-swap any value other than 0 = active
Thank you it works!
CKKnot said:
are you using swapper2 app? please specify more info on your problem
Click to expand...
Click to collapse
I am using reset swap app as my title says!
but i tried swapper2 and it says such a directory doesnt exist or other error message forgot it.
I thought ,that swap doesn't work if the kernel doesn't supporting it.
So you say that you can have swap if you have stock kernel(by using swapper?.
Sent from my E15i using Tapatalk
not sure about what he said...
i know you cant use swap partition to set swap with stock kernel
but dont know about swapper through FAT32
Enabling swap may add some virtual memory to your sdcard, but it may reduce the performance and speed
the objective of this how-to is to get everybody to know how they can enable swap with the help of a file on their on
swapper 2 application will do this in a much better way and it would be an automated process
this post is only for knowledge purpose
the recommendation is to use "swapper 2" available in play store
Steps:-
1. open any file manager and create a folder called "swap"
2. open that folder and create an empty file called "swap"
3. now open Terminal emulator and type
Code:
mkswap /sdcard/swap/swap [B]amount in KB[/B]
the amount in KB is the size of the swap file in the KB unit that you want to create
in other words the the amount of additional virtual memory you want to add
Click to expand...
Click to collapse
normally amount in KB should be equal or more to your current RAM
creating the swap file may take ~2 minute
4.now type in terminal
Code:
swapon /sdcard/swap/swap
the above command will activate the swap
5. now we will set the swappiness, for that purpose another command needs to be put in the terminal that is
Code:
echo 100 > /proc/sys/vm/swappiness
4th and 5th steps are needed to run after every reboot so for that purpose I have created a script just download it and set it to run on boot in script manager or put it in init.d if you have it, you can download script from here
now everything is set just put busybox free and see if you get swap working or not
any doubt please ask
not found
i enter it in terminal :
mkswap/sdcard/swap/swap 1048576
badnamess said:
i enter it in terminal :
mkswap/sdcard/swap/swap 1048576
Click to expand...
Click to collapse
use "space" after mkswap..
Swapon failed on /sdcard/swap/swap