yashsingh1/xdaforums huggingface dataset:
[Optimus One, P500 Android Development] randms:
did the number has something to do with priority or something like that? let's say my init.d folder has the same content as XLR8_2K...

00banner

00tweaks

01sysctl

02apps2sd

03firstboot

04modules

20userinit

99complete

is it okay if I rename it to 05tweaks instead of 99tweaks? besides, the number 99 was already occupied by 99complete :confused:
[Optimus One, P500 Android Development] XLR8_2K:
this is the terminal output after typing mount:

export PATH=/data/local/bin:$PATH

$ export PATH=/data/local/bin:$PATH

$mount

rootfs on / type rootfs (ro,relatime)

tmpfs on /dev type tmpfs (rw,noatime,nodiratime,mode=755)

devpts on /dev/pts type devpts (rw,noatime,nodiratime,mode=600)

proc on /proc type proc (rw,noatime,nodiratime)

sysfs on /sys type sysfs (rw,noatime,nodiratime)

tmpfs on /mnt/asec type tmpfs (rw,noatime,nodiratime,mode=755,gid=1000)

tmpfs on /mnt/obb type tmpfs (rw,noatime,nodiratime,mode=755,gid=1000)

/dev/block/mtdblock1 on /system type yaffs2 (ro,noatime,nodiratime)

/dev/block/mtdblock9 on /data type yaffs2 (rw,nosuid,nodev,noatime,nodiratime)

/dev/block/mtdblock8 on /cache type yaffs2 (rw,nosuid,nodev,noatime,nodiratime)

/dev/block/mmcblk0p2 on /sd-ext type ext4 (rw,noatime,nodiratime,barrier=1,data=ordered)

/dev/block/vold/179:1 on /mnt/sdcard type vfat (rw,nosuid,nodev,noexec,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)

/dev/block/vold/179:1 on /mnt/secure/asec type vfat (rw,nosuid,nodev,noexec,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)

tmpfs on /mnt/sdcard/.android_secure type tmpfs (ro,relatime,size=0k,mode=000)

/dev/block/dm-0 on /mnt/asec/com.qualcomm.qx.neocore-1 type vfat (ro,dirsync,nosuid,nodev,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)

/dev/block/dm-1 on /mnt/asec/me.laoye.free.notepad-1 type vfat (ro,dirsync,nosuid,nodev,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)

$

:confused:
[Optimus One, P500 Android Development] shotgun32:
Which one to flash? Tweaks.zip or libsqlite?

Or what is libsqlite for?
[Optimus One, P500 Android Development] ungaze:
everything's working for you, no need to change anything
[Optimus One, P500 Android Development] shotgun32:
Do we just need to flash both tweaks.zip and libsqlite.so then were done?
[Optimus One, P500 Android Development] franciscofranco:
Read the instructions. There is only one tweaks.zip.
[Optimus One, P500 Android Development] shotgun32:
So we only need to flash tweaks.zip?

Add: im sorry, i just want to be sure
[Optimus One, P500 Android Development] sovikhaque:
Couple of days ago it was 20480, Flashed new Mik's New rom and now the number is 2767. Does that mean i will have to flash tweak.zip again? and also i installed clockwork mod recovery. Will i be able to flash tweak again?
[Optimus One, P500 Android Development] eigokyoukan:
Yes and yes. The tweak.zip has no problems in clockwork recovery and just flash the zip after updating CM7.

I just went thru the same process and all is well.
[Optimus One, P500 Android Development] shotgun32:
I cant flash the tweaks.zip on megatron rom with drelisdee/thunderg recovery, it says error or something like that?
[Optimus One, P500 Android Development] shotgun32:
Ah.. thank you very much. It work now. Should i toggle the signature on back after i flash the tweaks? I leave it off
[Optimus One, P500 Android Development] ungaze:
nah, it turn back "ON" when you reboot.
[Optimus One, P500 Android Development] shotgun32:
Alright :)
[Optimus One, P500 Android Development] Grievous23:
Franco, do your tweaks modify anything about phone signal? I only ask cause sometimes I get erratic signal reading, and just wanted to know, thanks a lot for your hard work
[Optimus One, P500 Android Development] superkid.net:
i m having a strange problem when i try to flash libsqlite.so..! it says void: flashing stock applications.. i m on mik_os 6.4.2 and CWM3.0.2.4
[Optimus One, P500 Android Development] kly91:
that's normal i think..
[Optimus One, P500 Android Development] franciscofranco:
Yes I forgot to change that text.

Nope.
[Optimus One, P500 Android Development] superkid.net:
@fransiscofranco : but my quadrant scores are still the same.! i have a strong feeling that the sql tweaks are not applied! especially the I/O reads around 600! earlier it was around 5000..

PS: I m using DT app2sd
[Optimus One, P500 Android Development] miedy12:
hey i downloaded yug tweaks the 174kb but i cant install on cm7? then ill try the 154 older kb and it works plsss does 174 is better than 154?
[Optimus One, P500 Android Development] dark-k:
I tried to install your tweaks on CM7-beta6.5 with AmonRA recovery but when I want to flash it, it says "wrong diggest /system/etc/init.d/00tweaks"

I don't know why. I've installed these on a previous version and it worked. Thanks for your help.
[Optimus One, P500 Android Development] skinniezinho:
you have to disable signature verify.
[Optimus One, P500 Android Development] dark-k:
Thanks for your help ! It worked ! I can enjoy all these tweaks now !
[Optimus One, P500 Android Development] mcardielo:
I have applied this tweaks on my p500 with ROM Nessy #Hypnos2, these are the results

BEFORE

AFTER
[Optimus One, P500 Android Development] 32bit:
Let me to introduce an UNOFFICIAL update of the famous franciscofranco's tweaks.

The script was ripped from devoid.franco ROM and prepared by me with some little changes.

You could use it with your favorite ROM if for a some reason you can not or do not want to flash original devoid.franco ROM

The preparing and flashing procedures are very same as described on the starting page:

p.s.No1

#debug.sf.hw=1 is not mandatory. Try to play with it (remove # to enable) and decide what is better for you. This value is not necessary in my opinion, but one could think different.

p.s.No2

In your *.prop files strings "net.tcp.buffersize.xxx" are not needed anymore due to this values now controlled through 00tweaks script.
[Optimus One, P500 Android Development] lerkin:
thank you man, great to have possibility to flash most recent version of tweaks on different roms
[Optimus One, P500 Android Development] shankesh:
Juice Defender App

thanks for the Post ya....But ive Been using Juice Defender For extending the battery life...does tat app really Improve my battery life.......or else its a fake app

Please Give me some suggestions ya...Im new to this Forum and android Platform
[Optimus One, P500 Android Development] Zyzomys:
I am also using Juice Defender Pro. I have it running all the time and just assumed it was working. I use it to control how often my phone checks email by turning on & off wifi or 3G every 15-minutes (the time can be set by the user).

Is this useful, or should I delete the app? I am simply looking to extend battery life as I have a 6 GB Data/month plan for my phone.
[Optimus One, P500 Android Development] blueren:
All the app does is control the data access. Less data access (2g/3g) theoretically leads to more battery.

Some find it useful, other call it junk. I've used it.. Never found any difference.. So chucked it

Tapatalk, LG Optimus One.
[Optimus One, P500 Android Development] Kira.Lawliet:
Nevermind sorry figured it out

*edit
[Optimus One, P500 Android Development] 32bit:
There is another UNOFFICIAL version of the famous franciscofranco's tweaks.

It is not latest version but the best one in my opinion.

At least it performs the best on my stock.ROM.2.2 (that is self-cooked slightly).

This version based on franco's version 30.04.2011 with some little edits by me. So I named it 31.04 ;)

You could use it with your favorite ROM and kernel

(but it mostly intended to 2.2.x ROMs) if for a some reason you can not or do not want to flash original devoid.franco ROM or franco.Kernel

The preparing and flashing procedures are very same as described on the starting page:

Oh, and DO NOT FORGET to make nandroid-backup before any system changes!

p.s.

debug.sf.hw=1 is not mandatory. Try to play with it (remove # to enable) and decide what is better for you. This value is not necessary in my opinion, but one could think different.

p.p.s.

Most of tweaks in your *.prop files are not needed anymore due to these values now controlled through 00tweaks script.

Now You can simply flash this .zip into your fresh ROM and no further tweaking is needed.
[Optimus One, P500 Android Development] asserp:
First of all i want to thank you 32bit for updating this tweaks.

Today i decided to flash them, so i deleted all those files that u mentioned above, actually i had only few of them on my phone, after deleting and rebooting i flashed your tweaks and stucked on LG logo screen. Then i thought maybe i missed some files to delete from old tweaks, so i just simply flashed new rom ( CM7 6.5.2 ) and again flashed your tweaks and happened the same thing, stucked on LG logo screen. Any ideas why this is happening?
[Optimus One, P500 Android Development] 32bit:
No. I'm sorry. I have no idea why it's happens. The only reason I may presume is incompatibility with some tweaks that could be in CM7's build.prop file or incompatibility with it's custom kernel.

Tried these tweaks on my stock.ROM.2.2 and all working great even with the last custom franco.kernel.14.2.2 (not to mention the standard one). Also I has disabled the potentially dangerous lines that was causes bootloop problem for me.

If You want to find the problem You can disable all bottom lines after "sleep 5;" string (placing # mark at the begining of the line) in 00tweaks file and try to enable it one by one.

Sorry for inconvenience:(
[Optimus One, P500 Android Development] terratrix:
Can i use the libsqlite.so on official gingerbread?
[Optimus One, P500 Android Development] samcad:
Can I use this in Voids gingerbread 2.3.4???
[Optimus One, P500 Android Development] Bec de Xorbin:
No need to use.
[Optimus One, P500 Android Development] killer_jazz:
Thanks for the tweaks. By the way what should i need to delete if i want to remove the tweaks?
[Optimus One, P500 Android Development] terratrix:
Look at the first post carefully, there are instructions.
[Optimus One, P500 Android Development] killer_jazz:
I mean the current versions not the previous versions. Do I only need to delete the 00tweaks if i do not want the tweaks?
[Optimus One, P500 Android Development] terratrix:
Yes.

10chars
[Optimus One, P500 Android Development] cristiano95:
with this "Tweaks" battery life will be better? without libsqlite that
[Optimus One, P500 Android Development] dakz03:
Hi! May I ask if I can use this with my Optimus One? It runs stock 2.3.3+latest kernel by franco v19092011. .
[Optimus One, P500 Android Development] bluviper:
i guess that was for CM7 users?....
[Optimus One, P500 Android Development] franciscofranco:
I haven't answered yet because I did not find a solution for it. Either you try and set it to 0 and maybe it will stop scanning for more networks, or it will have the inverse effect and it won't scan. Just change the values and test it for yourself. If 0 does cancel the scan, you can set it with a really high value because the number displayed is the seconds between each round of scans.

Mik has enabled power management in his latest beta, version 3.1. I can vouch for him, wifi now drains as much battery as it did on froyo, and in my opinion maybe it drains even less.

About the new tweaks so far, of course I've researched and I've filtered it to the ones I think are more appropriate for our phone. Even with the LG feeling snappy and responsive before applying the new ones I feel it EVEN more snappy and battery-friendly after applying the latest tweaks. Even with some little testing as it is (haven't slept) most of this new tweaks are related to I/O (input and output) and they take stress out of the CPU because they make the system not to write so much on the files, so it has more time to spare his processing power on other "instructions" (couldn't find better words to describe it).

I hope this is clear enough, I'll update the first post in a few hours, I gotta keep testing it a little further ;)
[Optimus One, P500 Android Development] bluviper:
congratulations for your hard work sir... outstanding!

we'll wait for that...
[Optimus One, P500 Android Development] franciscofranco:
Ungaze helped a lot as well, he too deserves credit, but thank you!
[Optimus One, P500 Android Development] sarfaraz1989:
@fransiscofranco.....Care to delve deeper into sysctl.conf ??? You might find some more tweaks in there..FOund some such tweaks on Xperia10 forum
[Optimus One, P500 Android Development] franciscofranco:
Yes I can have a look at it ;)

EDIT: I haven't found anything else that would prove useful for us, but if you find anything feel free to share.

First post updated.
[Optimus One, P500 Android Development] socialdistortion:
Testing now!

Lockscreen is definitely snappier :D
[Optimus One, P500 Android Development] franciscofranco:
Great to know it worked for you :)
[Optimus One, P500 Android Development] ungaze:
Good job with the first post. Looks neater and easier to understand.

I wanted to show the "all2ext" script from samdroid to francisco but I fear it's too risky for mere mortals to try out. It involves changing the /system, /data and /cache partition from yaffs2(in samdroid's case, rfs) to ext2, and run e2fsck on every boot to ensure partition's integrity. Well maybe some other time.

Now I'm interested in improving audio. Any Ideas? I think O1 audio from earphones is acceptable and audio from speaker is just below average, and improvements are definitely possible. My idea was to find the audio configuration files and replace it with some other phones audio configurations. Anyone has leads on this?
[Optimus One, P500 Android Development] franciscofranco:
I dont have access to a computer at the moment, but I can post. I'm always looking forward to tweak and test, you can send me a pm with that script you talk about.

About that audio stuff, I'll be honest I have no idea! I can have a look later when I'm at home, or if you find anything just pm or post!
[Optimus One, P500 Android Development] vault1965:
Great work guys, just keep them coming...
[Optimus One, P500 Android Development] ungaze:
Here's a flashable zip containing the tweaks from 1st page.

TWEAKZ v2

and here's the undo zip
[Optimus One, P500 Android Development] sarfaraz1989:
Guys look here for more tweaks..http://www.google.co.in/search?hl=en&q=sysctl.conf+android+hack&aq=f&aqi=&aql=&oq=..I am also lookin into it:p
[Optimus One, P500 Android Development] waydownsouth:
Another area you could look at for potential performance gains is androids low memory killer... aka minfree.

Theres a good thread that goes into it here
[Optimus One, P500 Android Development] franciscofranco:
I'm going to have a look over those links, thank you.

First post updated with the flashable .zip.
[Optimus One, P500 Android Development] franciscofranco:
The thing here is that our phone has a huge chunk of RAM, there is no need to be killing background apps to free the ram because, to be honest, we never run out. But I'm going to test out some values and see if it makes any difference.
[Optimus One, P500 Android Development] franciscofranco:
All those tweaks are already covered in the first post.
[Optimus One, P500 Android Development] ungaze:
most roms already has a minfree manager set up within the system, so further minfree tweaking is a no go.

maybe a tut to determine if your rom has one will come in handy.
[Optimus One, P500 Android Development] franciscofranco:
Android has a built-in minfree manager, and with 2.3 it is pretty tweaked already, no more 351651654 apps running idle on the background.

Still, I've tweaked it with these settings:

echo "1536,3072,4096,21000,23000,25000" > /sys/module/lowmemorykiller/parameters/minfree

So far so good, everything's smooth as silk.

Ungaze seen my message?
[Optimus One, P500 Android Development] ungaze:
yep, but now im the one not around a pc. so i cant check the contents yet. thanks man.
[Optimus One, P500 Android Development] franciscofranco:
Ok! I'll probably be up all night anyway xD
[Optimus One, P500 Android Development] kt0ce:
Slow

Hi friends,

After tweak the combined.sh my phone really stable and fast. However, with the updated tweaks my phone constantly lag. At first I thought it have something to do with my rom. So I go ahead and wipe and flash my rom again. It ran smooth. Then I give the tweaks 2 a try. That when disaster struck. Lag again. I'm using Megatron, milk OC kernel, build prop, and no fade ringtone. Also I use go launcher as my launcher. Anyhow, flash the rom again. Hope it work well this time!
[Optimus One, P500 Android Development] franciscofranco:
That's pretty strange...Try using LauncherPro as your launcher and Sinnopos kernel and post feedback again.
[Optimus One, P500 Android Development] kenblat:
Anybody do have the undo .zip pls share another mirror, pls! I can't download @ 1st post link. Thanks

Mine P500 Mik beta 3.1 after run the .zip tweakv2 mine phone did not drop Speed anymore always stick @ maximum CPU speed setting @ cyanogen OC menu.
[Optimus One, P500 Android Development] bluviper:
here is the undo.zip file from Ungaze...

ciao
[Optimus One, P500 Android Development] sarfaraz1989:
Can there be battery drain because of these tweaks..I kinda feel that my battery is draining faster Just half an hour 3G surfing (not sucking up the bandwidth) and battery is down like 20 percent
[Optimus One, P500 Android Development] ungaze:
that would be very unlikely but definitely possible. i dont use 3g but would definitely look into this.

anyone with advanced scripting skills here? i would like to make a mod that would enable us to . . . . . . . . .

DONE ;)
[Optimus One, P500 Android Development] freddysam:
FYI, These lines are incorrect:

You need to remove the "=".
[Optimus One, P500 Android Development] franciscofranco:
Thanks for pointing out my distraction.
[Optimus One, P500 Android Development] ungaze:
indeed. nice find there. wont change my zips maybe till tommorrow. or maybe not at all. found a cool way to implement these scripts as well as debug them.
[Optimus One, P500 Android Development] kly91:
can this tweak be done in any rom like lol1.42?
[Optimus One, P500 Android Development] franciscofranco:
I'll be honest, if you don't know that answer, then you shouldn't even be thinking about applying the tweaks, but yes, it works.
[Optimus One, P500 Android Development] kly91:
figured that out just a while a go...thanks!:D
[Optimus One, P500 Android Development] kt0ce:
I tried Launcher pro but I doesn't work. However, if I unmounted the sd card then the phone run fast again. I guess it have something to do with the SD card. I've formated my phone and run the original tweak and it have work like a charm. Thanks for your help and advice my phone is run smooth as it could be..
[Optimus One, P500 Android Development] bioan:
So these scripts:

setprop wifi.supplicant_scan_interval 200

setprop mot.proximity.delay 25

setprop windowsmgr.max_events_per_sec 60

.etc

When they were written with "=" they actually got no effect at all, right ? The placebo effect got into a lot of people here :D
[Optimus One, P500 Android Development] franciscofranco:
Those tweaks are not the ones responsible for the increase in performance, the last one just makes scrolling a little smoother.
[Optimus One, P500 Android Development] ungaze:
For those having problems, you might want to apply individual tweaks by yourselves. Too bad it's quite tricky. NOT ANYMORE. Here's an easy way:

SD Tweakz - Run your scripts on SD at boot-time.

Here's a few individual scripts you can apply. (Download link above each Code)

non-rotational.sh

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

scheduler.sh

for i in `ls -1 /sys/block/mtdblock*`
do
echo "noop" > $i/queue/scheduler;
done

echo "noop" > /sys/block/mmcblk0/queue/scheduler;
echo "noop" > /sys/block/dm-0/queue/scheduler;

vm-tweaks.sh - updated!!!!!

echo "0" > /proc/sys/vm/swappiness;
echo "95" > /proc/sys/vm/dirty_ratio;
echo "1" > /proc/sys/vm/vfs_cache_pressure;
echo "4096" > /proc/sys/vm/min_free_kbytes;
echo "1" > /proc/sys/vm/oom_kill_allocating_task;
echo "0" > /proc/sys/vm/page-cluster;
echo "5" > /proc/sys/vm/laptop_mode;
echo "0" > /proc/sys/vm/dirty_expire_centisecs;
echo "6000" > /proc/sys/vm/dirty_writeback_centisecs;
echo "60" > /proc/sys/vm/dirty_background_ratio;

sd-patch.sh

echo "4096" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;

noatime.sh

for k in $(busybox mount | cut -d " " -f3)
do
sync
busybox mount -o remount,noatime,nodiratime $k
done

tcp-buffer_with_wifi.sh - updated!!!!!

setprop net.tcp.buffersize.default 4096,87380,256960,4096,16384,256960
setprop net.tcp.buffersize.wifi 4096,87380,256960,4096,16384,256960
setprop net.tcp.buffersize.umts 4096,87380,256960,4096,16384,256960
setprop wifi.supplicant_scan_interval 200

additional.sh

echo 4096 16384 256960 > /proc/sys/net/ipv4/tcp_wmem;
echo 4096 87380 256960 > /proc/sys/net/ipv4/tcp_rmem;

build.prop/local.prop Tweaks - To be flashed via recovery

(Note: Because of recent findings[<<<sounds cool huh?] we opted to using local.prop to implement some tweaks, still studying a way to implement this with the use of my script but for the meanwhile, use this instead. Another note: Italicized mods don't seem to work atm so reapply them with the "tcp-buffer_with_wifi.sh" mentioned above)

contains the following mods:

[I]wifi.supplicant_scan_interval=200[/I]
mot.proximity.delay=25
windowsmgr.max_events_per_sec=60
dalvik.vm.startheapsize=8m
ro.ril.hep=1
ro.ril.enable.dtm=1
[I]net.tcp.buffersize.default=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.wifi=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.umts=4096,87380,256960,4096,16384,256960[/I]
ro.HOME_APP_ADJ=1
[Optimus One, P500 Android Development] franciscofranco:
First page updated.
[Optimus One, P500 Android Development] kt0ce:
It's not a placebo my friend. Even the quadrant score higher with the tweaks. SD speed improved. And the Lockscreen definitely run smoother, trust me. It use to walk now it's flying ain't no placebo about it. Just my 2 cents.
[Optimus One, P500 Android Development] vladsk8:
What scripts did you use? I added them all to the "scriptz" folder but I think I made it worse somehow. There was a bit of a lag in using LauncherPro, even after some time (caching issues). Lockscreen would lag a bit too. Not much of a diference, but definetely less fluid. I am using CM7 b4 by the way.
[Optimus One, P500 Android Development] kt0ce:
Oh sorry to hear that bro, I'm using megatron. I only run the first 4 tweaks because I notice the last three tweaks give me lags but I haven't try the latest sdscriptz from ungaze so I haven't had the time to identify which one yet. After Tuesday, I'll add them one by one to isolate the problems. Also I enable HW, Jit, but disable stagefight. I think there a flashable files on the forum. The I added the mot.proximity, winmgr.
[Optimus One, P500 Android Development] franciscofranco:
Try to change the I/O scheduler from noop to bfq and tell me if it improved.
[Optimus One, P500 Android Development] Stumpalump:
Any news about battery life while using these tweaks on miks build?
[Optimus One, P500 Android Development] vladsk8:
I updated the script to use bfq scheduler and rebooted and still the same issue. High CPU usage (40-70%) even when idle. Should I just remove the scheduler.sh script? All settings return to stock after reboot if no script is present, right?
[Optimus One, P500 Android Development] ungaze:
Right, nothing is changed if no script is present.
[Optimus One, P500 Android Development] franciscofranco:
Then it's not from the scheduler. Try applying one .sh file at a time and see which one is causing the supposed lag.