FORUMS
Remove All Ads from XDA

[MOD] Disable Powerdaemon Constraints - Allow custom governor settings to stick

3,933 posts
Thanks Meter: 8,604
 
By gr8nole, Recognized Contributor on 4th November 2013, 03:56 PM
Post Reply Email Thread
This mod disables the powerdaemon constraints that prevent custom cpu governor settings from sticking. This was developed on my T210R, but should work for others.

Background:
There are 2 files in the /system/etc directory (powerdaemon.xml and powerdaemon_z3.xml) that are used to monitor various states of the system (ie. "booting", "games", "video playback"). Certain constraints are set depending on the system state. Most of these constraints are a variation of the "ondemand" or "performance" governors. These constraints adjust the min/max frequency and set control to a specific governor. This is why you can not get any cpu governor settings to stick.

What I changed:
I changed all system states to be directed to the "normal" constraint. This constraint does NOT change the selected governor and has min/max frequencies of 0/150%. This basically disables any effect the powerdaemon has. The 150% max does not mean your cpu will run at 150%, it simply allows overclocking if your kernel supports it.

In my testing, simply deleting the files or disabling the system states caused higher than normal cpu usage. It seemed to be trying to continually process information that it couldn't find. So, creating a "normal" constraint that did not limit any funtionality seemed to be the best option. The powerdaemon controller still processes everything, but has no real affect.

Installation:
Download and flash the Powerdaemon.disable.zip (with custom recovery). You may want to make a copy of your original files if you are using a different model.

If you want to restore the original xmls, just flash the Powerdaemon.restore.zip. These are from my T210R.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Flash at you own risk. I tried my best to explain what the mod does, so I take no responsibility for what you do with your Tab.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Attached Files
File Type: zip PowerDaemon.disable.zip - [Click for QR Code] (148.6 KB, 1641 views)
File Type: zip PowerDaemon.restore.zip - [Click for QR Code] (150.1 KB, 861 views)
The Following 16 Users Say Thank You to gr8nole For This Useful Post: [ View ] Gift gr8nole Ad-Free
 
 
4th November 2013, 04:05 PM |#3  
jetboss's Avatar
Senior Member
Flag Scarborough
Thanks Meter: 19
 
More
nice
4th November 2013, 06:01 PM |#4  
hkjr's Avatar
Senior Member
Flag NJ
Thanks Meter: 212
 
Donate to Me
More
Nicely done! What settings are you running your tab with now?

Sent from my SAMSUNG-SGH-I747
The Following User Says Thank You to hkjr For This Useful Post: [ View ] Gift hkjr Ad-Free
4th November 2013, 06:22 PM |#5  
gr8nole's Avatar
OP Recognized Contributor
Lynchburg, VA
Thanks Meter: 8,604
 
Donate to Me
More
Quote:
Originally Posted by hkjr

Nicely done! What settings are you running your tab with now?

Sent from my SAMSUNG-SGH-I747

To be honest, I actually use the default settings (with powerdaemon still enabled). I don't really use my Tab very much (except when I travel), so I don't worry much about battery life or performance enhancements.

With the powerdaemon still enabled, I find that I get less lag, because some of the constraints were set to change minimum frequency to a higher value than what it would normally be.

I discovered how this works back when trying to build my own kernel (with additional governors). I could never get the new governors to stick, so I started investigating and discovered the powerdaemon files. I have never really been that interested in changing governors, but I know that there are a lot of people who really like to change them. That's why I decided to put this out there.
The Following 3 Users Say Thank You to gr8nole For This Useful Post: [ View ] Gift gr8nole Ad-Free
5th November 2013, 06:49 AM |#6  
jbyers5355's Avatar
Junior Member
Thanks Meter: 8
 
More
I have the t217s that doesn't have a working recovery if I copy the two files to my /system/etc and give them the proper permissions it should work right?

Sent from my SM-T217S using Tapatalk
5th November 2013, 12:03 PM |#7  
gr8nole's Avatar
OP Recognized Contributor
Lynchburg, VA
Thanks Meter: 8,604
 
Donate to Me
More
Quote:
Originally Posted by jbyers5355

I have the t217s that doesn't have a working recovery if I copy the two files to my /system/etc and give them the proper permissions it should work right?

Sent from my SM-T217S using Tapatalk

Theoretically, yes. Since you have a different model than what I developed it on, you may want to compare your original files to the "restore" files I provided, to make sure that everything is the same. I know the cpu is a little different with the T217. Let us know how it goes.
The Following User Says Thank You to gr8nole For This Useful Post: [ View ] Gift gr8nole Ad-Free
6th November 2013, 12:58 AM |#8  
jbyers5355's Avatar
Junior Member
Thanks Meter: 8
 
More
Well I looked in /system/etc on my t217s and did not find any powerdaemon files but I did find that if I change the governor settings that they do stick

Sent from my SM-T217S using Tapatalk
11th November 2013, 01:52 AM |#9  
Senior Member
Thanks Meter: 13
 
More
You can also simply edit the values in the default files to change cpu config without using an app to do it. The disadvantage is you might not know for certain what is and isn't supported, but I upped my minimum frequency across most system states to 624 mhz, and I switched from the default 'ondemand' governor to 'interactive.' As a result my cpu's frequency, when not in deep sleep, is usually at 624 mhz and occasionally at 1.2 Ghz and rarely at 1.012 Ghz.

I had only owned my tab for a couple days before switching the settings, so I can't provide much of a before/after case study. But I am pleased with performance and battery life is okay, on average usage with 20% screen brightness (occasionally higher) it seems I can get at least 6 hrs screen on time over the course of a day.
6th April 2014, 09:10 AM |#10  
gr9nole's Avatar
Senior Member
Flag sakarya
Thanks Meter: 52
 
More
Does it increase performance? Game?

Sent my SM-T210 Using Tapatalk
6th April 2014, 12:08 PM |#11  
gr8nole's Avatar
OP Recognized Contributor
Lynchburg, VA
Thanks Meter: 8,604
 
Donate to Me
More
Quote:
Originally Posted by gr9nole

Does it increase performance? Game?

Sent my SM-T210 Using Tapatalk

It only allows you to change governors and keep those settings from bring overwritten by the system.

Sent from my SCH-I605
Post Reply Subscribe to Thread

Tags
mod

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes