yashsingh1/xdaforums huggingface dataset:
[Optimus One, P500 Android Development] XLR8_2K:
Bummer :P

CM7b6.3

clean

flash after

total

wipeout.

Flash Ungaze's data2sd.zip v1.2

reboot.

Looking good, some app installs, reboot.

Clean and working.

Reboot 2 recovery,

flash only tweaks,

not

sqlite as you said.

reboot.

all apps, home, accounts, gone...fc's all over the place.

:mad:
[Optimus One, P500 Android Development] marioemp2k7:
I would do things a little different and that is:

1.a. Wipe everything, including manually formatting /boot and /system (Clockworkmod)

1.b. Be aware that if you are on Clockworkmod recovery you will always get ext4 fs. Ungaze's script could have some issues with that. To be sure you are doing everything right create an ext2 patition manually

2. Flash CM7b.6.3; at this point do a nandbackup

3. Flash tweaks without libsqlite; reboot and make sure everything is fine

4. Make another nandbackup and flash Ungaze's latest script

At this point you will now if everything is fine or not. Just test a little.
[Optimus One, P500 Android Development] kly91:
Francisco..i've got a question..Was the zip supposed to change the values in the proc/sys/vm files? and should i see the changes also when i do a getprop in the terminal emulator? Cause it seems that the zip is not working for me..The values in the proc/sys/vm files where in default even after some reboots even in the getprop Tried to reflash it again but still the same..Like the dirty ratio was still 20..

when i went to check on it using root explorer,its permissions was not executable so i thought that was the culprit so i checked the executable for the user, group and the 3rd one(i forgot,,hehe)..However Everytime i change the permissions i got stock at the lg logo (Tried 5 times still got the same results)..

BTW..for it to work i removed the local prop settings at the end of the 00tweaks file and copied it in a local prop file which i again placed to the data folder..Changed the permissions of the 00tweaks to executable then tried a reboot..now i got pass through the boot and the changes in the values are now visible in my getprop and proc/sys/vm files..Is what i've done correct?
[Optimus One, P500 Android Development] franciscofranco:
Yes you've done it correctly. Seems like it's different for every rom and every user, and that's the hard part when supplying the comunity with new stuff. Thanks a lot for your feedback, I'll look into it in a few minutes ;)
[Optimus One, P500 Android Development] kly91:
ahk..thanks for the confirmation and for looking into it..
[Optimus One, P500 Android Development] franciscofranco:
Script updated with the correct permissions for both 00tweaks and sqlite3 binary file.
[Optimus One, P500 Android Development] kly91:
ok..i'll try to flash that..thanks
[Optimus One, P500 Android Development] kly91:
Sir franco i got stuck stuck at the lg logo after flashing..i'd try to remove the battery then try to reboot again..
[Optimus One, P500 Android Development] franciscofranco:
-.- Thanks for testing, I don't know what I've done wrong this time. Lemme see...

EDIT: Try again now. Turn verification off from recovery, I didn't sign it.
[Optimus One, P500 Android Development] bgdxv:
First Post:

Last edited by franciscofranco; Today at 01:30 AM.

You sure you put the right one?
[Optimus One, P500 Android Development] franciscofranco:
Yes I am sure, just verified, again.
[Optimus One, P500 Android Development] bgdxv:
Flashed it. Stuck on LG Logo :(
[Optimus One, P500 Android Development] franciscofranco:
Try again now.
[Optimus One, P500 Android Development] bgdxv:
Starts up now. How can I check if the tweaks are applied?
[Optimus One, P500 Android Development] franciscofranco:
cat /sys/block/mtdblock1/queue/nr_requests

If it's 512 then it's done.
[Optimus One, P500 Android Development] bgdxv:
yep reads 512;) thanks
[Optimus One, P500 Android Development] ngarcesp:
when i go to that route root explorer gives me a FC, actually is when i try to open mtdblock1

i have a question, what does this tweaks do?
[Optimus One, P500 Android Development] franciscofranco:
You can't open blocks with Root Explorer.

Linux I/O scheduler also has a functionality to sort incoming I/O requests in its request-queue for optimization. Queue size is configurable. Queue size is defined as "/sys/block/sdX/queue/nr_requests".
[Optimus One, P500 Android Development] Grievous23:
Reporting success on CM7 6.3, decent battery life and around 2.2k with 768 MHz (instability for higher freqs) in quadrants, thanks a lot for all your hard work Franco.
[Optimus One, P500 Android Development] randms:
I'd like use your latest tweaks, i'm in mik's cm7 beta6.3. Should i remove the previous tweaks and patch (v.26.04.2011)?

And this time i only need to flash the p500-tweaks.zip? No libsqlite.so or local.prop for cm7 beta6.3?
[Optimus One, P500 Android Development] djdhruv:
how to know which version are we using?
[Optimus One, P500 Android Development] shhbz:
great seems that its wrking fine now on my way to flash great work franco
[Optimus One, P500 Android Development] hrlamr:
The flash zip works for me now too..cm7 beta 6.3

Just remember to remove the previous patch.

Thanks franco (:

Gonna see how the tweaks run on my phone now...
[Optimus One, P500 Android Development] marioemp2k7:
I can also confirm the same results! For the battery, it has to pass a little more time :).
[Optimus One, P500 Android Development] Bytecode:
Yo francisco you could use this tweak too:

ro.media.enc.jpeg.quality=90,80,70

Replace with:

ro.media.enc.jpeg.quality=100

In build.prop. It works,now image quality in gallery is coooool :)
[Optimus One, P500 Android Development] arielxarg:
i got installation aborted when i try to flash the p500_tweaks.zip on mik's CM7 beta 6.3 :(
[Optimus One, P500 Android Development] ViTAMiNCHEG:
Disable "Toggle signature verification" under "Flash zip from sdcard" in recovery.
[Optimus One, P500 Android Development] arielxarg:
thanks mate ! it works :D
[Optimus One, P500 Android Development] 32bit:
to: franciscofranco

I see now You've removed "prop tweaks" in latest v.01.05.

But why?
[Optimus One, P500 Android Development] franciscofranco:
I don't know why but it was causing boot loops. I'll add them to the first page.
[Optimus One, P500 Android Development] 32bit:
Francosco, I found that "jerky boot animation problem" could be resolved (well, in most) by changing

echo "2048" > $j/queue/read_ahead_kb;

to

echo "512" > $j/queue/read_ahead_kb;

as in your previous versions.

"Jerky boot animation" is almost nothing by itself but it could point to another problem.

Theoretically, a large amounts of read ahead cache is useful to reduce "next data read time" for rotational devices with their non-zero access time. But for SSD-like devices this leads only to excessive data reads due to SSD's access time is almost zero. I'm not sure but suspect one can extrapolate this theory to android devices.

===

By the way, prop tweaks in 00tweaks are working fine for me.
[Optimus One, P500 Android Development] franciscofranco:
That's very useful information, I had no idea, even though I spend half of my day reading about this kind of stuff. Thank you, I'll look at lit later, now I'm busy with my kernel ;)
[Optimus One, P500 Android Development] ardalaan:
i always get 128

im using CM beta6.3. and using latest patch even did copy local.prop

what should i do ?
[Optimus One, P500 Android Development] lerkin:
So am I,I use fresh 2.2.1 rom

And after flashing libsqlite.so I had LG logo freeze on my 2.2.1

Is it mandatory to flash both files to get more then 128?

Franciscofranco, I noticed in your devoid.franco.v4 you did't use data\app feature, may be that's the problem? Tomorrow I'll try to make rom without this, and test again...
[Optimus One, P500 Android Development] Zyzomys:
I want to make sure I understand - before flashing the new tweak file, it is necessary to remove the old tweak files? or is the removing of the old files simply if you no longer want any tweak files?

Sorry if this seems obvious - I want to make sure I do this properly. Thanks
[Optimus One, P500 Android Development] lerkin:
You need to remove old files, and flash new zip.
[Optimus One, P500 Android Development] Zyzomys:
Thank you!
[Optimus One, P500 Android Development] 32bit:
First, it is normal that your device hangs up. You can use "Patched libsqlite.so for 2.2" from this thread http://xdaforums.com/showthread.php?t=1000899

It works for me (2.2)

===

Second, it's not mandatory to flash libsqlite.so

Its purpose is to improve database write performance.

===

And third, yesterday my device had hanged up in a first time. After I've removed and inserted back the battery and turned up my phone I haven't found no contacts, no SMS, no call logs.

Not a problem as I have a back up of my data. But this time I was far from home...

And I'm almost sure that the loss of the data was caused by patched libsqlite.so, as it mentioned in the description of the patched file thread.

===

So, It's up to You to improve the database's score or to store Your data safely.

I'm rolled back.
[Optimus One, P500 Android Development] shhbz:
can we flash the zip with mik 2.3.4 latest release
[Optimus One, P500 Android Development] sovikhaque:
You mean remove them using root explorer?
[Optimus One, P500 Android Development] lerkin:
Thank you for your reply, but why I had only 128, why those scripts didn't work for me? What rom do you use?
[Optimus One, P500 Android Development] lerkin:
Yes. Root Explorer very useful for such things.
[Optimus One, P500 Android Development] sovikhaque:
Using root explorer, i went into system/etc but i did not see tweaks.sh and there's no 99a, 99tweaks and 00script in system/int.d

But i can see local.prop in data folder. so, do i just delete local.prop and flash new zip?
[Optimus One, P500 Android Development] lerkin:
Yes, you only need to del available files
[Optimus One, P500 Android Development] Zyzomys:
That is good to know. I was going crazy trying to find these files (I too only found local.prop).

Thanks for the information!
[Optimus One, P500 Android Development] lerkin:
Please make sure you have an android backup man.
[Optimus One, P500 Android Development] sovikhaque:
I have nandroid back up and all the apps are backed up by Titanium back up. If anything goes wrong, i could do a clean installation. The beauty of custom recovery
[Optimus One, P500 Android Development] Zyzomys:
That was the one part of the instructions I was 100% sure about and always do first. Thanks for the warning though. :)
[Optimus One, P500 Android Development] bgdxv:
Please tell me how can i do that. Maybe from the terminal emulator? Or any other way?
[Optimus One, P500 Android Development] kenblat:
Dear fancisco,

About the part "Prop settings, you can add them to your build.prop or local.prop:" and below addition tweak

Just wanna know that the .zip file already included those tweaks or we must add them manually?

And last but not least, flash your tweaks.zip and my battery even with the updated libsqlite.so can last long over 26 hours now with 25% left :)

Thanks for your contributions day by day!
[Optimus One, P500 Android Development] hrlamr:
Nt included add them manually.. (:
[Optimus One, P500 Android Development] bgdxv:
Can anyone please tell us how to make boot animation not jerky?
[Optimus One, P500 Android Development] kenblat:
Dear all,

How can we check back that local.prop working as we want? command @ terminal?

TIA
[Optimus One, P500 Android Development] ciolnadu:
there is one app "signapktic" for signing search for it on the market
[Optimus One, P500 Android Development] ungaze:
Also quite skeptical about this one(about the huge value). SDtools is just not accurate enough to test SDcard speeds. It varies too much so if anyone can recommend other SD speed benchmarking tool, will greatly appreciate it. There was a test in modaco that goes:

and

so according to the test, 256 seems to be the most optimum value, higher would gain very little and lower would degrade the performance drastically. And also basing on the 2nd statement, too much would also result in RAM hogging. If anyone has time to test different values please do and post your results here. Thanks.

source http://android.modaco.com/content-page/317163/kernel-sub501-kernel-mods-and-control-apk/page/240/#
[Optimus One, P500 Android Development] salte_eskil:
Using mik_os's cm7 rom. Actually it replied 2767, but maybe i just didn't read the thread thoroughly enough. Just saw a big flashing sign that said " increase performance" :p and btw the 1.1 recovery does have verification toggle so no need to panic :)
[Optimus One, P500 Android Development] ungaze:
try to change your line to

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

BTW, which ROM are you runnin?

@salte_eskil

And you my friend can try the opposite and Change the xbin part to bin. I'll send you a flashable if you want.
[Optimus One, P500 Android Development] ungaze:
Another thing. Running the script seems to leave the system partition as "mounted". I think we should add a line to unmount it. I think this is the line to mount:

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

should I just change rw to ro?
[Optimus One, P500 Android Development] franciscofranco:
Yes, to make it read-only just change to ro.
[Optimus One, P500 Android Development] kly91:
yes please..send it to me..thnx in advance..
[Optimus One, P500 Android Development] ungaze:
Remove what you did, and flash this. What ROM are you using again?

----

and this one should work for salte_eskil(or any CM7 users.)
[Optimus One, P500 Android Development] kt0ce:
I do mine @ 256 got 10MB/s for writing and 64.5 MB/s for reading. My card is 8gb class 6 Transcend. Anyway, hope that help. I would like to compare value with others. BTW, before the tweak I got 10 MB/s and 48 MB/s.

After rebooting the phone without using advance task first I got the value of 16.9 MB/s and 20.3 MB/s...Kinda inconsistent...
[Optimus One, P500 Android Development] kly91:
I am using void po..how do i remove what i did..kc po rineflash ko po kanina lang

anyway i just flashed the combined sh v1..

And I think it really worked(Thanks!)..i now got 4096 in the result....but i think something is wrong..i'm experiencing lags when opening drawers and scrolling..but i think my phone is just adjusting to the setting..:)

I'll try rebooting again
[Optimus One, P500 Android Development] kly91:
Quoting myself..

I am really experiencing a laggy scrolling in my screen..its not smooth anymore..
[Optimus One, P500 Android Development] franciscofranco:
Just go to the first post and follow the guidelines, if it still doesnt work for you then its time to reflash the rom
[Optimus One, P500 Android Development] franciscofranco:
Don't start testing all these tweaks if you don't know what you're doing, to my knowledge they haven't been fully tested yet. As soon as I do it, I'll provide further info.
[Optimus One, P500 Android Development] bluviper:
undo.zip isnt signed, anyway it worked with the verification off.. hehehehe

after flashing, didnt saw the changes on my build.prop
[Optimus One, P500 Android Development] ungaze:
you won't, it's actually overidden. try:

getprop

on terminal, you'll even see things not on the build.prop

Forgot to mention, signing didn't work on the undo.zip

Francisco's testing the tweaks and even gave up sleeping just to try it out. We'll probably have a more filtered set of tweaks in the next couple of days.
[Optimus One, P500 Android Development] bluviper:
whoa! wall of text.. hehehehe

ok how to know if this does actually work?

and not just placebo effect...
[Optimus One, P500 Android Development] ungaze:
Well most of the tweaks are for saving battery and saving your disks(nand and your SD) so you wont probably notice anything from those. Some tweaks involves bandwidth improvements so you could test this with a high speed connection(with or without the tweak). Some involves 3g data transfers so 3g connection is needed.

Try to switch apps and lock-unlock stuff if you notice anything different. I really don't think we could invoke a placebo effect with this kind of tweaks. Heck benchmarks wont even show anything(although IO seems to have changed a bit).

It's hard to spot improvements cause our phone is already snappy enough as it is.
[Optimus One, P500 Android Development] lekhwani:
Your last two lines make a lot of sense.

Nevertheless, I had asked two separate questions. But you and other guys answered one related to read SD card. My other question is:

If I don't need my phone to scan for other wifi supplicants, how much value should I set? I use wifi at home only. The first page says to change it to 200 from 120 (I am on Andy's gb rom)

I live in a city where there are close to none wifi hotspots. So I need to connect to my home wifi only. What would happen if I set it to 0 or 1000 or 10000?

And what about mik's cm version's wifi tweaks? He says he has enabled permanent wifi power management.
[Optimus One, P500 Android Development] ungaze:
I was googling about that as well but to no avail. As of now, 200 is the most that I have seen and used. If anyone finds more info about this, even "turning off the scanning of other networks while still connected to a preferred network" would really be awesome.

Maybe you also want the tweak to slighlty shorten the wifi outgoing range(hope that makes sense). Since you ONLY use your home wifi, range don't matter that much. I'll dig it out for you.(didn't include it in the tweaks list cause some people might want more range)

Post # link? haven't visited that thread for a while now.
[Optimus One, P500 Android Development] kly91:
Sir franco..i think the local prop settings aren't being applied as for me..i'm using cm7 beta 6.4..so i went back to using a local.prop file in data..
[Optimus One, P500 Android Development] kly91:
if i got your query right and if

if i'm right with the following, at terminal try:

# su

# getprop

If you see a wifi_supplicant line with value at 300 then it's working..you can also look for the HOME ADJUSTMENT LINE at 1..if it's not there then it is not working for you..

But if you mean how to check the effects of local prop settings then you can disregard this..:D..
[Optimus One, P500 Android Development] kenblat:
Thanks exactly what i wanna know...

How about for checking another tweak @ francisco's .zip file :D

TIA

P/S: just do the #getprop

mine (CM7 beta 6.4) wifi.supplicant_scan_interval = 20 => that's mean my local.prop did not work (copy local.prop to /data and chmod 755 already using Root Explorer). Maybe i'm using Ungaze DATA2SD ver 4.2 script so it might effect to /data settings as well?
[Optimus One, P500 Android Development] kly91:
kindly hit the thanks button for me please..hehe..just want the number to be at "5"..I love that number..

Anyway, going back to your request you could try:

# su

# cat proc/sys/vm/min_free_kbytes

If it's at 20480 then it's working...

EDIT..thanks for the likes but now i got "6"..hihi..oh well that all good..thanks
[Optimus One, P500 Android Development] 32bit:
Using RootExplorer:

1. Go to system/etc/init.d

2. Mount it R/W

3. Long press on 00tweaks and choose "Open in Text Editor"

4. Edit the line echo "2048" > $j/queue/read_ahead_kb; with value "512" or "256" (that's better for me)

5. Press "Menu" button and choose "Save & Exit"

6. Remove 00tweaks.bak

7. Mount R/O

8. Reboot your phone.
[Optimus One, P500 Android Development] 32bit:
It have been discussed higher in this thread that wifi.supplicant_scan_interval and some other settings

does not

work from local.prop because the system overwrites them. It was the reason to reject local.prop file and put "prop tweaks" into 00tweaks file.
[Optimus One, P500 Android Development] theprophet09:
Is it safe to flash it on the latest ROM by mik_os?
[Optimus One, P500 Android Development] ViTAMiNCHEG:
Sure! No problem at all. Already flashed tweaks by franciscofranco and my phone blows the speed out :)
[Optimus One, P500 Android Development] hrlamr:
What abt the libsqlite? Did u flash that too?
[Optimus One, P500 Android Development] theprophet09:
Thanks for the reply :). I'd like to know too if you've flashed lbsqlite.
[Optimus One, P500 Android Development] theprophet09:
I've got this errors

E:Wrong digest:system/etc/init.d/00tweaks

E:Veryfication failed

Any ideas? Thanks.
[Optimus One, P500 Android Development] franciscofranco:
Yes if you've read the previous pages you would see that you need to toogle verification off from the recovery.
[Optimus One, P500 Android Development] Grievous23:
Is the mount command still supposed to show a lot of noatime's? if so, then flashing the zip is not working for Mik's 6.4.2...

Don't know what could be wrong, was working ok for 6.3.1
[Optimus One, P500 Android Development] kenblat:
Yeah, move those command to build.prop and it's work for me. Why don't we embed them as well @ francisco's 00tweaks file and just plash only one .zip? Last night i checked the script myself and they r not there, correct me if i'm wrong :p

BR
[Optimus One, P500 Android Development] ViTAMiNCHEG:
The libsqlite that I flashed is taken from here Patched SQLITE3(libsqlite.so) for 2.2 and 2.3
[Optimus One, P500 Android Development] Grievous23:
Can you please type "mount" in terminal? see if you get some "noatime" messages
[Optimus One, P500 Android Development] theprophet09:
Thank you. Sorry if I did not read the previous pages!
[Optimus One, P500 Android Development] ungaze:
looked into the tweaks and there's nothing wrong in them. It SHOULD still show a bunch of noatime options.

can you list the files in your /system/etc/init.d folder?
[Optimus One, P500 Android Development] 32bit:
It's not a good idea to flash build.prop from zip because folks are using this tweaks on their different firmwares and their build.prop files could be different. Here could be compatibility issues. But of course one can modify his buitd.prop manually.
[Optimus One, P500 Android Development] XLR8_2K:
hope this helps :confused:

setup: CM7b6.4.2+tweaks+sqlite+darktremour

files in my /system/etc/init.d folder:

00banner

00tweaks

01sysctl

02apps2sd

03firstboot

04modules

20userinit

99complete
[Optimus One, P500 Android Development] Grievous23:
Thanks Ungaze, basically I have the same files than previous poster, but instead of DT's I have your D2SD files, I have found that changing the name of tweaks file to 99tweaks, it works, however I dont know if this could affect anything else, can you please let me know if I can just keep them like that or should I change it to something else?

I THINK (Since I dont actually know how this works) that maybe having 2 files starting with 00 is an issue in Android 2.3.4? just a theory

Thanks again
[Optimus One, P500 Android Development] ungaze:
well the basic rule is to have a different number for each init script. I don't know the consequences but it is indeed a good idea to change the prefix number to an unoccupied slot. Try to change the number and don't forget to set proper permissions. Changing the numbering won't affect anything unless another script needs to be in line with the script to be moved(either it needs to go before or go after it). In this case, none so rename away!!!!!
[Optimus One, P500 Android Development] Grievous23:
Thanks ungaze, gonna leave it as 99tweaks for now, seems to be working fine, got around 5 hours at 100% battery :)
[Optimus One, P500 Android Development] XLR8_2K:
hum...so I too have to change the number?
[Optimus One, P500 Android Development] ungaze:
try and see. share with us what happens. It should be fine though.
[Optimus One, P500 Android Development] skinniezinho:
Francisco thanks a lot for your work :)

Flashed it on CM7 :)
[Optimus One, P500 Android Development] Grievous23:
Using terminal write "mount", if you see more "noatimes" than "relatimes", then it is working for you, if not, just try changing the name of the file.