NGnius / PowerTools

Moved to
https://git.ngni.us/NG-SD-Plugins/PowerTools
GNU General Public License v3.0
413 stars 29 forks source link

Set clocks defined in Power Tools waking the deck from sleep #70

Closed fabioneves closed 1 year ago

fabioneves commented 1 year ago

Describe what you'd like to be able to do

NGnius commented 1 year ago

This is already possible in v1.1

fabioneves commented 1 year ago

@NGnius I managed to increase the max clocks, but it fails to apply the clocks when resuming from sleep for some reason.

12:48:24 [INFO] Resume detected 12:48:24 [ERROR] Settings on_resume() err: CPU setting error: Failed to write p 0 1 4000 to /sys/class/drm/card0/device/pp_od_clk_voltage: Invalid argument (os error 22)

It also fails to set the clocks when resuming even if using the default clocks. Regarding that error message, I always get that when I try to set a CPU freq.

NGnius commented 1 year ago

That's because the kernel does not allow non-stock frequencies (hence the "os error" part). Maybe Valve or AMD will fix that in the future.

You should use a different CPU and/or GPU driver if you want to avoid that.

Please note that this does not occur with stock (or subsets) clocks.