yashsingh1/xdaforums huggingface dataset:
[Optimus One, P500 Android Development] franciscofranco:
Never happened to me, so I can't help you. But remove the new non-rotational tweaks from the 99tweaks file, maybe that's the problem, but I'll say it again, it never happened to me.
[Optimus One, P500 Android Development] ppascuzz:
Perhaps my method is wrong? I'm no expert so I may have made a 'silly mistake' :P I already had the previous zips installed so I simply re-downloaded all three, booted to recovery, flashed them and rebooted, that's when I got the kernal panic. I don't need to clear anything or anything like that? I'll try removing the non-rotational tweaks from the 99tweaks file tomorrow I guess.
[Optimus One, P500 Android Development] r291:
I got the kernel panic too. Flashed previous versions of the zips in recovery, reduced clock from 748 to 600 and flashed the new ones again. No panics at 748 so far.
[Optimus One, P500 Android Development] ppascuzz:
Is that because you had 748 set at boot?
[Optimus One, P500 Android Development] r291:
I guess. I can think of no other reason.
[Optimus One, P500 Android Development] franciscofranco:
I cannot reproduce any of those errors, and they never happened with me, so there's nothing I can do sorry :/
[Optimus One, P500 Android Development] Bytecode:
@franciscofranco: Crap,i found something INTERESTING in build.prop! You know,in our devices h.264 video encoding is a bit slow. Watch this:

ro.media.enc.vid.h264.width=
ro.media.enc.vid.h264.height=
ro.media.enc.vid.h264.bps=
ro.media.enc.vid.h264.fps=

We could edit these values to make H.264 video encoding speedy! What do you think? :)
[Optimus One, P500 Android Development] franciscofranco:
Yes I knew about that long ago, but the LgCamera app does that on the fly, just download it and see for yourself ;)
[Optimus One, P500 Android Development] ungaze:
Another thing. I'm pretty sure that editing those lines won't do anything to our camera app or any camera app out there as those lines get overridden by the camera drivers and stuff. BUT!!!!! All is not lost. If you want to make the camera better(without the aid of apps although lg camera from market really is good enough), you could visit this page:

640x480 Camera with 30FPS, save to MP4

And try-and-test the mods mentioned. I was gonna try it myself but as of the moment, I'm pretty occupied with other stuff(data2sd).
[Optimus One, P500 Android Development] Bytecode:
Yeah,tried that and doesn't work. Lgcamera only saves as 3gp
[Optimus One, P500 Android Development] denshigomi:
I get errors in this loop:

for a in $MTD $MMC
do
echo 1 > $a/queue/iosched/low_latency;
echo 16 > $a/queue/iosched/quantum;
echo 1 > $a/queue/iosched/back_seek_penalty;
echo 0 > $a/queue/iosched/slice_idle;
echo 248 > $a/queue/nr_requests;
done

# ==== ERRORS ====
#cannot create /sys/block/[mtdblock0-8 | mmcblk0]/queue/iosched/low_latency: directory nonexistent
#cannot create /sys/block/[mtdblock0-8 | mmcblk0]/queue/iosched/quantum: directory nonexistent
#cannot create /sys/block/[mtdblock0-8 | mmcblk0]/queue/iosched/back_seek_penalty: directory nonexistent
#cannot create /sys/block/[mtdblock0-8 | mmcblk0]/queue/iosched/slice_idle: directory nonexistent

I checked, and the iosched directories exist, but they are empty and I cannot create new files in them.

I also get errors in this loop:

for i in \
`find /data -iname "*.db"`
do \
sqlite3 $i 'VACUUM;';
done

# ==== ERRORS ====
#Error: no such collation sequence: UNICODE
#Error: no such collation sequence: PHONEBOOK
#Error: no such collation sequence: LOCALIZED
[Optimus One, P500 Android Development] Samhain77:
I also get this:

for i in \
`find /data -iname "*.db"`
do \
sqlite3 $i 'VACUUM;';
done

# ==== ERRORS ====
#Error: no such collation sequence: PHONEBOOK
[Optimus One, P500 Android Development] franciscofranco:
Ok people, thanks a lot for your feedback, that's very important! How did you checked the errors by the way? Logcat?
[Optimus One, P500 Android Development] denshigomi:
I ran the script from a terminal and watched the output. (sh 99tweaks)
[Optimus One, P500 Android Development] franciscofranco:
Never ran it from the terminal so I never really watched for any error that it could come. Thanks for the suggestion, I'll have a look to it now.
[Optimus One, P500 Android Development] denshigomi:
UPDATE:

My kernel only has the noop scheduler available (aospCMod CM7), so that's probably why I get the errors when changing settings in iosched.

As for the collation sequence errors, they seem to be related to custom sqlite collations that were added in Android 2.2, but aren't available in the sqlite3 binary.

So it's preventing sqlite3 from running the vacuum command on databases with a collation it doesn't recognize.

In my case, 3 database files aren't vacuumed.

In Samhain77's case, just his contacts database isn't vacuumed.

http://code.google.com/p/cyanogenmod/issues/detail?id=2251
[Optimus One, P500 Android Development] franciscofranco:
That's really useful information, thank you.

About the scheduler yes, those non-rotational device tweaks only work for BFQ or CFQ schedulers, so that's the reason. I'll probably update the script either today during the night or tomorrow to recognize which scheduler the user is running, therefore preventing kernel panics or any of that stuff.

I'm a little busy at the moment building a custom rom with all the tweaks enabled by default. More information to come soon I hope.
[Optimus One, P500 Android Development] randms:
thanks franciscofranco, i'll be waiting :)

btw, since I flashed the tweaks.zip and libsqlite.zip, and put the local.prop in /data/, my p500 seems never to consume great amount of battery again in standby (using CM7 by the way) it used to eat 25% when I leave the phone to sleep for 7 hour-before i flash the tweaks, but last night I leave it on to sleep again, wake up in the morning and I only lost 3% :D

that's great, I dont know if this is thanks to your tweaks or not, but I'm still thanking you fransiscofranco :D
[Optimus One, P500 Android Development] franciscofranco:
Ahhrgh I've been so busy I forgot to answer you. The apps that I always remove when I reflash are:

- ADWLauncher.apk

- Androidian.apk [theme]

- Cyanbread.apk [theme]

- DRMprovider.apk

- FileManager.apk

- Protips.apk

- ThemeChooser.apk [theme]

- ThemeManager.apk [theme]

- VPNservice

- VoiceDialer

Probably a few more after I flash gapps. From that I always try to kill any app that has internet access (facebook, gmail, xda...). Of course I use them, but I kill them after the usage. After listening to music I kill the app as well. This is basically it.
[Optimus One, P500 Android Development] randms:
wow thanks for the big answer :)

that's excatly the same as what I used to freeze using TB. but I dont know why if I freezing VPNservice my android keyboard is starting to force closed everytime, I dont know what's the relation between those two, but when I unfreeze the VPNservice, the android keyboard stops FC'ing. its weird isn't it? I experienced this on both gingerbread ROM (mik's CM7 and andy's RC), so I just leave the VPNservice the way it is, and never freeze it. Don't know what will happen if I uninstall it :D

again, thanks for the answer, and sorry for bringing you out of topic :)

have a nice day :)
[Optimus One, P500 Android Development] mmarz:
Here is why: http://code.google.com/p/cyanogenmod/issues/detail?id=2251
[Optimus One, P500 Android Development] franciscofranco:
Nah it doesn't brings me out of topic, this is exactly the kind of stuff to be discussed here.

Anyway about that VPNservice ****, I have no bloody idea, and that behaviour is bloody strange! Enjoy ;)
[Optimus One, P500 Android Development] ppascuzz:
Tried flashing these again and i still get kernal panic. But I can tell you that after moving local.prop to /data and rebooting that seemed to work fine but it was when i flashed the 2 zips that it won't boot anymore and goes straight into kernal panic. When I get home from work I might try putting my clock speeds back to normal and try again.
[Optimus One, P500 Android Development] franciscofranco:
That's because you're using noop as a scheduler. I'm going to update the script in 5 minutes to prevent those panics.
[Optimus One, P500 Android Development] ppascuzz:
Good find :D will update with my results afterwards then. Keep up the excellent work you genius! :P
[Optimus One, P500 Android Development] franciscofranco:
Should work now, can you test it?
[Optimus One, P500 Android Development] ppascuzz:
Sorry I have to run, i'm late now haha. Hopefully someone else is online?
[Optimus One, P500 Android Development] denshigomi:
Everything I've read suggests the noop scheduler benefits from optimizing nr_requests.

Your current script only optimizes nr_requests for bfq and cfq.
[Optimus One, P500 Android Development] franciscofranco:
I'll fix it later, haven't slept yet, but thanks.
[Optimus One, P500 Android Development] Samhain77:
You have to sleep??? You have to work on your tweaks! We're all waiting for your work!

Obviously I'm joking ;)

Have a good rest!
[Optimus One, P500 Android Development] jawz101:
Is there a way to add a log file to verify which tweaks applied successfully or failed?
[Optimus One, P500 Android Development] mmarz:
@franciscofranco

There are some problems with the syntax that you used in your recent tweaks release. Here is the way I fixed it: http://www.mediafire.com/?y707q5y3m72wysa

The way you have it now, it'll never run those if statements.

I also added the prop values to the end.
[Optimus One, P500 Android Development] randms:
Hey franciscofranco, did your tweaks lose it effects after reboot? Last night i have my p500 fully charged and then reboot it. After reboot, leave the phone to sleep again for 8 hours and in the morning it already lost 30%. Compared to yesterday which i only lost 7% in 8 hours... ( see my previous post on this thread)

Should i reflashed your tweaks?
[Optimus One, P500 Android Development] franciscofranco:
Thank you :)
[Optimus One, P500 Android Development] franciscofranco:
That's really strange. I'll update the tweaks zip in a little while, just pretty busy at the moment ;)
[Optimus One, P500 Android Development] jawz101:
just found some additional tweaks here. FranciscoFranco- didn't know if you'd seen some of these or if they applied to us:

# Tweak cfq io scheduler

for i in $(ls -1 /sys/block/stl*) $(ls -1 /sys/block/mmc*) $(ls -1 /sys/block/bml*) $(ls -1 /sys/block/tfsr*)

do echo "0" > $i/queue/rotational

echo "1" > $i/queue/iosched/low_latency

echo "1" > $i/queue/iosched/back_seek_penalty

echo "1000000000" > $i/queue/iosched/back_seek_max

echo "3" > $i/queue/iosched/slice_idle

done

# Remount all partitions with noatime

for k in $(busybox mount | grep relatime | cut -d " " -f3)

do

sync

busybox mount -o remount,noatime $k

done

# Tweak kernel VM management

echo "0" > /proc/sys/vm/swappiness

#echo "10" > /proc/sys/vm/dirty_ratio

#echo "4096" > /proc/sys/vm/min_free_kbytes

# Tweak kernel scheduler, less aggressive settings

echo "18000000" > /proc/sys/kernel/sched_latency_ns

echo "3000000" > /proc/sys/kernel/sched_wakeup_granularity_ns

echo "1500000" > /proc/sys/kernel/sched_min_granularity_ns

# Misc tweaks for battery life

echo "2000" > /proc/sys/vm/dirty_writeback_centisecs

echo "1000" > /proc/sys/vm/dirty_expire_centisecs
[Optimus One, P500 Android Development] mmarz:
These are the only ones not in FranciscoFranco tweaks.
[Optimus One, P500 Android Development] ungaze:
LOL, rrrulo tweaks? Actually, franco already had those lines(except cfq stuff) on his script on one of his releases(early releases). I'm sure he had some reason he removed them, but now that you showed it I think he can review them again(especially those cfq stuff).
[Optimus One, P500 Android Development] mihachris:
Hello, in order to update the tweaks should I flash them over and replace local.prop or should I format /system again and then flash the tweaks?
[Optimus One, P500 Android Development] franciscofranco:
Just flash them over ;)
[Optimus One, P500 Android Development] aursta:
franco,

i am using ungaze data2sd script and then i flash your libsqlite.zip and system fc after that reboot and botloop.

whats wrong?
[Optimus One, P500 Android Development] franciscofranco:
Which rom are you using?
[Optimus One, P500 Android Development] aursta:
miks cm 7 beta6.3
[Optimus One, P500 Android Development] franciscofranco:
I have no idea, it should work fine without problems. Still I have to update the tweaks from the first page, I'll do it now.
[Optimus One, P500 Android Development] franciscofranco:
Tweaks file updated, everything should work now.
[Optimus One, P500 Android Development] aursta:
tweaks works without problems, but libsqlite.zip no..system fc
[Optimus One, P500 Android Development] ppascuzz:
local.prop missing from front page?
[Optimus One, P500 Android Development] franciscofranco:
Yes, read the changelog.
[Optimus One, P500 Android Development] franciscofranco:
Maybe that libsqlite.so doesn't work with 6.3 rom from mik, I don't know I haven't test it on his latest release, only with 6.2.
[Optimus One, P500 Android Development] ppascuzz:
So shouldn't you remove this from front page too then?

Instructions:

For local.prop:

1. Download it.

2. Extract it to your sdcard.

3. Move it to /data.

4. Reboot.

5. Done

Edit: beat me to it :P
[Optimus One, P500 Android Development] mmarz:
I added another change at the suggestion of another user: http://www.mediafire.com/?4r4lw2ec5iwd3zj

This will run the nr_requests line if they only have noop as it is still applicable.
[Optimus One, P500 Android Development] ungaze:
I like noop. Thanks for this one
[Optimus One, P500 Android Development] Samhain77:
@franciscofranco

I had to manually set eXecution permissions to the last tweaks to make the script works...
[Optimus One, P500 Android Development] theb3s7:
Thanks for sharing that. My scripts weren't executable either. My phone remains stuck at boot though.. dunno why, after the LG logos

LE: Apparently I shouldn't have flashed the sqlite library.. That's why it gets stuck I think

LLE: Yep, that was it. My logcat was full of exceptions about sqlite after flashing this and my screen remained blank. DON'T FLASH THE SQLITE.SO IF YOU'RE USING andy's latest MOD ( 2.3.3 ) !
[Optimus One, P500 Android Development] Zyzomys:
I don't even understand what the last few posts are about so I think I am going to hold off on this latest revision.
[Optimus One, P500 Android Development] theb3s7:
It's pretty easy actually..

You just have to issue two commands in the phone's terminal ( via adb or Terminal Emulator ) as root:

chmod +x /system/etc/init.d/tweaks.sh
chmod +x /system/etc/init.d/*

That's it.
[Optimus One, P500 Android Development] franciscofranco:
Of course... he's using a different DB library, not sqlite3 anymore, flashing this libsqlite.so won't work. I thought it was obvious, sorry for the hassle, I'll state on the first post.
[Optimus One, P500 Android Development] franciscofranco:
Actually it's more like this:

chmod +x /system/etc/tweaks.sh
chmod +x /system/etc/init.d/00script
[Optimus One, P500 Android Development] theb3s7:
It's ok, no data loss that's important :) In 5 minutes I saw what was modified and done the right things :)
[Optimus One, P500 Android Development] R_J:
Francisco,

When i do that cmd, i get stuck on LG logo

can i fix this?
[Optimus One, P500 Android Development] franciscofranco:
Err...

chmod 755 /system/etc/tweaks.sh

chmod 755 /system/etc/init.d/00script

Try that...
[Optimus One, P500 Android Development] R_J:
again

stuck on LG logo:(
[Optimus One, P500 Android Development] franciscofranco:
What's your rom?
[Optimus One, P500 Android Development] bgdxv:
Got bootloop at LG logo after entering these commands in Terminal emulator. Using CM7 beta 6.3 :confused:
[Optimus One, P500 Android Development] R_J:
cyanogen 6.3 beta
[Optimus One, P500 Android Development] franciscofranco:
Did you flash libsqlite.so?
[Optimus One, P500 Android Development] R_J:
no

you said to not flash with 2.3.3
[Optimus One, P500 Android Development] franciscofranco:
Not to flash it with andys 2.3.3 rom... Well that's strange and I don't know what the hell is doing that to be honest. Do a full wipe, system, data+factory,cache, dalvik-cache, reflash and try again.
[Optimus One, P500 Android Development] bgdxv:
tried, still the same.
[Optimus One, P500 Android Development] franciscofranco:
Oh well, download the tweaks again, I've reverted to the old way, should work fine now.

And now my friends I'm going to the beach to see the moonlight on the water, if it doesn't work again you'll have to wait a while.
[Optimus One, P500 Android Development] tazzz811:
I tried executing the script via GScript and the Script Result is "Deadline"... What does this mean? Is this an error or what?
[Optimus One, P500 Android Development] franciscofranco:
It just means you have the "Deadline" scheduler activated because there is a command in the script that echoes the scheduler that you're using.
[Optimus One, P500 Android Development] hrlamr:
i was wondering whether theres any way for me to verify that i applied the tweaks properly and its running? (: using cm7.

everything goes well after flashing the zip. no bootloops etc. Is there a step after that? do i need to do anything to run the tweaks?
[Optimus One, P500 Android Development] ungaze:
type "mount" on terminal. if you see a lot of noatime,then its working.
[Optimus One, P500 Android Development] hrlamr:
This is what i got.. i have no idea what im lookin at here lol. Thanks for your reply..
[Optimus One, P500 Android Development] franciscofranco:
It's not working.
[Optimus One, P500 Android Development] hrlamr:
Hmm where did i go wrong..
[Optimus One, P500 Android Development] 32bit:
v.26.04.2011 doesn't works for me as it was intended.

etc/init.d/00script, etc/init.d/99a, and etc/tweaks.sh has a wrong(unsatisfied) permissions after installation. So, 00script can't launch tweaks.sh, 99a can't

chmod

anything and can't remove /system/etc/init.d/99tweaks.

After I've made appropriate changes (using Root Explorer) all things works fine.

===

All things works fine in exception that boot animation becomes some jerky and the boot time have a slight grow. It was introduced with v.19.04.2011 in a first time, but I can't understand the reason in the changes of parameters between v.19.04 and v.16.04.

So, I've done a roll back to v.16.04
[Optimus One, P500 Android Development] masteryx:
Thank you, 32bit. The script wasn't working for me until your post made me understand why.

So, after flashing franciscofranco's zip, the "99tweaks" file permissions should be changed to "rwxrwxrwx" using a root file explorer. Mounting /etc/init.d in read-write mode first was also necessary in my case.
[Optimus One, P500 Android Development] Samhain77:
All these things have been discussed few posts above... ;)
[Optimus One, P500 Android Development] masteryx:
Yes, I didn't pay too much attention thinking it was only an exception, when in fact it's mandatory.
[Optimus One, P500 Android Development] franciscofranco:
I ve changed it back to the normal way few days back, but the permissions you can set them yourself, its no biggy.
[Optimus One, P500 Android Development] 32bit:
Well, but what's the purpose of etc/init.d/99a script in this case if it can not do anything _by_default_ ???

One can set the permissions on 00script and tweaks.sh and remove 99tweaks manually. 99a is redundant.

Is it possible to do chmod from tweaks.zip\META-INF\com\google\android\updater-script ???
[Optimus One, P500 Android Development] franciscofranco:
Indeed its redundant thats why I reverted back to the first implementation. I ve been busy with devoid thats why I havent been paying total attention to the tweaks. But dont worry, everythings going to be done at its time :)
[Optimus One, P500 Android Development] bgdxv:
Can you give us the 16.04 ones? I've noticed the boot problem too
[Optimus One, P500 Android Development] franciscofranco:
Later today yes.
[Optimus One, P500 Android Development] 32bit:
Sorry, I've deleted this patch. But there is

99tweaks

file that is OK for me.

===

If You've installed latest v.26.04 previously then to roll back You have to do following steps:

1. Remove

system/etc/tweaks.sh

2. Remove

system/etc/init.d/00script

3. Remove

system/etc/init.d/99a

4. Unpack

99tweaks

file from attached

99tweaks.zip

5. Copy

99tweaks

file into

system/etc/init.d/

folder.

6. #chmod 0755 /system/etc/init.d/99tweaks or do it manually using RootExplorer

7. Reboot your phone.
[Optimus One, P500 Android Development] indian65:
it's work fine, 36h with wifi enabled, little gaming, call, and i have 21% battery now, great job

Sorry for my english, i'm a frenchy
[Optimus One, P500 Android Development] hrlamr:
Thanks! This one worked for me as well.. are they the same tweaks as the ones in this thread?
[Optimus One, P500 Android Development] 32bit:
Sure, it's almost francisco's v.16.04 with the changes:

1. echo "2048" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;

that works better for me and now is the same value in the latest version.

2. echo "0" > /proc/sys/vm/swappiness;

I'm definitely not sure (as I'm noob), but suspect it's better for those who have no swap partition. (???)
[Optimus One, P500 Android Development] franciscofranco:
Nop, the swap thingy is the swapping between memory and cache. Set it to 50, it causes problems for me when it's 0 I don't know why.
[Optimus One, P500 Android Development] pymebrahimi:
How can I remove the P500-Tweaks.zip patch without changing the ROM?
[Optimus One, P500 Android Development] Zyzomys:
I would like to know this also. This tweak is no longer user friendly.
[Optimus One, P500 Android Development] franciscofranco:
I will fix it today, I havent had many time this last few days, sorry for that!
[Optimus One, P500 Android Development] franciscofranco:
Ok file uploaded with the reverts and updates. Instructions how to remove latest versions are in the first post! Enjoy and sorry for the little delay.
[Optimus One, P500 Android Development] pymebrahimi:
Shouldn't we also remove sqlite3 file from /system/bin for removing last version of P500-tweaks.zip fully?
[Optimus One, P500 Android Development] kly91:
ok..downloading..i'm using the old version..do i just delete the local prop and 99tweaks before flashing?
[Optimus One, P500 Android Development] ungaze:
Not necessarily. It's only a binary file which only gets used when called. Which is without franco's tweaks, never.
[Optimus One, P500 Android Development] franciscofranco:
Just delete any previously tweaked files, I'm going to update the first post forgot to include 99tweaks and local.prop.
[Optimus One, P500 Android Development] marioemp2k7:
If you have Mik's 6.3 beta you could replace libsqlite.so with the one from Andy's rom (.zip) since it's a newer build. Or you could just replace it with the default one (just extract it from the .zip). You cand do it through adb.

1. Copy libsqlite.so to Sdcard;

2. In a command shell --> adb shell (no need to do su);

3. mount -o remount,rw -t yaffs2 /dev/block/mtdblock5 /system

4. cp /sdcard/libsqlite.so /system/lib/libsqlite.so

5. mount -o remount,ro -t yaffs2 /dev/block/mtdblock5 /system
[Optimus One, P500 Android Development] franciscofranco:
Andy's libsqlite.so and libsqlite_jni.so is a different database called BerkeleyDB, don't do that.
[Optimus One, P500 Android Development] kenblat:
Dear Fransicofranco, Can we request Mik for another combined version libsqlite.so for CM beta 6.3?
[Optimus One, P500 Android Development] franciscofranco:
I'll send him a message.
[Optimus One, P500 Android Development] ngarcesp:
where is local.prop? i couldn't find it in the first post
[Optimus One, P500 Android Development] marioemp2k7:
Well, I did it and with good results. It doesn't seem to do anything bad either.

I also replaced "libsqlite_jni.so".

I will keep testing it unless something bad happens or Mik releases a compiled version for his rom.
[Optimus One, P500 Android Development] franciscofranco:
No need anymore.