j-g*_*tus 10 hardware monitoring sensors
我如何最好地更新lm-sensors
以使用最近的硬件?
我全新安装了 Ubuntu 10.10 服务器,并得到以下信息:
$ sudo apt-get install lm-sensors
$ sensors
No sensors found! [...]
Try sensors-detect [...]
$ sudo sensors-detect
[...]
Driver 'to-be-written':
* Chip "Nuvoton W83667HG-B Super IO Sensors" (confidence: 9)
Note: there is no driver for [this sensor] yet.
Check http://www.lm-sensors.org/wiki/Devices for updates.
Run Code Online (Sandbox Code Playgroud)
该链接告诉我内核 2.6.36(而 Ubuntu 10.10 使用 2.6.35)或使用独立驱动程序支持该芯片。
更新 lm-sensors 的最简单方法是什么?
j-g*_*tus 11
这些是主要的替代方案:
等一下:如果您不认为传感器读数很重要,您可以等待下一个 Ubuntu 版本,其中可能默认包含对芯片的支持。
独立驱动程序:如果您不想等待,独立驱动程序可能是最佳选择,因为它对系统的其余部分所做的更改最少。有关如何安装它,请参见下文。
升级内核:这有点冒险,因为您将运行不受支持和未经测试的 Ubuntu 版本和内核版本的组合 - 升级内核可能会在破坏其他东西的同时修复传感器支持。升级内核也可以正常工作,只要您准备回滚以防万一。
升级内核的最简单方法是使用 Ubuntu 的预构建内核包之一,请参阅ubuntu.com 内核构建以获取说明。
阅读Ubuntu编译HOWTO,安装编译工具:
sudo apt-get install build-essential
wget [.h, .c and Makefile files]
Run Code Online (Sandbox Code Playgroud)
编译、安装和加载新模块。这w83627ehf
是最近编译的驱动程序的名称,它会因系统而异。
make all
sudo make install
sudo modprobe w83627ehf
Run Code Online (Sandbox Code Playgroud) $ sensors
w83667hg-isa-0a10
Adapter: ISA adapter
in0: +1.18 V (min = +0.62 V, max = +1.47 V)
in1: +1.11 V (min = +1.05 V, max = +1.15 V)
[... snip ...]
Run Code Online (Sandbox Code Playgroud)
它仍然需要特定于芯片的配置,这是困难的部分。
/etc/sensors3.conf
sudo sensors -s
) 或重新启动 ( sudo service lm-sensors restart
) 以使用新配置。 $ sensors
w83667hg-isa-0a10
Adapter: ISA adapter
VCore: +1.18 V (min = +0.62 V, max = +1.47 V)
Vtt: +1.11 V (min = +1.05 V, max = +1.15 V)
AVCC: +3.34 V (min = +2.98 V, max = +3.63 V)
+3.3V: +3.34 V (min = +2.98 V, max = +3.63 V)
IGD: +1.56 V (min = +1.00 V, max = +2.00 V)
3VSB: +3.26 V (min = +2.98 V, max = +3.63 V)
VBat: +3.31 V (min = +2.54 V, max = +3.46 V)
CPU Fan: 1834 RPM (min = 301 RPM, div = 32)
M/B Temp: +30.0°C (high = +55.0°C, hyst = +52.0°C) sensor = thermistor
CPU Temp: +67.0°C (high = +72.0°C, hyst = +70.0°C) sensor = thermistor
AUX Temp: +27.0°C (high = +80.0°C, hyst = +75.0°C) sensor = thermistor
Run Code Online (Sandbox Code Playgroud)
/etc/rc.local
modprobe w83627ehf
w83627ehf
为您系统的传感器。确保将其放在exit 0
终止脚本的行之前。)sensors
列表与 BIOS 读数进行比较,验证它们是否在彼此的范围内。compute in1 (56/10+1)*@, @/(56/10+1)
在sensors3.conf 中添加类似的行。@
是传感器值。第一个计算将传感器值转换为显示值,第二个计算将其转换回。man sensors.conf
如果您知道改进此答案的方法,请这样做。
归档时间: |
|
查看次数: |
8061 次 |
最近记录: |