Added support for reading VRAM and HotSpot temperatures.

This commit is contained in:
2025-02-03 06:15:26 -08:00
parent 54885e16f0
commit 8d4a8f7ee1
11 changed files with 200 additions and 34 deletions
+4
View File
@@ -21,6 +21,7 @@ Access to the `/dev/i2c` device files, which means either:
## Dependencies
* libi2c-dev
* libnvidia-ml-dev (if building with `USE_NVML=1`)
* libpci-dev (if building with `USE_LIBPCI=1`)
## Building
`make`
@@ -30,6 +31,9 @@ Access to the `/dev/i2c` device files, which means either:
### NVML support
Add the make flag `USE_NVML=1` and the it will also display the main GPU temperature ("GPU1") as reported by the NVIDIA driver. It will also display the performance cap/clock reason. This requires the NVIDIA management library (NVML) to be installed.
### VRAM and Hotspot temperature
Add the make flag `USE_LIBPCI=1` and you can also read the VRAM and "hotspot" temperatures. These require direct memory access to the PCI device so you must run as root and also enable the kernel parameter `iomem=relaxed`. These sensors are **extremely** undocumented so I can't say anything about their accuracy.
## Usage
Note that when controlling fans directly through iCX3 they will fall offline from the Nvidia driver and show as 0 RPM until you return them to automatic mode.