mbpfan 是什麼
mbpfan 是一個背景運行的一個服務,目的是利用 coretemp 這個套件回傳的溫度進而調整風扇轉速。 這個服務專門是爲了在蘋果電腦或者筆電上安裝 Linux 的使用者而編寫的。
Arch Linux 上安裝
在 Arch linux 上面安裝方法非常簡單。
# yaourt -S mbpfan-git
啓用 mbpfan 服務
# systemctl enable --now mbpfan.service
# systemctl start mbpfan.service
編輯 mbpfan 的設定
設定檔案放在 # nvim /etc/mbpfan.conf
使用自己喜歡的編輯器開啓之後,可以依照裏面的說明文件來調整風扇轉速。
我不喜歡筆電在桌上熱到快燒起來,所以我的設定比較偏低,可以參考:
[general]
# see https://ineed.coffee/3838/a-beginners-tutorial-for-mbpfan-under-ubuntu for the values
min_fan_speed = 2000 # put the *lowest* value of "cat /sys/devices/platform/applesmc.768/fan*_min"
max_fan_speed = 6200 # put the *highest* value of "cat /sys/devices/platform/applesmc.768/fan*_max"
low_temp = 45 # try ranges 55-63, default is 63
high_temp = 55 # try ranges 58-66, default is 66
max_temp = 86 # take highest number returned by "cat /sys/devices/platform/coretemp.*/hwmon/hwmon*/temp*_max", divide by 1000
polling_interval = 1 # default is 7 seconds
編輯好了之後重啓 service 就完成了。
# systemctl restart mbpfan.service