Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
cjoliver
Old
(Last edited by cjoliver; 31st July 2012 at 02:24 PM.) Reason: Update
#1  
cjoliver's Avatar
Senior Member - OP
Thanks Meter 321
Posts: 165
Join Date: Aug 2009
Location: Pretoria

 
DONATE TO ME
Lightbulb [DEV][DAEMON] - CoreControl RC3 - 12/07/31

Hi All,

I like to know what my CPU's/Cores are doing, and not only knowing, but controlling.

So i created this little deamon to control my cores and frequencies/governor. It waits for screen on/off events and then sets the Cores online/offline as to your config and then locks them in place so the system can't offline/online them as it wants. So you can have full duel core in screen on and force 1 core offline during sleep.

I would like to start by thanking and giving full props to the Virtuous team. They wrote the first daemon of this type and for making it open source. I got a lot of inspiration from their code. Here is my Github link.

Features:
Full duel core and single core support, probably more, but i only have those devices to test
4 Profiles (Wake(Screen on)/Sleep(Screen off)/Charge/LowBattery)
Core online/offline with lock-in so system can't change it.


Here is my settings and also the default when you install.
Wake
Gov = ondemand
Min = 192000 Mhz
Max = 1512000 Mhz (YIPPY, we have some new kernels)
Cores = 2

Sleep
Gov = conservative
Min = 192000 Mhz
Max = 648000 Mhz
Cores = 1 (only need 1 and other core gets off-lined)

Charge
Gov = ondemand
Min = 192000 Mhz
Max = 1188000 Mhz
Cores = 2

LowBattery
Gov = ondemand
Min = 192000 Mhz
Max = 1188000 Mhz
Cores = 1
Level = 15%

So what do you need to test/run.
* Custom recovery (Any should do, but i tested in 4Ext)
* Root access
* init.d support for autostart
* A little know-how.
* Android 4.0 (IceCreamSandwich) (Haven't tested on anything lower, but it was compile with ICS headers)

How to install.
Flash via recovery.

Change log.
RC1 (2012-06-21)
- Initial release.
RC2 (2012-06-27)
- Increased code efficiency.
- Debug stripped. (Profile change now happens in under 15ms)
- Ability to load config from sdcard (/mnt/sdcard/corecontrol/) with priority over system (/system/etc/corecontrol/)
- CLI arguments (-stop, -restart, -find, -version)
- Bug fix. (Profile change was to fast and cpu didn't have time to online. Only happened every 0.1%)
RC3 (2012-07-31)
- Added a wait for SDcard to be mounted to check for personal settings.

And how can you test if it is working? Well, find a cli app or log on with "adb shell" and execute the following commands.
"[I]/system/xbin/CoreControl -find" - Will return running daemon PID.
"logcat | grep CoreControl" - Will see profiles changing and when the app start it will give configuration.
"cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_[mg]*" - Will show you the current online cpus and what they set to.

To change any of the default config. Just edit the files in /system/etc/corecontrol/ or edit/create files in /mnt/sdcard/corecontrol/ and restart the phone or daemon.

Will probably write a App to make the config easier to change, but i'm also open to anybody helping with this.
Attached Files
File Type: zip Tool_CoreControlRC1.zip - [Click for QR Code] (327.1 KB, 116 views)
File Type: zip Tool_CoreControlRC2.zip - [Click for QR Code] (328.4 KB, 77 views)
File Type: zip Tool_CoreControlRC3.zip - [Click for QR Code] (328.6 KB, 130 views)
The Following 12 Users Say Thank You to cjoliver For This Useful Post: [ Click to Expand ]
 
cjoliver
Old
#2  
cjoliver's Avatar
Senior Member - OP
Thanks Meter 321
Posts: 165
Join Date: Aug 2009
Location: Pretoria

 
DONATE TO ME
Reserved 10char
My Thread: CoreControl RC3

My Device: HTC Evo 3D x515m with Revolutionary S-OFF
Kernel: 3.0.50 Custom built with mpdecision_advance and s2w
Radio: 11.25.3504.06_M
Recovery: 4EXT Recovery Touch v1.0.0.5 RC6
Rom: Cool ICS v14a

Old Device: HTC Desire HD
 
cjoliver
Old
#3  
cjoliver's Avatar
Senior Member - OP
Thanks Meter 321
Posts: 165
Join Date: Aug 2009
Location: Pretoria

 
DONATE TO ME
Reserved2 10char
My Thread: CoreControl RC3

My Device: HTC Evo 3D x515m with Revolutionary S-OFF
Kernel: 3.0.50 Custom built with mpdecision_advance and s2w
Radio: 11.25.3504.06_M
Recovery: 4EXT Recovery Touch v1.0.0.5 RC6
Rom: Cool ICS v14a

Old Device: HTC Desire HD
 
kaleavi
Old
#4  
kaleavi's Avatar
Senior Member
Thanks Meter 207
Posts: 312
Join Date: Jan 2011
Location: London
This looks amazing. Keep up the good work of making our devices even better!
Thanks

Sent from my HTC EVO 3D X515m using Tapatalk 2

If someone comes along and shoots an arrow into your heart, it’s fruitless to stand there and yell at the person. It would be much better to turn your attention to the fact that there’s an arrow in your heart...


Awaken Your Soul & Mind!


Click Me to start with..

#EndCISPA
Peace & Love
 
paroys
Old
#5  
paroys's Avatar
Senior Member
Thanks Meter 123
Posts: 467
Join Date: Mar 2009
Location: Kajang
Thanks, downloading now!!!

Sent from my HTC EVO 3D X515m
Current Device
HTC ONE X
Hboot: 1.36.000
RoM: Venom ViperX 3.3.4 [Sense 4+:JellyBean]
Recovery: TWRP 2.3.3.0

#############################################
HTC Evo 3D GSM [Trade In]
Hboot: 1.49.0007, *Revolutionary* S-Off
RoM:Viper3D Sense 4.1
Recovery: 4EXT Recovery Touch V1.0.0.5 RC3
 
ardanai
Old
#6  
ardanai's Avatar
Senior Member
Thanks Meter 104
Posts: 288
Join Date: Aug 2011
Location: Tehran
With this Mod we don't need to other app such as System tuner pro or any patch such as XxXPachaXxX ?
First Device: HTC EVO 3D GSM
HBOOT: 1.49.1107_REVOLUTIONARY_S-off
Recovery: 4EXT Recovery Touch v1.0.0.5 RC9
RADIO: 11.77.3504.00U_11.25.3504.06_M
ROM: mwakious3Drom® (M3DR®) 17.1
Kernel: CoolZ-Evo3D-v5.2
SDCard: Toshiba 32gb Class 4

Second Device: HTC HD7 16 Gb
ROM: PWPD v4.9

History: Nokia 3310 -> Samsung D410 -> Nokia 6630 -> Everex E900 (Great) ->
Nokia 1200 -> Nokia N96 -> Samsung B7722 -> HTC HD7 ( Finally Sold ) & HTC EVO 3D

The Following User Says Thank You to ardanai For This Useful Post: [ Click to Expand ]
 
pedja1
Old
#7  
pedja1's Avatar
Recognized Developer
Thanks Meter 1287
Posts: 1,113
Join Date: Oct 2011
Location: Zrenjanin

 
DONATE TO ME
@cjoliver
Still haven't found time to test it, I'm too busy with my app, sorry
Btw
Kernel on most of the ics roms for evo doesn't support oc (max is 1180000) yet so option for max wake frequency is wrong(1500000)

Sent from my HTC EVO 3D X515m using Tapatalk 2
Device: HTC Evo 3D GSM Hboot:Revolutionary S-OFF ROM:CM 10.1 Recovery: 4ext



Kernel Tuner - Take ctrl over your device

Kernel Tuner - Official Website



If you want to help, feel free to donate.
 
cjoliver
Old
#8  
cjoliver's Avatar
Senior Member - OP
Thanks Meter 321
Posts: 165
Join Date: Aug 2009
Location: Pretoria

 
DONATE TO ME
No problem.

I'm just future-proofing it for when we finally have OC , but if you go and have a look at how the kernel treats the value, it will use all frequencies upto and including this value, even if the closes freq step is only 1180000.(Come on htc, source, source, source, source. Come on everybody, source, source, source.)

Quote:
Originally Posted by pedja1 View Post
@cjoliver
Still haven't found time to test it, I'm too busy with my app, sorry
Btw
Kernel on most of the ics roms for evo doesn't support oc (max is 1180000) yet so option for max wake frequency is wrong(1500000)

Sent from my HTC EVO 3D X515m using Tapatalk 2
My Thread: CoreControl RC3

My Device: HTC Evo 3D x515m with Revolutionary S-OFF
Kernel: 3.0.50 Custom built with mpdecision_advance and s2w
Radio: 11.25.3504.06_M
Recovery: 4EXT Recovery Touch v1.0.0.5 RC6
Rom: Cool ICS v14a

Old Device: HTC Desire HD
The Following User Says Thank You to cjoliver For This Useful Post: [ Click to Expand ]
 
ilovemeow
Old
#9  
Senior Member
Thanks Meter 43
Posts: 519
Join Date: Sep 2006
hi mate, is it possible when the e3d screen on, with low process work, only activate 1core (as default)
Daily Use Device
N7105T International - Telstra
-------------------
show off device

HTC HD2 TMOUS
Rom: change every week...
Bootloader:magLDR 1.13
SDCard: 1GB class4

HTC evo3D GSM - Vodafone AU
Rom:Cool ICS v14b
Hboot-1.49.0007(s-off, thanks to Juopunutbear team) [was: 1.49.0013(s-on)]
Radio Firmware: 11.77.3504.00U_11.25.3504.06_M [was:10.55.9020.00_10.13.9020.26_2M]
-------------------
地獄黑仔王
 
cjoliver
Old
#10  
cjoliver's Avatar
Senior Member - OP
Thanks Meter 321
Posts: 165
Join Date: Aug 2009
Location: Pretoria

 
DONATE TO ME
There is quite a bit more functionality in System tuner, but i don't believe you will need XxXPachaXxX's core mod, they will work toghether, but CoreControl will force the core offline if setup that way.

Quote:
Originally Posted by ardanai View Post
With this Mod we don't need to other app such as System tuner pro or any patch such as XxXPachaXxX ?
My Thread: CoreControl RC3

My Device: HTC Evo 3D x515m with Revolutionary S-OFF
Kernel: 3.0.50 Custom built with mpdecision_advance and s2w
Radio: 11.25.3504.06_M
Recovery: 4EXT Recovery Touch v1.0.0.5 RC6
Rom: Cool ICS v14a

Old Device: HTC Desire HD

 
Post Reply+
Tags
core, core control, duel core
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...