Pplib: Difference between revisions

From cchtml.com
No edit summary
Line 119: Line 119:


== External links ==
== External links ==
<a href="http://phoronix.com/forums/showthread.php?6802-Interesting-undocumented-options&p=19862#post19862">
[phoronix.com/forums/showthread.php?6802-Interesting-undocumented-options&p=19862#post19862  Forum of phoronix.com Interesting undocumented options ]
  Forum of phoronix.com Interesting undocumented options </a>

Revision as of 16:53, 12 November 2012

The --pplib-cmd is an undocumented aticonfig command, 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

[phoronix.com/forums/showthread.php?6802-Interesting-undocumented-options&p=19862#post19862 Forum of phoronix.com Interesting undocumented options ]