Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,736,395 Members 47,143 Now Online
XDA Developers Android and Mobile Development Forum

[Q - SOLVED] OC Daemon Implementation

Tip us?
 
Nickamina
Old
(Last edited by Nickamina; 30th January 2012 at 04:30 PM.)
#1  
Nickamina's Avatar
Senior Member - OP
Thanks Meter 191
Posts: 406
Join Date: Jul 2011
Location: London
Question [Q - SOLVED] OC Daemon Implementation

Hey guys,

I'm looking to learn how to implement the OC Daemon into custom ROMs which don't already make use of it (e.g. MIUI) and wondering if any of you could help with teaching me or pointing me in the right direction. I've done a couple of searches but turned up nothing so far.

Seeing as you're all so friendly in the Desire S forums , I thought I'd try here.
Any help would be greatly appreciated.

Cheers.

(Also, you're not having deja vu. I asked this question a while ago in the Q&A forum but it died without a single response. I'm guessing this was because the forum's not so popular, but forgive me if it's rude to ask the same question again elsewhere.)

UPDATE (30/01/12) - Answer:

If you want to do it from scratch, look for the virtuous_oc source code - you can get it from the rmk40's github.

If you just want to use it in your own rom, it's quite easy, and you can take it from an existing rom (e.g. Endymion).

You need:
/system/xbin/virtuous_oc (the daemon itself)
/system/etc/virtuous_oc (the entire directory, containing the files that the daemon will read to get configured)

and some script in /etc/init.d/ to actually start the daemon. Then you can use OC/UV Beater to control the thing.

Take a look into this and I'm sure you'll get it. The idea is that the files inside /etc/virtuous_oc contain the max and min frequencies, as well as the governor, for sleep and wake states.

And that's it! I don't want to go into much more detail than that, because it's not that difficult and if you're really interested you'll be able to work out any missing details for yourself anyway.

Finally, many thanks to the much loved Lowveld for sharing this.
 
enigmaamit
Old
#2  
enigmaamit's Avatar
Recognized Contributor
Thanks Meter 1427
Posts: 2,246
Join Date: Jun 2010
Location: Purgatory, Hades Cluster
Quote:
Originally Posted by Nickamina View Post
Hey guys,

I'm looking to learn how to implement the OC Daemon into custom ROMs which don't already make use of it (e.g. MIUI) and wondering if any of you could help with teaching me or pointing me in the right direction. I've done a couple of searches but turned up nothing so far.

Seeing as you're all so friendly in the Desire S forums , I thought I'd try here.
Any help would be greatly appreciated.

Cheers.

(Also, you're not having deja vu. I asked this question a while ago in the Q&A forum but it died without a single response. I'm guessing this was because the forum's not so popular, but forgive me if it's rude to ask the same question again elsewhere.)
Hi. Welcome to the Desire S forums.

Lowveld has managed to incorporate the OC daemon and other scripts into Sense 3.5 ROM (Endymion). Maybe you can ask him (PM).

If I were you, i'd go after him...
Quote:
DEVICE 1 : SAMSUNG GALAXY NOTE 3 running Dr.Ketan's ROM K9 [4.4.2]

DEVICE 2 : SAMSUNG GALAXY SIII running AOKP ROM [4.4.3]

DEVICE 3 : HTC DESIRE S : S-Off, currently on Fallout ROM by Lowveld [4.03]
 
Nickamina
Old
#3  
Nickamina's Avatar
Senior Member - OP
Thanks Meter 191
Posts: 406
Join Date: Jul 2011
Location: London
Quote:
Originally Posted by enigmaamit View Post
Hi. Welcome to the Desire S forums.

Lowveld has managed to incorporate the OC daemon and other scripts into Sense 3.5 ROM (Endymion). Maybe you can ask him (PM).

If I were you, i'd go after him...
Cheers enigmaamit. I guess I'll send him a PM then.

If I ever find what I'm looking for I'll be back to update this thread. I'm sure this is the kind of thing a lot of people here would love to learn more about.
 
enigmaamit
Old
#4  
enigmaamit's Avatar
Recognized Contributor
Thanks Meter 1427
Posts: 2,246
Join Date: Jun 2010
Location: Purgatory, Hades Cluster
Quote:
Originally Posted by Nickamina View Post
Cheers enigmaamit. I guess I'll send him a PM then.

If I ever find what I'm looking for I'll be back to update this thread. I'm sure this is the kind of thing a lot of people here would love to learn more about.
Amen to that brother!
Quote:
DEVICE 1 : SAMSUNG GALAXY NOTE 3 running Dr.Ketan's ROM K9 [4.4.2]

DEVICE 2 : SAMSUNG GALAXY SIII running AOKP ROM [4.4.3]

DEVICE 3 : HTC DESIRE S : S-Off, currently on Fallout ROM by Lowveld [4.03]
 
Nickamina
Old
#5  
Nickamina's Avatar
Senior Member - OP
Thanks Meter 191
Posts: 406
Join Date: Jul 2011
Location: London
Thread updated with my findings.
Hammerhead (Android 4.4.4)
Paranoid Android (Unofficial MinuxBuild) | Bricked-Kernel

Quote:
Search before posting and simply click "Thanks" if somebody's helped you. Let's keep development threads clean and concise!
 
noytexz
Old
#6  
Senior Member
Thanks Meter 15
Posts: 132
Join Date: Jan 2012
Location: Trier
I know its not a good post to this thread but can you please tell me what exactly oc daemon does ?

Gesendet von meinem HTC Desire S mit Tapatalk
 
Nickamina
Old
#7  
Nickamina's Avatar
Senior Member - OP
Thanks Meter 191
Posts: 406
Join Date: Jul 2011
Location: London
Quote:
Originally Posted by noytexz View Post
I know its not a good post to this thread but can you please tell me what exactly oc daemon does ?

Gesendet von meinem HTC Desire S mit Tapatalk
It's a form of integrated screen state frequency scaling (e.g. 1.2Ghz-245MHz/ondemand screen-on, 806Mhz-245Mz/conservative screen-off) which is more responsive and less prone to lag than using an app to control these values such as SetCPU.

Particularly useful if you have a different governor for your sleep state than you do for your awake state.
Hammerhead (Android 4.4.4)
Paranoid Android (Unofficial MinuxBuild) | Bricked-Kernel

Quote:
Search before posting and simply click "Thanks" if somebody's helped you. Let's keep development threads clean and concise!
 
enigmaamit
Old
#8  
enigmaamit's Avatar
Recognized Contributor
Thanks Meter 1427
Posts: 2,246
Join Date: Jun 2010
Location: Purgatory, Hades Cluster
Quote:
Originally Posted by Nickamina View Post
Thread updated with my findings.
Told you... Lowveld's the man!!
Quote:
DEVICE 1 : SAMSUNG GALAXY NOTE 3 running Dr.Ketan's ROM K9 [4.4.2]

DEVICE 2 : SAMSUNG GALAXY SIII running AOKP ROM [4.4.3]

DEVICE 3 : HTC DESIRE S : S-Off, currently on Fallout ROM by Lowveld [4.03]
 
Nickamina
Old
#9  
Nickamina's Avatar
Senior Member - OP
Thanks Meter 191
Posts: 406
Join Date: Jul 2011
Location: London
Quote:
Originally Posted by enigmaamit View Post
Told you... Lowveld's the man!!
He was one of us lowly learners once.
Hammerhead (Android 4.4.4)
Paranoid Android (Unofficial MinuxBuild) | Bricked-Kernel

Quote:
Search before posting and simply click "Thanks" if somebody's helped you. Let's keep development threads clean and concise!

Tags
daemon, implement, include, install, virtuous
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Get Your Cargo to its Destination in 4×4 Military Operations Reborn

Racing games have evolved quite a bit since the days of Pole … more

Automate Your Device with Sfen

Changing the profile of yourdevice manually is now long forgotten. Since the advent of Android automation … more

Galaxy Photo Screen Lock Displays a Photo Slideshow on Your Lock Screen

Being the most often looked at part of our devices UI, the lock … more

Boost the LG G3 Speaker and Headphone Volume

It seems like OEMs are stepping up their game, with regards to thequality of their devices sound … more