5,594,564 Members 32,417 Now Online
XDA Developers Android and Mobile Development Forum

[SCRIPT] [SHELL] [NS4G] remCPU - Really easy to manage CPU controller

Tip us?
 
lithid-cm
Old
(Last edited by lithid-cm; 18th March 2012 at 06:11 PM.)
#1  
lithid-cm's Avatar
Recognized Developer - OP
Thanks Meter 2955
Posts: 3,177
Join Date: Jul 2010
Location: Cleveland
Default [SCRIPT] [SHELL] [NS4G] remCPU - Really easy to manage CPU controller

remCPU
Here is a script that I have been using to manage my cpu and device specific bits. Here is what it can currently control. Usage is pretty simple.

Code:
sh-3.2# /system/bin/remCPU --help
Lithid's remCPU Controller
Help:

--set:
Look at cpu settings config.

--stat:
Look at cpu freq stats.

--config:
Setup the configuration of your cpu.

--help:
Get help.

Contact: mrlithid@gmail.com
Code:
sh-3.2# /system/bin/remCPU --stat
Cpu freq stats:
1400000 0
1200000 4127
1100000 37
1000000 107
800000 346
400000 897
200000 537
100000 88226
Code:
sh-3.2# /system/bin/remCPU --set
Verified:
>>>
Your current governor is: ondemandx
Your max cpu frequency is: 1200000
Your min cpu frequency is: 100000
Your min memory free config is: 3674,4969,6264,8312,9607,11444
Your tcp buffer w/r is: 110592/110592

Backlight noti: 1
Backlight noti blink: 1
Backlight noti blink interval: 750
Backlight noti blink max count: 30
>>>
You run the script, check out your current settings then go through the settings to set it up. It will create a config in /data/data/com.lithid/kernelscript/config. This config will be pulled into effect during the next and everyother reboot, or by running sh /system/etc/init.d/89remCPU after your config is in place. Like I said, set it and forget it! No app running, no space taken up. Just what you want without the extra!



-Cpu governors.
-Max Cpu frequency
-Min Cpu frequency
-BLN interface
- - Turn on/off
- - Enable blink
- - Modify blink interval
- - Max blink duration
- Low mem free settings
- TCP Buffer read/write

Something as simple as setting and forgetting is what I like. I will be adding in more and more tweaks to the system, checking for features per kernel etc etc.

You should know what the kernel can and can't do before you attempt to mess with the settings.

>> Download Here <<

Issues? Let me know.

Quote:
Choosy moms choose JIF, the others JFIO
Twitter | Google Plus | Scripts | Github | AOSCompiler

The Following 11 Users Say Thank You to lithid-cm For This Useful Post: [ Click to Expand ]
 
lithid-cm
Old
#2  
lithid-cm's Avatar
Recognized Developer - OP
Thanks Meter 2955
Posts: 3,177
Join Date: Jul 2010
Location: Cleveland
This is for some changelogs.

Quote:
Choosy moms choose JIF, the others JFIO
Twitter | Google Plus | Scripts | Github | AOSCompiler

The Following User Says Thank You to lithid-cm For This Useful Post: [ Click to Expand ]
 
JohnCorleone
Old
#3  
JohnCorleone's Avatar
Senior Member
Thanks Meter 5706
Posts: 15,372
Join Date: Dec 2010
Location: Whittier,CA

 
DONATE TO ME
Wow! This is almost exactly what I was hoping for! Lithid, will it be possible to add a screen off profile going forward? Thank you. Going to flash now!

Sent from my Nexus S 4G using xda premium
 
lithid-cm
Old
#4  
lithid-cm's Avatar
Recognized Developer - OP
Thanks Meter 2955
Posts: 3,177
Join Date: Jul 2010
Location: Cleveland
Quote:
Originally Posted by JohnCorleone View Post
Wow! This is almost exactly what I was hoping for! Lithid, will it be possible to add a screen off profile going forward? Thank you. Going to flash now!

Sent from my Nexus S 4G using xda premium
That's something I'm looking into. Tho that would create the need for a constant while loop checking for changes to the sleep state. While it would not be difficult, I don't think its 100% needed. I will tho look into a good way to implement tho. Thanks!

Sent from my Nexus S 4G using xda premium

Quote:
Choosy moms choose JIF, the others JFIO
Twitter | Google Plus | Scripts | Github | AOSCompiler

The Following 2 Users Say Thank You to lithid-cm For This Useful Post: [ Click to Expand ]
 
JohnCorleone
Old
#5  
JohnCorleone's Avatar
Senior Member
Thanks Meter 5706
Posts: 15,372
Join Date: Dec 2010
Location: Whittier,CA

 
DONATE TO ME
One more question for you. Would I be able to run this and only use SetCPU for that screen off profile or would it override the script? If it ruins the script, I may try ditching the screen off profile for a while

Sent from my Nexus S 4G using xda premium
 
lithid-cm
Old
#6  
lithid-cm's Avatar
Recognized Developer - OP
Thanks Meter 2955
Posts: 3,177
Join Date: Jul 2010
Location: Cleveland
Quote:
Originally Posted by JohnCorleone View Post
One more question for you. Would I be able to run this and only use SetCPU for that screen off profile or would it override the script? If it ruins the script, I may try ditching the screen off profile for a while

Sent from my Nexus S 4G using xda premium
Shouldn't do anything. I don't use anything else but this. My phone lasts over 24 hours with regular use. So never needed it. Plus that's what deep sleep on our phones is for lol.

Sent from my Nexus S 4G using xda premium

Quote:
Choosy moms choose JIF, the others JFIO
Twitter | Google Plus | Scripts | Github | AOSCompiler

 
JohnCorleone
Old
(Last edited by JohnCorleone; 18th March 2012 at 07:36 PM.)
#7  
JohnCorleone's Avatar
Senior Member
Thanks Meter 5706
Posts: 15,372
Join Date: Dec 2010
Location: Whittier,CA

 
DONATE TO ME
Quote:
Originally Posted by lithid-cm View Post
Shouldn't do anything. I don't use anything else but this. My phone lasts over 24 hours with regular use. So never needed it. Plus that's what deep sleep on our phones is for lol.

Sent from my Nexus S 4G using xda premium
I am going to set it up without the screen off profile. Thanks again.

Edit..working great here!

Sent from my Nexus S 4G using xda premium
 
FL0OD
Old
#8  
FL0OD's Avatar
Senior Member
Thanks Meter 946
Posts: 2,544
Join Date: Jul 2010
Any love for bld?

 
lithid-cm
Old
#9  
lithid-cm's Avatar
Recognized Developer - OP
Thanks Meter 2955
Posts: 3,177
Join Date: Jul 2010
Location: Cleveland
Quote:
Originally Posted by FL0OD View Post
Any love for bld?

BLD, voodoo sound, touchwake, deep sleep support is all on the way. Just trying to get it all out there.

Quote:
Choosy moms choose JIF, the others JFIO
Twitter | Google Plus | Scripts | Github | AOSCompiler

The Following 2 Users Say Thank You to lithid-cm For This Useful Post: [ Click to Expand ]
 
EVO-lution of Man
Old
#10  
EVO-lution of Man's Avatar
Senior Member
Thanks Meter 42
Posts: 422
Join Date: Jun 2010
Location: NY
Welcome back to Android lithid. I thought you were taking your talents to the iPhone scene?

Sent from my Nexus S 4G using xda premium

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes