やりたいこと
スイッチがうるさいので静音化したい
activate *.shでファンをpwm制御
1. 制御コマンド
・fan-summer.sh
#夏用
#!/bin/sh
echo 1000 > /sys/class/hwmon/hwmon0/device/fan1_min
echo 64 > /sys/class/hwmon/hwmon0/device/pwm1_auto_point1_pwm
echo 64 > /sys/class/hwmon/hwmon0/device/pwm1_auto_point2_pwm
#cat /sys/class/hwmon/hwmon0/device/pwm1_auto_channels_temp
#cat /sys/class/hwmon/hwmon0/device/pwm1_auto_point1_pwm
#cat /sys/class/hwmon/hwmon0/device/pwm1_auto_point2_pwm
#cat /sys/class/hwmon/hwmon0/device/pwm1_enable
#cat /sys/class/hwmon/hwmon0/device/pwm1_freq
#cat /sys/class/hwmon/hwmon0/device/pwm1
・fan-winter.sh
#冬用
#!/bin/sh
echo 1000 > /sys/class/hwmon/hwmon0/device/fan1_min
echo 48 > /sys/class/hwmon/hwmon0/device/pwm1_auto_point1_pwm
echo 48 > /sys/class/hwmon/hwmon0/device/pwm1_auto_point2_pwm
#cat /sys/class/hwmon/hwmon0/device/pwm1_auto_channels_temp
#cat /sys/class/hwmon/hwmon0/device/pwm1_auto_point1_pwm
#cat /sys/class/hwmon/hwmon0/device/pwm1_auto_point2_pwm
#cat /sys/class/hwmon/hwmon0/device/pwm1_enable
#cat /sys/class/hwmon/hwmon0/device/pwm1_freq
#cat /sys/class/hwmon/hwmon0/device/pwm1
2. pwm制御範囲
echo N > /sys/class...
のNを変更してファン回転数を制御できる(0~255)
最低でも40くらいにしておいた方がいいと思われ
3. show sys env
#show system environment
でファン回転数を確認
電源を切ると制御が切れるので
trigger コマンドで自動的に適用されるようにすると楽
4. 自動でファンコンを適用しよう
conf t
trigger N
type reboot
script N *.sh
active
コマンドリファレンス
https://www.allied-telesis.co.jp/support/list/switch/x510/rel/5.4.2a-0.1/001763a/docs/index.html
もっと詳しい説明があった
https://nofu.jp/wiki/network/at-x510-28gtx_tips