Pplib: Difference between revisions

From cchtml.com
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
== pplib ==
The --pplib-cmd is an undocumented aticonfig options, appears to directly interface with firmware on card.


<!-- Full name probably Power PlayTable Library -->
<!-- Gather  cool info -->
<!-- TODO: Full list, with clock changes, with any hooks & hacks. -->
<!-- Looking for full documentations and means of this double p in the name of cmd aticonfig option -->
The full list of supported commands:
Get version of pplib:
<code>
<code>
\# /usr/local/bin/aticonfig --pplib-cmd "get version"  
# /usr/local/bin/aticonfig --pplib-cmd "get version"  
PPLIB version is 1.4 and is active
PPLIB version is 1.4 and is active
</code>
</code>


# /usr/local/bin/aticonfig --pplib-cmd "get activity"
Get activity information:
Current Activity is Core Clock: 915MHZ
<code>
Memory Clock: 1050MHZ
# /usr/local/bin/aticonfig --pplib-cmd "get activity"
VDDC: 1175
Current Activity is Core Clock: 915MHZ
Activity: 98 percent
Memory Clock: 1050MHZ
Performance Level: 2
VDDC: 1175
Bus Speed: 5000
Activity: 98 percent
Bus Lanes: 16
Performance Level: 2
Maximum Bus Lanes: 16
Bus Speed: 5000
Bus Lanes: 16
Maximum Bus Lanes: 16
</code>


Get fanspeed of device #0:
<code>
# usr/local/bin/aticonfig --pplib-cmd "get fanspeed 0"
Fan speed query:
Query Index: 0, Speed in percent
Result: Fan Speed: 100%
</code>


# usr/local/bin/aticonfig --pplib-cmd "get fanspeed 0"  
Get clock information of device #0:
Fan speed query:  
<code>
Query Index: 0, Speed in percent
# /usr/local/bin/aticonfig --pplib-cmd "get clock 0"  
Result: Fan Speed: 100%
Engine Clock Range: 300-915 MHZ; Memory Clock Range: 300-1050 MHZ;
</code>


Set fanspeed of device #0 to 95% (or try this "set fanspeed 0 auto"):
<code>
# /usr/local/bin/aticonfig --pplib-cmd "set fanspeed 0 95"
PPLIB command execution is Successful!
</code>


# /usr/local/bin/aticonfig --pplib-cmd "get clock 0"  
<code>
Engine Clock Range: 300-915 MHZ; Memory Clock Range: 300-1050 MHZ;
/usr/bin/aticonfig --pplib-cmd="notify psrc dc"
PPLIB command execution is Successful!
</code>


<code>
/usr/bin/aticonfig --pplib-cmd="notify psrc ac"
PPLIB command execution is Successful!
</code>
<!-- Found here: http://phoronix.com/forums/showthread.php?6802-Interesting-undocumented-options&p=19862#post19862


# /usr/local/bin/aticonfig --pplib-cmd "set fanspeed 0 95"
-->
PPLIB command execution is Successful!
In the same manner:
<code>
get swcntl
get pstate
get pmapping AC
get pmapping DC
get pmapping DCLOW
get psbatterylevel AC|DC|DCLOW
get eventCount Thermal
get eventCount VPURecovery
get FanInfo num
get FanSpeed num
get UserState 3d|2d
get activity
get ODParam
get ODLevel num
get ODDefaultLevel
get fs PowerPlay
get fs OverDrive
get fs ReducedRefreshRate
get fs ClockGating
get fs ReducedColorDepth
get fs OverDriveTest
get fs PowerBudgetWaiver
get fs PowerExpress
</code>




<!-- Looking for full documentations and means of this double p in the name of cmd aticonfig option -->
<code>
set fs PowerPlay enabled|disabled
set pmapping AC|DC|DCLOW optimalBattery|highBattery|balanced|highPerformanc e|optimalPerformance
set psbatterylevel AC|DC|DCLOW num (num == some number or two. doesn't work here)
set FanSpeed num num
set UserState 2d|3d num num
set ODLevel num,num,num
</code>
 
<code>
notify psrc dc|ac|dclow
notify batterylevel num
notify suspend
notify resume
notify restState|forcedState|exclusiveMode begin|end
notify DispConfigChange
notify screenSaver|VPURecovery|Thermal|textMode|3dhigh|3d low|inactive|InitCompleted begin|end
notify AppSafeTo|AppUnsafeTo AdapterSwitch|ModeSwitch
notify AdapterDisableSafe
reset fan num
enum thermal num
</code>
 
 
 
== External links ==
[http://phoronix.com/forums/showthread.php?6802-Interesting-undocumented-options&p=19862#post19862  Forum of phoronix.com Interesting undocumented options  ]

Latest revision as of 17:35, 12 November 2012

The --pplib-cmd is an undocumented aticonfig options, appears to directly interface with firmware on card.



The full list of supported commands:

Get version of pplib:

# /usr/local/bin/aticonfig --pplib-cmd "get version" 
PPLIB version is 1.4 and is active

Get activity information:

# /usr/local/bin/aticonfig --pplib-cmd "get activity"
Current Activity is Core Clock: 915MHZ
Memory Clock: 1050MHZ
VDDC: 1175
Activity: 98 percent
Performance Level: 2
Bus Speed: 5000
Bus Lanes: 16
Maximum Bus Lanes: 16

Get fanspeed of device #0:

# usr/local/bin/aticonfig --pplib-cmd "get fanspeed 0" 
Fan speed query: 
Query Index: 0, Speed in percent
Result: Fan Speed: 100% 

Get clock information of device #0:

# /usr/local/bin/aticonfig --pplib-cmd "get clock 0" 
Engine Clock Range: 300-915 MHZ; Memory Clock Range: 300-1050 MHZ;

Set fanspeed of device #0 to 95% (or try this "set fanspeed 0 auto"):

# /usr/local/bin/aticonfig --pplib-cmd "set fanspeed 0 95" 
PPLIB command execution is Successful!

/usr/bin/aticonfig --pplib-cmd="notify psrc dc"
PPLIB command execution is Successful! 

/usr/bin/aticonfig --pplib-cmd="notify psrc ac"
PPLIB command execution is Successful!


In the same manner:

get swcntl
get pstate
get pmapping AC
get pmapping DC
get pmapping DCLOW 
get psbatterylevel AC|DC|DCLOW
get eventCount Thermal
get eventCount VPURecovery
get FanInfo num 
get FanSpeed num 
get UserState 3d|2d
get activity 
get ODParam 
get ODLevel num 
get ODDefaultLevel 
get fs PowerPlay
get fs OverDrive
get fs ReducedRefreshRate
get fs ClockGating
get fs ReducedColorDepth
get fs OverDriveTest
get fs PowerBudgetWaiver
get fs PowerExpress


set fs PowerPlay enabled|disabled
set pmapping AC|DC|DCLOW optimalBattery|highBattery|balanced|highPerformanc e|optimalPerformance
set psbatterylevel AC|DC|DCLOW num (num == some number or two. doesn't work here)
set FanSpeed num num
set UserState 2d|3d num num 
set ODLevel num,num,num

notify psrc dc|ac|dclow
notify batterylevel num
notify suspend
notify resume
notify restState|forcedState|exclusiveMode begin|end
notify DispConfigChange
notify screenSaver|VPURecovery|Thermal|textMode|3dhigh|3d low|inactive|InitCompleted begin|end
notify AppSafeTo|AppUnsafeTo AdapterSwitch|ModeSwitch
notify AdapterDisableSafe
reset fan num
enum thermal num


External links

Forum of phoronix.com Interesting undocumented options