Support hwmon for GPU monitoring

First, I am aware of nvidia-smi for retrieving monitoring data.

However, my needs centre around using lm_sensors, fancontrol and other software that expect to be able to access such data via the Linux Kernel hwmon interface/API.

So, given the drive towards nvidia GPU drivers being more open source/support, please consider adding hwmon support to the Linux kernel drivers so that native monitoring can be performed.

It’s this or I’ll need to look at patching fancontrol to be able to parse nvidia-smi output.

I specifically have a need to have some fans’ rpm controlled depending on the GPU temperature.

Do you not know how to read C header files?

Yes, I do.

The point here is there is a standard kernel interface for reporting of hardware monitoring data (also for control where appropriate).

Requiring every project to implement an extra library/protocol just for NVIDIA GPU, rather than NVIDIA doing the work once to support this standard interface is just duplicating work.

Report it here Issues · NVIDIA/open-gpu-kernel-modules · GitHub

The proprietary driver is extremely unlikely to get this feature.

1 Like

Aha! I was unaware of that github. It turns out that you get directed to Discussions there for suggestions, and there already is one for this:

Well, there is a standard driver C interface for hardware monitoring data and control. Works on Windows too.

Requiring every project to implement an extra library/protocol just for NVIDIA GPU, rather than NVIDIA doing the work once to support this standard interface is just duplicating work.

Oh the irony. Linux asks everyone else to bend over backwards to support it but the moment the reverse is true, Linux people start crying.

1 Like