Related
People asked why I don't have dev threads here, so here's one. I'm friendly, just try to read the dev chatter and tweak stuff.
Quick and dirty version of a kernel 100% working with setcpu for throttling. No overclock yet.
Also has MemKiller configured fairly aggressively.
More info:
http://forum.xda-developers.com/showthread.php?t=622666
or full details:
http://developer.android.com/index.html?utm_campaign=en&utm_source=en-ha-na-us-bk&utm_medium=ha
New info:
I've created a ROM Cooker dev pack. This includes the full boot image from Gumbo 1.5c (assembled as boot.img and the unassembled individual files), the kernel zImage and wlan.ko, example scripts and the tools and instructions to edit and reassemble the boot image. Feel free to PM me for my email address for quicker contact if you're using this to develop.
http://www.4shared.com/file/217067115/893ad466/GumboKernel-DevPkg.html
I'm leaving everything up below, but I'm leaving changes to work with other ROMs to the respective devs. I'm still happy to discuss though. Devs note - the kernel and memory killer is very easy to incorporate into your ROM. The above should be all you need, but I'm happy to assist. We're all in this together
Please keep this thread about the kernel. Questions/comments about Gumbo ROM 1.5c should be directed here:
http://forum.xda-developers.com/showthread.php?p=5573162#post5573162
-------------------------------------------------------------------------------------------------------
Download
http://www.4shared.com/file/211795037/24ce727/GK-031-signed.html
http://brandsaturate.com/android/GK-031-signed.zip
http://biggz.dontexist.com:14725/ROMs/GK-0.31-signed.zip
Download a version with less agressive settings Thanks PikkonX
http://forum.xda-developers.com/showpost.php?p=5506779&postcount=68
Download for AOSP builds:
http://www.4shared.com/file/212540959/f11d93c/GK-031_AOSP16-signed.html
Download for 2.1 Heroc ROM
http://www.4shared.com/file/212681068/a732792c/GK-031-21_heroc-signed.html
Built using MCR 2.x inits (for dirty hack of ram managment changes, plan to build universal init to work for all popular ROMs).
Kernel built with debugging and HTC performance lock stripped for full wake ramp up support. i.e. works 100% with setcpu.
No compcache, as I think there may be issues with our kernel and compcache as is, and I think the performance lock may have been causing it. Only fight one bug at a time.
If you need a great how to thread to get started building a kernel there's one here, http://forum.xda-developers.com/showthread.php?t=622916
This kernel is in update.zip format, flash like any ROM.
Work's 100% with Gumbo ROM and MCR 2.x provided MoDaCo custom kernel was not flashed.
Expected to work with stock.
Would love a FRESH ROM tester to try, so any bugs and source can get to flipz for his kernel project, as well as my init in this project.
*update*
Reported working:
Fresh ROM 1.1
Fresh ROM 1.1 (no wipe)
Fresh ROM 1.1 with MCK (no wipe)
TTG 1.6
TTG 1.6 (no wipe)
TTG 1.6 + MCK (no wipe)
MCR 2.x (from kitchen) (no wipe)
MoDaCO 1.2
AOSP 1.6 *
AOSP 2.0.1 *
2.1v1.8_heroc *
*be sure to DL the correct version
david279 has found great battery life using the msm7k governor. See his post HERE. Thanks David!
Usual applies. Be sure to backup. Wipe may be needed, YMMV. Myself and several other testers have went through all dev versions with no wipe, as well as a final wipe and reflash and saw no difference.
Credit to coolbho3000 here on xda for advice with HTC throttling. He's also the dev of SetCPU and his app is indispensable with this kernel IMO. Best buck I've spent at the Market for the donate version. SEE POST 82 BEFORE ASKING SETCPU QUESTIONS PLEASE
Let's roll our own community kernel.
SOURCE CODE FOR KERNEL AND ROM
Note to devs - there are no kernel source changes. It's all in the build options, and the .config is available. I included the full source in the tar because as much as I *****ed about HTC holding it back I had better comply 110%. I've made an alternate zip of just the .config, the built kernel, the wlan.ko, and the disassembled ROM available HERE
How to configure Android's internal memory killer:
http://forum.xda-developers.com/showthread.php?t=622666
Full Details @ Android Dev
http://developer.android.com/index.html?utm_campaign=en&utm_source=en-ha-na-us-bk&utm_medium=ha
Download Gumbo Kernel Beta: http://www.4shared.com/file/211795037/24ce727/GK-031-signed.html
intx's super awesome hosted mirror: http://brandsaturate.com/android/GK-031-signed.zip
Gumbo Kernel Source(includes boot image and ramdisk): http://www.4shared.com/file/21188278...es-031tar.html
ill test it im running fresh 1.1
edit:HERE is the link to it
Thanks for the links guys!
Good luck with the tests.
Downloaded and flashed over gumbo 1.5b ... could tell a differance right away... going to use it for a day or so and report back
Good deal. Running it as is out of the box should have you as fast as it gets without overclocking. Let's hope the battery likes it
so far looks like its playing nice with Fresh 1.1 I did it with a fresh flash of 1.1 as I already had MoDaCo's kernel on there.
Need some free RAM numbers and some setcpu testers.
My experiences
~45 Mb increase in free RAM as reported by systray (free in market)
Setcpu changes the governor, enforces the min and max of the sliders, and cpu correctly ramps back up when using on demand. Don't enable setcpu to run at boot. Like most other widgets the widget needs reset at boot.
So far so good with fresh.1.1
Testing under Fresh 1.1 that had Modacos kernel, and it seems faster to me
using Systray It says 81mb free... is that much? I have not checked before this.
just wanted to see if it would flash over MoDaCo 1.2 and seems to have flashed over it flawlessly with fresh 1.1
So, I already had systray installed and I can tell you that with this kernel it is dramatically better. I just went through my app drawer and literally opened EVERYTHING and couldn't get it to dip below 79. That is freakin awesome.
I just installed setcpu , so ill get back to you on that one.
so using the command "free" in ADB the numbers are as follows
stock Fresh 1.1 2460
after kernel update 4188
in the free column
Source up in second post.
Enjoy
Also, gbhil, love the kernel. Prefer it over MCK
What sort of data do you need from setpcu? I have it installed, set to performance and I can tell an immediate difference. I obviously can't comment on battery yet, but this bad boy is freakin fast.
By the way... since you've implemented the low memory thing....does that mean we don't need to use any task killers ? That would be pointless and redundant, right? Loving the kernel so far.
gomorrah said:
What sort of data do you need from setpcu? I have it installed, set to performance and I can tell an immediate difference. I obviously can't comment on battery yet, but this bad boy is freakin fast.
Click to expand...
Click to collapse
That's the first thing I wanted to hear, as thats going to be the thing people want most lol.
Set your sliders to 480 max 245 min
select performance and refresh, cpu speed should be 480
select powersave or msm7k and refresh, cpu speed should be 245 (ewww) lol
Select ondemand and refresh, cpu should be 480. It will ramp down to 245 when sleeping, and now it will ramp back to 480 when you wake it up.
I've been using ondemand @528 max 245 min, without tweaking the ondemand parameters in setcpu. It's nice to finally have a working way to scale the cpu to your own prefs.
@everybody - thanks for the reports.
alexthearmo said:
By the way... since you've implemented the low memory thing....does that mean we don't need to use any task killers ? That would be pointless and redundant, right? Loving the kernel so far.
Click to expand...
Click to collapse
Correct. No longer a need for task killers.
Woohoo I can post links now.
wow def a major difference in speed with setcpu great job ghbil
Would it work with TTG Rom?
- for those who dont like to see anymore Donut ROMs - I am so sorry
- for people who believe only Donut is good for their G1 - it's time to rejoice having a Donut again
- This is NOT my ROM, I am NOT a Dev...I am sharing from MLIGNs Modification of the [email protected] ROM CSDIv4
- since many Devs are posting CSDI-variants in the Forum, this should easily be another candidate....the reason is simple: its the most stable and fastest of all the other Builds of CSDI so far
Credits:
[email protected] - the creator
MLIGN - the Modder
ChrisChavez - the first notifier about the Mod
Features:
Working APN
Fastesttttt, "Was getting up to 2.326 on Linpack with this ROM compared to 2.309* SuperD 1.9.3. Also awesome 3D scores although I don't play and 3D games on it. Didn't have 3D on SuperD as I was running ramhack."
- synaptic_d
*some people reported even lower FLOPS for SuperD (2.273 or so) inLinpack
No Maps, Install it by urselves
Two Themes - white and Black, changeable from built in Metamorph app
Fixed Keyboard for English
QuickBoot
NO RAM Hack, still faster than anything!!
SWAP from SuperSetup
COMPCACHE from Spare-parts
BT File Transfer
Estrongs File Explorer
Supersetup4
JrosMetamorph (no need for andexplorer)
wired/wireless Tethering
Fixed everything that caused CSDI to be unpopular ;-)
Most stable Variant of CSDI
Application response is tremendous fast
DL Link & Video Review of this ROM by Chris, also he posted this ROM first in the CSDI thread...sorry Chris...I thought It should reach more people!
ChrisChavez said:
If you guys want the "fixed" version of this by MLIGN here ya go!
http://is.gd/aVBdp
Working APN off the bat (for T-Mobile USA), fixed English keyboard!
Google Maps was taken out cuz it wasn't updating. Now you can download normally from Market =)
THAT'S IT!!!!
Here's my video review for it: http://www.youtube.com/watch?v=uw20EpJfZ0w
Click to expand...
Click to collapse
Themes:
1(a). An Elegance Themed version of SuperCSDI ROM from Opasha, Be warned that it's a complete ROM not just a Theme, so nandroid is ur friend. THANKS Man!!!
1(b). Only the Theme update.Zip of the Elegance (!Button texts are Black by the way!). Thanks to Opasha.
2. Espresso Theme by nephron (thanks man) can be found in his thread here
3. ADWone theme has also been reported to work with this ROM with no Problem, get it here.
FAQ
1. My BT headset does not receive audio from the Phone, what's wrong?
> it's a known Bug with this ROM, No fixes yet but you can always try enabling 'Special Bluetooth' from 'Supersetup/Special Options' and/or try this fix
2. I can't seem to find my EXT partition to install/restore applications to, why?
> There is an Option in Supersetup/Options/APPS2SD and LinuxSwap/ there you can enable Apps2SD. Also pay application can be made available from there.
3. My phone crashes after I set some profile in SetCPU, what can I do?
> Domt use Set CPU, use CPU Options from Supersetup instead.
4. I dont Like the Theme very much, any Idea?
> use any metamorph theme through JrosMetamorph application built-in with this ROM. OR use the themes attached in theme section (Above)
5. Sometimes returning to Home screen takes ages, what the hack?
> Could be some bug associated with the better terminal app, try removing it and use another Terminal Emulator instead.
Screens:
thanks for the post. flashin right now.
got a black screen hang when I did a second boot of this rom after selecting apps2sd
|Logic| said:
got a black screen hang when I did a second boot of this rom after selecting apps2sd
Click to expand...
Click to collapse
did u maintain the basics.?.. Just asking,
full wipe and then flash....should work fine....
I have Apps2SD functioning...
Higher MFLOPS values doesn't necessarily mean an all around faster ROM, as I was easily getting 3.6's on FastTest with JIT and the RAM hack, any CSDI based ROM is going to be faster than SuperD even with JIT and the 10MB RAM hack, yet CSDI has yet to reach MFLOPS values above 3.0.
Flashed, and it honestly feels just as snappy as zachattack052's Beta ROM (which had the APN and keybaord fix as well as Brut's mod'd google maps) Good job on the fixes, MLIGN.
neckface said:
Higher MFLOPS values doesn't necessarily mean an all around faster ROM, as I was easily getting 3.6's on FastTest with JIT and the RAM hack, any CSDI based ROM is going to be faster than SuperD even with JIT and the 10MB RAM hack, yet CSDI has yet to reach MFLOPS values above 3.0.
Flashed, and it honestly feels just as snappy as zachattack052's Beta ROM (which had the APN and keybaord fix as well as Brut's mod'd google maps) Good job on the fixes, MLIGN.
Click to expand...
Click to collapse
some people seem to believe them....otherwise, I only believe what I feel and see, Please if u like the ROM say thankss to the DEVs....
Thank you
arefin said:
some people seem to believe them....otherwise, I only believe what I feel and see, Please if u like the ROM say thankss to the DEVs....
Thank you
Click to expand...
Click to collapse
Agreed. Thank you, Devs. n_n
No apps2sd
Ok so I did a full wipe and my sd card is already partitioned. Flashed this rom. Now the SupSetup v4 app won't run on my device. Tried uninstalling and reinstalling and still the same problem. No apps2sd for me on this rom?
u gotta go in to supsetup and do it threw there its an option...then check it then restart
Blazing fast on the g1 ~ coming from latest cyanogen.
But im missing eclair browser, clock and mt
My report
The most amazing thing about this rom....
its not capable of running Jit due to the lack of Eclair in framework,
and it doesn't have ramhack, don't think it's capable of that either, but probably could be done,
and yet it still defines itself to be the fastest donut of all! Without all the memory hacks, amazing. Even more astonishing for the 3D game lovers.
Aside from linpack or speedtest scores, This is down right the fastest rom I ever used, including the multiple versions released by all the devs who edited it to their own flavor (zachattack052,domenukk, to name a couple)
So big ups to this thread, as I love to see another version of it has been docked for my collection of downloads
For those of you who haven't tried it, you really should...if you like the level of speed from fastTest(superfast now) and Super D...then you will absolutely fall in love with this one.
I get a 3.596 flop using Complete Eclair 1.2 ... and this is a donut rom and only gets 2.326?
Either way, its good to see people still updating 1.6 roms for historical purposes.
Kainzo said:
I get a 3.596 flop using Complete Eclair 1.2 ... and this is a donut rom and only gets 2.326?
Either way, its good to see people still updating 1.6 roms for historical purposes.
Click to expand...
Click to collapse
Complete Eclair uses Jit...and feels nowhere close to what this rom feels like (speed, smooth, snappy).
But that is usually how it goes when comparing 1.6 to 2.1 on a G1. I hope Wes G (OE 2.0) can change all that.
Complete Eclair CAN use JIT. It doesn't come stock with JIT to my knowledge.
Kainzo said:
Complete Eclair CAN use JIT. It doesn't come stock with JIT to my knowledge.
Click to expand...
Click to collapse
LOL you are correct I was thinking SuperEclair which comes stock with JIT enabled.
But lets be realistic...you can't pull 3.5 - 3.6 consistently without JIT enabled on a G1.
G1ForFun said:
LOL you are correct I was thinking SuperEclair which comes stock with JIT enabled.
But lets be realistic...you can't pull 3.5 - 3.6 consistently without JIT enabled on a G1.
Click to expand...
Click to collapse
Amen^^ I second that. Never seen those numbers on G1 without JIT....if so, show me the link to that rom, and I will be flashing immediately!
i ported the Elegance theme to this rom, so its a fully themed rom. let me know if anyone wants it . it's running great, i'm very impressed with this rom. so much faster than all the other donut roms.
opasha said:
i ported the Elegance theme to this rom, so its a fully themed rom. let me know if anyone wants it . it's running great, i'm very impressed with this rom. so much faster than all the other donut roms.
Click to expand...
Click to collapse
Psh, yes I want it
This is exciting.
...
HA! took about a day to get here from twitter!!
love it!
goo job guys!
...
you should most in MyTouch forum... it works on mine.
*** THIS IS EXPERIMENTAL ***
Thanks to toastcfh, maejrep, AssassinsLament, Estimated Prophet, Cicatrize, joeykrim, geyes30, kpkimmel and all the others from the kernel & display cap threads who have been working tirelessly, and continue to do so. This isn't over until we can find the real cap! But I think this avenue has progressed enough for it to have its own thread, if only to give hope, since we now know both Epson and Novatek panels physically can do it!
What Doesn't Work
Nothing. Now based on the official kernel with everything working.
About This Kernel
This is just a dirty hack. We haven't yet figured out where the real cap in framerate is coming from. But until we do, this is the best we have. At least it shows the display itself can handle a higher framerate and isn't physically incapable like HTC would have us believe.
Novatek panels can now get up to 46fps pretty reliably. Run fps2d a few times.
Stdev depends on system activity. If you're going to be judging stdev, DON'T measure it immediately after booting, set your CPU throttle mode to "performance", be sure to run fps2d several times, then average those stdev numbers in your head.
The changes are now immediately applied upon boot. There is no need to cycle your display anymore.
This kernel has support for overclocking/underclocking, up to 1.119 MHz. Also includes my own undervolting and overvolting for higher speeds to increase stability.
You can get dramatically tighter stdev numbers by setting your CPU governor to "performance" in SetCPU. It seems scaling really messes with the framerate. Obviously this will drain your battery faster, as your CPU will constantly be running at full speed. Set it back to "ondemand" if you don't need it.
Some people are reporting their touchscreen grounding issues have been cured.
Support to change the T2 value on the fly [thanks to maejrep]
Support for 5 simultaneous touch points! Use Dotty (in the Market) to see it in action. It'd be cool if someone would make a simple app to demonstrate what can be done with more than the mere 2 points we are used to. People have suggested new lock types, security locks, ways to rotate things, etc. [thanks to maejrep]
Some hardware fails to accept 5 points, so a fail-safe has been added to default back to 2 points for some EVOs
AssassinsLament has created an awesome app to provide an easy way for people to change their T2 timing. Check out his app here: http://forum.xda-developers.com/showthread.php?t=716659 [thanks to AssassinsLament]
Changes to display timings are now sticky until rebooted (w/ the above app, or set manually)
What's New
v5.1.1: Using the official kernel. We've lost some fps, but we've gained camera, video, 4G, etc. 46fps is now average.
v5.1.1: Expanded user-modifiable timing settings. Change at your own risk.
v5.1.1: Audio patched [thanks Geniusdog254 and KERKEDAGAIN]
Instructions
Do a nandroid backup, and flash this over pretty much any ROM. If you have problems, you can just flash a stock boot.img again. There should never be any need to wipe anything.
IMPORTANT: This will only work with the stock bcm4329.ko! Using the newer files and flashing this kernel will result in wifi being unable to start, and vice versa. To correct this, you'll need to flash over the correct wifi files.
Changing Timing Settings
You can use the following commands from adb shell to temporarily change timing on the fly. Do it while your screen is on.
Set: echo NUMBER > /sys/devices/platform/mddi_c_b9f6_5582.1/PARAMETER
Check: cat /sys/devices/platform/mddi_c_b9f6_5582.1/PARAMETER
Parameters:
t2 - 245 to 1023 [Default Eclair: 437, Froyo: 432]
t3 - 0 to 7 [Default Eclair: 1, Froyo: 0]
fte - 0 to 879 [Default Eclair: 35, Froyo: 60] (Frame Tearing Effect, change this if you have tearing problems)
Flashable ZIP - Undervolted kernel v5.1.1 for use with 2.1 (Eclair) ROMs
Flashable ZIP - Normal-volted kernel v5.1.1 for use with 2.1 (Eclair) ROMs
Flashable ZIP - Undervolted kernel v5.1.1 for use with 2.2 (Froyo) ROMs
Flashable ZIP - Normal-volted kernel v5.1.1 for use with 2.2 (Froyo) ROMs
Note: Certain things like the camera still don't work, since our Froyo ROMs aren't official.
Flashable ZIP - WiFi-N + 4G for all custom kernels based on toastcfh's GoDmOdE kernel (compatible with v5.2+)
Flashable ZIP - WiFi-N + 4G for stock/custom kernels (compatible with v5.1 and below)
Flashable ZIP - WiFi-N + 4G for the OTA kernel (NOT compatible with the kernel in this post)
*** REMEMBER! No one here is responsible if you damage your phone! ***
See the Evo, Droid X and Nexus One benchmarked together here: http://androidspin.com/2010/06/25/droid-x-vs-htc-evo-vs-google-nexus-one-in-benchmark-face-off
Want NenaMark1? It usually doesn't show in the Market, so get it here: http://nena.se/downloads.html
Awesome, just flashed and it is soo smooth, thank you devs.
This works great for me.
Not really related to this but my phone locks up when I change the cpu frequency with setcpu. EDIT: (How do I overvolt the phone?)
Oh and yes I do get 50hz.
Is there 2.2 support or no
ttieder said:
Is there 2.2 support or no
Click to expand...
Click to collapse
Nope I wish there was. Droid X skin + 50hz would be very cool.
ttieder said:
Is there 2.2 support or no
Click to expand...
Click to collapse
Second this question..I'm loving the EvolutionX froyo rom and would be sweet to get this baby on board with froyo.
Does this work for Epson panels too?
This works great. Touchscreen SEEMS a bit more responsive in in multitouch vis test. Grounding issue is nowhere near as bad, but still there. If you pull the same trick that everyone is doing to test grounding problem, you won't notice it at first, and very rarely will it stop sensing you finger all together, but it definitely does cut out for an instant every now and then, and I had it drop visibility where it normally does a few times for a split second.
Epic delete
As this is a development thread, please don't start posting your results like the Godmode thread. It will only clutter the thread.
Can you zip your modified files and post them too? Source would be nice
sweteg said:
As this is a development thread, please don't start posting your results like the Godmode thread. It will only clutter the thread.
Click to expand...
Click to collapse
This thread was made to avoid the clutter from the Godmode thread.
Thanks for the excellent dev work!
You might want to add to the first post that this kernel breaks 4G. it will turn on but not able to find any network.
Other than that, works as described
The device feels so much smoother!
Great work! I get 52 in fps2d, 680 in quadrant, and 51 in gears. I can't wait until this is completely fixed but I'm loving it and the undervolt and oc patches are awesome additions.
automatic brightness still does not work with this kernel though. At least not for me. Is it possible I have a different light sensor as no custom kernel has worked with auto brightness yet and other reports say it works just fine.
Also... fps2d spikes into 99 fps and at one point I watched it flash past 100
Definetly works
Installed the kernel and got over 50 fps on my nova panel i have hardware config 002 it runs much much smoother thanks devs for the hard work.
wow this kernel is insane, I mean FPS hack and overclock hack without force closes...wow is all I can say. Used the OC widget and it detects the oc clocks quickly.
Man if this kernel makes it to Froyo..Evo will be truly evil
2 vertical lines just showed up on the right side of the screen, haven't tried anything yet, let me restart and see if it goes back, then try to duplicate the issue.
Edit: It went away after I got a text, not sure if it was coincidence or not. I'm guessing this is the tearing issue that the FPS fix causes, but nothing about it was written in OP.
Mrtankjump said:
2 vertical lines just showed up on the right side of the screen, haven't tried anything yet, let me restart and see if it goes back, then try to duplicate the issue.
Edit: It went away after I got a text, not sure if it was coincidence or not. I'm guessing this is the tearing issue that the FPS fix causes, but nothing about it was written in OP.
Click to expand...
Click to collapse
My Evo has an Epson panel so I can't use this fix but, my understanding was that this method didn't cause the tearing like we saw from Toast's custom kernel on Epson displays, so your problem might be something else and not necessarily the fps cap being raised.
Thanks for the kernel, but I still have one big problem- my battery still will not charge with this kernel installed. It will only charge when I turn off the EVO and turn it back on. But as soon as I unplug and replug it in, it will look like it charges for 5 seconds, then the orange light shuts off and it stops charging. I've enclosed a dump of my dmesg. Can someone please take a look at this?
Background
As many of you recently saw in my Warm TwoPointTwo RLS2 thread there was an optional download for Collin_ph's battery tweak ported to the EVO by me.
This mod was so large I figured It deserved it's own thread and at the same time I'd like to share it with the community so other ROM devs can incorporate this into their ROMs
This is really a tool for power users
If you don't consider yourself 'comfortable' with messing with your phone, then don't.
This is mostly the work of collin_ph, all the ideas are mostly his and I have only contributed in part to getting some things functioning correctly and some optimizations for the EVO and INCredible. The original thread from Collin_ph can be found here and the original documentation can be found here.
What does it do?
This tweak creates a service that periodically checks the phone's power source.
If the power source changes, it reconfigures the device for maximum performace, battery and safety.
Tweaks compcache (if enabled) for current power source
Tweaks memory settings for current power source
Re-clocks CPU based upon battery remaining or current power source
Reclocks for maximum performance if on AC power
Reclocks for maximum performance and charging safety if on USB
Reclocks for performance and battery if on Battery
As Battery life is diminished, Maximum CPU frequency is lowered
Tweaks scaling charactaristics depending on power sourcee
CPU Scales up less frequently on battery power
CPU Scales up more frequently on USB/AC power
The CPU is allowed to scale dynamically in all charging states based upon CPU usage
Includes a batt-cfg utility to configure the system
You may load 1 of 2 pre built profiles
Manually configure CPU Frequencies in all charging states
Determine the percentage of underclocking as the battery drains
Configure how often to poll the power state / battery statys
Disable batt.sh service from running at startup
Includes a batt-rm.sh uninstall utility
Includes a batt-diag diagnostic utility
Includes an LED fix if your LED is stuck on
Includes optional experimental performance tweaks (disabled by default)
Includes optional Disk performance tweaks (enabled by default)
Includes optional froyo Audio quality fix (disables stagefright)
The Tools
The entire 'application' is written in shell code and was first written just to give a performance and battery boost, but since has evolved more and more.
All the tools mentioned will be utilized either through the terminal, or in adb shell.
batt.sh
This is the core of the entire script. Don't mess with it.
The one thing you should do after installing the script:
Code:
pidof batt.sh
If theres any number showing up after it, then it's working fine.
batt-cfg
This is the 'main menu' of sorts, as it gives the user all the options and allows them to toggle tweaks/mods on the fly.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
batt-diag
It's a diagnostics utility, allowing you or someone knowledgeable to figure out any issues that you may be having with your device and be able to pinpoint exactly where the problem is.
batt-diag -v gives a more thorough output as you can see here; http://pastie.org/1162034
batt-rm.sh
It's a battery tweak removal script, follow the onscreen prompts and it should remove just about any trace of the battery tweak script.
The Presets
The presets are just default configurations that I have set up that can make your phone more efficient without you, the user, having to manually set everything.
The preset of 998 literally means that 998400 is the scaling_max_freq, or the max frequency, that your phone can achieve after you enable it.
Just typing 1, and then enter, you'll be ready and set to go. Same with 2.
Customize Settings
This is only for the experienced user, and it allows you to manipulate most/ifnotall the configurables on your device.
Note, you do not need to configure anything to enable this battery mod. Default settings will be assigned.
All the settings explain what each option does, so read them carefully.
Disk Boost
Remounts via noatime and nodiratime. Look up what that means on your own, and why it benefits performance the way it does.
Audio 'Fix'
Disables stagefright for bettery audio quality, though it will hinder your benchmark scores only because it affects the AAC codec and how it behaves.
CFS Tweak
Currently not functional. Will evolve in time. What it will eventually do is Echo NO_NEW_FAIR_SLEEPERS to sched_features to change CFS into more of a traditional scheduler like BFS, which gives a noticeable benchmark performance boost, but hinders how gps behaves(kind of like the real BFS).
Prerequisites needed to run this
If you're running a version of CM6 or Warm TwoPointTwo RLS2 and above, this will work completely fine.
If you're running any other kind of rom, that developer will need to add an 'import' call in the init.rc(in the ramdisk) that imports the init.d script necessary for this application to function at boot. If you don't know how to do this, please see post #2.
This script will WORK even if you don't have the import call at boot, but it won't survive on the next reboot.
You can check via:
Code:
pidof batt.sh
NOTE: This script will also prompt you to try to run itself as root if you use it in terminal.
Contributors:
Collin_ph
Decad3nce
myn
onicrom
shabbypenguin
Download And Install:
Version 3 RC2 Download Herehttp://www.mediafire.com/?xmjdd797f6v2m90
A new guide is available: [GUIDE]* How to properly flash collin_ph battery tweak & have best battery life ever! *
Disable SetCPU or other overclocking programs as they will interfere with this tweak.
Kernels that manage and throttle CPU (ex HAVS) may interfere with the operation of this mod as they will fight and conflict with CPU deltas.
Download, the zip, copy to SD card.
Reboot into recovery and flash.
Reboot and run the batt-cfg configuration utility.
Help us debug!
Having issues with this mod? Help us debug your issue by doing this:
Code:
adb shell batt-diag -v > battdiag.txt
and upload that txt file so that we can diagnose your problems more thoroughly.
For ROM Developers
You need 3 things for the script to survive a reboot:
A clockable kernel
An 'import' call for init.local.rc in init.rc in the ramdisk.
Just paste this into init.rc after the "Define TCP buffer sizes" setprops
Code:
# Include extra init file so that the battery tweak will function
import /system/etc/init.local.rc
Proper file structuring/permissions(The update script in the update.zip really does all of this for you)
Future Development:
I'd love to have a bunch of developers contributing to this project. I maintain this project out on github branched from Collin_ph's base code. If you'd like to contribute let me know and I'll add you as a contributor to the project.
http://github.com/myn/battery-tweak-v3
Original Source: http://github.com/collinph/battery-tweak-v3
* This one reserved too *
Quick question....is v3 the same that was included with rls2?? Another question that was asked in your ROM thread, does this need to be activated via ADB or does flashing activate? Thanks in advance and keep up the phenomenal work.
Nice nice im reading at the moment but looks tastey and im in!!!
Sent from my phone... I think Tapatalk??
I assume you use this OR SetCPU and can't use them both together as it sounds like they would clash...
Swyped from my supercharged Evo!
So far so good myn. I jumped right in and gave it a shot w the latest stock kernel.. Will report as i go
Thanx much man!!!
Sent from my phone... I think Tapatalk??
Can I use this AND keep setcpu a long as I don't use profiles?
Wouldn't this interfere with havs the same way that profiling in setcpu does?
Sent from my PC36100 using XDA App
tonwarr.the.incredible said:
Quick question....is v3 the same that was included with rls2?? Another question that was asked in your ROM thread, does this need to be activated via ADB or does flashing activate? Thanks in advance and keep up the phenomenal work.
Click to expand...
Click to collapse
Yes. V3 is the same as what was included in RLS2. This mod is automatically activated as soon as you flash it.
stanglifemike said:
I assume you use this OR SetCPU and can't use them both together as it sounds like they would clash...
Swyped from my supercharged Evo!
Click to expand...
Click to collapse
overthinkingme said:
Can I use this AND keep setcpu a long as I don't use profiles?
Wouldn't this interfere with havs the same way that profiling in setcpu does?
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
Exactly. Anything that controls the CPU may conflict with this mod.
I'd love to hear feedback from people about what configurations work and what don't though.
myn said:
Yes. V3 is the same as what was included in RLS2. This mod is automatically activated as soon as you flash it.
Exactly. Anything that controls the CPU may conflict with this mod.
I'd love to hear feedback from people about what configurations work and what don't though.
Click to expand...
Click to collapse
Myn, what kernal do you recommend given the potential conflicts with the tweak?
lido said:
Myn, what kernal do you recommend given the potential conflicts with the tweak?
Click to expand...
Click to collapse
I'd start with the stock kernel, HTC #11 and then keep trying others out.
I'd love to figure out a nice combination for this
I'm running king's aosp cfs kernel #1 and scared to run this script on my phone. Should I be fine?
Sent from my PC36100 using XDA App
locoboi187 said:
I'm running king's aosp cfs kernel #1 and scared to run this script on my phone. Should I be fine?
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
Don't let the first post scare you hehe.
If you just flash it, it automatically is enabled and configured for your EVO. No configuration needed.
Give it a try. If it doesn't work, you can always remove it or turn it off.
Sry, still quite new to the whole flashing rom and kernel thing.
I'm just wondering if im using the king's #11 CFS kernel, would it conflict with this tweak?
*PS i dont think i have setCPU install or enable. I just flashed the kernel to the rom that I'm using right now if that helps
thanks in advance!
How do I know if it's enabled or not? Using ADB shell after I flashed it won't show anything after I enter the pidof batt.sh. It brings me back to #. I am running a sense ui stock deodexed rom.
So u dont need to enter batt-cfg in terminal to activate? Simply just flashing it activates it?
casual864 said:
How do I know if it's enabled or not? Using ADB shell after I flashed it won't show anything after I enter the pidof batt.sh. It brings me back to #. I am running a sense ui stock deodexed rom.
Click to expand...
Click to collapse
Unfortunately the stock sense UI stock deodexed rom does not support the call to init.rc.
See below for prereqs:
Prerequisites needed to run this
If you're running a version of CM6 or Warm TwoPointTwo RLS2 and above, this will work completely fine.
If you're running any other kind of rom, that developer will need to add an 'import' call in the init.rc(in the ramdisk) that imports the init.d script necessary for this application to function at boot. If you don't know how to do this, please see post #2.
This script will WORK even if you don't have the import call at boot, but it won't survive on the next reboot.
You can check via:
Code:
pidof batt.sh
casual864 said:
How do I know if it's enabled or not? Using ADB shell after I flashed it won't show anything after I enter the pidof batt.sh. It brings me back to #. I am running a sense ui stock deodexed rom.
Click to expand...
Click to collapse
Tiffany84 said:
So u dont need to enter batt-cfg in terminal to activate? Simply just flashing it activates it?
Click to expand...
Click to collapse
yup, flashing activates this automatically.
I'm having trouble finding the newest stock htc kernel, can someone help me/us with a link please since this doesn't play nice with havs?
Sent from my HTC Evo 4g
I enabled the cfs tweak using terminal emulator and then flashed kings #11 cfs. I'm not getting high CPU usage and when I'm idle its staying around 245mhz. We will check battery results tomorrow.
Sent from my PC36100 using XDA App
Hello everyone,
I've been using the cm9 release candidate since it was released, and still can't figure out how to make it snappy (I was on Apex before, and found it much more responsive). I'm not sure which the performance/memory management settings the Nexus S can handle well (there are lots of other threads for other phones, but I'm not sure if some of the settings require better hardware), so I'd appreciate it if anybody could tell me what they've found to be good for the following options:
Performance settings:
- Surface dithering
- 16bit transparency
Memory management:
- Allow purging of assets
- Kernel samepage merging
Misc. information that may or may not be relevant:
- Using Matr1x kernel (CFS, v21.0 I think)
- Processor is running at 200/1200 most of the time, ondemand governor (same settings that used to give me great performance on Apex).
- Also tried running Supercharger script, but it didn't seem to change things as much as it usually does
- Fixing permissions didn't fix it
- Battery life seems fine
- What I mean by "unresponsive" is that the launcher takes longer than usual to redraw and is laggy switching between windows, apps often force close or take forever to start up, and the browser reacts much more slowly to pinches, swipes, etc.
Thanks!
tl;dr: CM9 users, please share your performance + memory management settings. Explanations not required, though appreciated.
niiiiick said:
Hello everyone,
I've been using the cm9 release candidate since it was released, and still can't figure out how to make it snappy (I was on Apex before, and found it much more responsive). I'm not sure which the performance/memory management settings the Nexus S can handle well (there are lots of other threads for other phones, but I'm not sure if some of the settings require better hardware), so I'd appreciate it if anybody could tell me what they've found to be good for the following options:
Performance settings:
- Surface dithering
- 16bit transparency
Memory management:
- Allow purging of assets
- Kernel samepage merging
Misc. information that may or may not be relevant:
- Using Matr1x kernel (CFS, v21.0 I think)
- Processor is running at 200/1200 most of the time, ondemand governor (same settings that used to give me great performance on Apex).
- Also tried running Supercharger script, but it didn't seem to change things as much as it usually does
- Fixing permissions didn't fix it
- Battery life seems fine
- What I mean by "unresponsive" is that the launcher takes longer than usual to redraw and is laggy switching between windows, apps often force close or take forever to start up, and the browser reacts much more slowly to pinches, swipes, etc.
Thanks!
tl;dr: CM9 users, please share your performance + memory management settings. Explanations not required, though appreciated.
Click to expand...
Click to collapse
You don't need to mess with those settings.
Besides, if your applications FC, it's likely because of:
a) instability regarding your overclock
b) instability regarding the undervolt that matr1x kernel comes with
c) the fact v21 was canned due to being judged unstable by so many, upgrade to v22
d) all of these
Cheers
If you don't know what a setting does, don't change it. Messing with the CM performance settings if you don't know what you're doing is a great way to mess your phone up.
063_XOBX said:
If you don't know what a setting does, don't change it. Messing with the CM performance settings if you don't know what you're doing is a great way to mess your phone up.
Click to expand...
Click to collapse
are you completly retarded? there doesnt happen much when you change the settings there. you are talking like the settings are just for pros and he is a kid, lol. kernel samepage merging for example just "bonding" two similiar proccesses so they dont need too much ram.
Fensterbank said:
are you completly retarded? there doesnt happen much when you change the settings there. you are talking like the settings are just for pros and he is a kid, lol. kernel samepage merging for example just "bonding" two similiar proccesses so they dont need too much ram.
Click to expand...
Click to collapse
Are you? This thread has been dead for almost 3 months. The OP had his answer. Resurrecting this thread just to argue is incredibly pointless.