sibradzic / amdgpu-clocks

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

Fails to work with linux 6.4 #56

Closed nutta-git closed 11 months ago

nutta-git commented 11 months ago

Hi, amdgpu-clocks-git r49.ee457c7-1 does not work with linux 6.4 on archlinux.

sudo amdgpu-clocks
ls: cannot access '/sys/class/drm/card0/device/hwmon': No such file or directory
WARNING: /sys/class/drm/card0/device/pp_od_clk_voltage does not exist, skipping!

here is my config file for my rdna2 gpu

FORCE_PERF_LEVEL: manual
OD_SCLK:
1: 2900MHz
OD_MCLK:
1: 1000MHz
OD_VDDGFX_OFFSET:
-50mV

It does work with linux-lts 6.1, but fails to run with linux and linux-zen.

QuentaceQ commented 11 months ago

Hello you should check in /sys/class/drm/ for the folder "card" with a number at the end Then check the file name of your custom state in /etc/default/amdgpu-custom-states.card0 change card0 to what correspond in /sys/class/drm/ In my case i had to change it to amdgpu-custom-states.card1

nutta-git commented 11 months ago

@QuentaceQ That seems to be issue, for 6.1 mine was 0 and for 6.4 its 1. Thank you