network:at-x510-28gtx_tips

差分

このページの2つのバージョン間の差分を表示します。

この比較画面にリンクする

次のリビジョン
前のリビジョン
network:at-x510-28gtx_tips [2019-06-02 23:45]
Decomo 作成
network:at-x510-28gtx_tips [2021-05-11 20:03] (現在)
Decomo
行 1: 行 1:
-====== AT-X510-28GTXあれこれ ======+====== AT-x510-28GTXあれこれ ======
  
 ===== ファンをPWM制御で静音化 ===== ===== ファンをPWM制御で静音化 =====
  
-^  PWM値  ^  回転数   備考 +先達の解析によれば、デバイスファイルにを書き込むとファンの回転数をソフト的に変更きるそうで。その知見をありがた使わせていただく
-|  32 |   582 | | +
-|  64 |  1869 |室温26℃アイドル状態54℃| +
-|  66 |  1968 | | +
-|  68 |  2048 | | +
-|  72 |  2204 |ここから上は煩くて一般のご家庭的には厳し(個人の感想です)| +
-|  80 |  2511 | | +
-|  96 |  3114 | |+
  
 +<WRAP center round info 60%>
 +ファームウェアx510-5.5.1-0.1.relでデバイスファイルの構成が少し変わったらしい。適宜読み替えのこと。
 +<html>
 +<blockquote class="twitter-tweet"><p lang="ja" dir="ltr">sysfsの構造が少し変わったようです。<br>/sys/class/hwmon/hwmon0/device/* を<br>/sys/class/hwmon/hwmon0/* に変更でうちの環境は動いています。</p>&mdash; Destel (@des_tel) <a href="https://twitter.com/des_tel/status/1391194650975686656?ref_src=twsrc%5Etfw">May 9, 2021</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> 
 +</html>
 +</WRAP>
 +
 +
 +回転数制御スクリプトを用意。エディタはCtrl-Kの後にSキーで保存、Ctrl-Cで終了。
 +<code>
 +# edit fan.sh
 +---- 中身:ここから ----
 +#!/bin/sh
 +
 +# 低回転エラー避け
 echo 1000 > /sys/class/hwmon/hwmon0/device/fan1_min echo 1000 > /sys/class/hwmon/hwmon0/device/fan1_min
  
 +# 回転速度を0-255で指定
 +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_channels_temp
 #cat /sys/class/hwmon/hwmon0/device/pwm1_auto_point1_pwm #cat /sys/class/hwmon/hwmon0/device/pwm1_auto_point1_pwm
行 20: 行 33:
 #cat /sys/class/hwmon/hwmon0/device/pwm1_freq #cat /sys/class/hwmon/hwmon0/device/pwm1_freq
 #cat /sys/class/hwmon/hwmon0/device/pwm1 #cat /sys/class/hwmon/hwmon0/device/pwm1
 +---- 中身:ここまで ----
 +</code>
  
-echo 64 > /sys/class/hwmon/hwmon0/device/pwm1_auto_point1_pwm +スクリプト実行 
-echo 64 > /sys/class/hwmon/hwmon0/device/pwm1_auto_point2_pwm+<code> 
 +# activate fan.sh 
 +</code> 
 + 
 +正しく記述できていれば、ファンが静かになる。 
 +<code> 
 +#show system environment 
 +Environment Monitoring Status 
 +(略) 
 +Resource ID: 3  Name: x510-28GTX 
 +ID  Sensor (Units)                      Reading  Low Limit High Limit Status 
 +1   Fan: Fan 1 (Rpm)                       1929       1000        -       Ok 
 +2   Voltage: 1.8V (Volts)                 1.806      1.617      1.978     Ok 
 +3   Voltage: 1.0V (Volts)                 0.998      0.896      1.099     Ok 
 +4   Voltage: 3.3V (Volts)                 3.282      3.028      3.545     Ok 
 +5   Voltage: 5.0V (Volts)                 5.099      4.477      5.498     Ok 
 +6   Voltage: 1.2V (Volts)                 1.184      1.072      1.318     Ok 
 +7   Temp: CPU (Degrees C)                    51        -11         80     Ok 
 +</code> 
 + 
 +書き込む値と回転数の関係は下表な感じ。PWM値と回転数はおおむね比例するようだ。 
 + 
 +{{ :network:at-x510-28gtx_pwm_vs_rpm.png|}} 
 + 
 +^  PWM値  ^  回転数  ^  備考 
 +|    0 |     0 | | 
 +|   16 |     0 | | 
 +|   24 |   545 | | 
 +|   30 |   582 | | 
 +|   32 |   638 | | 
 +|   40 |   964 | | 
 +|   48 |  1294 | | 
 +|   64 |  1938 |室温26℃アイドル状態で54℃| 
 +|   66 |  1968 | | 
 +|   68 |  2048 | | 
 +|   72 |  2204 |ここから煩くて一般のご家庭的には厳しい(個人の感想)| 
 +|   80 |  2511 | | 
 +|   96 |  3114 | | 
 +|  128 |  4309 | | 
 +|  196 |  6221 | | 
 +|  255 |  7814 | | 
 + 
 +電源を切るとファン制御も無効になってしまうので、電源投入時に上記スクリプトを実行するトリガーを仕掛ける(動作未確認) 
 +<code> 
 +conf t 
 +trigger 数値 
 +type reboot 
 +script 数値 fan.sh 
 +active 
 +</code> 
 +''show run''でトリガーが追加されてるか確認し、コンフィグを保存する。 
 + 
 +===== コマンドあれこれ ===== 
 + 
 +CLIはCiscoに似ている。 
 + 
 +特権EXECモードに移行 
 +<code> 
 +awplus> enable 
 +</code> 
 + 
 +グローバルコンフィグモードに移行 
 +<code> 
 +awplus# configure terminal 
 +</code> 
 + 
 +スタック無効化 
 +<code> 
 +awplus(config)#no stack 1 enable 
 +Warning: this will disable the stacking hardware on member-1. 
 +Are you sure you want to continue? (y/n): y 
 +awplus(config)#03:27:03 awplus VCS[1049]: Deactivating Stacking Ports on stack member 1 
 +</code> 
 + 
 +==== スパニングツリー === 
 + 
 +ポートをエッジポートにする。''spanning-tree portfast''も同じ効果。 
 +<code> 
 +awplus(config)#interface port1.0.1-port1.0.12 
 +awplus(config-if)#spanning-tree edgeport 
 +</code> 
 + 
 +==== VLAN ==== 
 + 
 +VLAN作成 
 +<code> 
 +awplus(config)#vlan database 
 +awplus(config-vlan)#vlan 32,33 
 +awplus(config-vlan)#do show vlan all 
 +VLAN ID  Name            Type    State   Member ports 
 +                                         (u)-Untagged, (t)-Tagged 
 +======= ================ ======= ======= ==================================== 
 +1       default          STATIC  ACTIVE  port1.0.1(u) port1.0.2(u) port1.0.3(u)  
 +                                         port1.0.4(u) port1.0.5(u) port1.0.6(u) 
 +                                         port1.0.7(u) port1.0.8(u) port1.0.9(u) 
 +                                         port1.0.10(u) port1.0.11(u) 
 +                                         port1.0.12(u) port1.0.13(u) 
 +                                         port1.0.14(u) port1.0.15(u) 
 +                                         port1.0.16(u) port1.0.17(u) 
 +                                         port1.0.18(u) port1.0.19(u) 
 +                                         port1.0.20(u) port1.0.21(u) 
 +                                         port1.0.22(u) port1.0.23(u) 
 +                                         port1.0.24(u) port1.0.25(u) 
 +                                         port1.0.26(u) 
 +32      VLAN0032         STATIC  ACTIVE   
 +33      VLAN0033         STATIC  ACTIVE 
 +</code> 
 + 
 +VLANに名前を付ける 
 +<code> 
 +awplus(config-vlan)#vlan 32 name TKY_Main 
 +awplus(config-vlan)#vlan 33 name TKY_Trust 
 +awplus(config-vlan)#do show vlan all 
 +VLAN ID  Name            Type    State   Member ports 
 +                                         (u)-Untagged, (t)-Tagged 
 +======= ================ ======= ======= ==================================== 
 +1       default          STATIC  ACTIVE  port1.0.1(u) port1.0.2(u) port1.0.3(u) 
 +(略) 
 +32      TKY_Main         STATIC  ACTIVE   
 +33      TKY_Trust        STATIC  ACTIVE 
 +</code> 
 + 
 +ポートVLANの設定(ポートをVLANに所属させる) 
 +<code> 
 +awplus(config)#interface port1.0.25 
 +awplus(config-if)#switchport mode access 
 +awplus(config-if)#switchport access vlan 33 
 + 
 +VLAN ID  Name            Type    State   Member ports 
 +                                         (u)-Untagged, (t)-Tagged 
 +======= ================ ======= ======= ==================================== 
 +1       default          STATIC  ACTIVE  port1.0.1(u) port1.0.2(u) port1.0.3(u) 
 +(略) 
 +32      TK0_Main         STATIC  ACTIVE 
 +33      TY0_Trust        STATIC  ACTIVE  port1.0.25(u) 
 +</code> 
 + 
 +VLANインタフェースにIPアドレスを割り当てる 
 +<code> 
 +awplus(config)#interface vlan33 
 +awplus(config-if)#ip address 172.16.33.254/24 
 +</code> 
 + 
 +==== DHCP ==== 
 + 
 +DHCPリレーの設定 
 + 
 +VLANインタフェース毎にサーバアドレスを指定してやる。 
 +<code> 
 +awplus(config)#interface vlan33 
 +awplus(config-if)#ip dhcp-relay server-address 172.16.32.1 
 +</code> 
 + 
 +==== DNS ==== 
 + 
 +ネームサーバの指定。3アドレスまで追加可能。 
 +<code> 
 +awplus(config)#ip name-server 172.20.32.1 
 +awplus(config)#ip name-server 1.1.1.1 
 +awplus(config)#do show ip name-server 
 +172.20.32.1 
 +1.1.1.1 
 +</code> 
 + 
 +DNSリレーの設定 
 +<code> 
 +awplus(config)#ip dns forwarding 
 +</code> 
 + 
 +DNSキャッシュの設定 
 +<code> 
 +awplus(config)#ip dns forwarding cache size 500 time 1800 
 +</code> 
 + 
 +===== 参考情報 =====
  
 +  * [[https://www.ns-koubou.com/blog/2019/05/13/x510-mod/|AT-x510-28GTXを静音化+ファン端子の増設をしてみる - えぬえす工房]]
 +  * [[https://twitter.com/yuutosi_hiyuu/status/1132533633489620998|ゆーとし氏によるファンまわりのツィート(Twitter)]]
  • network/at-x510-28gtx_tips.1559486739.txt.gz
  • 最終更新: 2019-06-02 23:45
  • by Decomo