HP Pavilion台式机Ubuntu 20.04系统下风扇控制问题求助
HP Pavilion台式机Ubuntu 20.04系统下风扇控制问题求助
各位好,我最近碰上了台式机过热自动关机的麻烦,目前临时用thermald和intel_powerclamp做了个临时方案——把CPU利用率限制在70%,并且当CPU温度传感器超过60℃时就主动节流(不过一旦到70℃还是会触发热关机,我有点怀疑传感器的准确性)。
我的机器是HP Pavilion Gaming Desktop TG01-1183w,双系统运行Windows 11和Ubuntu 20.04。在Windows里我能正常控制机箱风扇、CPU风扇和GPU风扇的转速,但到了Ubuntu这边,只有CoolerControl能识别并控制GPU风扇,主板上的风扇完全检测不到。
我安装了lm-sensors并运行了sensors-detect,输出如下:
# sensors-detect version 3.6.0 # System: HP HP Pavilion Gaming Desktop TG01-1xxx # Board: HP 8767 # Kernel: 5.15.0-94-generic x86_64 # Processor: Intel(R) Core(TM) i5-10400F CPU @ 2.90GHz (6/165/3) 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'... No Trying family `ITE'... Yes Found unknown chip with ID 0x8631 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): Found unknown SMBus adapter 8086:06a3 at 0000:00:1f.4. Sorry, no supported PCI bus adapters found. Next adapter: SMBus I801 adapter at efa0 (i2c-0) Do you want to scan it? (YES/no/selectively): Client found at address 0x4f Probing for `National Semiconductor LM75'... No Probing for `National Semiconductor LM75A'... No Probing for `Dallas Semiconductor DS75'... Success! (confidence 3, driver `lm75') Probing for `Maxim MAX6642'... No Probing for `Texas Instruments TMP421'... No Probing for `Texas Instruments TMP422'... No Probing for `Texas Instruments TMP435'... No Probing for `Texas Instruments TMP441'... No Probing for `Maxim MAX6633/MAX6634/MAX6635'... No Probing for `NXP/Philips SA56004'... No Client found at address 0x52 Probing for `Analog Devices ADM1033'... No Probing for `Analog Devices ADM1034'... No Probing for `SPD EEPROM'... Yes (confidence 8, not a hardware monitoring chip) Next adapter: Synopsys DesignWare I2C adapter (i2c-1) Do you want to scan it? (YES/no/selectively): Adapter doesn't support all probing functions. Some addresses won't be probed. Next adapter: NVIDIA i2c adapter 1 at 1:00.0 (i2c-2) Do you want to scan it? (yes/NO/selectively): Next adapter: NVIDIA i2c adapter 2 at 1:00.0 (i2c-3) Do you want to scan it? (yes/NO/selectively): Next adapter: NVIDIA i2c adapter 5 at 1:00.0 (i2c-4) Do you want to scan it? (yes/NO/selectively): Next adapter: NVIDIA i2c adapter 6 at 1:00.0 (i2c-5) Do you want to scan it? (yes/NO/selectively): Next adapter: NVIDIA i2c adapter 7 at 1:00.0 (i2c-6) Do you want to scan it? (yes/NO/selectively): Next adapter: NVIDIA i2c adapter 8 at 1:00.0 (i2c-7) Do you want to scan it? (yes/NO/selectively): Now follows a summary of the probes I have just done. Just press ENTER to continue: Driver `lm75': * Bus `SMBus I801 adapter at efa0' Busdriver `i2c_i801', I2C address 0x4f Chip `Dallas Semiconductor DS75' (confidence: 3) 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 lm75 #----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
但是当我运行pwmconfig时,得到的结果是:
# pwmconfig version 3.6.0 This program will search your sensors for pulse width modulation (pwm) controls, and test each one to see if it controls a fan on your motherboard. Note that many motherboards do not have pwm circuitry installed, even if your sensor chip supports pwm. We will attempt to briefly stop each fan using the pwm controls. The program will attempt to restore each fan to full speed after testing. However, it is ** very important ** that you physically verify that the fans have been to full speed after the program has completed. /usr/sbin/pwmconfig: There are no pwm-capable sensor modules installed
我运行cat /sys/class/thermal/cooling_device*/type能看到5个"Fan"设备:
Fan Processor Processor Processor Processor Processor Processor Processor intel_powerclamp TCC Offset Fan Fan Fan Fan Processor Processor Processor Processor Processor
acpi -c的输出是:
Cooling 0: Fan 0 of 1 Cooling 1: SEN3 no state information available Cooling 2: Processor 0 of 0 Cooling 3: Processor 0 of 0 Cooling 4: B0D4 no state information available Cooling 5: intel_powerclamp 51 of 50 Cooling 6: Processor 0 of 0 Cooling 7: Processor 0 of 0 Cooling 8: Processor 0 of 0 Cooling 9: Fan 0 of 1 Cooling 10: Processor 0 of 0 Cooling 11: Fan 0 of 1 Cooling 12: INT3400 Thermal no state information available Cooling 13: Processor 0 of 0 Cooling 14: Fan 0 of 1 Cooling 15: pch_cometlake no state information available Cooling 16: Processor 0 of 0 Cooling 17: Processor 0 of 0 Cooling 18: x86_pkg_temp no state information available Cooling 19: TCC Offset 0 of 63 Cooling 20: Processor 0 of 0 Cooling 21: Processor 0 of 0 Cooling 22: Fan 0 of 1 Cooling 23: SEN2 no state information available Cooling 24: Processor 0 of 0
我尝试过在grub里添加内核参数acpi_enforce_resources=lax然后重启,但情况没有任何变化。之前看到过一个关于Ubuntu 20.04是否支持Intel Core i5-10400的讨论,猜想可能是内核版本的问题,我准备明天用Ubuntu 22.04的Live USB试试能不能解决。
最后附上我的lscpu输出:
CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian Address sizes: 39 bits physical, 48 bits virtual CPU(s): 12 On-line CPU(s) list: 0-11 Thread(s) per core: 2 Core(s) per socket: 6 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 165 Model name: Intel(R) Core(TM) i5-10400F CPU @ 2.90GHz Stepping: 3 CPU MHz: 800.002 CPU max MHz: 4300.0000 CPU min MHz: 800.0000 BogoMIPS: 5799.77 Virtualization: VT-x L1d cache: 192 KiB L1i cache: 192 KiB L2 cache: 1.5 MiB L3 cache: 12 MiB NUMA node0 CPU(s): 0-11 Vulnerability Gather data sampling: Mitigation; Microcode Vulnerability Itlb multihit: KVM: Mitigation: VMX disabled Vulnerability L1tf: Not affected Vulnerability Mds: Not affected Vulnerability Meltdown: Not affected Vulnerability Mmio stale data: Mitigation; Clear CPU buffers; SMT vulnerable Vulnerability Retbleed: Mitigation; Enhanced IBRS Vulnerability Spec rstack overflow: Not affected Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization Vulnerability Spectre v2: Mitigation; Enhanced IBRS, IBPB conditional, RSB filling, PBRSB-eIBRS SW sequence Vulnerability Srbds: Mitigation; Microcode Vulnerability Tsx async abort: Not affected Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfm on pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe p opcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify h wp_act_window hwp_epp md_clear flush_l1d arch_capabilities
以及uname -a的输出:
Linux trilobyte 5.15.0-94-generic #104~20.04.1-Ubuntu SMP Tue Jan 16 13:34:09 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
希望各位大佬能给点建议,看看怎么解决Ubuntu下无法控制主板风扇的问题,谢谢!
备注:内容来源于stack exchange,提问作者reed foster




