Jump to content

Recommended Posts

Posted

PHONE MUST BE ROOTED

IF ALL OF THIS IS JUST GIBBERISH TO YOU THAN DON'T DO ANY OF THIS!!!

This is a simple little tweak that will increase loading speeds and in most cases fixes all scroll lag.

There are 2 methods of doing this. Use method 2 only if the 1st one didnt work for you.

METHOD 1:

Create a simple text file with note pad and write the following code:

#!/system/bin/sh
if [ -e /sys/devices/virtual/bdi/179:0/read_ahead_kb ]
then
/system/xbin/echo "XXXX" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;
fi;

NOTE: WHERE "XXXX" put you desired cache size in KB... E.G. 128 or 256 or 512 or 1024 or 2048

Next save it as anything WITHOUT a file extension, E.G. "cachefix"

Now using Root Explorer or a similar app, copy this file to "/system/etc/init.d" folder. (you may also push it across with ADB)

REBOOT

now go to Root Explorer and open "/sys/devices/virtual/bdi/179:0/read_ahead_kb" and see if its changed

METHOD 2:

If method one doesn't work you may try following code, the process is identical:

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 XXXX > /sys/devices/platform/msm_sdcc.2/mmc_host/mmc1/mmc1:$mmcresult/block/mmcblk0/queue/read_ahead_kb
cd /

NOTE: WHERE "XXXX" put you desired cache size in KB... E.G. 128 or 256 or 512 or 1024 or 2048

An App to exist that does the same work on every boot:HERE

And you can flash the ZIP files with CWM.. files below

7974_.zip

7975_.zip

7976_.zip

7977_.zip

7978_.zip

  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...