pve 显示 温度、频率、转速、UPS等信息

发布于 2025-02-25  2 次阅读


一、环境

PVE 8.3
Debian 11 #Kernel: 6.8.12-8-pve x86_64
Board: ASRock Z370M Pro4
Processor: Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz (6/158/10)

二、安装驱动

2.1 检测传感器型号

sudo sensors-detect

输出信息:

root@pve:~# sensors-detect
# sensors-detect version 3.6.0
# Board: ASRock Z370M Pro4
# Kernel: 6.8.12-8-pve x86_64
# Processor: Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz (6/158/10)

This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.

Some south bridges, CPUs or memory controllers contain embedded sensors.
Do you want to scan for them? This is totally safe. (YES/no): 
Module cpuid loaded successfully.
Silicon Integrated Systems SIS5595...                       No
VIA VT82C686 Integrated Sensors...                          No
VIA VT8231 Integrated Sensors...                            No
AMD K8 thermal sensors...                                   No
AMD Family 10h thermal sensors...                           No
AMD Family 11h thermal sensors...                           No
AMD Family 12h and 14h thermal sensors...                   No
AMD Family 15h thermal sensors...                           No
AMD Family 16h thermal sensors...                           No
AMD Family 17h thermal sensors...                           No
AMD Family 15h power sensors...                             No
AMD Family 16h power sensors...                             No
Hygon Family 18h thermal sensors...                         No
Intel digital thermal sensor...                             Success!
    (driver `coretemp')
Intel AMB FB-DIMM thermal sensor...                         No
Intel 5500/5520/X58 thermal sensor...                       No
VIA C7 thermal sensor...                                    No
VIA Nano thermal sensor...                                  No

Some Super I/O chips contain embedded sensors. We have to write to
standard I/O ports to probe them. This is usually safe.
Do you want to scan for Super I/O sensors? (YES/no): 
Probing for Super-I/O at 0x2e/0x2f
Trying family `National Semiconductor/ITE'...               No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Nuvoton/Fintek'...               Yes
Found `Nuvoton NCT6683D eSIO'                               
    (address 0xa10, but not activated)
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor/ITE'...               No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Nuvoton/Fintek'...               No
Trying family `ITE'...                                      No

Some systems (mainly servers) implement IPMI, a set of common interfaces
through which system health data may be retrieved, amongst other things.
We first try to get the information from SMBIOS. If we don't find it
there, we have to read from arbitrary I/O ports to probe for such
interfaces. This is normally safe. Do you want to scan for IPMI
interfaces? (YES/no): 
Probing for `IPMI BMC KCS' at 0xca0...                      No
Probing for `IPMI BMC SMIC' at 0xca8...                     No

Some hardware monitoring chips are accessible through the ISA I/O ports.
We have to write to arbitrary I/O ports to probe them. This is usually
safe though. Yes, you do have ISA I/O ports even if you do not have any
ISA slots! Do you want to scan the ISA I/O ports? (YES/no): 
Probing for `National Semiconductor LM78' at 0x290...       No
Probing for `National Semiconductor LM79' at 0x290...       No
Probing for `Winbond W83781D' at 0x290...                   No
Probing for `Winbond W83782D' at 0x290...                   No

Lastly, we can probe the I2C/SMBus adapters for connected hardware
monitoring devices. This is the most risky part, and while it works
reasonably well on most systems, it has been reported to cause trouble
on some systems.
Do you want to probe the I2C/SMBus adapters now? (YES/no): 
Using driver `i2c-i801' for device 0000:00:1f.4: Kaby Lake (PCH)

Next adapter: SMBus I801 adapter at f040 (i2c-0)
Do you want to scan it? (YES/no/selectively): 
Client found at address 0x50
Handled by driver `ee1004' (already loaded), chip type `ee1004'
    (note: this is probably NOT a sensor chip!)
Client found at address 0x51
Handled by driver `ee1004' (already loaded), chip type `ee1004'
    (note: this is probably NOT a sensor chip!)
Client found at address 0x52
Handled by driver `ee1004' (already loaded), chip type `ee1004'
    (note: this is probably NOT a sensor chip!)
Client found at address 0x53
Handled by driver `ee1004' (already loaded), chip type `ee1004'
    (note: this is probably NOT a sensor chip!)


Now follows a summary of the probes I have just done.
Just press ENTER to continue: 

Driver `coretemp':
  * Chip `Intel digital thermal sensor' (confidence: 9)

To load everything that is needed, add this to /etc/modules:
#----cut here----
# Chip drivers
coretemp
#----cut here----
If you have some drivers built into your kernel, the list above will
contain too many modules. Skip the appropriate ones!

Do you want to add these lines automatically to /etc/modules? (yes/NO)

Unloading cpuid... OK

root@pve:~# 

在 "Some Super I/O chips contain embedded sensors." 项目输出 "Found `Nuvoton NCT6683D eSIO' (address 0xa10, but not activated) " 。 表示传感器型为NCT系列(一般为IT87 或者NCT)。

2.2 下载对应的驱动:

附件二①(it87 系列传感器驱动,显示 PVE 风扇转速):IT87传感器驱动_it87-dkms_1.0.63-1_all.deb

附件二②(nct 系列传感器驱动,显示 PVE 风扇转速):NCT6687D传感器驱动_nct6687d-dkms_20231128-212556_all.deb

备用链接:
it87系列
NCT系列

使用方法:
## PVE 8 安装 dkms 及头文件
apt update && apt install -y pve-headers proxmox-headers-$(uname -r) dkms

## PVE 7 安装 dkms及头文件
apt update && apt install -y pve-headers pve-headers-$(uname -r) dkms

## 安装 deb 驱动包,xxx.deb 改为包名称    
dpkg -i xxx.deb
                                                       
reboot

三、工具

来自Jazz大佬的pve_source脚本 https://bbs.x86pi.cn/thread?topicId=20

备用链接

使用方法:
①下载后改名为 pve_source.tar.gz
②上传到 /root
③解压压缩包 tar zxvf pve_source.tar.gz
④执行程序./pve_source

在换源操作2 中,更换 PVE LXC 仓库源时,脚本无法获取pve版本,导致换源出错。

可以在“1、一键设置 DNS、换源并更新系统” 进行换源。不过LXC博主并不经常用,仍用的默认源。

在 “7、修改 PVE 概要信息”中即可开启温度、频率、转速、UPS等信息,按提示操作即可。

希望赤诚善良的人,能被世界温柔以待
最后更新于 2025-03-13