在安裝了 Artix Linux 的 ThinkPad X230 上啟用 ThinkFan

2 min

language: ja bn en es hi pt ru zh-cn zh-tw

大家好,我是無能。

因為只是按照 Arch Wiki 的步驟操作無法啟動,所以我在這裡留下筆記。


https://wiki.archlinux.jp/index.php/Lenovo_ThinkPad_X230

安裝 thinkfan

yay -S thinkfan

按照 Arch Wiki 的說明進行設定。

在 vi /etc/thinkfan.conf 中寫入以下內容

tp_fan /proc/acpi/ibm/fan
hwmon /sys/class/thermal/thermal_zone0/temp

(0, 0,  60)
(1, 53, 65)
(2, 55, 66)
(3, 57, 68)
(4, 61, 70)
(5, 64, 71)
(7, 68, 32767)

嘗試啟動。

blksheep:[haturatu]:~$ sudo thinkfan

ERROR: ~TpFanDriver: Resetting fan control in /proc/acpi/ibm/fan: Invalid argument
ERROR: Module thinkpad_acpi doesn't seem to support fan_control

出現錯誤了。

這個錯誤似乎是因為 thinkpad_acpi 模組沒有載入,所以我們來載入它。

echo "options thinkpad_acpi fan_control=1" | sudo tee /etc/modprobe.d/thinkpad_acpi.conf

先移除模組,然後再重新載入。

sudo modprobe -rv thinkpad_acpi
sudo modprobe -v thinkpad_acpi

如果執行以下指令後顯示 Y,就表示成功了。

cat /sys/module/thinkpad_acpi/parameters/fan_control

再檢查一次。

blksheep:[haturatu]:~$ sudo thinkfan

Daemon PID: 17119

也用 ps 指令確認一下。

blksheep:[haturatu]:~$ ps -ef | grep thinkfan
root     17119     1  0 18:56 ?        00:00:00 thinkfan
haturatu 22016  7362  0 19:18 pts/1    00:00:00 grep --colour=auto thinkfan

看起來一切順利。


那麼,下次再見。

請多指教。

Related Posts