[Q] Check CPU speeds - EVO 4G Q&A, Help & Troubleshooting

I'm kinda new at the whole flashing kernel thing. i just downloaded and flashed the Tiamat_Evo (v4.0.6) on my GB 2.3.3 with CyanogenMad-7.0.3.1.
What are the ways to check the max/min speeds now and what are recommend ranges for long battery life and or fast performance on the EVO
+1 in advance

There's an app called CPU Spy Beta out...I couldn't find it in the market. Try Google...they seem to have everything. I'm underclocked with interactiveX 128/768. Runs great on battery with freedom kernal
HTC EVO 4G running MIKG 2.45

slimno19 said:
There's an app called CPU Spy Beta out...I couldn't find it in the market. Try Google...they seem to have everything. I'm underclocked with interactiveX 128/768. Runs great on battery with freedom kernal
HTC EVO 4G running MIKG 2.45
Click to expand...
Click to collapse
is this it?
https://market.android.com/details?id=com.bvalosek.cpuspy

If you use Setcpu to set frequencies it also has a feature that does the same thing. Go to the info tab then select time in state. Tells you everything that app does and more.
Sent from my PC36100 using Tapatalk

Cm7 has a built in CPU setting.
Settings - cyanogenmod settings - performance - CPU settings
I run min 128 Max 614, still speedy no reboots (unless I undervolt too much)
Also check out vipermod, it was designed around the tiamat kernel to allow you to change the voltages to your CPU. This also helps battery life!
Sent by Supersonic!

imheroldman said:
Cm7 has a built in CPU setting.
Settings - cyanogenmod settings - performance - CPU settings
I run min 128 Max 614, still speedy no reboots (unless I undervolt too much)
Also check out vipermod, it was designed around the tiamat kernel to allow you to change the voltages to your CPU. This also helps battery life!
Sent by Supersonic!
Click to expand...
Click to collapse
I'm undervolted by 100 and I get get more and more battery life the longer I condition my battery. I'm also set at min 691 and max 921
The more that your phone spends time that it's switching clock speeds (drastic changes) seems like a waste of power.

imheroldman said:
Cm7 has a built in CPU setting.
Settings - cyanogenmod settings - performance - CPU settings
I run min 128 Max 614, still speedy no reboots (unless I undervolt too much)
Also check out vipermod, it was designed around the tiamat kernel to allow you to change the voltages to your CPU. This also helps battery life!
Sent by Supersonic!
Click to expand...
Click to collapse
Awesome, ill try that. is it best to reboot after applying the new settings?

If you just changed clock frequencies then no need to reboot as It's done on the fly. If you change voltages then you need to reboot. Vipermod is an excellent script. I have used it on sense kernels even though it wasn't made for them.
After looking closer at the vipermod script it doesn't say a reboot is required unless going back to factory defaults.
Sent from my PC36100 using Tapatalk

@civicboy, no real need to reboot, make sure the settings don't cause your phone to reboot on its own before checking set at boot. Same goes for undervolting, and, you are more likely to get reboots with undervolting. I have seen peoples phones that wont accept any undervolting... be cautious... do it in 25mv increments to find what your phone can handle... have the reset file on your sdcard at all times. Sounds scary but its really not that bad once you figure it out.
Check back with your results or if you need more info.
Sent by Supersonic!

imheroldman said:
@civicboy, no real need to reboot, make sure the settings don't cause your phone to reboot on its own before checking set at boot. Same goes for undervolting, and, you are more likely to get reboots with undervolting. I have seen peoples phones that wont accept any undervolting... be cautious... do it in 25mv increments to find what your phone can handle... have the reset file on your sdcard at all times. Sounds scary but its really not that bad once you figure it out.
Check back with your results or if you need more info.
Sent by Supersonic!
Click to expand...
Click to collapse
here are my values. i went down to 100, however, i dont know what the factory values are so I cant confirm that it worked, or that the values stuck after reboot
Can anyone confirm by looking at these numbers?
{
"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"
}

those numbers look too high. after you changed the value, did you enter "10" to save the changes and re-write to the init.d file?

alaman68 said:
those numbers look too high. after you changed the value, did you enter "10" to save the changes and re-write to the init.d file?
Click to expand...
Click to collapse
probably not, since i cant say yes right away lol
EDIT: I am just going to reset to factory, do the reboot, and start over.... making sure i save changes

Why am I getting this error at the bottom of the screen?
[/IMG]

Are you typing SU before you start vipermod? You have to give TU root for vipermod to work.

I think i got it figured out. i reflashed and restarted process and works great now, keeping all values. i went down -50. dont want to push my luck. Thanks for all the help!

Be sure to get vipers zip for reseting to default. This allows you to push the voltages and if you get boot looping you can just flash the reset from recovery.
And I gave you a "thanks" for actually thanking those that help out.

BuddaBelly said:
Be sure to get vipers zip for reseting to default. This allows you to push the voltages and if you get boot looping you can just flash the reset from recovery.
And I gave you a "thanks" for actually thanking those that help out.
Click to expand...
Click to collapse
lol awesome. thanks man.
You are talking about the original zip file right? can i just creat a folder called vipermod and store it in that incase of emergency?

ha, i was going to pop his "thanks" cherry too.
there is restore defaults .zip you can flash. Put it on your sd for safe keeping wherever you like and remember.
Terminal emulator is fun to learn too

alaman68 said:
ha, i was going to pop his "thanks" cherry too.
there is restore defaults .zip you can flash. Put it on your sd for safe keeping wherever you like and remember.
Terminal emulator is fun to learn too
Click to expand...
Click to collapse
Where can i get that?

http://bit.ly/nNN1P6
That's the file you need. Just put it on the root of the sdcard or wherever you know it's at and if you get into trouble going to crazy on voltages just flash it from recovery. It will reset your voltages back to defaults.

Related

[Q] Why is the newest Netarchy Kernel making my Stock Root Rom's FPS WORSE?!

Can anyone help me out?
I'm running stock rooted 2.2 (deodexed) and flahsed over the 4.0 zip... and the scrolling is choppier than all hell. I re flashed the stock kernel, and it was back to being fine again. So, I tried again, with wiping the caches first, and still choppier than all get out when I flashed the kernel.
It's definitely the right kernel, but what the hell am I doing wrong here? Any help would be appreciated.
And, I'll even throw in 5-10 dollrs for someone who can give me an answer that works.
This could be because of the new settings he just changed. Try the download that is 4.0.2 and not 4.0.3, or try overclocking your processor to 1.2GHZ with OC widget or SetCPU.
What kind of screen do you have? If you have a Nova panel, you may need to adjust T2 values to get the best performance. Just my 2 cents.
Ok, so I installed 4.0.2, and it seems to be running better, but still some choppiness on the menu up and down scrolling when "all apps" is opened.
I have no idea how to use SetCPU (noob yep... graphics guy... not a tech guy_, so I took a screen:
{
"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"
}
Wpould you mind just telling me where the sliders should be?
nukedukem said:
What kind of screen do you have? If you have a Nova panel, you may need to adjust T2 values to get the best performance. Just my 2 cents.
Click to expand...
Click to collapse
I have a Nova, but, I have no idea what T2 panels are and how to adjust them. If you could point me to the right app or direction, that'd be awesome. I'll donate to you as well if it helps.
There's an app floating around here called NovaFreq formerly evoswitch. It allows you to change the panel frequency to improve fps. Everyone gets different results. 450ish was usually the best for me. Basically trial and error. Most haven't needed it with recent kernels though. As for setcpu, the higher the max frequency the better fps performance, but overclocking comes with some risks. Im usually underclocked at 576max / 245min. You can also set profiles to run certain speeds when screen off, charging, etc. Helps a lot with battery life. I would move your max down to 998 or 1113 and min to 245. Ondemand is usually a good scaling setting. Hope this helps.
Sent from my FROYO'D EVO using xda app
dglowe343 said:
There's an app floating around here called NovaFreq formerly evoswitch. It allows you to change the panel frequency to improve fps. Everyone gets different results. 450ish was usually the best for me. Basically trial and error. Most haven't needed it with recent kernels though. As for setcpu, the higher the max frequency the better fps performance, but overclocking comes with some risks. Im usually underclocked at 576max / 245min. You can also set profiles to run certain speeds when screen off, charging, etc. Helps a lot with battery life. I would move your max down to 998 or 1113 and min to 245. Ondemand is usually a good scaling setting. Hope this helps.
Sent from my FROYO'D EVO using xda app
Click to expand...
Click to collapse
Wow thanks. I downloaded nova frequency, but just left it at default, and changed the setcpu, bc I was getting random reboots with the overclock. I also set profiles to way lower when the screen is off and the phone is at lower battery percents.
This phone officially runs like it's on crack now. Good stuff.
Guys, PM me ur paypals, and I dont' mind donating a few bucks tomorrow.
Glad to help. Feel free to send my donation to one of the developers on this forum. Without them I wouldn't have known any of that.
Sent from my FROYO'D EVO using xda app
dglowe343 said:
Glad to help. Feel free to send my donation to one of the developers on this forum. Without them I wouldn't have known any of that.
Sent from my FROYO'D EVO using xda app
Click to expand...
Click to collapse
Good ****
Sent from my PC36100 using XDA App
TJDuckett said:
Wow thanks. I downloaded nova frequency, but just left it at default, and changed the setcpu, bc I was getting random reboots with the overclock. I also set profiles to way lower when the screen is off and the phone is at lower battery percents.
This phone officially runs like it's on crack now. Good stuff.
Guys, PM me ur paypals, and I dont' mind donating a few bucks tomorrow.
Click to expand...
Click to collapse
LOL bro. Not only did I tell you to use NovaFreq, but I also told you not to use SetCPU. You were getting reboots b/c it was set too high and you don't want to set it below 245 when screen is off. I don't think SetCPU is so great for *most* people. I could have helped you on GTalk and taken your money...gladly would have

Is there a standard setting for "setcpu"

Looking for a setting some of you made with your evos and setcpu.. something that will underclock when not using the phone ... or something.. I understand with the right settings .. setcpu can save a lot of battery power.. or am I wrong? Thanks
sent using my evoh
fastfed said:
Looking for a setting some of you made with your evos and setcpu.. something that will underclock when not using the phone ... or something.. I understand with the right settings .. setcpu can save a lot of battery power.. or am I wrong? Thanks
sent using my evoh
Click to expand...
Click to collapse
Yep! SetCPU will really improve your battery life.
The biggest thing is to enable "profiles" in the second tab and create a "screen off" profile and set it to the lowest settings you can (clock it up a bit from that if you're noticing lag when you first turn on your screen).
Other than that, I also keep a profile that clocks my processor down to 800 when my battery's below 15%. The settings on the first tab are your main settings. If no other profile's conditions are met, this one will be the one the phone uses. It's useful to turn the profile notifications on for a little bit to make sure all your profiles are working properly at first.
Thanks... but isn't there a much more in depth settings? Could of sworn I've seen a post with a bunch of settings... I just don't know how to do it
sent using my evoh
fastfed said:
Thanks... but isn't there a much more in depth settings? Could of sworn I've seen a post with a bunch of settings... I just don't know how to do it
sent using my evoh
Click to expand...
Click to collapse
Yeah give me a sec. I'll post a screen shot. Are you looking to overclock?
You can also change the governor settings for all your profiles. For my main one I use "ondemand" but for the other ones I use "powersave."
Here's all my settings. If want more depth, there is a setcpu thread somewhere on here.
{
"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"
}
Sent from my monstrous superphone using the XDA app.
How do you get it to to to 1113 mine does not go that high
sent using my evoh
Also I only have, userspace, ondemand,performance..
sent using my evoh
fastfed said:
How do you get it to to to 1113 mine does not go that high
sent using my evoh
Click to expand...
Click to collapse
fastfed said:
Also I only have, userspace, ondemand,performance..
sent using my evoh
Click to expand...
Click to collapse
The answer's the same for the both: it requires a custom kernel.
If you do happen to have one installed, make sure setCPU is set to "autodetect." On the main screen hit the menu button and then click device selection, and then press "autodetect recommended speeds."
If you don't have a custom kernel....welllllll....that's a whole different dicussion.
I just have freshs rom and the radio for it... I set mine up like yours, except I don't have the names yours has for the profiles... is it worthless for me if I don't have a customer kernal? What do they do really? Will it hurt anything? Finally will I lose anything? Sorry for the questions, but you seem to know your stuff very well...
sent using my evoh
fastfed said:
I just have freshs rom and the radio for it... I set mine up like yours, except I don't have the names yours has for the profiles... is it worthless for me if I don't have a customer kernal? What do they do really? Will it hurt anything? Finally will I lose anything? Sorry for the questions, but you seem to know your stuff very well...
sent using my evoh
Click to expand...
Click to collapse
No no no, it's no where near worthless without a custom kernel. It'll do almost everything without one. It just won't give you as many governor settings (honestly not even that useful) and it won't give you the ability to overclock (idk how important that is to you). Custom kernels won't hurt anything or make you lose anything. Check the HTC Evo 4G Android Development section to find some good ones if you want. Make sure you get a kernel for SENSE roms though and not AOSP, or you might have some issues. And of course, nand backup before you try a different kernel. Also, this is just a sidenote...a lot of custom ROMs do automatically install custom kernels with the ROM, Fresh just chooses to include the stock kernel with the ROM. Like for me, while I've tried a few different kernels, but my current one is just the one that came with Cyanogen Mod.
And hey, no worries man, I'm glad to answer, i'm pretty new to this myself, but XDA's been really good to me.
Aerodynamix said:
And hey, no worries man, I'm glad to answer, i'm pretty new to this myself, but XDA's been really good to me.
Click to expand...
Click to collapse
You deserve a high-five.
What's the difference between on F demand and performance?
Sent from my EVO4G using Tapatalk.
dahauss said:
What's the difference between on F demand and performance?
Sent from my EVO4G using Tapatalk.
Click to expand...
Click to collapse
Performance will just keep it at the highest clocked speed. It's not something you want unless you're benchmarking or something. Ondemand will clock it up as apps, etc need.
So I should do all of my profiles ondemand??
sent using my evoh
fastfed said:
So I should do all of my profiles ondemand??
sent using my evoh
Click to expand...
Click to collapse
Nah. I probably confused you with my last post. All the governor options other than performance will scale the clock speed between your profile's min and max as the phone needs it. But "conservative" or "powersave" modes will tend to scale as little as they need to, whereas "ondemand" will scale enough + fast enough so that there's never any lag. So for like your screen off profile, etc, you'll want to go with "conservative" or "powersave"
OK guys.. Thanks for all your help so far..
I just got a kernel (custom)
Kings #11.
Here is what I have
Fresh's rom 3.3
The radio that came with it, same post..
And Kings #11 Kernel
I took 3 screen shots of my Setcpu settings.
I really want to get the most out of this program and make sure I have it all right..
Here are the screens
Looks good. One thing I'd do is change all your profiles except Charging/Full to "powersave" or "conservative" instead of ondemand.
Also, you'll get better battery life if you lower the min on your Charging/Full profile to 245. That way it'll scale it up as needed, instead of keeping it at 998.
Other than that, looks good. I think you can do some stuff with the advanced tab, but i honestly don't know what any of that means.
I have my MIN at 384 on the MAIN profile and the EVO just seemed to LAG at 245. is this OK??
dahauss said:
I have my MIN at 384 on the MAIN profile and the EVO just seemed to LAG at 245. is this OK??
Click to expand...
Click to collapse
That's fine man. To decrease lag when waking up though, you'll wanna up the Screen Off max.
Just did a complete wipe and reinstall.
Curious as I have not reinstalled setcpu..
HOW MUCH DO YOU THINK IT REALLY INCREASED YOUR BATTERY??
I am starting to feel all this stuff is so minimal, and more a placebo effect..
Setcpu,juice defender, plugging it in at this time, and taking the battery out.. blah blah blah.. Not saying there is not a difference but its so small and we all go through a good amount of work to get things right, we WANT believe the battery is lasting that much longer.

[KERNEL][GB] Pershoot-OC-UV-NEON-FP-SWAP-GOVS-1.708ghz

Admin Edit: Links removed at OP request. I believe they will be available elsewhere. I have always ben very anti-setcpu, but profiles with this kernel really are a must if you want a smooth experience without constant freezing.
This is pershoots source code as of 04/25/2011 with added overclocking patches, all governors available, swap (requested) with a max scaling frequency of 1.708ghz (1708800) YOU SHOULD NOT HAVE THE USB MOUNT ISSUES present in flippy's kernel.
YMMV - Overclocking seems pretty unstable above 1.708 with the current state of the kernel (trust me i tried MANY different voltage variables, different schedulers etc..) that's why 1.8 and 1.9 are not supported, and will not be until they are stable for me again.
DO NOT SCALE ABOVE 1.516 without setting scaling governor to performance, or raising the min cpu frequency as you will experience lockups, setcpu profiles are useful in this situation. screen off profiles should have a MAX frequency of above 768 (this way when the screen goes back on it will ramp to the higher freqency THEN ramp back to the oc'd 1.708 without the jump from 245 causing a freeze) if you want to go with ondemand scaling and want the max at 1.708, you will have the most luck with min at 806 (even then it can and likely will freeze)
Edit: testing screen off profiles, it looks like you can pick whatever you want, currently mine us set to 245 min 368 max. No issues yet.
I have my device set for 368 min 1.708 max performance governor on boot and it hasnt frozen in the last two days. scaling through frequencies, or if the delta between min and max is too high, you may get a kernel panic and a battery pull will be required.
My particular setup (recommended):
on boot - 368 min, 1.708 max performance
screen off - 245 min 806 max ondemand (allows idle speed at 245)
battery < 50% 245 min 806 max ondemand
The same rules basically apply with this OC kernel that applied to flippy's. I'm not responsible for any damage that may result from your use of this kernel. yada yada yada.
you should retain wifi, gps, etc.. if not, flash it again, you did something wrong.
freezes? lockups? lower your clock speed, they shouldnt happen with any more frequency than with pershoots kernel if you stay at 1.516 and below. above that, if you experience a freeze, a last_kmsg wont help, the kernel failed to sync and panicked, there is nothing i can do about that. sorry.
wake-lag? i've gone over that, but here we go again:
generally with oc kernels:
oc+screen on/off animations+brightness > 50% = no wake lag
oc+screen on/off animations+brightness < 50% = wake lag
it isnt ideal, but get a program called screen filter from the market to apply a lesser brightness when above 50% so you dont experience the wake lag.
Enjoy.
There is weirdness with benchmarks, if you've oc'd and you know it should be higher, reset the scaling options in cm settings and try again. It's very weird and i havent put together a full list of what causes the behavior, more as it develops i guess.
{
"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"
}
Awesome thanks. Seems to be pretty stable for me at 1600 ondemand.
Sent from my HTC Desire Z/G2 using XDA App
The benchmark screenie is at 1.7 Ghz?
And thatnkyou for the kernel ..will be checking it out in a while
Works good using your recomended settings
Sent from my HTC Vision using XDA App
It's a stable as I could get it. Been using for a couple days without issue to make sure before I posted it.
Any chance of adding the smartass governor ?
I've read many things about that and nobody never included it in a kernel.
Only in roms.
Your kernel is really good so was wondering
This is awsome! Kernel is running fast and stable. Although i don't clock it all the way up to 1700 i love that i finally can use pershoot kernel with interactive governor.
Thanks very much!
will be adding to my rom on next version
xboarder56 said:
will be adding to my rom on next version
Click to expand...
Click to collapse
Same here if you don't mind
Don't mind at all, for the person who asked, there is source for the smartass governor, I just need to locate it and merge. I'll look into it today.
Will flash tonight with the latest CM nightly. Thanks
This show promise and potential. Love, love love. Did you ever find the source for the smartass governor?
Found the this on github. It's the smartass source from a kernel for the HTC Shift, should be the same mostly.
Also this governor look interesting, maybe give an alpha release with this one in it for testing? Scary just sounds like a bada$$ name for a governor. It's from Scaryghoul btw, just to give credit.
Thanks for this amazinglarry. I'm gonna test this out for a few days before I can give you some useful feedback.
In the meantime, can I refer you to a kernel in the MT4G section that seems to try to accomplish exactly what you are doing (all available kernels, high overclock, etc.). It has all the source readily available. The link is here. http://forum.xda-developers.com/member.php?u=2491887
I'll take a look. Gracias.
Please forgive my ignorance but what might this offer over pershoots kernal? His newest kernal fixed a huge headache I had with wifi and I don't want that headache back. Is it just the addition of higher oc and the added govenators or is there more added as well?
No, just, swap, governors, and overclocking a bit more.
I'm getting instability with the camera and gallery. It either locks up or saves pictures as a black square. Gallery FC's when I try to delete pictures. As far as I recall, this didn't happen with pershoots or stock CM. I'm running 7.0.2 with no profiles, clocked at 245-979 on demand with CM settings, no setcpu. When I can get in front of a computer with adb ill post some logs.
mejorguille said:
I'm getting instability with the camera and gallery. It either locks up or saves pictures as a black square. Gallery FC's when I try to delete pictures. As far as I recall, this didn't happen with pershoots or stock CM. I'm running 7.0.2 with no profiles, clocked at 245-979 on demand with CM settings, no setcpu. When I can get in front of a computer with adb ill post some logs.
Click to expand...
Click to collapse
I'm not able to reproduce, camera and gallery are working st 806 and 1.708 on my device, clear pictures, no force closes.
Grab some logs, there should be very little difference in functionality (if any) between this version and the official version of pershoot's kernel, unless he does some magic that isn't in his git, which I highly suspect, seeing as how quadrant scores are a little lower at the same clock speeds with my version and his.
But as far as functions and drivers, you shouldn't have issues.
I'm thinking its something wrong with my setup. I reflashed pershoots kernel, cleared caches, and ran a fix_permission. I no longer have force closes but my camera isn't saving? Ill have to look into it.
mejorguille said:
I'm thinking its something wrong with my setup. I reflashed pershoots kernel, cleared caches, and ran a fix_permission. I no longer have force closes but my camera isn't saving? Ill have to look into it.
Click to expand...
Click to collapse
Let me know if you can pinpoint the issue, and need some possible help.

[ACS]Battery Tweak for the NS4G RC1

{
"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"
}
Shabbypenguin and the Android Creative Syndicate
present to you
Battery Tweak RC1​
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 NS4G.
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 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 3 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 optional Disk performance tweaks (enabled by default)
Includes overheating controls to lower your cpu if the phone starts to overheat
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:
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.
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 800 literally means that 800000 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 or 3.
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 at 800MHz.
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.
Prerequisites needed to run this
netarchy's kernel
Matr1x kernel
seems to work with every rom
If you're running any other kind of kernel, feel free to try it but i cannot guarantee that it will work.
This script will WORK even if you don't have the import call at boot, but it won't survive on the next reboot. AKA if you dont have this rom kernel, when the phone boots it may not start batt.sh if you are willing please check and let me know if the rom/kernel supports it.
You can check via:
Code:
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
nullghost (aka tehdarkknight)
nubecoder - so he might not cry any moar
Download
*make sure to ignore some of the finer things on the screens they came from the epic version which im working on *
*make sure you are running these as root*
*disable setcpu while running this*
reserved for something
Makes me want to get a Nexus...
EPIC PORT [email protected]!!!!!
why so you can try it on your evo3d?
Great job bro!
Sent from my Nexus S 4G using Tapatalk
I can't wait to try this.
dreamsforgotten said:
Great job bro!
Sent from my Nexus S 4G using Tapatalk
Click to expand...
Click to collapse
OT: but those lyrics are from Tears for Fears, he simply did a cover
Sent from my Nexus S 4G using XDA App
derekwilkinson said:
I can't wait to try this.
OT: but those lyrics are from Tears for Fears, he simply did a cover
Sent from my Nexus S 4G using XDA App
Click to expand...
Click to collapse
Well I covered my ass by citing a reference : p
Sent from my Nexus S 4G using Tapatalk
Now that's what I'm talking about, great job can't wait to get this up and running
Sent from my Nexus S 4G using XDA Premium App
Nice job. I might play around with this later tonight. Nicely done.
I install it but were i go for settings?
Sent from my Nexus S 4G using Tapatalk
renizo said:
I install it but were i go for settings?
Sent from my Nexus S 4G using Tapatalk
Click to expand...
Click to collapse
batt-cfg check the op for more
Sent from my Nexus S 4G using Tapatalk
either thru terminal emulator or adb shell
Anyway to add support for init.d by putting or editing a different script? Using opensoju, i dont know much about init.d or how it is implemented into a rom.
I love this original mod by collin. Glad to see you guys working w him
Uncle Jimmy says hello
uhh no idea all i know is the init script is there
It's been forever since I've used Collin's tweak with my Hero so please forgive the stupid question: if I flash a Rom or kernel do I need to reflash the batt tweak zip?
Sent from my Nexus S 4G using Tapatalk
rom yes, kernel no
shabbypenguin said:
uhh no idea all i know is the init script is there
Click to expand...
Click to collapse
After flashing netarchy beta 1.3.5, init.d was created and is executing at boot. In the kernel. Learn something new everyday Thanks for this mod. Ima big fan of ACS.
Uncle Jimmy says hello
running deck's ROM 1.2x, netarchy kernel 1.3.0.12 CFS universal and it survives reboot,.
Thanks for this. I also ran this on my hero back in the day.
so you can just flash this zip & you're ready to go if you want to leave everything at their default state?
everything seems to be working for me with KingsROM & Netarchy Kernel!

Something I keep installing is causing lag - how do I isolate this without trial/erro

I'm getting quite frustrated with a persistent lag issue I've been carrying across all installs. I don't know how else to describe it other than a huge input lag. I press the power button, the phone takes 2 seconds to wake up....
I press a button on the screen - sometimes 3-4 seconds before the phone reacts.
I don't know how to isolate this problem because every time I do a clean install the problem isn't there, I have over 200 apps that I just back up from a TitaniumBackup that I carry over after wiping everything including userdata/sdcard... I'm not going through the whole "remove 1 app at a time".. I have over 200 man that's too time consuming!
There's got to be a better way to figure out what is hogging the CPU or GPU or whatever IO is getting mucked up to the point that its slowing my phone down. I haven't seen an impact in battery yet which is a tad confusing, but I'm not gonna complain about it..
Any help is much appreciated
TheShoura said:
I'm getting quite frustrated with a persistent lag issue I've been carrying across all installs. I don't know how else to describe it other than a huge input lag. I press the power button, the phone takes 2 seconds to wake up....
I press a button on the screen - sometimes 3-4 seconds before the phone reacts.
I don't know how to isolate this problem because every time I do a clean install the problem isn't there, I have over 200 apps that I just back up from a TitaniumBackup that I carry over after wiping everything including userdata/sdcard... I'm not going through the whole "remove 1 app at a time".. I have over 200 man that's too time consuming!
There's got to be a better way to figure out what is hogging the CPU or GPU or whatever IO is getting mucked up to the point that its slowing my phone down. I haven't seen an impact in battery yet which is a tad confusing, but I'm not gonna complain about it..
Any help is much appreciated
Click to expand...
Click to collapse
Use app settings Running Apps tab.
What would I be looking for here?
This is all I have in there - no scrolling up or down. Nothing seems out of place?
{
"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"
}
Then it isn't an app causing your lag. Or at least not one that's running.
063_XOBX said:
Then it isn't an app causing your lag. Or at least not one that's running.
Click to expand...
Click to collapse
Maybe a system UI change? I do have a lot of modded items like the center clock and such... Would these be problematic?
edit; just to try it out, I'm reverting all changes and rebooting - waiting for the phone to settle down now.
You didn't really provide any information other than what you were assuming it to be. What ROM, kernel, mods etc are you using?
Also, are you underclocking/undervolting the CPU? Might not be liking the settings
063_XOBX said:
You didn't really provide any information other than what you were assuming it to be. What ROM, kernel, mods etc are you using?
Click to expand...
Click to collapse
Well I was hoping for a way to diagnose the issue myself but I always welcome help as I'm at my wits end of diagnosing this problem right now lol
ROM: XenonHD Stable 2.0 JAN10 Release
Kernel: Both stock included in ROM and currently LeanKernel
Mods are mostly things from the ROM settings.. stuff like Signal text, battery text, centered clock, adding day of the week, shortcut by tapping on the time in notification bar
No external mods installed lately.
EddyOS said:
Also, are you underclocking/undervolting the CPU? Might not be liking the settings
Click to expand...
Click to collapse
Unless the new daemon included in the ROM mentioned above is doing either of those - no. CPU scales up to 1200Mhz regularly when watching it in the performance tab
EDIT: I think I just found it... Something I must have installed is locking the CPU to 700Mhz, I just double checked to verify what I said and its not going over 700 even though the daemon is set to 1200...LOL!!!!
TheShoura said:
Well I was hoping for a way to diagnose the issue myself but I always welcome help as I'm at my wits end of diagnosing this problem right now lol
ROM: XenonHD Stable 2.0 JAN10 Release
Kernel: Both stock included in ROM and currently LeanKernel
Mods are mostly things from the ROM settings.. stuff like Signal text, battery text, centered clock, adding day of the week, shortcut by tapping on the time in notification bar
No external mods installed lately.
Unless the new daemon included in the ROM mentioned above is doing either of those - no. CPU scales up to 1200Mhz regularly when watching it in the performance tab
EDIT: I think I just found it... Something I must have installed is locking the CPU to 700Mhz, I just double checked to verify what I said and its not going over 700 even though the daemon is set to 1200...LOL!!!!
Click to expand...
Click to collapse
That'd be governor control. The hispeed frequency must've been 700.
063_XOBX said:
That'd be governor control. The hispeed frequency must've been 700.
Click to expand...
Click to collapse
How do I mess with this if possible? Im assuming kernel level tweaks?
I switched governor to interactiveX and I'm now seeing it jump to 920 and 1200 much more often... Seems a bit smoother but I'll have to wait and see if I get any hangs like I was before... wow I really hope it was that easy to fix lol, I just need to find the app that keeps messing w/ my CPU settings now >_>
TheShoura said:
How do I mess with this if possible? Im assuming kernel level tweaks?
I switched governor to interactiveX and I'm now seeing it jump to 920 and 1200 much more often... Seems a bit smoother but I'll have to wait and see if I get any hangs like I was before... wow I really hope it was that easy to fix lol, I just need to find the app that keeps messing w/ my CPU settings now >_>
Click to expand...
Click to collapse
Depends on the governor. You'll need an app like Francokernel updater.
063_XOBX said:
Depends on the governor. You'll need an app like Francokernel updater.
Click to expand...
Click to collapse
Ok I had been using Trixter toolbox, I believe I saw settings for that while using this toolbox under another ROM
I'll have to read up on this HiSpeed thing you mentioned... It sounds like its setting a secondary artificial limit on CPU speed based on load settings similar to the way 'nice load' used to work? Its been a while since I've hit the wiki
Thank you guys very much for your help. After using it for a handful of minutes things are looking pretty damn good! Very much appreciated
After some time the lag came back even worse. I did some looking around on my own into possible hardware failures at that point and later found a possible issue with the emmc not running fstrim or just not trimming the flash memory correctly
I found an app called LagFix and ended up installing that and after a reboot it was like I had just erased everything on the phone (back to fast again).. I've been using it nice and quick for the past week now and I think that may have been the end-all issue as usually the lag would start to re-appear after a few days.

Categories

Resources