LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: blackwhite

[解决]帮忙贴个conky的温度监视的配置

[复制链接]
发表于 2007-8-15 12:20:10 | 显示全部楼层
可能是台机的原因或者是哪里的问题,貌似我这里用cat现实cpu转速不行

frank@localhost ~ $ cd /proc/acpi/fan/
frank@localhost /proc/acpi/fan $ ls
FAN
frank@localhost /proc/acpi/fan $ cd FAN/
frank@localhost /proc/acpi/fan/FAN $ ls
state
frank@localhost /proc/acpi/fan/FAN $ cat state
status:                  on
回复 支持 反对

使用道具 举报

发表于 2007-8-15 14:15:07 | 显示全部楼层
Post by 三翻领
可能是台机的原因或者是哪里的问题,貌似我这里用cat现实cpu转速不行

frank@localhost ~ $ cd /proc/acpi/fan/
frank@localhost /proc/acpi/fan $ ls
FAN
frank@localhost /proc/acpi/fan $ cd FAN/
frank@localhost /proc/acpi/fan/FAN $ ls
state
frank@localhost /proc/acpi/fan/FAN $ cat state
status:                  on

去这个地方看看:
cat  /sys/class/hwmon/hwmon0/device/fan1_input 如果没有检查一下 kernel config有没有CONFIG_ACPI_FAN=y
回复 支持 反对

使用道具 举报

发表于 2007-8-16 00:20:46 | 显示全部楼层
Post by nainaide
这是我显示CPU\风扇\电池的配置

cpu1 ${exec echo $(cat /sys/class/hwmon/hwmon1/device/temp1_input) / 1000 | bc}°C

风扇转速$alignr${exec echo $(cat /proc/acpi/ibm/fan |grep -Po [0-9+])} /分钟
我用了你的设置,挺好的。刚看了一下[color="Red"]官方说明,发现ibm还可以用变量查看。你的风扇里写着有ibm,估摸着对你也有用。变量如下:

[color="Red"]ibm_fan         ---         If running the IBM ACPI, displays the fan speed.
[color="Red"]ibm_temps         N ---        If running the IBM ACPI, displays the temperatures from the IBM temperature sensors (N=0..7) Sensor 0 is on the CPU, 3 is on the GPU.
回复 支持 反对

使用道具 举报

发表于 2007-8-16 01:04:13 | 显示全部楼层
Post by zhou3345
我用了你的设置,挺好的。刚看了一下[color="Red"]官方说明,发现ibm还可以用变量查看。你的风扇里写着有ibm,估摸着对你也有用。变量如下:

[color="Red"]ibm_fan         ---         If running the IBM ACPI, displays the fan speed.
[color="Red"]ibm_temps         N ---        If running the IBM ACPI, displays the temperatures from the IBM temperature sensors (N=0..7) Sensor 0 is on the CPU, 3 is on the GPU.

我用的的确是IBM 是thinkpad t60. 我没注意$ibm_fan之类,谢谢提醒。
回复 支持 反对

使用道具 举报

发表于 2007-8-16 11:15:44 | 显示全部楼层
Post by nainaide
去这个地方看看:
cat  /sys/class/hwmon/hwmon0/device/fan1_input 如果没有检查一下 kernel config有没有CONFIG_ACPI_FAN=y
多谢多谢,有救了
请教temp1_input和temp2_input分别指哪个温度,尽管从经验上看temp2_input是cpu温度
回复 支持 反对

使用道具 举报

发表于 2007-8-16 15:09:19 | 显示全部楼层
Post by 三翻领
多谢多谢,有救了
请教temp1_input和temp2_input分别指哪个温度,尽管从经验上看temp2_input是cpu温度

这个问题似乎比较难回答,可能因机器不同而异。也许grep 一下kernel source 匹配temp1_input,会有答案。

比如,
http://www.thinkwiki.org/wiki/Thermal_Sensors)

ThinkPad R51

The ibm-acpi documentation includes the report by Thomas Gruber:

EC offset   Index in "thermal"   Location (estimated)
0x78        1                    CPU
0x79        2                    Mini-PCI
0x7A        3                    HDD
0x7B        4                    GPU
0x7C        5                    System battery
0x7D        6                    UltraBay battery
0x7E        7                    System battery
0x7F        8                    UltraBay battery
0xC0        none                 ?
0xC1        none                 ?
0xC2        none                 ?

[edit] ThinkPad T40

The location of one of the sensors is identified here.

EC offset   Index in "thermal"   Location (estimated)
0x78        1                    CPU
0x79        2                    System board under rear left corner of Mini-PCI module
0x7A        3                    ?
0x7B        4                    GPU
0x7C        5                    Battery
0x7D        6                    n/a
0x7E        7                    Battery
0x7F        8                    n/a
0xC0        none                 n/a
0xC1        none                 n/a
0xC2        none                 n/a

[edit] ThinkPad T43, T43p

Found by Shmidoax using cooling spray to cool down components and observe the effect on the sensors.

EC offset   Index in "thermal"   Location (estimated)
0x78        1                    CPU
0x79        2                    Between PCMCIA slot and CPU (same as HDAPS module)
0x7A        3                    PCMCIA slot
0x7B        4                    GPU
0x7C        5                    System battery (front left = charging circuit)
0x7D        6                    UltraBay battery?
0x7E        7                    System battery (rear right)
0x7F        8                    UltraBay battery?
0xC0        none                 Bus between Northbridge and DRAM
0xC1        none                 Southbridge, WLAN and clock generator (under Mini-PCI card, under touchpad)
0xC2        none                 Power circuitry, on underside of system board under F2 key
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表