OSError: [Errno 22] Invalid argument
lsb_release -a #Description: Ubuntu 18.04.4 LTS
lspci | grep VGA #01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X] (rev ef)
python3 --version #Python 3.6.9
sudo apt install python3-pip
pip3 --version #pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)
sudo amdgpu-fan
starting amdgpu-fan
Traceback (most recent call last):
File "/usr/local/bin/amdgpu-fan", line 11, in
RX570, RX580
amdgpu-pro-20.30-1109583-ubuntu-18.04.tar.xz =)
Hi, I Installed newest official driver amdgpu-pro-20.30-1109583-ubuntu-20.04.tar.xz for Ubuntu 20.04 but without resolve. Could you tell me what is wrong for RX580?
lsb_release -a #Description: Ubuntu 20.04 LTS
lspci | grep VGA #03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] (rev e7)
python3 --version #Python 3.8.2
pip3 --version #pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
sudo amdgpu-fan
starting amdgpu-fan
Traceback (most recent call last):
File "/usr/local/bin/amdgpu-fan", line 8, in
Best regards.
I had same error, and what I have figured out is that with default config in /etc/amdgpu-fan.yml it fails by reading temperature on my integrated GPU, which is card0 on my system. So the solution is to add this config in /etc/amdgpu-fan.yml:
...
cards:
- card1
This will skip card0, and control fans on card1 only
Having the same issue on Manjaro. Is this project still maintained?
@GIJack @chestm007 both still look active on Github, any chance you could take a look at this one?
I think i found the issue I have been trying to get it working and the issue is related to the write operation when writing to the pwm1 extension. I was reading this error https://gitlab.freedesktop.org/drm/amd/-/issues/1164 One person suggests that they are getting invalid argument when trying to write values below 3. quick test with my config file showed that to be the case.
Edit the config file so the lowest value is 4 not 0 and my service is up and running again.