yashsingh1/xdaforums huggingface dataset:
[Optimus One, P500 Android Development] kly91:
Finnaly francisco,,I've still got the smooth and fast screen browsing..even at the app drawer..However i got a slower response when i open the appdrawer from my dock in the homescreen..i have flashed all the zips just like before..

Here's my neocore result too after
[Optimus One, P500 Android Development] franciscofranco:
That is so not normal... Can you post your quadrant score too please?
[Optimus One, P500 Android Development] kly91:
ok..just a minute..
[Optimus One, P500 Android Development] kly91:
here it is francisco
[Optimus One, P500 Android Development] franciscofranco:
It's a little low, I can almost top 1500... Try this, download Watchdog app from market and see if any app is taking out your cpu power. I see in your screenshot something that seems to me that is a firewall or an antivirus, am I right?
[Optimus One, P500 Android Development] kly91:
that's my antivirus..it's lookout premium..i'm actually using watchdog already..and unfortunately none of my apps or services are taking so much of the cpu.
[Optimus One, P500 Android Development] franciscofranco:
Try stopping that antivirus completely and run neocore again.
[Optimus One, P500 Android Development] kly91:
Here are the screen shot again after disabling my antivirus protection...I still got low neocore scores..

Kindly confirm if the tweaks are on the right directory too sir francisco.

I have also added the screen shots of my watchdog
[Optimus One, P500 Android Development] franciscofranco:
Ok. Try this: on the tweaks file (99tweaks) set check all permissions. I believe you're using root explorer, just open the file menu of 99tweaks -> permissions -> a "X" on every setting. Then reboot and test again. If that doesn't do it get rid of that task killer.
[Optimus One, P500 Android Development] kly91:
i got 45.3 fps..i'll try getting rid of the taskkiller

Even without task killer i did get 45.6 fps still..
[Optimus One, P500 Android Development] taha198:
@Franco

Mik included some of your tweaks, so should I reflash your tweaks again (I did a fresh install of beta 6)

BTW I use a2sd on ext4
[Optimus One, P500 Android Development] Samhain77:
Patched libsqlite.so isn't working on my own made custom rom like you said in the first post.... Is there any hint I can follow to make it works??

For the moment I'm Nand restoring...... :)

Edit:

After Nand restore I flashed the other 2 zips and it's all ok.... I'm testing it now.
[Optimus One, P500 Android Development] Magnumutz:
6% Battery drain in 4:30 hours with everything off. Good or not?

Sent from my Optimus One
[Optimus One, P500 Android Development] Samhain77:
Could it be because it's compiled for 2.3.3 (it's working on CM7) and my rom is 2.2.2?
[Optimus One, P500 Android Development] blueren:
I have 5% batt drain in roughly 6 and half hours WITHOUT the tweaks. When I tried out the tweaks y'day again, I had 2% drain in an hour! I'm yet to test the updated version. I'll try them out again today evening and post back
[Optimus One, P500 Android Development] kly91:
as for me i got 15% drain for an hour and a half under normal usage and without wifi,3g, or bluetooth and at a dim screen brightness..hope everything will be fine after some time..i need to test it more..

EDIT: Funny thing that after another hour and a half without using my phone except for occasional screen on to check on the battery and notifications the battery's percentage did NOT drop a single percent..still at 85%...Really great when on standby but not so good when in use.
[Optimus One, P500 Android Development] aursta:
franco, as i flashed p500 tweaks.zip my neocore scores droped to ~45 fps..

i dont think its normal, i have red that some others have this problem.

so what to do?:)
[Optimus One, P500 Android Development] kly91:
try disabling the sound in neocore then run it again.
[Optimus One, P500 Android Development] kly91:
@ Franco..I think i found a something interesting..after turning off the sound at neocore i got 50+ fps per second..if i turn it on again it will drop down to 45 or 46 fps..Do you think it's something related to your tweaks since its in the sounds? well, it's not a real answer but i just noticed it..lol

here is a screen shot after disabling the sound in neocore:
[Optimus One, P500 Android Development] aursta:
i dont think its a solution to disable sound ^^
[Optimus One, P500 Android Development] kly91:
just try to turn off the sound for neocore in its settings and run the test again..cause it seemed to work for me for the benchmark atleast..
[Optimus One, P500 Android Development] franciscofranco:
@At everyone

I don't know what might be the problem because it seems situational, not everyone has it and I can't reproduce it on my phone... I'll have a closer look today, but it's really strange.

EDIT: Those of you having problems try this one and report back: test
[Optimus One, P500 Android Development] bioan:
All high scores are with sound off.
[Optimus One, P500 Android Development] kly91:
what's in the test zip sir?
[Optimus One, P500 Android Development] Samhain77:
This sqlite3 is working..... I'm doing some tests...
[Optimus One, P500 Android Development] Samhain77:
With this new test.zip my phone seems faster than ever even if I get a Neocore score of 31.1 (without sound).

Now I'm trying to close all apps except the system ones to have another test....

EDIT: got 39.0 from last test.... with all apps closed.

Please note I'm not on CM7 but on my own custom rom.....
[Optimus One, P500 Android Development] bluviper:
i see,

noticing the change in my P500, makes me want to install it in my Samsung Spica.

errr, maybe not this time.. hehehehhe

but the scripts work coz i can feel how it behaves on my phone....

good one.
[Optimus One, P500 Android Development] franciscofranco:
Glad I could help :)
[Optimus One, P500 Android Development] sarfaraz1989:
this patch shud be in the upcoming 2.3 builds by mik and andy
[Optimus One, P500 Android Development] kokesh:
This thing writes the readahead value through init.d - check the contents of ZIP. This would be the most convenient thing for installing these tweaks permanently!

http://www.mediafire.com/?5mc2vl3fpsfcd3k
[Optimus One, P500 Android Development] bluviper:
wow! now it is flashable? and will reside within the system once installed?

kewlness!
[Optimus One, P500 Android Development] ungaze:
Now were talking! Did you make the script? Was tinkering with the "setprop" command and can't seem to get it to work, have any idea?. Then again, we could just edit the build.prop ourselves right?

setprop wifi.supplicant_scan_interval 200;

Now we could compile all the tweaks into one script, but the franco's first 3 scripts doesn't seem to work for me. Gscript returns some error on some line.
[Optimus One, P500 Android Development] franciscofranco:
Even if it returns the errors it works, you can just cat files and see that it works.
[Optimus One, P500 Android Development] Omnichron:
you Sire, are a Gawd! finally a flash-able tweaks file. thank you:D
[Optimus One, P500 Android Development] kokesh:
this ZIP doesn't perform all the tweaks from this thread. You must put the script from this thread inside the zip into init.d - currently in only sets 2048k readahead. Can somebody put the script inside? I can't do it right now :)
[Optimus One, P500 Android Development] ungaze:
here's the combined script I'm using

#!/system/bin/sh
#

# Tweak to increase sdcard read ahead buffer and change scheduler
mount -t yaffs2 -o remount,rw /dev/block/mtdblock1 /system
echo 4096 > /sys/devices/virtual/bdi/179:0/read_ahead_kb
for i in `ls -l /sys/block/mtdblock* | tr -s " "| cut -d " " -f 6`
do
echo "noop" > /sys/block/$i/queue/scheduler
done
echo "noop" > /sys/block/mmcblk0/queue/scheduler

# Tweak that tells android that is using a non-rotating disk
DM=`ls -d /sys/block/dm*`;
MTD=`ls -d /sys/block/mtd*`;
LOOP=`ls -d /sys/block/loop*`;
RAM=`ls -d /sys/block/ram*`;

for j in $DM $MTD $LOOP $RAM;
do
echo 0 > $j/queue/rotational;
done

# Tweak to improve kernel virtual memory management
echo 0 > /proc/sys/vm/swappiness;
echo 10 > /proc/sys/vm/dirty_ratio;
echo 1000 > /proc/sys/vm/vfs_cache_pressure;
echo 4096 > /proc/sys/vm/min_free_kbytes;

Works pretty well with gscript(download this, copy to /sdcard/gscript, open gscript > add new script > load from file > choose the combined.sh from SD > save and run).

Now, problem is init.d scripts seems to use a different format and needs to call some lines explicitly. Now if someone with enough knowledge can have a look at this maybe we can all have a brighter tommorrow ;) .(a hint about setprop would be very helpful too)
[Optimus One, P500 Android Development] sarfaraz1989:
found an easy way to run a script having all tweaks automatically at boot ..

1.save all tweaks in a script (which u probably already have)

2. using adb on pc login as root adb shell and then su

3. paste your script in /sdcard/ (adb push mytweaks.sh /sdcard/)

4. mount system rw ,using mount -t yaffs2 -o remount,rw /dev/block/mtdblock1 /system

5. cp /sdcard/mytweaks.sh /data/mytweaks.sh

6. cd /etc/init.d/

7. vi 35apps2sd

8. press i to enter "insert mode" and then go to the end of the Darktremor's script (assuming busybox is installed)

9. and type the following in a new line

/system/bin/busybox sh /data/mytweaks.sh

10. now to exit vi press esc key and then type this :wq and press enter

thats it..reboot and verify if its working using

adb shell and then "cat /proc/sys/vm/min_free_kbytes" it shud be 4096 (as script says)

Works well on LOLv1.2 shud work on others too..

if u have problems try chmod 0777 /data/mytweaks.sh

P.S. i have included my script ..IT IS NOT FLASHABLE JUST EXTRACT THE SCRIPT FROM THE ZIP ARCHIVE AND FOLLOW THE STEPS ABOVE..
[Optimus One, P500 Android Development] kly91:
i'm soryy i need to ask a question..How do i go to darktremor's script?..I'm realy new to the android world but i really would like to use this tweak..Actually i was lost in step number 5..Kindly help me pls..Thanks in advance.
[Optimus One, P500 Android Development] kly91:
i'm sorry i need to ask a question..How do i go to darktremor's script?..I'm really new to the android world but i really would like to use this tweak..Actually i was lost in step number 5 ( the second number 5 because the numbering was not edited It restarted at 4 after number 6)..Kindly help me pls..Thanks in advance.
[Optimus One, P500 Android Development] DonDizzurp:
do you have vi editor? if not youll need to use whatever one you have
[Optimus One, P500 Android Development] sarfaraz1989:
the file that i mentioned above "35apps2sd" is actually the darktremor's script ..All u have to do is to open it up and add that line in the end
[Optimus One, P500 Android Development] sarfaraz1989:
sorry abt that typo.. now everything is in sequence..TO sum up all i m doing above is first copying the script inside the phone and then launching it automatically at boot using the "32apps2sd" file (this is the a2sd script i think) and if u dont have vi installed (latest busybox) u can simply mount /system rw and then fire up "Root explorer " on your phone ..navigate here /etc/init.d/ and Edit that file using root explorer ..Hope this helps
[Optimus One, P500 Android Development] ungaze:
Ok now, I think sarfaraz1989's method is somehow "ROM dependent"

I'm not quite sure, but when cooking a ROM from disxda's kitchen, you get 2 options of busybox to include. The old one compatible with most ROMs and tweaks and the new one optimized for 2.1 and 2.2 and so on.

So I'm guessing that that's where the disparity comes from.

Adding this line for me didn't work

/system/bin/busybox sh /data/mytweaks.sh

But changing it to this one worked flawlessly:

/system/[B]xbin[/B]/busybox sh /data/mytweaks.sh

hope someone could shed more light on this.
[Optimus One, P500 Android Development] ungaze:
Non-ADB method(Must have Root explorer)

1.Download sarfaraz1989's mytweaks.sh here and place it on SD card.

2.Using Root Explorer, copy mytweaks.sh(can be found on /sdcard) to /data

3.Now long press on mytweaks.sh and choose "permissions". Check everything

4.Navigate to /system/etc/init.d

5.Toggle "mount R/O"(can be found on the upper right corner)

6.Long press on 35apps2sd and choose "open in text editor"

7.Navigate to the last line before exit; and add this line:

/system/bin/busybox sh /data/mytweaks.sh

8.Exit and save

9.Now long press on 35apps2sd and choose "permissions". Check everything

10.Exit Root Explorer and reboot.

If it doesn't work(like what happened to me), go back to step 7 and change the line inserted into this:

/system/xbin/busybox sh /data/mytweaks.sh

then continue to step 8 to 10.
[Optimus One, P500 Android Development] ungaze:
OR, someone please test this update.zip(to be flashed through recovery)(remember to toggle the signature verification thingy).

Check if successful by entering this command on "terminal emulator"(free from market)

cat /proc/sys/vm/min_free_kbytes

terminal should reply with "4096"
[Optimus One, P500 Android Development] Zerobarat1:
Well unfortunately I tried it just now but verification failed and on 1.1 recovery I don;t have the option to turn verification off. Can't you just sign it? I think there was an app for that.

Scratch this I'm really dumb. It was under the "Other" section in the recovery .

Yeah I tested Ungaze and it shows 4096 with that command in emulator

So I guess it worked...

Damn I did a SD tools test and Write speeds dropped from 5 to 3.4 but read speeds raised from 30 to 40 . ... Gonna test battery life now
[Optimus One, P500 Android Development] franciscofranco:
Different settings, I'm trying to find out what's causing that fps drop, but it ain't easy because I can't reproduce it, that's why I made a flashable .zip with different settings.
[Optimus One, P500 Android Development] franciscofranco:
If it's Froyo that's a normal score if I remember right.
[Optimus One, P500 Android Development] Samhain77:
Yeah! Froyo 2.2.2 coming out from italian V10e stock rom..... so it's a good value??
[Optimus One, P500 Android Development] franciscofranco:
Yes, it's pretty normal, but don't pay too much attention to neocore, it's not that important.
[Optimus One, P500 Android Development] Samhain77:
Ok, thanks. Just let me know if you need further tests and/or benchmarking....
[Optimus One, P500 Android Development] kly91:
For me i got 47.6 at my first run..then after closing gps i got 57.3fps..nice work..but i felt no change in the speed..BTW i'm running with cm7 by mik_os

Anyway here's my screen shot:
[Optimus One, P500 Android Development] franciscofranco:
There you go :) Enjoy!
[Optimus One, P500 Android Development] franciscofranco:
Thanks! This test.zip performed better for you, overall usage, not benchmarks, or it was just placebo?
[Optimus One, P500 Android Development] Samhain77:
In terms of speed it's really better (I've just tested with some games that before have some lags) and it's really responsive also in the home screen. I've just to test the battery drain...

I don't know if it's for sqlite3 now working or for the changes you make on the tweak script or for both of these.
[Optimus One, P500 Android Development] kly91:
wew..now i got 58.1 even with gps turned on..I think you could now more or less update again your first build for the test zip..:D..Nonetheless even without this zip, your tweaks are still great for the cm7..
[Optimus One, P500 Android Development] Samhain77:
By the way, the sqlite3 on the test.zip is compiled just for 2.2.2?
[Optimus One, P500 Android Development] aursta:
well that test.zip works:P fps increased
[Optimus One, P500 Android Development] franciscofranco:
I already had the sqlite3 in the compiled .zip from the first page, it's really the new settings in the script that I've changed. And no, the sqlite3 is just a library, as far as I know works in every rom.
[Optimus One, P500 Android Development] franciscofranco:
I'll have to test them myself, I only changed some values/lines for you people to test. But I'm glad it worked fine!

Awesome! ;)
[Optimus One, P500 Android Development] motsach89:
Any one used it on VOID??
[Optimus One, P500 Android Development] razvanborza:
Any one used it on Andy's ROM ????
[Optimus One, P500 Android Development] Magnumutz:
Yes, i am using it, it's working just fine.
[Optimus One, P500 Android Development] Samhain77:
Oooops.... sorry I was just confusing sqlite3 with libsqlite....... Is there a way to make patched libsqlite works on froyo?
[Optimus One, P500 Android Development] franciscofranco:
You have to compile it from source with this changes:

diff -urNp external/sqlite/dist.origin//sqlite3.c external/sqlite/dist//sqlite3.c
--- external/sqlite/dist.origin//sqlite3.c	2011-01-07 15:26:32.000000000 +0800
+++ external/sqlite/dist//sqlite3.c	2011-01-07 15:27:55.000000000 +0800
@@ -34761,7 +34761,7 @@ SQLITE_PRIVATE int sqlite3PagerOpen(
pPager->readOnly = (u8)readOnly;
/* pPager->needSync = 0; */
assert( useJournal || pPager->tempFile );
- pPager->noSync = pPager->tempFile;
+ pPager->noSync = 1;
pPager->fullSync = pPager->noSync ?0:1;
pPager->sync_flags = SQLITE_SYNC_NORMAL;
/* pPager->pFirst = 0; */
@@ -65838,7 +65838,7 @@ static void attachFunc(
sqlite3PagerLockingMode(pPager, db->dfltLockMode);
sqlite3PagerJournalMode(pPager, db->dfltJournalMode);
}
- aNew->safety_level = 3;
+ aNew->safety_level = 1;
aNew->zName = sqlite3DbStrDup(db, zName);
if( rc==SQLITE_OK && aNew->zName==0 ){
rc = SQLITE_NOMEM;
@@ -97124,7 +97124,7 @@ static int openDatabase(
** database it is 'NONE'. This matches the pager layer defaults.
*/
db->aDb[0].zName = "main";
- db->aDb[0].safety_level = 3;
+ db->aDb[0].safety_level = 1;
db->aDb[1].zName = "temp";
db->aDb[1].safety_level = 1;
[Optimus One, P500 Android Development] Samhain77:
mmmmm...... not so easy for me.... :(
[Optimus One, P500 Android Development] Turion17:
you can upload a .zip of libsqlite.so for froyo 2.2.2?? :)
[Optimus One, P500 Android Development] ungaze:
Already made a request about this. But sadly, here's what I got:

http://xdaforums.com/showthread.php?t=1000899
[Optimus One, P500 Android Development] franciscofranco:
I can't do that too unfortunantly, I got mine from mik, he compiled it for me.
[Optimus One, P500 Android Development] Magnumutz:
Just got 59.6 FPS in Neocore :)

I admit, the CPU was overclocked and i got a kernel panic after the benchmark was done :D
[Optimus One, P500 Android Development] aursta:
yeah god job
[Optimus One, P500 Android Development] ivaaN:
Well, i´ve just flashed the zips, and now i can´t connect the phone on mass storage. What should i do?
[Optimus One, P500 Android Development] franciscofranco:
Reboot, the tweaks have nothing to do with that.
[Optimus One, P500 Android Development] ivaaN:
Ok, it started working. Thanks ;)
[Optimus One, P500 Android Development] ngarcesp:
to update the tweaks just have to flash the new one over the old ones?
[Optimus One, P500 Android Development] franciscofranco:
Yes, just like that.
[Optimus One, P500 Android Development] theb3s7:
Just flashed the 3 zips on andy's cm7 2.3.2 rc2.1

I got 55 fps in neocore @600Mhz

The three zips being local.prop.zip, p500_tweaks.zip and libsqlite.zip
[Optimus One, P500 Android Development] franciscofranco:
That's a pretty good score, but overall usage is more important than a simple benchmark, and I hope that works for you ;)
[Optimus One, P500 Android Development] funkyblue04:
Hello

Just a small suggestion that you need to download 3 zips. The first post is a bit confusing. Cheers
[Optimus One, P500 Android Development] franciscofranco:
It's not confusing. You have tweaks.zip, local.prop.zip, test.zip and an optional libsqlite.so for CM7 users.

tweaks and local.prop are to flashed. If you read the text it says clearly that test.zip is only to be flashed if you experience lag after applying tweaks.zip.
[Optimus One, P500 Android Development] theb3s7:
Yes, I'm very happy with its performance.

The battery not so much though..
[Optimus One, P500 Android Development] razvanborza:
With this tweaks and Andy's ROM .... 31hours of use ... and 45% remains... moderate use.. is fantastic 4 me.
[Optimus One, P500 Android Development] Samhain77:
Do you use the original one or the test one?
[Optimus One, P500 Android Development] Zerobarat1:
Moderate use , or more like no use :) . 31 Hours and 45 % remaining , even on froyo equals 5-10 min of calls , checking from time to time the hour and the rest hardcore idlling . And pls don't say you used it like : 1 hours of gaming , 1 h of 3G , 1 h of calling .... :D
[Optimus One, P500 Android Development] lerkin:
Hi, is there any way to undo changes made by flashing these tweaks? Not nand restore...
[Optimus One, P500 Android Development] blueren:
go to /system/etc/init.d and delete 99tweaks file and reboot

the local.prop is found in /data
[Optimus One, P500 Android Development] sadun91:
but try to delete, it said 'cannot delete' i am using stock file manager.
[Optimus One, P500 Android Development] franciscofranco:
You need an explorer with root, otherwise it won't work. Try Root Explorer, or use adb.

Can you tell me why are you deleting? Maybe something I can fix.
[Optimus One, P500 Android Development] lerkin:
Guys, I can't find any local.prop in \data after patching both zips...

Where can it be?
[Optimus One, P500 Android Development] franciscofranco:
It must be in /data.

Do this on the terminal or adb:

ls /data

If local.prop is in /data it will show with that command.
[Optimus One, P500 Android Development] lerkin:
Interesting, but I don't have it there, and with root explorer too.
[Optimus One, P500 Android Development] franciscofranco:
Copy it manually then.
[Optimus One, P500 Android Development] lerkin:
Thank you, did it already.
[Optimus One, P500 Android Development] ungaze:
@lerkin

thanks for bringin this up, lookin at the build.prop updater script:

mount("MTD", "system", "/system");
show_progress(0.500000, 40);
ui_print("****: flashing stock applications");
[B]package_extract_dir("system", "/system");[/B]
show_progress(0.200000, 10);
unmount("/system");

with this I can tell that anyone who used the build.prop flashable zip copied nothing to nothing. What does it mean? Nothing ;) . Just pointing out that theres no harm done and once franco fixes this then everything is going to be fine.

@Franco

It shows that you are copying contents of folder /system to the /system partition indicated by the highlighted lines. change all system indicator into data and it should then work fine.
[Optimus One, P500 Android Development] sadun91:
My fault.i thought your revious tweak is better than the latest..i experienced very heavy drainage of battery.and luckily.after i removed a theme that i flashed together with your tweaks.it become normal..

And i wanna ask,before i flash the theme and your tweaks,i have made a backup.and then after experienced th bttery problem,i removed the theme by restoring..and my question,is the tweak i apply before also removed?
[Optimus One, P500 Android Development] franciscofranco:
Hmm, that's interesting, I didn't know about that. Thank you man, I'm going to fix it in a sec.
[Optimus One, P500 Android Development] franciscofranco:
That's the reason I never apply any themes.

Your explanation was a little confuse. Just reflash the tweaks, it's safer.

EDIT: local.prop.zip updated, please re-flash it.
[Optimus One, P500 Android Development] Zerobarat1:
Flashed these tonight (including test.zip) on cm7 b6 and I am impressed with boot speed. Other than that it feels solid but in terms of battery there is no improvement.
[Optimus One, P500 Android Development] franciscofranco:
I know, local.prop flashable .zip isn't working. I'll fix it in a sec, pretty busy at the moment.
[Optimus One, P500 Android Development] sadun91:
sorry, i used my phone to send that post, that's why there are some sentences confusing.:D.

okay, thank you, now i'll reflash those tweaks.

----------------------------------------------

sometimes i feel placebo about the battery life. :D :D
[Optimus One, P500 Android Development] franciscofranco:
Updated first post. Just download local.prop and extract it to /data.