r/linuxhardware • • 6d ago

Question How to make amd gpu fans spin ?

I bought a AMD GPU (7900 XTX) and it is fine except one thing I don't like: the fans don't spin unless I am doing heavy tasks.

This is an issue for three reasons:

  1. It is an open-air rig, so there is no 'case cooling' with case fans airflow
  2. I care more about preserving it for as long as possible than maybe getting less noise.
  3. For AI tasks, VRAM is the one that probably gets very hot, and if i understand correctly the fans kick in depending on the temperature of other stuff than vram

So yeah looking for a simple solution to ensure fans spin at all times, thanks

2 Upvotes

10 comments sorted by

6

u/alamakbusuk 6d ago

You should be able to set that up with LACT it can run as a systemd service in case you're running a headless system.

1

u/mb210978 6d ago

I second this.

1

u/Wild_Penguin82 6d ago

It's been awhile since I water cool my GPU these days, but IIRC I was able to control the fan on my AMD GPU just fine with lm-sensors - the most standard way to control fans in Linux (note: it has many daemons and GUIs, you don't need to use the accompanied scripts, while useful, are quite barebones - but still might do the work for you).

At least on my 6950XT, the fans do appear in /sys/class/hwmon/hwmon0/pwm_[enable|max|min]. But there is no fan connected to my GPU (since it's water cooled).

Then AUR brings up some results. If you are not on arch, look the upstream links. https://aur.archlinux.org/packages?O=0&SeB=nd&K=amdgpu-fan&outdated=&SB=p&SO=d&PP=50&submit=Go

1

u/skyfishgoo 6d ago

coolercontrol or lact will give you access to the sensors and fans you need to control the gpu

one of them needs to be running all the time tho...

i find letting the kernel do it's thing has been working pretty well for me, but i have case fans that i use to move air out of the case, and i'm not specializing in heating up the vram like your use case.

1

u/the_deppman 6d ago edited 6d ago

The hardware manufacturers are strongly motivated to ensure their systems are not exposed to damaging heat levels. If they don't they will have substantial and expensive warranty claims. As long as your GPU is staying under a reasonable limit, something like 80 or 90 C per lmsensors, I wouldn't worry too much about it. Also, before going through all the trouble of a custom solution, there may be fan profiles available via the driver which may be set configuration files or kernel parameters.

So my suggestion would be to first investigate temperatures and see if they are a problem in the first place. And second, if you insist on adjusting the fan profiles, look for a driver-native solution first. Not only should that be easier if available, but would probably have substantially less overhead than a custom or external script which must rely on polling. Finally, it would probably work better (and warranty supported) since it would be designed by AMD themselves

Without getting to in the weeds, I see that the amdgpu kernel driver exposes thermal and pulse-width modulation (PWM) controls inside the hwmon directory (typically /sys/class/drm/card0/device/hwmon/hwmon*). Just search for "Linux amd gpu driver fan profile" to get more info.

Ps. I don't know any of this directly since I run Intel and video systems. But I hope that's useful.

1

u/v0id_walk3r 3d ago
  1. the whole room has more thermal capacity than the air in box, which is the reason you have case fans.
  2. please check the temperatures if you even have a problem...
  3. what do you mean by 'probably'? Dont you have the card?

0

u/[deleted] 6d ago

[deleted] — view deleted comment

1

u/Beneficial_Fish_7509 6d ago

I use Linux, any solution I can use with cli (command line) would work for me.

-1

u/rileyrgham 6d ago

You can't adjust the fan curves in bios/uefi?

1

u/Wild_Penguin82 6d ago

The UEFI BIOS typically does not understand anything about GPU fans.

0

u/rileyrgham 6d ago

Ok. My system has a GPU cooling fan included.