Pplib: Difference between revisions
From cchtml.com
No edit summary |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
The --pplib-cmd is undocumented aticonfig | 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 --> | <!-- Gather cool info --> | ||
<!-- TODO: Full list, with clock changes, with any hooks & hacks. --> | <!-- 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 --> | <!-- Looking for full documentations and means of this double p in the name of cmd aticonfig option --> | ||
Line 44: | Line 43: | ||
</code> | </code> | ||
Set fanspeed of device #0 to 95%: | Set fanspeed of device #0 to 95% (or try this "set fanspeed 0 auto"): | ||
<code> | <code> | ||
# /usr/local/bin/aticonfig --pplib-cmd "set fanspeed 0 95" | # /usr/local/bin/aticonfig --pplib-cmd "set fanspeed 0 95" | ||
Line 59: | Line 58: | ||
PPLIB command execution is Successful! | PPLIB command execution is Successful! | ||
</code> | </code> | ||
<!-- Found here: http://phoronix.com/forums/showthread.php?6802-Interesting-undocumented-options&p=19862#post19862 | |||
--> | |||
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> | |||
<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