{"id":681,"date":"2025-10-12T09:28:13","date_gmt":"2025-10-12T01:28:13","guid":{"rendered":"https:\/\/blog.xmb505.top\/?p=681"},"modified":"2025-10-12T09:32:48","modified_gmt":"2025-10-12T01:32:48","slug":"%e5%b0%8f%e7%b1%b3%e8%b7%af%e7%94%b1%e5%99%a8hd-%e4%bd%bf%e7%94%a8-fan2go-%e6%8e%a7%e5%88%b6%e9%a3%8e%e6%89%87%e6%9b%b2%e7%ba%bf","status":"publish","type":"post","link":"https:\/\/blog.xmb505.top\/index.php\/2025\/10\/12\/%e5%b0%8f%e7%b1%b3%e8%b7%af%e7%94%b1%e5%99%a8hd-%e4%bd%bf%e7%94%a8-fan2go-%e6%8e%a7%e5%88%b6%e9%a3%8e%e6%89%87%e6%9b%b2%e7%ba%bf\/","title":{"rendered":"\u5c0f\u7c73\u8def\u7531\u5668HD \u4f7f\u7528 fan2go \u63a7\u5236\u98ce\u6247\u66f2\u7ebf"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u524d\u8a00<\/h2>\n\n\n\n<p>\u563b\u563b\u563b\uff08\u5343\u65e9\u7231\u97f3\u5510\u7b11\uff09\uff0c\u4f5c\u8005\u82b160CNY\u53bb\u5f00\u76f2\u76d2\uff0c\u8d4c\u8def\u7531\u5668\u91cc\u9762\u7684HDD\u662f\u597d\u7684\uff0c\u7136\u540e\u8d4c\u8f93\u4e86\u3002<\/p>\n\n\n\n<p>\u4e0d\u8fc7\u5462\uff0c60CNY\u8fdb\u4e00\u53f0\u6210\u54c1\u5355\u76d8NAS\uff0c\u8fd8\u662f\u53ef\u4ee5\u7684\uff0c\u53ef\u4ee5\u8bf4\u7684\u4e0a\u662f\u6211\u4eba\u751f\u4e2d\u7b2c\u4e00\u6b3e\u771f\u6b63\u610f\u4e49\u4e0a\u7684NAS\uff0c\u800c\u4e0d\u662f\u670d\u52a1\u5668\u6216\u8005\u8001\u7535\u8111\u5171\u4eab\u4e2asamba\u7684\u4e8b\u3002<\/p>\n\n\n\n<p>\u6211\u53d1\u73b0 OpenWRT \u5b98\u65b9\u7684\u4e0b\u8f7d\u9875\u9762\u4e2d\u6ca1\u6709\u8fd9\u6b3e\u8def\u7531\u5668\uff0c\u53ea\u6709 kwrt \u548c immortalwrt \u91cc\u9762\u624d\u6709\uff0c\u800c\u4e14 kwrt \u652f\u6301\u4e0d\u5b8c\u5584\uff0c\u53ea\u6709 eth0 \u548c eth1 \uff0c\u6ca1\u6709 wan \u548c lan \uff0c\u7528\u4e0d\u4e86\u4e00\u70b9\uff0c immortalwrt \u8d77\u7801\u80fd\u7528\uff0c\u4f46\u662f\u628a wan \u5212\u5165 br-lan \u4e5f\u4f1a\u70b8\uff0c\u6240\u4ee5\u4e0d\u80fd\u8bf4\u597d\u7528\u3002<\/p>\n\n\n\n<p>\u6211\u60f3\u505a\u4e00\u4e2a\u5c0f\u578b\u7684\u5b58\u50a8\u76d8\uff0c\u3057\u304b\u3057\u6211\u53d1\u73b0\u6211\u5728\u5927\u91cf\u62f7\u8d1d\u6587\u4ef6\u7684\u65f6\u5019\uff0c\u6574\u673a\u6e29\u5ea6\u7adf\u7136\u8fbe\u5230\u4e86\u60ca\u4eba\u7684 85 \u6444\u6c0f\u5ea6\uff0c\u6211\u561e\u4e2a\u8c46\uff0c\u5c0f\u7c73\u8def\u7531\u5668HD\u4e0a\u81ea\u5e26\u7684\u98ce\u6247\u600e\u4e48\u5728\u6478\u9c7c\uff01\u7ed9\u6211\u306f\u305f\u3089\u304f\uff01<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/blog.xmb505.top\/wp-content\/uploads\/2025\/10\/54c90c7b579583e53425edf1cf45890a-691x1024.jpg'><img class=\"lazyload lazyload-style-4\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"691\" height=\"1024\" data-original=\"https:\/\/blog.xmb505.top\/wp-content\/uploads\/2025\/10\/54c90c7b579583e53425edf1cf45890a-691x1024.jpg\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-685\"  sizes=\"auto, (max-width: 691px) 100vw, 691px\" \/><\/div><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u51c6\u5907\u6750\u6599<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4eba\u4e00\u4e2a\uff08\u6700\u597d\u806a\u660e\u70b9\uff0c\u6709 Linux \u8fd0\u7ef4\u7ecf\u9a8c\uff09<\/li>\n\n\n\n<li>AI\u4e00\u4f4d\uff08\u63a8\u8350 grok \uff0c chatgpt \u548c kimi \u90fd\u73a9\u4e0d\u660e\u767d fan2go \uff0c\u622a\u6b622025\u5e7410\u670812\u65e5\uff09<\/li>\n\n\n\n<li>\u5c0f\u7c73\u8def\u7531\u5668HD\u4e00\u53f0\uff08\u5237\u597d immortalwrt \uff09<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b89\u88c5 fan2go<\/h2>\n\n\n\n<p>\u53bb\u8f6f\u4ef6\u5305\u91cc\u9762\u5b89\u88c5\u5c31\u5b8c\u4e8b\u4e86\u3002\uff08\u5927\u95ea\u5b58\u5b89\u88c5\u8f6f\u4ef6\u6765\u5c31\u662f\u723d\uff09<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/blog.xmb505.top\/wp-content\/uploads\/2025\/10\/image.png'><img class=\"lazyload lazyload-style-4\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"991\" height=\"635\" data-original=\"https:\/\/blog.xmb505.top\/wp-content\/uploads\/2025\/10\/image.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-682\"  sizes=\"auto, (max-width: 991px) 100vw, 991px\" \/><\/div><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u98ce\u6247\u63a7\u5236\u4ecb\u7ecd\uff08\u81f3\u5c11\u5bf9\u6211\u81ea\u5df1\u7684\u673a\u5668\uff09<\/h2>\n\n\n\n<p>\u8fdb\u5165\u4f60\u7684\u673a\u5668\uff0c\u6267\u884c <code>fan2go detect<\/code> \u5e94\u8be5\u4f1a\u6709\u5982\u4e0b\u8f93\u51fa\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>root@Haku-NAS:~# fan2go detect\n=========== hwmon: ============\n\n> Platform: ath10k_hwmon-pci-010100\n  Sensors  Index  Label                        Value\n           1      hwmon13\/temp1 (temp1_input)  N\/A\n\n> Platform: sensor4_thermal-virtual-0\n  Sensors  Index  Label                       Value\n           1      hwmon4\/temp1 (temp1_input)  55000\n\n> Platform: emc2305-i2c-0-2f\n  Fans     Index  PWM Channel  RPM Channel  Label         RPM  PWM  Mode\n           1      1            1            hwmon11\/fan1  0    0    N\/A\n> Platform: sensor2_thermal-virtual-0\n  Sensors  Index  Label                       Value\n           1      hwmon2\/temp1 (temp1_input)  52000\n\n> Platform: sensor0_thermal-virtual-0\n  Sensors  Index  Label                       Value\n           1      hwmon0\/temp1 (temp1_input)  52000\n\n> Platform: sensor9_thermal-virtual-0\n  Sensors  Index  Label                       Value\n           1      hwmon9\/temp1 (temp1_input)  52000\n\n> Platform: sensor7_thermal-virtual-0\n  Sensors  Index  Label                       Value\n           1      hwmon7\/temp1 (temp1_input)  50000\n\n> Platform: ath10k_hwmon-pci-0100\n  Sensors  Index  Label                        Value\n           1      hwmon14\/temp1 (temp1_input)  40000\n\n> Platform: sensor5_thermal-virtual-0\n  Sensors  Index  Label                       Value\n           1      hwmon5\/temp1 (temp1_input)  54000\n\n> Platform: tmp75-i2c-1-48\n  Sensors  Index  Label                        Value\n           1      hwmon12\/temp1 (temp1_input)  38750\n\n> Platform: sensor3_thermal-virtual-0\n  Sensors  Index  Label                       Value\n           1      hwmon3\/temp1 (temp1_input)  53000\n\n> Platform: sensor10_thermal-virtual-0\n  Sensors  Index  Label                        Value\n           1      hwmon10\/temp1 (temp1_input)  53000\n\n> Platform: sensor1_thermal-virtual-0\n  Sensors  Index  Label                       Value\n           1      hwmon1\/temp1 (temp1_input)  52000\n\n> Platform: sensor8_thermal-virtual-0\n  Sensors  Index  Label                       Value\n           1      hwmon8\/temp1 (temp1_input)  50000\n\n> Platform: sensor6_thermal-virtual-0\n  Sensors  Index  Label                       Value\n           1      hwmon6\/temp1 (temp1_input)  54000<\/code><\/pre>\n\n\n\n<p>\u8fd9\u6837\u5c31\u4ee3\u8868\u7cfb\u7edf\u5df2\u7ecf\u6b63\u5e38\u9a71\u52a8\u98ce\u6247\u4e86\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u6211\u4eec\u60f3\u624b\u52a8\u63a7\u5236\u98ce\u6247\uff0c\u6211\u4eec\u9700\u8981\u627e\u5230 <code>\/sys\/class\/hwmon\/hwmon11\/pwm1<\/code> \u6765\u63a7\u5236\u4ed6\uff08\u6570\u503c\u57280-255\u4e4b\u95f4\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo 255 > \/sys\/class\/hwmon\/hwmon11\/pwm1\n#\u62c9\u6ee1\u4e86\u5144\u5f1f<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u81ea\u52a8\u63a7\u5236\u98ce\u6247<\/h2>\n\n\n\n<p>AI\u592a\u597d\u7528\u4e86\u4f60\u4eec\u77e5\u9053\u5417\uff1f<\/p>\n\n\n\n<p>fan2go \u4f1a\u8bfb\u53d6 <code>\/etc\/fan2go\/fan2go.yaml<\/code> \u7684\u914d\u7f6e\u6587\u4ef6\u8fdb\u884c\u64cd\u4f5c\u3002\u6211\u8fd9\u91cc\u8d34\u4e00\u5f20\u6211\u81ea\u5df1\u7684\u914d\u7f6e\u6587\u4ef6\u7ed9\u5927\u5bb6\u7528\uff0c\u6216\u8005\u5927\u5bb6\u53ef\u4ee5\u6309\u7167\u81ea\u5df1\u7684\u9700\u6c42\u4e22\u7ed9AI\u81ea\u5df1\u6539\u5c31\u5b8c\u4e8b\u4e86\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># fan2go.yaml configuration file\n# Based on the output of 'fan2go detect'\n# This is a basic configuration controlling the single detected fan\n# using the highest temperature sensor (sensor4_thermal-virtual-0 at 54C, likely CPU)\n# with a simple linear curve for fan speed.\n\nsensors:\n  # CPU temperature sensor (assuming sensor4_thermal-virtual-0 is CPU, highest temp)\n  - id: cpu_temp\n    hwmon:\n      platform: sensor4_thermal-virtual-0\n      index: 1\n\n  # Ambient temperature sensor (tmp75)\n  - id: ambient_temp\n    hwmon:\n      platform: tmp75-i2c-1-48\n      index: 1\n\n  # WiFi temperature sensor\n  - id: wifi_temp\n    hwmon:\n      platform: ath10k_hwmon-pci-0100\n      index: 1\n\n# Define basic linear curves first\ncurves:\n  # Linear curve for CPU\n  - id: cpu_curve\n    linear:\n      sensor: cpu_temp\n      steps:\n        - 40: 0     # Below 40C, fan off (0 PWM)\n        - 50: 50    # 50C -> 20% speed (50\/255)\n        - 60: 128   # 60C -> 50% speed\n        - 70: 200   # 70C -> ~78% speed\n        - 80: 255   # 80C -> 100% speed\n\n  # Linear curve for WiFi (less aggressive)\n  - id: wifi_curve\n    linear:\n      sensor: wifi_temp\n      steps:\n        - 50: 0\n        - 60: 30\n        - 70: 100\n        - 80: 255\n\n  # Composite curve that takes the maximum from CPU and WiFi curves\n  - id: max_temp_curve\n    function:\n      type: maximum\n      curves:\n        - cpu_curve\n        - wifi_curve\n\n# The single fan detected\nfans:\n  - id: main_fan\n    hwmon:\n      platform: emc2305-i2c-0-2f\n      pwmChannel: 1\n      rpmChannel: 1\n    curve: max_temp_curve\n    neverStop: true  # Prevent fan from stopping completely to avoid dust buildup\n    minPwm: 30       # Minimum PWM to keep fan spinning\n    maxPwm: 255\n\n# Optional: Enable statistics exporter for monitoring (e.g., via Prometheus\/Grafana)\nstatistics:\n  enabled: true\n  port: 9000\n\n# Optional: Enable API for querying current values\napi:\n  enabled: true\n  host: localhost\n  port: 9001<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u670d\u52a1\u9879\u542f\u52a8<\/h2>\n\n\n\n<p>\u5176\u5b9e\u4f60\u5b89\u88c5\u7684\u65f6\u5019\u4ed6\u5c31\u5b89\u88c5\u4e3a\u670d\u52a1\u5f00\u673a\u81ea\u542f\u4e86\ud83d\ude0b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/blog.xmb505.top\/wp-content\/uploads\/2025\/10\/image-1.png'><img class=\"lazyload lazyload-style-4\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"984\" height=\"270\" data-original=\"https:\/\/blog.xmb505.top\/wp-content\/uploads\/2025\/10\/image-1.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-683\"  sizes=\"auto, (max-width: 984px) 100vw, 984px\" \/><\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 \u563b\u563b\u563b\uff08\u5343\u65e9\u7231\u97f3\u5510\u7b11\uff09\uff0c\u4f5c\u8005\u82b160CNY\u53bb\u5f00\u76f2\u76d2\uff0c\u8d4c\u8def\u7531\u5668\u91cc\u9762\u7684HDD\u662f\u597d\u7684\uff0c\u7136\u540e\u8d4c\u8f93\u4e86\u3002 \u4e0d\u8fc7\u5462\uff0c60 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[6,45,47,46,35,48,28],"class_list":["post-681","post","type-post","status-publish","format-standard","hentry","category-1","tag-linux","tag-nas","tag-r3d","tag-hd","tag-35","tag-48","tag-28"],"_links":{"self":[{"href":"https:\/\/blog.xmb505.top\/index.php\/wp-json\/wp\/v2\/posts\/681","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.xmb505.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.xmb505.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.xmb505.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.xmb505.top\/index.php\/wp-json\/wp\/v2\/comments?post=681"}],"version-history":[{"count":2,"href":"https:\/\/blog.xmb505.top\/index.php\/wp-json\/wp\/v2\/posts\/681\/revisions"}],"predecessor-version":[{"id":686,"href":"https:\/\/blog.xmb505.top\/index.php\/wp-json\/wp\/v2\/posts\/681\/revisions\/686"}],"wp:attachment":[{"href":"https:\/\/blog.xmb505.top\/index.php\/wp-json\/wp\/v2\/media?parent=681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.xmb505.top\/index.php\/wp-json\/wp\/v2\/categories?post=681"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.xmb505.top\/index.php\/wp-json\/wp\/v2\/tags?post=681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}