Ok so I just installed Deca's battery tweak after coming from the normal collin_ph battery tweak.
I run this:
$ su
# batt-cfg
Click to expand...
Click to collapse
And then I get this... (Yes I'm rooted)
whoami: unknown uid 0
batt-cfg must be ran as root.
Press enter to atempt to run as root
Or press 1 then enter to continue without
attempting to gain root access
*I press enter not 1*
[: bad number
whoami: unknown uid 0
batt-cfg must be ran as root.
Press enter to atempt to run as root
Or press 1 then enter to continue without
attempting to gain root access
Click to expand...
Click to collapse
Do I have to re-root my phone? Or is something just messed up because I came from normal collin_ph battery tweak and then went to Deca's battery tweak...
But If I press [1] then it goes into the battery tweak config, but I'm not sure if it's working...
I'm thinking about switching to SetCPU but I really need some help with that. I have no idea how to use it, so my phone just freezes...
I even tried removing batt.sh but it says "cant find batt.sh" ...
Can I go to SetCPU?
Please help
Pwn3d said:
Ok so I just installed Deca's battery tweak after coming from the normal collin_ph battery tweak.
I run this:
And then I get this... (Yes I'm rooted)
Do I have to re-root my phone? Or is something just messed up because I came from normal collin_ph battery tweak and then went to Deca's battery tweak...
But If I press [1] then it goes into the battery tweak config, but I'm not sure if it's working...
I'm thinking about switching to SetCPU but I really need some help with that. I have no idea how to use it, so my phone just freezes...
I even tried removing batt.sh but it says "cant find batt.sh" ...
Can I go to SetCPU?
Please help
Click to expand...
Click to collapse
I believe it is batt-rm.sh to remove the battery tweak.
poashll said:
I believe it is batt-rm.sh to remove the battery tweak.
Click to expand...
Click to collapse
Ohhh thanks
Could anyone give me some tips on setCPU? I'd like to try it since people say its better.
EDIT: Just tried it out and setC freezed my phone...
Can you guys give me a link to Decas batt mod? ive looked EVVVERYWHERE
davidevan said:
Can you guys give me a link to Decas batt mod? ive looked EVVVERYWHERE
Click to expand...
Click to collapse
look at the bottom of the 2nd post of decad3nce's thread
http://forum.xda-developers.com/showthread.php?t=756774
You have a UID mismatch. In amon ra recovery there is an option to fix uid mismatch, so you could fix it that way. There is probably also a command you could run, if you find it, use adb and not the emulator, because thats your problem.
sent from my hero, which no longer sucks ass
In this thread you'll find a compilations of tweaks and settings to improve your phone's performance and battery.
It isn't a walk in the park, I'll strongly advise against trying these tweaks if you don't know what you're doing. I'm not responsible for any bricked device or any kinds of problems you may have when applying the following changes. If you don't know what you're doing then simply DON'T.
Changelog 1/05/2011:
Reverted few changes, and everything should work correctly and easily. Instructions how to delete the previous version below.
Fixed the files permissions. Now you don't have to do it manually for it to work.
Download:
Tweaks .zip
Patched libsqlite .zip:
(don't use this on andy's 2.3.3 and latest CM7 from mik 6.3 roms or you'll end in a bootloop or your phone will drain a lot of battery according to some users)
libsqlite.so
Data2ext: http://forum.xda-developers.com/showthread.php?t=1042828 (thanks ungaze).
Very important:
libsqlite.so is a patched sqlite library file to turn sync off. With that change I/O should be waaay faster during db writes and reads. It only works with 2.3.x ROMs, don't bother flashing if you're with Froyo or you'll end up with a boot loop.
Instructions:
To delete the previous versions (thanks 32bits):
If you've installed any of the previously tweaks then you'll have to roll back. You have to do the following steps (this includes every possible locations):
1. Remove /system/etc/tweaks.sh
2. Remove /system/etc/init.d/00script
3. Remove /system/etc/init.d/99a
4. Remove /system/etc/init.d/99tweaks
5. Remove /data/local.prop
6. Reboot your phone.
For the .zips:
1. Download the .zips.
2. Enter recovery.
3. Flash them.
4. Reboot.
5. Done.
Prop settings, you can add them to your build.prop or local.prop:
Code:
wifi.supplicant_scan_interval=300
windowsmgr.max_events_per_sec=260
ro.lge.proximity.delay=25
mot.proximity.delay=25
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
net.tcp.buffersize.gprs=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.edge=4096,87380,256960,4096,16384,256960
ro.HOME_APP_ADJ=1
ro.mot.eri.losalert.delay=1000
video.accelerate.hw=1
ro.ril.disable.power.collapse=0
pm.sleep_mode=1
Don't forget to nand backup first in case something goes wrong. I'm not responsible for any problem from your part.
Thank you for your donation:
- Momaro
franciscofranco said:
Battery life increase for Dummies
Do you want some extra juice in your battery life? Does it seem that you lose your battery too fast? Then you came to the right
place.
Over the time I've gathered some information about our battery and while this isn't 100% proof (because all of us use the phone for different purposes)
I think it's most accurate:
The myth of having the lowest possible frequency on your CPU while it's asleep:
Having the lowest frequencies (122 or 248) set up, it's not good. Our phone doesn't change voltages while underclocking or overclocking (as far as I know overclocking
doesn't change voltages as well) so, and only talking about underclocking, having such a low frequency is bad for your phones battery and performance. For the battery
that's because it takes longer to wake up from sleep and the time that the cpu takes to scale from 122/248 to maximum instead of using it for processing power eats
your battery away. About the performance hit, well that's pretty obvious and it takes longer to idle up, so again, more battery drain.
Having read about this the last few days actually running in Performance Governor is pretty beneficial to your battery: it wakes up faster, it performs every task faster,
then it idles up faster. Yeah during "sleep" time having 122 frequency or 806 it's the same thing because it's not using its power for anything, it's just there idling.
In any case what I always suggest is TEST it up and see for yourself. If you don't want to run with Performance governor at least run with 480 minimum frequency, it really helps.
---
Why do you run with auto-sync, gps, wifi, 3G, firewalls, anti-virus, background apps killing your battery? That's bull****. Most of you complain that your battery doesn't last as long
as it should...well that's not ROMs fault, I've been running with CM7 buils since the first builds and I never, ever, ever had battery problems even when everyone complained. Why?
Because I'm careful. If you don't need auto-sync at that time, disable it...if you don't need gps, disable it and so on. I don't know why people leave this stuff on even when they are not
using them. Firewalls? That's bull**** as well along with anti-viruses. They eat up your resources for nothing. Same goes for background apps that eat it up. Google Maps = bull****. If
you used it go kill it after you're done with it. Same with Music app. Kill it after you've listened to your 1315618 songs. But DON'T use task killers. I can't repeat this enough, just
DON'T use them for your own sake. Same goes for 3G...just don't enable it all time if you're not using it.
No Live Wallpapers as well, nor 3D app drawers, these blow your battery away easily without you knowing how or why. Don't bother tuning your brightness down...you have a device, and
that's to be used. Why buying a mobile for 200€ and not using it's screen propely? It's there to be used, full brightness looks better, it's not by decreasing it down and hurting your
eyes that you'll get 21564561 more battery hours.
---
Do you want even more battery? Flash my tweaks along with local.prop. I'm running 2.3.3 without any modification except my tweaks + local.prop + libsqlite + LauncherPro as a launcher
(this is where most of the performance comes from).
So these are my "secrets". As you can see this is not really secret and I can easily run my device without charging for 1 day and a half, 2 days max with moderate usage.
AH there's something important. After flashing a ROM be sure to charge it to 100%, enter recovery and wipe battery stats, then reboot and only when the phone is up and running you then
unplug it.
Have fun reading, I laughed a lot while writting it
Click to expand...
Click to collapse
---------------------------------------------------------------------------------------
Different method to apply the tweaks. Make sure you thank ungaze for this script
Visit this thread for a completely new method to apply these tweaks: SD Tweakz
Code:
What does it do?
-mounts SD
-checks if "scriptz" folder exists
-copies scripts from "scriptz" folder to /data partition
-sets permission to scripts
-runs all the scripts
-deletes "scriptz" folder from /data partition
-unmounts SD
-done
P.S.- Everything is pretty clear, I won't be answering anything that is specifically stated above in my post or in the following ones.
in case u dont have root explorer
1. mount -t yaffs2 -o remount,rw /dev/block/mtdblock1 /system
2. echo 4096 > /sys/devices/virtual/bdi/179:0/read_ahead_kb
PS: u cud have integrated that read_ahead_kb in your script too..and dont u have to mount /system rw first ???
EDIT: found something !!! busybox has crontab ..Guess we can schedule the above script to execute like every half and hour or so !!!
franciscofranco said:
debug.sf.hw=1 // activates hardware acceleration
Click to expand...
Click to collapse
Lol . How is that and battery life or performance , even remotely equivalate ?
" ls -1 /sys/block/mtdblock* " u need to use cut and tr with it..DOesnt work
Here's My script :
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
Zerobarat1 said:
Lol . How is that and battery life or performance , even remotely equivalate ?
Click to expand...
Click to collapse
It increases performance and I'm sure a lot of people doesn't even remotely know how to activate HW acceleration.
sarfaraz1989 said:
" ls -1 /sys/block/mtdblock* " u need to use cut and tr with it..DOesnt work
Here's My script :
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
Click to expand...
Click to collapse
That's a variation, but my script works as well, been using it for a good while, but thanks anyway
sarfaraz1989 said:
in case u dont have root explorer
PS: u cud have integrated that read_ahead_kb in your script too..and dont u have to mount /system rw first ???
Click to expand...
Click to collapse
As far as I know there is no need to mount /system rw with any of those scripts, never did it before and always worked fine.
franciscofranco said:
build.prop edit:
windowsmsg.max_events_per_sec=60 // makes the ui more fluid and snappy
Click to expand...
Click to collapse
Are you sure it is not:
windowsmgr.max_events_per_sec
?
freddysam said:
Are you sure it is not:
windowsmgr.max_events_per_sec
?
Click to expand...
Click to collapse
Yes it is, it was a typo, thank you.
Some observations:
If you want to use "-1" option with ls, you'll need to use busybox's version. The stock ls doesn't support it.
The Linux sysfs file system (as mounted in /sys) is by design a read-write virtual file system. No need to do anything extra to play with it, other than be root.
These commands shouldn't be run from cron, they belong in some init script, perhaps /init.rc or other appropriate startup location.
My class 4 Kingston can achieve something like 40 mb/s with this tweak, but it may vary from card to card, this is just my experience.
Click to expand...
Click to collapse
with which benchmarking tool/app? Using SD tools but no apparent change.
@franciscofranco
sent you a PM
ungaze said:
with which benchmarking tool/app? Using SD tools but no apparent change.
@franciscofranco
sent you a PM
Click to expand...
Click to collapse
SD Tools indeed
First post updated with new tweaks.
cud somebody post differences before and after applying the patch..SOmebody benchmark 'em !!!
franciscofranco said:
SD Tools indeed
First post updated with new tweaks.
Click to expand...
Click to collapse
so we just add the new scripts from Ungaze?
and let the previous one as is....
using GScript, these folders are missing?
silly question but, do we need to create this folders?
-----------
and also, will this work in general for all android devices regardless of ROM?
franciscofranco said:
This thread contains some tweaks that I've found and tested myself to improve performance and battery of your ROM.
It isn't a walk in the park, I'll strongly advise you to try these tweaks if you don't know what you're doing. I'm not responsible for any bricked device or any kinds of problems you may have when applying the following changes, if you don't know what you're doing then simply DON'T.
build.prop edit:
wifi.supplicant_scan_interval=200 // interval of seconds that wifi scans for another networks
mot.proximity.delay=25 // proximity sensor tweak to make it more responsive
windowsmgr.max_events_per_sec=60 // makes the ui more fluid and snappy
debug.sf.hw=1 // activates hardware acceleration
System files tweaks using Root Explorer (paid app from the Market):
Change /sys/devices/virtual/bdi/179:0/read_ahead_kb value to 4096, it improves the reading speed from the SD card. My class 4 Kingston can achieve something like 40 mb/s with this tweak, but it may vary from card to card, this is just my experience.
I/O schedulers:
To check which scheduler is used:
Code:
adb shell
~ # cat /sys/block/mtdblock0/queue/scheduler
[noop] cfq // in this case noop scheduler was selected
To select a different scheduler:
Code:
adb shell
~ # echo "noop" > /sys/block/mtdblock0/queue/scheduler
// you can change the schedulers for all your blocks, which, more likely will be mtdblock1,2,3,4,5,6,7,8 and 9. then mmcblk0 for the SD card.
This settings won't last through reboots, so either you create a shell script to run it every reboot or you change then manually. Same applies when changing read_ahead_kb file, it resets on reboot.
This is the script I'm using to run every reboot to change the scheduler:
Code:
for i in `ls -1 /sys/block/mtdblock*`
do
echo “noop” > $i/queue/scheduler
done
echo “noop” > /sys/block/mmcblk0/queue/scheduler
#[b]new line[/b] echo "noop" > /sys/block/dm-0/queue/scheduler
EDIT: ungaze kindly sent me a bunch of shell scripts and after researching, modifying them, and testing I'll suggest you to run them to increase general performance:
Code:
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
This one tells the kernel that all those devices are not "spinning disks" to it treats them as flash memory, because that's exactly what they are.
Code:
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;
These are tweaks to kernel Virtual Memory management.
Use GScript Lite from the market, it works fine.
If you want to know about the i/o schedulers I suggest you google it.
P.S.- Everything is pretty clear, I won't be answering anything that is specifically stated above in my post.
Click to expand...
Click to collapse
Thanks. any chance of making it flashable for us troglodytes...
bluviper said:
so we just add the new scripts from Ungaze?
and let the previous one as is....
using GScript, these folders are missing?
silly question but, do we need to create this folders?
-----------
and also, will this work in general for all android devices regardless of ROM?
Click to expand...
Click to collapse
Yes just add the scripts, don't need to mess with the previous ones.
If it says a directory was not been found don't worry about it, sometimes dm-0 is mounted, sometimes it is not, I still haven't found out when.
sarfaraz1989 said:
cud somebody post differences before and after applying the patch..SOmebody benchmark 'em !!!
Click to expand...
Click to collapse
You won't notice benchmark improvements, instead you'll notice it in the normal usage. Benchmark don't measure real life scenarios.
Omnichron said:
Thanks. any chance of making it flashable for us troglodytes...
Click to expand...
Click to collapse
I don't know how to do it I'm sorry.
EDIT: I'll have a loot at it.
to tell my experience, after installing the scripts, screen transitions is now snappy.
not like before that youll have to wait half a sec or something near that... now its instant and snappy, its cool to look at. returning to homescreen is abit faster now.
opening files on my ES explorer, unzipping etc etc. works faster now.
exploring and changing files on Root Explorer is quite faster than before.
im using LG Optimus P500....
so again my question goes... will this also work with other android phones under different ROMS?
bluviper said:
to tell my experience, after installing the scripts, screen transitions is now snappy.
not like before that youll have to wait half a sec or something near that... now its instant and snappy, its cool to look at. returning to homescreen is abit faster now.
opening files on my ES explorer, unzipping etc etc. works faster now.
exploring and changing files on Root Explorer is quite faster than before.
im using LG Optimus P500....
so again my question goes... will this also work with other android phones under different ROMS?
Click to expand...
Click to collapse
Awesome
It will probably work on most devices but most likely with some adjustments, nothing I can really predict unless taking a look over the phone and it's filesystems.
Easy way to speed up your phone
Install instructions:
1. Install Root Explorer
2. Download boost.zip file and then unzip the that file and put in the SD card...
3. Open Root Explorer (Mounted on R / W) / SDCard / menu button / Multi-select / chose boost / Copy / system / bin / then click paste...
4. Open Terminal emulator and taype:
su
boost
5. Your phone is turbo boosted now, enjoy in new speed on your phone...
6. Press thanks if you like my work...
7. Rate my thread...
And what exactly does this "Turbo boost" do?
Have you got any benchmark results or evidence of an performance increase? I'm not giving an program/script root access to my phone, without some proof of an increase.
Upon opening the file with Notepad++ all it had inside was this
#!/system/bin/sh
# Adrenaline Boost
# Brought to you by [email protected] Developers
sync;
sleep 1
echo "3" > /proc/sys/vm/drop_caches;
sleep 1
echo "1" > /proc/sys/vm/drop_caches;
sleep 1
echo " ** Turbo Boosted ** ";
Click to expand...
Click to collapse
Which after some googling found out it does (from a similar script for desktop Linux):
Writing to this will cause the kernel to drop clean caches, dentries and inodes from memory, causing that memory to become free.
Click to expand...
Click to collapse
nejc121 said:
And what exactly does this "Turbo boost" do?
Click to expand...
Click to collapse
Your phone will be faster and working bether...
I just get permission denied in terminal.
spudata said:
I just get permission denied in terminal.
Click to expand...
Click to collapse
Did you type in "su" before "boost"?
Yes, granted su permissions but no joy.
Same thread posted on the i9000 development area. wth
Sorted, had to change permissions of boost file
Can anyone confirm this to work?
Sent from my HTC Desire using Tapatalk
RESERVED.
installed, will update tomorrow with any feedback.
UPDATE: have found it runs pretty much same as V6 Supercharger, drains battery horribly though.
I was on 54% battery last night, data & wifi off and killed tasks before going bed.. I checked CPU Spy, it had been in a deep sleep state for most of the night.
I awoke to a dead phone, which doesn't even happen on the v6 supercharger!
How do I uninstall this script, can I just delete the file from bin?
I tried this but I see no difference ... should i restart the device?
cm 7.2 rc1, smartassv2 264-710 MHz
edit: rebooted the phone....still no difference.....
To really see the benefits of the boost, you need to change the file permissions. Go into a root terminal and type:
chmod +t boost
This gives the boost Time Travel permissions. Now, all processes will be completed before you even run them. Talk about a turbo boost!!
Also set the date of your phone to whatever you want the open the dialer and type "#"#7925#"#" and you'll be timewarped into the future.
Sent from the year 2019 using my years old HTC Wildfire using xda premium
Ok just done a little digging around the op's other thread (which is now locked by a mod) on a different forum as he hasn't exactly explained what this does in any of them which leads me to believe he doesn't exactly know, and probably copied it from someone else, http://forum.xda-developers.com/showthread.php?t=1542602
What this does is clear the cache filesystem. 3 = free pagecache, dentries and inodes, while 1 = just free pagecache. Which in theory will decrease battery life as the cache needs to then be rebuilt afterwards.
This is already included in v6 supercharger so no need to use this if you have v6, just perform the engine flush or whatever its called whenever you want to free up some memory stuck in cache files. Its basically the same thing according to other users, I haven't looked to see if thats true or not but they sounded like they knew what they we're talking about so i believe them.
GlennBrownie said:
UPDATE: have found it runs pretty much same as V6 Supercharger, drains battery horribly though.
I was on 54% battery last night, data & wifi off and killed tasks before going bed.. I checked CPU Spy, it had been in a deep sleep state for most of the night.
I awoke to a dead phone, which doesn't even happen on the v6 supercharger!
How do I uninstall this script, can I just delete the file from bin
Click to expand...
Click to collapse
??
Yes delete and reboot.
Sent from my HTC Wildfire using xda premium
SeeZaar said:
Easy way to speed up your phone
Install instructions:
1. Install Root Explorer
2. Download boost.zip file and then unzip the that file and put in the SD card...
3. Open Root Explorer (Mounted on R / W) / SDCard / menu button / Multi-select / chose boost / Copy / system / bin / then click paste...
4. Open Terminal emulator and taype:
su
boost
5. Your phone is turbo boosted now, enjoy in new speed on your phone...
6. Press thanks if you like my work...
7. Rate my thread...
Click to expand...
Click to collapse
yea, 1star rated as u just copy my work.
Moreover, u didnt give full description and spoiled my fame and work, this should be useful for everyone if they know how to use tis properly
Thread closed as the OP DOESNT have permission fro yhe dev yo post this.
Also he failed to provide credits.
This on XDA is kanging and is not tolerated!!!
Because I'm a junior member I can't reply in the development forum so here is my issue:
I'm running Liberty3 v2.0 Gold (.901 patched) on my bionic. I tried out the Opptimizer Projekt overclocking from this thread:
http://forum.xda-developers.com/showthread.php?t=1594804&referrerid=4516581
I could not get past the CPU values. Every time I ran it, the phone immediately rebooted and nothing had changed. Any thoughts/suggestions?
CR
You need to be on the 902 kernel
I used safestrap to partition the phone so I still do have the stock .902 on here just in the other partition.
So do I understand this correctly: even though I came from .902 and the stock system is still there, it won't work in Liberty?
You need the overclock files for the. 902 system, using the file for the older systems caused reboots for me as well
Abbreviations said:
mo_simp1.5 For .8XX:
http://opptimizer.googlecode.com/files/mo_simp_1.5_targa-signed.zip
mo_simp1.5 For .901&Up:
http://opptimizer.googlecode.com/files/mo_simp_1.5_edison-signed.zip
Values -
Grant Superuser permission by typing "su" and hit enter in terminal before entering these values
CPU = echo 3 1200000000 62 > /proc/overclock/mpu_opps
GPU = echo 384000000 > /proc/overclock/gpu_opps
Credit/Written Tutorial: http://rootzwiki.com/topic/14511-opptimizer-projekt-milestone-overclock-for-omap4-devices/
Click to expand...
Click to collapse
Sent from my DROID BIONIC using xda premium