[Q] Nice Tweak for SD card Cache, not Working on X10, Dev Help Required :) - XPERIA X10 Q&A, Help & Troubleshooting

I whish to use this tweak...
http://forum.xda-developers.com/showthread.php?t=1010807
i can't find the init.d folder to push the script in... Someone knwo where ?
Yperion said:
The script works only with cyanogens mod roms, i cant post on the dev thread so plz write it for the other users.
Regards.
Click to expand...
Click to collapse
If you don't have CWM then you can do following:
Make a file with this content:
Version 1:
#!/system/bin/sh
if [ -e /sys/devices/virtual/bdi/179:0/read_ahead_kb ]
then
/system/xbin/echo "128" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;
fi;
Version 2 (If the Version 1 is not working for your ROM - credit goes to rafpigna):
# Tweak mmc read-ahead - rafpigna -
mmcfolder="/sys/devices/platform/msm_sdcc.2/mmc_host/mmc1"
cd $mmcfolder
folderlist=`ls -1`
mmcresult=`echo $folderlist | grep -o '\bmmc1:\w*' | sed 's/mmc1://'`
echo 128 > /sys/devices/platform/msm_sdcc.2/mmc_host/mmc1/mmc1:$mmcresult/block/mmcblk0/queue/read_ahead_kb
cd /
Change the red marked number from 128 to what you need (example 2048) and save it as "99sdcardreadfix", copy it with the Root explorer or push it with ADB into /system/etc/init.d and set permissions to 777. Reboot.

just flash one of the links he posted

It doesn't work with xrecovery ... allready tried.
Sent from my X10i using XDA App

then i have no idea sorry

it worked
Just pushed to /etc/init.d/ set permissions on all checked and reboot
Sd seems to be more fast to open pictures !
Testing with sdcard speed test my result is:
5Mb/s to write and 15 Mb/s to read
Tks

/system/etc/init.d

You have such a folder on x10?
Sent from my X10i using XDA App

28spawn said:
it worked
Just pushed to /etc/init.d/ set permissions on all checked and reboot
Sd seems to be more fast to open pictures !
Testing with sdcard speed test my result is:
5Mb/s to write and 15 Mb/s to read
Tks
Click to expand...
Click to collapse
Pls mate..can you upload the file??

Cuspide said:
You have such a folder on x10?
Sent from my X10i using XDA App
Click to expand...
Click to collapse
Yes! what firmware are you running??

2.1 0435. Bitsnaker ...
I look in system/etc/
No init.d folder ... not even with a search ... :-( strange....
Maybe i bypassed the bootloader ... joking of course
Sent from my X10i using XDA App

Cuspide said:
2.1 0435. Bitsnaker ...
I look in system/etc/
No init.d folder ... not even with a search ... :-( strange....
Maybe i bypassed the bootloader ... joking of course
Sent from my X10i using XDA App
Click to expand...
Click to collapse
ahahah..So you are a rock!!! XD
I don't know why you don't have this folder...Maybe you can create yourself..i have only 1 file inside it!! Anyway i try to create the file and copy it to init.d folder but it's not working!! Any help pls??

I all ready tried to create that folder... put the script in, changed the permission... not working...
Really annoying it really boost sd card reading, noticable whan you open gallery for example...

Cuspide said:
I all ready tried to create that folder... put the script in, changed the permission... not working...
Really annoying it really boost sd card reading, noticable whan you open gallery for example...
Click to expand...
Click to collapse
I think there is an error in the text code:
#!/system/bin/sh
if [ -e /sys/devices/virtual/bdi/179:0/read_ahead_kb ]
then
/system/xbin/echo "128" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;
fi;

I can't get the code to work automatically but it works!
Row Labels Average of Read Average of Write
128 18.067 13.033
2048 62.171 13.793
3072 74.785 13.505
4096 69.367 13.595
with 3072 it even hit 90MB/s sometimes!. thx u mate.

28spawn said:
it worked
Just pushed to /etc/init.d/ set permissions on all checked and reboot
Sd seems to be more fast to open pictures !
Testing with sdcard speed test my result is:
5Mb/s to write and 15 Mb/s to read
Tks
Click to expand...
Click to collapse
wanna share your file ?

"Yperion" wrote me in PM:
:The script works only with cyanogens mod roms, i cant post on the dev thread so plz write it for the other users.
Regards.[/QUOTE]

hmm. i was able to run thru recovery. but i dun feel ALOT of diff. just ABIT faster only.

SD tweeks
mrljlamon said:
wanna share your file ?
Click to expand...
Click to collapse
There is nothing to share here I guess. You are looking at wrong file. there si no system/etc there is only etc/init.d when you use root explorer.
however you can edit your values by
- Manually change read_ahead_kb from 128 to 2048, 3072 or 4096 using root explorer.
i am getting 6 mb/s read and 40 or 50 mb/s write

not bad finding
i was able to increase reading speed from ~10Mb to 18Mb with a script file
the problem with this is that after a reboot it returns to 128Kb
but HELL i had a script so everytime i reboot just need to press one button

atintan said:
There is nothing to share here I guess. You are looking at wrong file. there si no system/etc there is only etc/init.d when you use root explorer.
however you can edit your values by
- Manually change read_ahead_kb from 128 to 2048, 3072 or 4096 using root explorer.
i am getting 6 mb/s read and 40 or 50 mb/s write
Click to expand...
Click to collapse
and witch values you use to get those high values?

Related

[Howto] App2sd Step by Step

This new Turial is not from me credits go to tot31
I'm writing the how to my own way, hope this will more helpful..
How To : App2sd on Xperia X10i mini
Pre Installation.
I'm assuming that you have just fresh install 2.1/1.6 firmware and root your phone before you start the procedure. This is how I did with my phone.
1. Reinstall 2.1 firmware by using Sony Ericsson Update Service.
2. Root the phone by using SuperOneClick ( http://d01.megashares.com/dl/1xcuTic/Super...4-ShortFuse.zip ). More info on SuperOneClick, go here -> http://forum.xda-developers.com/showthread.php?t=803682
Note : Please disable any anti virus especially Kaspersky as it will give false virus alarm and will delete one of the file.
Step 1 : Preparing your micro SD Card.
Please refer to this link ( http://forum.xda-developers.com/wiki/index...rd_partitioning ) on how to prepare your micro sd card. For better performance I would advise that you use a Class 10 card instead of the original card that comes with the phone because the card is only Class 2 card. For more infomation on speed class rating of sd card please go here -> http://en.wikipedia.org/wiki/Secure_Digital
An excerpt taken from wikipedia :-
The following are the ratings of some currently available cards:
* Class 0 - These cards do not specify performance, which includes all legacy cards prior to class specifications.
* Class 2 - Minimum of 2 MB/s performance. Lowest speed for SDHC cards.
* Class 4 - Minimum of 4 MB/s performance.
* Class 6 - Minimum of 6 MB/s performance.
* Class 10 - Minimum of 10 MB/s performance.
Note : The recommended maximum size of ext2 partition is 1.4GB. I've tried 3GB before and ended up with unstable system and eventually crash the phone. So if you're really greedy since you've bought a 16GB or 32GB card to partition the ext2 more than the recommended size and if your phone is unstable, you've been warn.
Step 2 : Download the related files.
1. App2sd : see attachment
2. adb shell : see attachment
Step 3 : Enabling USB Debugging mode on you phone.
Go to Settings -> Applications -> Development -> USB Debugging (check this option).
Step 4 : Installing App2sd.
Create a folder name adb in your pc and extract all the files from adb.zip into this folder.
Connect your phone to your pc and mount the sd card. Extract all the file from app2sd2.1.zip to the root of your sd card. Make sure to unmount the sd card before continue the next step.
In your pc open up a dos terminal box by typing cmd in the Search programs and files box.
Type
cd /adb
then type
adb shell
then type
sh /sdcard/app2sd.sh
you'll be presented by this screen...
+________________________________+
|********************************|
|*Welcome To wolfilein's App2sd *|
|*installing script *|
|********************************|
+--------------------------------+
~this version should be go on any device ~
+___________________+
|********************|
|* Menu *|
|* *|
|*[0] install app2sd*|
|*[1] remove app2sd *|
|*[2] exit *|
|********************|
+--------------------+
[0]
now just press the enter key & wait.
Important : Make sure to set your phone screen timeout to the max because Superuser will ask for your permission to allow this script to run. If your screen goes blank, you can't see this prompt and the installation will fail.
after a while you'll get this..
busybox is /system/bin/busybox
rm failed for /etc/mount_sd.sh, No such file or directory
+________________________________+
|********************************|
| finished going reboot now |
|********************************|
+--------------------------------+
Don't worry, actually it does not fail. I also got the same message and I also thought it failed but when install all the apps and check using Minitool Partition Wizard and Linux Reader for windows, all my applications are installed into my card (see my previous post with screenshot).
The Explanation
If you look through the app2sd.sh script, command rm /etc/mount_sd.sh means remove/delete the mount_sd.sh file from /etc folder, since that file does not exist in the fresh install phone, it gives this error message but continue with other commands..
rm /etc/mount_sd.sh
mv /system/bin/sh /system/bin/sh_bak
cat /sdcard/sh.sh > /system/bin/sh
chmod 777 /system/bin/sh
busybox cp /sdcard/mount_sd.sh /etc/mount_sd.sh
echo "
+________________________________+
|********************************|
| finished going reboot now |
|********************************|
+--------------------------------+
"
sleep 1
reboot
Finally after a reboot, your phone is ready with app2sd. From now on when you install any applications it will save into your sd card.
Disclaimer : Do this at your own risk. I will not responsible if any injuries or damage occur to you or your phone
wolfilein said:
/!\Warning this is for testing only/!\
¯¯ ¯¯
here is the script that "should work on the x10 minni"
i hadn't one so i can't say if it works
install is verry easy just
first make a second ext2 fomratted patition on the sdcard
extract the zip in the root of your sd-card
open an adb shell
and type in
sh /sdcard/app2sd.sh
then press just enter and app2sd will be installed
yout phone will reboot and then say me if it give errors
wolfilein
Click to expand...
Click to collapse
it says the folder do not exist
when said it this??
does the actually work?
i have an idea
can anyone of you guys ceck out wat habens if you add a bootscript to
/system/drm/DxDrm/init_drm.rc
/system/etc/hw_config.sh
anyone check this please
just a question.... do it "should work on the x10 minni PRO" ?? ( device with phisycal qwerty) ?
Sorry for my bad english !!
init.rc
what if i enter contents of drm.sh to init.rc?
check please this out!!
in the init.rc it seems the pregram must be a service
wolfilein said:
i have an idea
can anyone of you guys ceck out wat habens if you add a bootscript to
/system/drm/DxDrm/init_drm.rc
/system/etc/hw_config.sh
anyone check this please
Click to expand...
Click to collapse
init.rc
i'm not comfy editing init.rc.
I'm gonna try Autostart application from market first.
are you ignoring me ??
and you the autostartapp can't start before it's loaded on boot that means that you must first load the apps
hwconfig.sh
there is no hwconfig.sh in etc folder.
2 thing create one
and check if it excuted
and
check this file
/system/drm/DxDrm/init_drm.rc
wolfilein said:
2 thing create one
and check if it excuted
and
check this file
/system/drm/DxDrm/init_drm.rc
Click to expand...
Click to collapse
added code to init_drm.rc
did not work.
trying hw_config.sh
i will try to edit the init.rc
if i succes i will say it
no luck with hw_config.sh
so ive edit my script and i will upload it now on both
x10 an x10 minni this script should work on every android phone
so now your script is good also for x10 mini pro ??
simple way apps2sd
First, you have to make two partitions on your sdcard - Fat32 and ext2 (ext3)
Second, Mount ext2(ext3) on your device
Third, ln -s /system/app/xxx.apk \sdcard\ ext partition\ way you want\xxx.apk
Caution - never try to remove sdcard after this operation - very dangerious for the health of your device.
your way is not so good
and yes it !should! work now buti cannot test it
garbage
MasterKira said:
so now your script is good also for x10 mini pro ??
Click to expand...
Click to collapse
not really, this time it froze my phone on bootup at the SE logo.
I fear i might have to reflash n lose all my settings!

SD-Card Speed Up!

Speedup your SD-Card reading Speed as follow steps:
1-Download and install "SD Tools" app that attached below and run to inform your sdcard write and read speed before applying speedup patch.
2-Download and install "Script Manager".
3-download "sdcardspeed.zip" file and Move "sdcardspeed.sh" file into your SD-Card.
4-Run "Script Manager" program and select "sdcardspeed.sh".
in opened page: fill the "Run as Root" and "Run at Boot" check boxes and Save!
5- Reboot the phone and after reboot "Allow" superuser!
6-Run again the "SD Tools" and compare your SD-Card speed after applying the patch.
Progress in your SD-Card speed is depend on your SD-Card Class.
Why not asking for SU after ReBoot!? (Here's explaing of the problem!): Thanks to GlossGhost
Lol, it really does something, Read: 4.5 MB/s
thanks good staff for my x10 i will test it later
the clock on the before shot shows that it was taken after the other
There's actually a new app called "SD increase " that will take care of the script for u
Sent from my X10i using XDA App
ermm... is there really a need to open a new thread when someone has already posted in our X10 General section where it should belong?
increase sdcard read/write speeds
anyway, good effort though...
GlossGhost said:
Lol, it really does something, Read: 4.5 MB/s
Click to expand...
Click to collapse
mine - 9.6 mb/s before
now is 10 mb/s
how to Allow SU after reboot?
microsd SU16G
cache set to 3072
before write 5.8 read 17.2
after write 6.5 read 26.1
Before 6.7
17.7
After 5.6
19.2
MicroSD SU08G
before
2.6
14.7
after
4.6
25.1
thanks
nonentity said:
ermm... is there really a need to open a new thread when someone has already posted in our X10 General section where it should belong?
increase sdcard read/write speeds
anyway, good effort though...
Click to expand...
Click to collapse
You can see downloads number of the thread
Why would my write speed go up but not my read speed? In fact my read is slower than the write!
Sent from my X10a using XDA App
great find!!
before write 1,2 read 12
after write 1,2 read 13,8
nice!!
my results WITHOUT the script:
1 - Write: 3.2 MB / s Read: 12.1 MB / s
2 - Write: 5.4 MB / s Read: 13.3 MB / s
3 - Write: 9.1 MB / s Read: 14.5 MB / s
4 - Write: 10.1 MB / s Read: 14.9 MB / s
5 - Write: 11.0 MB / s Read: 14.6 MB / s
6 - Write: 10.4 MB / s Read: 14.6 MB / s
Now with the script:
Firstly, the script did not do anything!
Message from GScript "sdcardspeed.sh: / system / bin / echo: not found"
this happens because I have echo in the xbin folder
After changing the file "read_ahead_kb" manually to 3072,
1 - Write: 9.9 MB / s Read: 32.6 MB / s
2 - Write: 10.3 MB / s Read: 29.8 MB / s
3 - Write: 10.3 MB / s Read: 30.3 MB / s
Conclusion,
first we need to make 3 or 4 tests without the script to get the real speeds, and secondly, only the reading speed increased (is already good enough).
Question: How does "read_ahead" could increase the writing speed?
Why not asking for SU after ReBoot!? (Here's explaing of the problem!)
memazy said:
mine - 9.6 mb/s before
now is 10 mb/s
how to Allow SU after reboot?
Click to expand...
Click to collapse
Okay, so I think everybody know's that when you turn on the phone, it's "Preparing SD Card" so the Script Manager is starting earlier than the sd card (i know the card is not starting but preparing). So the manager starts, and searches for the script, but there is NO sd card (because the sd card is preparing...) and what? Loading the script FAILS! That's why the manager don't ask for SuperUser permissions. That's why You have to move the "sdcardspeed.sh" to the INTERNAL MEMORY (I suggest moving it to the root folder of the INTERNAL MEMORY where are all the folders: system, sdcard.. etc) then you do all the instructions below.
Here's MY instructions:
1-Download and install "SD Tools" app that attached below and run to inform your sdcard write and read speed before applying speedup patch.
(attached @ first post!)
2-Download and install "Script Manager".
(attached @ first post!)
3-Download "sdcardspeed.zip" file and Move "sdcardspeed.sh" file into your SD-Card.
(attached @ first post!)
4-Use something like Root Explorer and move the "sdcardspeed.sh" file to the root folder of the INTERNAL MEMORY.
5-Run "Script Manager" search for the "sdcardspeed.sh" in the INTERNAL MEMORY not at the EXTERNAL MEMORY!" and select it.
6-In opened page: fill the "Run as Root" and "Run at Boot" check boxes and Save!
7- Reboot the phone and after reboot "Allow" superuser!
8-Run again the "SD Tools" and compare your SD-Card speed after applying the patch.
____________________________________________
That's from me
Nice one
Before:
5.9 and 15.5
After
9.6 and 46.8
Read speed increased by 3 times!!! Good one mate..
sony ericsson E10i (x10 mini)
To what cache/buffer size does this script increase the stock value?
My sd has the fastest speeds with 2048kb...
Does this work for 2.1?
I've changed the cache size manually with Root Explorer and I've seen a huge jump in my read and write speeds.
The only issue is that the change I made goes back to default when I reboot my phone.
I've seen other MODs but it required for me to have 2.2, which is why I'm asking.
vitas0y said:
Does this work for 2.1?
I've changed the cache size manually with Root Explorer and I've seen a huge jump in my read and write speeds.
The only issue is that the change I made goes back to default when I reboot my phone.
I've seen other MODs but it required for me to have 2.2, which is why I'm asking.
Click to expand...
Click to collapse
there's a guid in this thread
http://forum.xda-developers.com/showthread.php?t=1013554
before:
write : 4.0 mb/s
read : 11.9 mb/s
after:
write : 1.3 mb/s
read : 99.4 mb/s
something must be wrong... write speed 4x less and read speed 9x more

howto - mount ISO in CD-ROM

install gscript
create a folder on your sdcard (example /sdcard/iso)
copy in /sdcard/iso *.iso files
create in gscript 2 scripts
mount_iso - to mount an image(NAME.iso - the name of your file)
Code:
echo "/sdcard/iso/NAME.iso" > /sys/devices/platform/msm_hsusb/gadget/lun1/file
umount_iso - to umount an image
Code:
echo "" > /sys/devices/platform/msm_hsusb/gadget/lun1/file
i assume this script assumes your first loop file is free
what if its already used example in case on a apps2sd application
I have so in MIUI
/sys/devices/platform/msm_hsusb/gadget/lun0 - sdcard
/sys/devices/platform/msm_hsusb/gadget/lun1 - sdrom
can create /sys/devices/platform/msm_hsusb/gadget/lun2 ??
But how? vold.fstab vold.conf ???
I do not use apps2sd, I do not know how it works
Code:
volume_cdrom {
media_path /sys/devices/platform/msm_hsusb/gadget/lun1/file
media_type cdrom
mount_point /system/etc/cdrom.iso
}
dik-m said:
I have so in MIUI
/sys/devices/platform/msm_hsusb/gadget/lun0 - sdcard
/sys/devices/platform/msm_hsusb/gadget/lun1 - sdrom
can create /sys/devices/platform/msm_hsusb/gadget/lun2 ??
But how? vold.fstab vold.conf ???
I do not use apps2sd, I do not know how it works
Code:
volume_cdrom {
media_path /sys/devices/platform/msm_hsusb/gadget/lun1/file
media_type cdrom
mount_point /system/etc/cdrom.iso
}
Click to expand...
Click to collapse
these are basically loop files when you do a loopmount using losetup i suppose you get that autocreated.
however i am no expert on MIUI ROM and hence will not comment any further on this.
anantshri said:
however i am no expert on MIUI ROM and hence will not comment any further on this.
Click to expand...
Click to collapse
it is not only MIUI, on the official firmware also
sorry for translation
very good
its possible make a apk for this?
monta990 said:
its possible make a apk for this?
Click to expand...
Click to collapse
Yeah a APK with auto mount would rock.
OmegaRED^ said:
Yeah a APK with auto mount would rock.
Click to expand...
Click to collapse
With a widget
Sent from my X10i using XDA App
guys i am not promising anything right now as currently i am still learning on how to create apps, i can may be make an app/widget for this... but this will be low priority as i already have some bigger projects that i am working on
max 700 mb
this mod only support 700 mb isos.
fack, to Gingerbread not work
doesn't mount have something like
mount -o loop -t iso9660 iso_file /path?
in the kernel does not support USB-CDROM
where to get path? can create using mknod? but how and whether to work?

[ROM] Miui v4 ICS

Miui v4 ics
V1 Pre Alpha :
Bad:
Not rooted (V2)
Big size (it's a MIUI) its an ext4 take more place but faster then ext2
Good :
Faster
Mount internal and external in same time on usb storage
http://www.multiupload.nl/YOJJ6EGDTB
Need this Fota :
http://forum.xda-developers.com/attachment.php?attachmentid=1340004&d=1348112866
Can use this fota for Jb too
1634 Score Quadrant Bench
Update kernel lzo compression faster boot :
http://www.2shared.com/file/elX9vC8e/zImage.html
If you have some prob with lock tell me
Ps : MIUI better on Nand more place more faster
Do i just replace previous ?
basbulletje said:
Do i just replace previous ?
Click to expand...
Click to collapse
yes
so it's a beta... i'm just trying it!
Devriel said:
so it's a beta... i'm just trying it!
Click to expand...
Click to collapse
Just kernel for ICS now
I will try tomorrow with full version of this cfw
Very good job! I congratulate you!
This is one of the most complete truth Roms?.
Will you do a video to see the optimization?
Update :New kernel
Also for now i can upload Slim ICS with optimisation...
MIUI coming later not finished...
Tigrouzen said:
Incoming :
MIUI V4 ICS
Kernel :
Super optimised
Swap
Sd mount external USB storage
Boot on 39sec
Super Fast
....
For now you can test kernel and install SwapperApp test it with any ICS rom for wave of course
Or you can test it like this :
Before make a backup your sd :
You need have on your sd second parition swap
on android terminal or adb shell
fdisk /dev/block/mmcblk1
p
d
(delete all partition)
n
p (primary)
1 (first)
first sector : (enter)
last sector : +3400M (if your card are 4go)
t
b (fat32)
n
p
2
enter
enter
t
2
82
w
after :
mkswap -c /dev/block/mmcblk1p2
and:
mkfs.vfat -c /dev/block/mmcblk1p1
then :
vi /etc/fstab
write this :
/dev/block/mmcblk1p2 swap swap defaults 0 0
for save like this :
:z or :w (cause im on azerty keyboard)
then quit:
:q
Or other way in windows :
notepad
copy past line
and save file name fstab
with no extension
(you need to choice in option folder to see extension on file in windows for no mistake)
and adb push fstab /etc/
or copy it on sd and on terminal android if you dont have adb shell do this :
cp /emmc/fstab /etc/
then in terminal or shell :
chmod 0755 /etc/fstab
finaly reboot and on terminal android :
swapon /dev/block/mmcblk1p2
if you want all time swapon start you need to add on script in /etc/init.d/ folder
SlimFast with optimise and debug :
170Mo Free
TvOut
Rooted...
Upload
Click to expand...
Click to collapse
can you please add liveOC and voodo.colour support to your swap enabled kernal.
---------- Post added at 09:41 AM ---------- Previous post was at 09:39 AM ----------
liveOC + swap enabled would be really.nice and smooth.
m90ultimate said:
can you please add liveOC and voodo.colour support to your swap enabled kernal.
---------- Post added at 09:41 AM ---------- Previous post was at 09:39 AM ----------
liveOC + swap enabled would be really.nice and smooth.
Click to expand...
Click to collapse
LiveOC Rebellos can do it, need to be change on kernel
Tigrouzen said:
Incoming :
MIUI V4 ICS
Kernel :
Super optimised
Swap
Sd mount external USB storage
Boot on 39sec
Super Fast
....
For now you can test kernel and install SwapperApp test it with any ICS rom for wave of course
Or you can test it like this :
Before make a backup your sd :
You need have on your sd second parition swap
on android terminal or adb shell
fdisk /dev/block/mmcblk1
p
d
(delete all partition)
n
p (primary)
1 (first)
first sector : (enter)
last sector : +3400M (if your card are 4go)
t
b (fat32)
n
p
2
enter
enter
t
2
82
w
after :
mkswap -c /dev/block/mmcblk1p2
and:
mkfs.vfat -c /dev/block/mmcblk1p1
then :
vi /etc/fstab
write this :
/dev/block/mmcblk1p2 swap swap defaults 0 0
for save like this :
:z or :w (cause im on azerty keyboard)
then quit:
:q
Or other way in windows :
notepad
copy past line
and save file name fstab
with no extension
(you need to choice in option folder to see extension on file in windows for no mistake)
and adb push fstab /etc/
or copy it on sd and on terminal android if you dont have adb shell do this :
cp /emmc/fstab /etc/
then in terminal or shell :
chmod 0755 /etc/fstab
finaly reboot and on terminal android :
swapon /dev/block/mmcblk1p2
if you want all time swapon start you need to add on script in /etc/init.d/ folder
SlimFast with optimise and debug :
170Mo Free
TvOut
Rooted...
Upload
Click to expand...
Click to collapse
Dude, i'm not getting it will you put on a simple TUT please. or anyone
Thanks in advance
Update Slimfast for test use...
Tigrouzen said:
Update Slimfast for test use...
Click to expand...
Click to collapse
testing right now ..
Edit ; Just copied rom files to internal memory and booting to android after badadroid screen phone is turn off ? why ?
hero355 said:
testing right now ..
Edit ; Just copied rom files to internal memory and booting to android after badadroid screen phone is turn off ? why ?
Click to expand...
Click to collapse
Its difficult to find this bug o Wave II no lcd and ddms show me all time screen... I need Wave I...
Tigrouzen said:
Its difficult to find this bug o Wave II no lcd and ddms show me all time screen... I need Wave I...
Click to expand...
Click to collapse
after badadroid screen phone is turning off
hero355 said:
after badadroid screen phone is turning off
Click to expand...
Click to collapse
Did you see lockscreen ?
Tigrouzen said:
Did you see lockscreen ?
Click to expand...
Click to collapse
Nothing after first badadroid logo phone is turning off
hero355 said:
Nothing after first badadroid logo phone is turning off
Click to expand...
Click to collapse
Ok
Hello there!
Yep, he's right. I can't see anything after first "badadroid" logo.
Update
Its slim rom optimised ICS im working on MIUI more fatser JB but making mistake i lost all my work...
Sd working browser work....
coming later for MIUI

[SCRIPT] MySwap v1.0 (SD and NAND) 13/11/2013

THIS IS A SCRIPT TO HAVE SWAP AND NOT A ROM!
I tested the swap on "CM10.x" by volk204 but there isn't a reason it shouldn't work on other rom versions.
version 1.0 13/11/2013 18:29 GMT+2
I experienced some lag with my wave due to its low ram memory. So after testing a few things i found myself more comfortable with setting up swapfile on sd card(NAND memory); after few minutes this terminal becomes really smooth. (It strangely is faster than setting it up on the phone memory, atleast for me)
The idea is mine, but checking around i found that many other script were made. I got the sleep line to boot part idea from "Defiant07 @ XDA" (http://forum.xda-developers.com/showthread.php?t=2359182). Everything else (as simple it is it's all mine)
Swap is the *nix term for virtual memory, that maybe many are familiar with on windows.
You set up a partition/file and use that as virtual memory. It will be much slower than real ram, but it will be much faster than reloading everything from disk everytime.
Code:
#!/system/bin/sh
# This script was authored by Defiant07 @ XDA. If you use/redistribute it, eve$
# Thanks to zeppelinrox most of all, but also many thanks to dk_zero-cool & gu5$
# Much thanks to pikachu01 @ XDA for permission to use the sysctl tweaks from T$
# Read Karl Marx!
# Nearly entirely modified by skyglow
swapfile="/storage/sdcard0/swapfile"
#swapsize in KB
swapsize=524288
swappiness=90
vfs_cache_pressure=100
dirty_background_ratio=5
dirty_ratio=20
dirty_writeback_centisecs=500
dirty_expire_centisecs=200
while [ ! "`ps | grep -m 1 [a]ndroid`" ]; do sleep 10; done
if [ ! -f "$swapfile" ]; then
dd if=/dev/zero of=$swapfile bs=1024 count=$swapsize
mkswap $swapfile
fi
# sleep 30
# mkswap $swapfile
swapon $swapfile
busybox sysctl -e -w vm.swappiness=$swappiness
busybox sysctl -e -w vm.vfs_cache_pressure=$vfs_cache_pressure
busybox sysctl -e -w vm.dirty_background_ratio=$dirty_background_ratio
busybox sysctl -e -w vm.dirty_ratio=$dirty_ratio
busybox sysctl -e -w vm.dirty_writeback_centisecs=$dirty_writeback_centisecs
busybox sysctl -e -w vm.dirty_expire_centisecs=$dirty_expire_centisecs
exit 0
Requirements
Superuser rights on terminal to change permission and copy this file
Configuration
1) set up "swapfile" field to where you want your swap
2) set up "swapsize" field to an appropriate value in KB! ( i think you should try values over 307200 => 300MB to have performance improvements)
(SD or NAND version)
SD version
size=512 MB
position=sdcard root
NAND version
size=300MB
position=bada application partition
How to install
1) Download the right zip from this page
2) Extract the file from the zip
3) Upload the file in some way on the phone
4) Become superuser
5) move it to "/system/etc/init.d"
6) this file should keep hits name "99myswap"
7) change permissions of "99myswap" to 755
8) change its rights to "root:shell"
9) done, next reboot your swap will be set up automatically
P.S.
How to check if swap is activated:
Open terminal
cat /proc/swaps
Swap filename should be displayed with the right size
[ADDED DEBUG SCRIPT]
Possible problems
1) System hangs on cyanogen loading screen ( rotating circle)
INVESTIGATING
2) Battery charge lasts less.
Any kind of virtual memory use more electrical power to perform write/read on disk (SD). This is a side effect of swap.
3) File format
*NIX file format is LF and not CR-LF (for reference why this happens http://en.wikipedia.org/wiki/Newline#Representations)
You can't edit the file with windows notepad, but use something else such as notepad++ and save it in LF coding.
4) System is slower
Possible causes are:
a) you have applications on the same filesystem where you placed the swap
b) your memory (such as SD card) is too slow. Swap will work, it will just go much slower. Try it with a better sd. I tested it with a class 4 and class 10 sdcard and they both speed up. I don't have any possibility at the moment to test a class 2. (reference http://en.wikipedia.org/wiki/Secure_Digital#Speeds)
5) How to change permissions (thanks Eltjo for copy paste from your answer)
Open terminal
Type: su
Type: cd /system/etc/init.d
Type: chmod 0755 99myswap
Type: chown root:shell 99myswap
6) zRam
On my mobile it's faster if i disable zRam from Settings > Performance > Memory Management > zRam .
Anyway i think outcome may change. Try both solutions.
could be possible to use free nand memory as swap instead of sd card?
cfernr said:
could be possible to use free nand memory as swap instead of sd card?
Click to expand...
Click to collapse
I added the NAND version that installs itself in the bada partition. If you installed the sd version remember to remove the swapfile.
darklight2k2 said:
I added the NAND version that installs itself in the bada partition. If you installed the sd version remember to remove the swapfile.
Click to expand...
Click to collapse
lets try both, thank you very much
no problem.
DEBUG REQUEST
Who had the loading screen on cyanogen circle may tell me which sd card class have?
The following procedure do not install the script, it just will work till reboot.
may them try to upload the script in a generic directory such as /storage/sdcard0 and execute it with
su
cd /storage/sdcard0
sh ./99myswap
I'd like the output of that command and the resulting /proc/swaps
then use the phone, (play/call/charge/reboot)
next boot start the script again please and tell me the resulting /proc/swaps again
Thank you for the help
seems work on my phone.
installed swapfile on nand and ram increased 30mb, but low improvement in real performance.
need to change zram options, but cant find this on my phone, maybe due to language discrepancy. can you explain better?
thank you a lot
I also cannot find zram a options under B.U.X V3.1 (4.3.1 CM10.2) by Tigrouzen
If you don't have the menu for zRam it's disabled by default. To see it you should enable all developer settings.
Settings > About phone > Build number (tap 7 times)
Some more tweaks will unlock.
saltcushy said:
I also cannot find zram a options under B.U.X V3.1 (4.3.1 CM10.2) by Tigrouzen
Click to expand...
Click to collapse
Unfortunally i didn't test that rom yet but i think the procedure above will work.
darklight2k2 said:
If you don't have the menu for zRam it's disabled by default. To see it you should enable all developer settings.
Settings > About phone > Build number (tap 7 times)
Some more tweaks will unlock.
Unfortunally i didn't test that rom yet but i think the procedure above will work.
Click to expand...
Click to collapse
tested and I have to say this is necessary if you want to enjoy a few extra mb in this phone.
I recommend nand swap because everybody have 300-400 unused mb in bada apps partition.
disabling zRAM seems also recommendable.
I hope everybody take care of this script for future ROM releases
*** I will decrease swappiness to 70 or 60, I think it is enough.
darklight2k2 said:
no problem.
DEBUG REQUEST
Who had the loading screen on cyanogen circle may tell me which sd card class have?
The following procedure do not install the script, it just will work till reboot.
may them try to upload the script in a generic directory such as /storage/sdcard0 and execute it with
su
cd /storage/sdcard0
sh ./99myswap
I'd like the output of that command and the resulting /proc/swaps
Thank you for the help
Click to expand...
Click to collapse
i've a samsung class 10 32gb.
i've not run the script with sh command, just copied it to /system/etc/init.d (aplied chmod and chown) and reboot the phone. after that it hangs on CM circle on first boot and have to re-install the rom. wipe data/factory reset didn't help.
best regards
JonasVFC said:
i've a samsung class 10 32gb.
i've not run the script with sh command, just copied it to /system/etc/init.d (aplied chmod and chown) and reboot the phone. after that it hangs on CM circle on first boot and have to re-install the rom. wipe data/factory reset didn't help.
best regards
Click to expand...
Click to collapse
To try to solve it i need to know what happens when executed with the sh command
darklight2k2 said:
To try to solve it i need to know what happens when executed with the sh command
Click to expand...
Click to collapse
after installing the rom again it can boot the first time but hangs on the second like everybody else
running with sh it runs ok
JonasVFC said:
after installing the rom again it can boot the first time but hangs on the second like everybody else
running with sh it runs ok
Click to expand...
Click to collapse
that's why i said not install in the problem request
problem is with chown, just run the chmod 755. didn't run chown command last time and it booted second and third time
edit: nevermind, it hanged again
darklight2k2 said:
that's why i said not install in the problem request
Click to expand...
Click to collapse
i did it with 2 different ways....with a fresh install between and both hang
JonasVFC said:
i did it with 2 different ways....with a fresh install between and both hang
Click to expand...
Click to collapse
You're just posting and posting what happens but not what i asked you to do to five me information.
darklight2k2 said:
You're just posting and posting what happens but not what i asked you to do to five me information.
Click to expand...
Click to collapse
i did what you asked, read again, i ran it with sh: it runs fine!! creates the swapfile and outputs some parameters that are in the script like swapiness and others....
JonasVFC said:
i did what you asked, read again, i ran it with sh: it runs fine!! creates the swapfile and outputs some parameters that are in the script like swapiness and others....
Click to expand...
Click to collapse
Hi, @JonasVFC.
I understand you've been running the Swap version of Android v2.1 Volk204. How do you get it?.
Yo, if I install the file in the directory 99myswap indicating the first page, but I get that the system does not start, stays on constantly CM logo.
A greeting.
chapito said:
Hi, @JonasVFC.
I understand you've been running the Swap version of Android v2.1 Volk204. How do you get it?.
Yo, if I install the file in the directory 99myswap indicating the first page, but I get that the system does not start, stays on constantly CM logo.
A greeting.
Click to expand...
Click to collapse
May you guys try the following attached file please?
when it hangs may you post the logfile created in the phone directory ( you can get it from bada)

Categories

Resources