在i8kmon Ubuntu 14.04中设置温度阈值


8

我的Dell Inspiron 15R出现过热问题,并安装了它i8kmon来控制Ubuntu 14.04上的风扇速度。

这是“ lm-sensors”输出的副本:

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +62.0°C  (high = +87.0°C, crit = +105.0°C)
Core 0:         +57.0°C  (high = +87.0°C, crit = +105.0°C)
Core 1:         +61.0°C  (high = +87.0°C, crit = +105.0°C)

i8k-virtual-0
Adapter: Virtual device
Right Fan:      0 RPM
CPU:          +62.0°C 

即使将温度阈值设置/etc/i8kmon为:

set config(daemon)      1

# Automatic fan control, override with --auto option
set config(auto)        1

# Report status on stdout, override with --verbose option
set config(verbose) 1

# Status check timeout (seconds), override with --timeout option
set config(timeout) 1

# Temperature thresholds: {fan_speeds low_ac high_ac low_batt high_batt}
set config(0)   {{0 -}  -1  55  -1  55}
set config(1)   {{1 -}  55  70  55  70}
set config(2)   {{2 -}  60  128  60  128}

风扇不应该启动。关于什么可能是错的任何想法?以下是使用选项手动log运行时的副本:i8kmon--verbose

i8kmon v1.30 11/16/2013 - Copyright (C) 2013 Vitor Augusto <vitorafsr@gmail.com>
config(0)          = {0 0} -1 60 -1 65
config(1)          = {1 0} 50 70 55 75
config(2)          = {1 1} 60 80 65 85
config(3)          = {2 2} 70 128 75 128
config(acpi)       = acpi
config(auto)       = 1
config(daemon)     = 1
config(geometry)   = 
config(i8kfan)     = /usr/bin/i8kfan
config(min_speed)  = 2000
config(sysconfig)  = /etc/i8kmon.conf
config(t_high)     = 80
config(timeout)    = 5
config(unit)       = C
config(use_conf)   = 1
config(userconfig) = ~/.i8kmon
config(verbose)    = 1
status(ac)         = 0
status(acpi_timer) = 0
status(left)       = 
status(leftspeed)  = 0 -1 -1 -1
status(lspeed)     = 0
status(lstate)     = 0
status(lstuck)     = 0
status(nfans)      = 2
status(right)      = 
status(rightspeed) = 0 0 0 0
status(rspeed)     = 0
status(rstate)     = 2
status(rstuck)     = 0
status(state)      = 0
status(t_high)     = 0
status(t_low)      = 0
status(temp)       = 0
status(timer)      = 
status(ui)         = 0
1410467738 acpi: Battery 0: Discharging, 89%, 03:13:17 remaining
temp, left, right, ac state: 60 -1 2 0
# exec /usr/bin/i8kfan 0 0
temp, left, right, ac state: 59 -1 0 0
# exec /usr/bin/i8kfan 0 {}
temp, left, right, ac state: 58 -1 0 0
# exec /usr/bin/i8kfan 0 {}
temp, left, right, ac state: 58 -1 0 0
# exec /usr/bin/i8kfan 0 {}
temp, left, right, ac state: 60 -1 0 0
# exec /usr/bin/i8kfan 0 {}
temp, left, right, ac state: 58 -1 0 0
# exec /usr/bin/i8kfan 0 {}
temp, left, right, ac state: 59 -1 0 0
# exec /usr/bin/i8kfan 0 {}
temp, left, right, ac state: 58 -1 0 0
# exec /usr/bin/i8kfan 0 {}
temp, left, right, ac state: 58 -1 0 0
# exec /usr/bin/i8kfan 0 {}
temp, left, right, ac state: 60 -1 0 0

看来温度有误,i8kmon并且没有打开风扇。

Answers:


8

根据lm-sensors

i8k-virtual-0
Adapter: Virtual device
Right Fan:      0 RPM

您只有一个Right Fan,因此左风扇值应始终为-1。您必须将文件中的设置配置更改/etc/i8kmon.conf为以下值:

set config(0)   {{-1 0}  -1  40  -1  40}
set config(1)   {{-1 1}  40  60  40  60}
set config(2)   {{-1 2}  60  128  60  128}
set config(3)   {{-1 2}  60  128  60  128}

在该状态下{-1 0},没有左风扇,右风扇处于关闭状态{-1 1};在状态下,右风扇应以低速运行,而在状态{-1 2}下应以全速运行。其他值(例如40 60 40 60)对应于有和没有交流电源时每个状态的温度阈值--min和max-。

您还需要添加以下选项:

# Run as daemon, override with --daemon option
set config(daemon)      0

# Automatic fan control, override with --auto option
set config(auto)        1

# Report status on stdout, override with --verbose option
set config(verbose) 1

# Status check timeout (seconds), override with --timeout option
set config(timeout) 20

最后,您需要i8k.conf在中/etc/modprobe.d/包含行的文件options i8k force=1

查看更多细节 man i8kmon


我进行了更改,并且仍然保持不变...也许是由于检测到了风扇引起的问题?有没有一种方法实际上可以迫使风扇打开?
Nicolas 2014年

@Nicolas lm-sensors在风扇运行时运行,并检查Right Fan: 0 RPM是否看到任何变化的结果?还有一个问题,当cpu较高时,您会扇动运行吗?
αғsнιη

风扇实际上正在低速运转... Right Fan: 78000 RPM但是温度似乎很高。CPU: +69.0°C。实际上,当CPU活动较高时,它确实开始运行。
Nicolas 2014年

1
@Nicolas重命名i8kmoni8kmon.conf并设置set config(daemon) 1set config(daemon) 0set config(timeout) 1set config(timeout) 20和也替换--1值中的每个状态ex{- 1}{-1 1}ANS等。并最终i8kmon在终端中运行,您将看到是否有效。您可以查看askubuntu.com/a/308548/283843ubuntuforums.org/archive/index.php/t-842775.html了解更多详细信息
2014年

1
谢谢@KasiyA!风扇以78000 RPM的速度平稳运行:)
Nicolas
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.