sibradzic / amdgpu-clocks

Simple script to control power states of amdgpu driven GPUs
GNU General Public License v2.0
393 stars 44 forks source link

*feature request* Adjust Power Cap Limit #4

Closed MilesRdz closed 5 years ago

MilesRdz commented 5 years ago

Would it be possible to include the option to increase the amount of power the GPU is allowed to use? /sys/class/drm/cardX/device/hwmon/hwmon0/power1_cap

sibradzic commented 5 years ago

Sure thing. Since I'm gonna be away from desktop PC with any Radeons inside, can you please point me to an example how powerX_cap is being set in terminal? I also assume you'd volunteer as a tester? ;)

MilesRdz commented 5 years ago

The default value for the Vega Frontier Edition (liquid cooled) is: 264000000 264 watts

power1_cap_min & power1_cap_max define a range. Minimum defined as 0 and maximum as 396000000. I'd be glad to test it out.

sibradzic commented 5 years ago

@MilesRdz please check if this adds the requested feature correctly...

MilesRdz commented 5 years ago

@MilesRdz please check if this adds the requested feature correctly...

It works as intended, thank you!