Post Reply

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

OP gr8nole

4th November 2013, 03:56 PM   |  #1  
gr8nole's Avatar
OP Recognized Contributor
Lynchburg, VA
Thanks Meter: 3,577
 
2,276 posts
Join Date:Joined: Oct 2010
Donate to Me
More
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, 666 views)
File Type: zip PowerDaemon.restore.zip - [Click for QR Code] (150.1 KB, 351 views)
Last edited by gr8nole; 4th November 2013 at 04:06 PM.
The Following 13 Users Say Thank You to gr8nole For This Useful Post: [ View ]
4th November 2013, 03:56 PM   |  #2  
gr8nole's Avatar
OP Recognized Contributor
Lynchburg, VA
Thanks Meter: 3,577
 
2,276 posts
Join Date:Joined: Oct 2010
Donate to Me
More
Reserved
4th November 2013, 04:05 PM   |  #3  
jetboss's Avatar
Senior Member
Flag Scarborough
Thanks Meter: 13
 
214 posts
Join Date:Joined: Jul 2012
More
nice
4th November 2013, 06:01 PM   |  #4  
hkjr's Avatar
Senior Member
Flag NJ
Thanks Meter: 164
 
532 posts
Join Date:Joined: Jul 2008
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 ]
4th November 2013, 06:22 PM   |  #5  
gr8nole's Avatar
OP Recognized Contributor
Lynchburg, VA
Thanks Meter: 3,577
 
2,276 posts
Join Date:Joined: Oct 2010
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 ]
5th November 2013, 06:49 AM   |  #6  
jbyers5355's Avatar
Junior Member
Thanks Meter: 6
 
14 posts
Join Date:Joined: Nov 2007
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: 3,577
 
2,276 posts
Join Date:Joined: Oct 2010
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.
6th November 2013, 12:58 AM   |  #8  
jbyers5355's Avatar
Junior Member
Thanks Meter: 6
 
14 posts
Join Date:Joined: Nov 2007
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  
Member
Thanks Meter: 10
 
72 posts
Join Date:Joined: Jul 2007
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: 43
 
212 posts
Join Date:Joined: Jan 2014
More
Does it increase performance? Game?

Sent my SM-T210 Using Tapatalk

Post Reply Subscribe to Thread

Tags
mod
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Galaxy Tab 3 7.0 Android Development by ThreadRank