amdgpu-fancontrol icon indicating copy to clipboard operation
amdgpu-fancontrol copied to clipboard

fix startup issues at boot

Open Optiligence opened this issue 4 years ago • 7 comments

fixes #25

Instead of enabling the service directly, amdgpu-fancontrol.path is what needs to be enabled/started now.

While working on this i noticed that Linux 5.11 seems to properly apply the fan curve from my GPU bios now which means i won’t need this service anymore. Mentioning that for people who used it for the same reason i did. Of course it’s still useful for custom fan curves.

Optiligence avatar Feb 28 '21 00:02 Optiligence

Thanks for the solution. But, for me it doesn't work somehow...

It only works if I delay systemd service startup: ExecStartPre=/bin/sleep 0.9

Zile995 avatar Feb 28 '21 19:02 Zile995

In what way doesn’t it work? amdgpu-fancontrol.path doesn’t trigger or amdgpu-fancontrol.service errors anyway?

Optiligence avatar Feb 28 '21 19:02 Optiligence

amdgpu-fancontrol.path triggers amdgpu-fancontrol.service, so that's ok.

But I got this error: amdgpu-fancontrol[413]: invalid hwmon files As you can see in the first ss: Screenshot_20210228_234042

Delayed service works fine... Screenshot_20210228_233827

Zile995 avatar Feb 28 '21 22:02 Zile995

Are you sure you also updated the .service file? Because that one should not be enabled. (Maybe it has to be manually disabled first)

Optiligence avatar Feb 28 '21 22:02 Optiligence

Yes, I have updated the .service file. It was not enabled by default.

I enabled only .path file, located in /usr/lib/systemd/system/ sudo systemctl enable amdgpu-fancontrol.path

The .service unit can't be enabled.

The unit files have no installation config (WantedBy=, RequiredBy=, Also=, Alias= settings in the [Install] section, and DefaultInstance= for template units). This means they are not meant to be enabled using systemctl.

Zile995 avatar Feb 28 '21 23:02 Zile995

It says enabled in the Loaded: line for the .service unit in your screenshot though. Can you try to disable it?

Optiligence avatar Feb 28 '21 23:02 Optiligence

Yes, it seems to be enabled, sorry. Ok, I disabled it and restarted the computer.

Here are the changes but fan speed is not changing at boot (.service is inactive):

Screenshot_20210301_004307

Screenshot_20210301_004759

Screenshot_20210301_005352

If I restart the .path with sudo systemctl restart amdgpu-fancontrol.path, the fans starts spinning faster, pwm value becomes ~150.

150 is used just for testing.

Zile995 avatar Feb 28 '21 23:02 Zile995