AI 编程让 Fan Control 支持 iCUE Link RGB

一位爱好者利用 AI 以 vibe coding 的方式编写代码,扩展了 Fan Control 现有的 CorsairLink 插件,打造出一套可统一控制 Corsair 散热硬件和 RGB 灯效的方案。背景方面,Fan Control 是一款免费的 Windows 工具,可对 PC 上几乎任何风扇(包括 CPU、GPU 和 AIO 水泵)进行细粒度控制。这一非官方修改为 Corsair 的 iCUE Link 生态和 RGB 内存加入了原生 RGB 支持,无需在后台运行 Corsair 的 iCUE 或其他第三方应用。
该项目最初是为了摆脱 iCUE,但最终演变成了一项规模更大的开发工作。这位用户在 Reddit 上以 u/CoolOnCrackk 的账号分享了成果,并表示其动机是避免多个软件程序与同一套硬件通信、占用系统资源,以及仅仅为了控制风扇和灯效而运行各种后台服务。
这位爱好者花了数小时研究硬件通信协议、实现新功能,并为修改后的插件排查故障。该项目面向一套搭载 AMD Ryzen 7 9800X3D 和 Corsair iCUE Link 生态的系统开发,配有 11 个风扇、一个 AIO 液冷散热器和 Corsair Dominator RGB DDR5 内存。这位爱好者表示,他们此前曾在另一台 PC 上用 Fan Control 管理散热,但由于与 iCUE Link 硬件不兼容,在新系统上很难使用这款软件。
第一个开发阶段是扩展已有的开源插件 FanControl.CorsairLink,该插件原本已支持散热控制和硬件监控。作为技术参考,开发中借助 OpenLinkHub 来理解 RGB 指令是如何构建、又是如何与 Corsair 的 Link hub 通信的。由于该 hub 同时负责散热和灯光,通过修改后的插件为 RGB 引入额外一层通信,可能会与硬件产生冲突。
因此,必须将散热与 RGB 的通信通道分离,这带来了大量开发工作。实现方案需要确保能够完全控制风扇和泵的转速、RPM 读数正常更新,并且能够从临时通信错误中恢复。此外,RGB 通信问题或灯光故障不能干扰散热性能,同时 RGB 更新也不能产生多余的 USB 流量。解决这些问题后,全部 11 个风扇和 AIO 水泵均正常工作,而修改后的插件也能处理 RGB 灯光。到了这个阶段,iCUE Link 硬件已不再需要 iCUE。
下一个挑战是复现 iCUE 的某一套 RGB 灯效配置,该配置会根据 CPU 温度改变颜色。团队没有单独实现一套硬件监控系统,而是在 CorsairLink 插件内部创建了一个虚拟温度输入。这使得 Fan Control 现有的温度曲线系统可以充当 CPU 温度传感器与 RGB 引擎之间的桥梁。由此构建的系统使用颜色插值,在配置的温度锚点之间逐步过渡。它还包含 6 秒的全范围过渡、最高每秒 10 帧的动画,以及 0.5C 的温度变化阈值。由于现代 CPU 会出现剧烈的温度波动,系统还实现了平滑机制。这是为了避免 CPU 温度变化期间出现持续闪烁。
同步 Corsair Dominator 内存模块上的 RGB 是另一个挑战,因为其灯光指令并不依赖 iCUE Link hub。它们转而通过 SMBus 通信,这需要采用不同的硬件访问方式。为解决这一问题,团队使用 OpenRGB 来识别并控制内存的 RGB 灯光控制器。这涉及分析其源代码、硬件检测例程、配置文件以及 SMBus 实现。经过多次尝试,OpenRGB 使用 PawnIO Windows 内核驱动成功检测到了 Dominator 内存模块。然而,将 OpenRGB 与 Fan Control 同时运行,可能再次带来硬件访问冲突以及额外占用系统资源的风险。
为了在修改后的 CorsairLink 插件内部直接实现原生内存 RGB 通信,开发工作是分阶段进行的。第一步是 SMBus 检测和读取操作,随后是 RGB 写入。此外还使用了一个专用的内存通信工作线程,把 SMBus 操作与 Link 集线器的 USB 通信分开处理。
这最终让 Fan Control 内部出现了两条硬件通信路径:一条负责管理风扇和水泵控制、RPM 监控以及 iCUE Link RGB,另一条则通过 PawnIO 和 SMBus 处理内存 RGB 检测与灯效。一个共享的 RGB 引擎负责管理温度输入、颜色插值、动画以及同步灯效配置文件。本质上,所有风扇和内存都遵循同一套随温度变化的颜色配置文件,而无需 OpenRGB 可执行文件、SDK 服务器或后台进程。
为了检验这两套通信系统能否同时运行,进行了多项测试。与内存 RGB 控制器的原生通信实现了 4 次读取 4 次成功,随后在并发静态灯效测试中实现了 8 次 RGB 写入 8 次成功。持续通信测试同样成功,共完成 3,844 次成功的 RAM RGB 写入。在完全集成后的 Fan Control 测试中,该插件还完成了 1,402 次成功的 Link 通信交换和 444 次原生 RAM 写入,且没有任何错误。值得注意的是,这些只是单项开发测试的结果,并不能证明该实现不会出现硬件通信故障。
要确保插件稳定可靠地运行,仅仅让硬件在普通桌面会话中正常工作是不够的。它还需要处理应用程序的启动与关闭、Windows 睡眠与唤醒、临时性的通信故障以及硬件重新初始化。睡眠与唤醒的切换尤其棘手,因为内存和 Link 灯光的响应方式不同,需要各自独立的恢复机制。经过数小时测试,该实现已能够从 SMBus 和 Link 通信故障中恢复,且不会与散热控制发生冲突。最终开发出了一个稳定版本,可独立处理所有散热与 RGB 功能,无需在后台运行 iCUE 或 OpenRGB。
一切就绪并完全可用之后,u/CoolOnCrackk 接着开始构建用于编辑 RGB 灯效配置的 GUI。他们将编辑器直接集成到 Fan Control 中,其中包括交互式色轮、亮度调节、自定义温度与颜色锚点、支持 HEX 输入的手动 RGB、实时渐变预览、温度模拟,以及配置的保存与加载。
值得注意的是,在拖动滑块或色轮时,编辑器并不会直接与硬件通信。它会先修改灯效配置,等用户点击 Apply 后再将配置传给共享的 RGB 引擎。这样实现是为了避免在编辑配置过程中产生不必要的硬件指令。
目前,Fan Control 有两个独立版本在同步维护。稳定版提供完整的 iCUE Link RGB 与散热支持,而另一个开发版则包含集成的 RGB 编辑器以及配置文件管理功能。据称,稳定版实现适合日常使用,在管理系统散热与灯效时,CPU 占用约为 0.1%,内存占用约为 120MB。
尽管投入了大量精力并取得了积极成果,该项目仍处于闭门状态。开发者表示,他们无意分发修改后的插件或其源代码。由于该实现仅在一套系统上测试过,无法保证与其他组件的兼容性。他们还补充说,虽然大量的源代码分析、实现、调试和迭代开发是借助 ChatGPT 完成的,但构建、实体硬件测试与验证均由他们亲自完成。
目前,该项目仍只是针对特定硬件的实验,而非 Fan Control 官方支持的功能。不过,它确实为开发者打开了一扇门,让他们未来可以探索类似的实现方式,打造自己的插件。
译文由英文原文机器翻译,术语按行业惯例统一,可在文末展开原文核对。
查看英文原文(Vibe-coded AI project brings native Corsair iCUE Link RGB support to Fan Control)
An enthusiast has used AI to vibe code and extend Fan Control’s existing CorsairLink plugin to create a unified solution for controlling Corsair cooling hardware and RGB lighting. For context, Fan Control is a free Windows utility that offers granular control over almost any fan on your PC, including CPU, GPU, and AIO pumps. The unofficial modification adds native RGB support for Corsair’s iCUE Link ecosystem and RGB memory, without requiring Corsair’s iCUE or other third-party apps to run in the background.
The project began as an attempt to eliminate iCUE, but eventually evolved into a larger development effort. Sharing their efforts on Reddit, u/CoolOnCrackk says that the motive was to avoid having multiple software programs communicate with the same hardware, consuming system resources, and running various background services just to control fans and lighting.
The enthusiast spent multiple hours investigating hardware communication protocols, implementing new functionality, and troubleshooting the modified plugin. The project was developed for a system running on an AMD Ryzen 7 9800X3D and Corsair’s iCUE Link ecosystem with 11 fans, an AIO liquid cooler, and Corsair Dominator RGB DDR5 memory. The enthusiast says they previously used Fan Control to manage cooling on another PC but found it difficult to use the software with the newer system because of incompatibility with iCUE Link hardware.
I used ChatGPT and extended Fan Control's CorsairLink plugin to replace both iCUE and OpenRGB — native LINK and RAM RGB controlfrom r/FanControl
The first development phase involved extending the existing open-source FanControl.CorsairLink plugin, which already supports cooling controls and hardware monitoring. For technical reference, OpenLinkHub was used to understand how RGB commands were constructed and communicated with Corsair’s Link hub. Since the hub handles cooling and lighting, introducing an additional layer of communication for RGB via the modified plugin created a possibility of conflicts with the hardware.
Thus, separating cooling and RGB communication channels was necessary, which resulted in a significant amount of development. The implementation needed to ensure that it allowed full control over fan and pump speeds, with RPM readings updating normally, and the ability to recover from temporary communication errors. Additionally, RGB communication issues or lighting failures needed not to interfere with cooling performance, while RGB updates did not generate unnecessary USB traffic. Once this was addressed, all 11 fans and the AIO pump operated normally, while the modified plugin was able to handle the RGB lighting. At this stage, iCUE was no longer needed for the iCUE Link hardware.
The next challenge was to reproduce one of iCUE’s RGB lighting configurations which changed colors based on CPU temperature. Instead of implementing a separate hardware monitoring system, a virtual temperature input was created inside the CorsairLink plugin. This allowed Fan Control’s existing temperature-curve system to act as a bridge between the CPU temperature sensor and RGB engine. The resulting system uses color interpolation to gradually transition between the configured temperature anchors. It also includes a six-second full-range transition, a maximum animation of 10 frames per second, and a temperature change threshold of 0.5C. As modern CPUs experience rapid temperature fluctuations, a smoothing mechanism has also been implemented. This is necessary in order to avoid constant flickers during CPU temperature changes.
Syncing the RGB on Corsair’s Dominator memory modules was another challenge as its lighting commands do not rely on the iCUE Link hub. Instead, they communicate via SMBus, which requires a different hardware access method. To solve this, OpenRGB was used to identify and control the memory’s RGB lighting controllers. This involved analyzing its source code, hardware detection routines, configuration files, and SMBus implementations. After several attempts, OpenRGB successfully detected the Dominator memory modules using the PawnIO Windows kernel driver. However, running OpenRGB alongside Fan Control could once again introduce the risk of hardware access conflicts and additional usage of system resources.
To implement native memory RGB communication directly inside the modified CorsairLink plugin, the development was done in stages. The first step involved SMBus detection and read operations followed by RGB writes. A dedicated memory communication worker was also used to handle SMBus operations separately from the Link hub’s USB communication.
This resulted in two hardware communication paths within Fan Control, one to manage fan and pump control, RPM monitoring, and iCUE Link RGB, while the other handled memory RGB detection and lighting through PawnIO and SMBus. A shared RGB engine manages temperature inputs, color interpolation, animation, and synchronized lighting profiles. Essentially, all fans and memory follow the same temperature-dependent color profile without requiring the OpenRGB executable, SDK server, or background process.
Several tests were done in order to check whether the two communication systems could operate simultaneously. Native communication with RAM RGB controllers resulted in four successful reads out of four, followed by eight successful RGB writes out of eight during concurrent static lighting tests. The continuous communication tests were also successful, with 3,844 successful RAM RGB writes. The plugin also managed to complete 1,402 successful Link communication exchanges and 444 native RAM writes in the fully integrated Fan Control test without any errors. Notably, these are individual development test results, rather than proof that the implementation is immune to hardware communication failures.
To ensure that the plugin worked reliably required more than just getting the hardware to work during a normal desktop session. It also needed to handle application startup and shutdown, Windows sleep and resume, temporary communication failures, and hardware re-initialization. Sleep and resume transitions were particularly challenging, as RAM and Link lighting behaved differently and required separate recovery mechanisms. After hours of testing, the implementation was made capable of recovering from SMBus and Link communication failures without conflicting with cooling. Eventually, a stable version was developed which handled all cooling and RGB functions independently, without requiring iCUE or OpenRGB to run in the background.
Once everything was in place and fully functional, u/CoolOnCrackk moved on to build a GUI to edit RGB lighting profiles. They integrated an editor directly into Fan Control, which includes an interactive color wheel, brightness adjustment, custom temperature and color anchors, manual RGB with HEX inputs, a real-time gradient preview, temperature simulation, and profile saving and loading.
Notably, the editor does not communicate directly with the hardware when moving sliders or the color wheel. Instead, it modifies the lighting profile and passes the configuration to the shared RGB engine when a user hits Apply. This has been implemented to prevent unnecessary hardware commands from being generated during profile editing.
Currently, two separate versions of Fan Control are being maintained. The stable version offers full iCUE Link RGB and cooling support while a separate development version includes the integrated RGB editor with profile management. The stable implementation is said to be suitable for everyday use and consumes around 0.1% CPU and 120MB of memory while managing the system’s cooling and lighting.
Despite the massive effort and positive results, the project remains behind closed doors. The developer says that they have no intention of distributing the modified plugin or its source code. Since the implementation has only been tested on a single system, compatibility with other components is not guaranteed. They also add that while a substantial amount of source code analysis, implementation, debugging, and iterative development was done using ChatGPT, they personally handled the builds, physical hardware testing, and validation.
For now, the project remains a hardware-specific experiment rather than an officially supported Fan Control feature. However, it does open the door for developers to explore similar implementations to create their own plugins in the future.
正文保留英文原文,标题与摘要由机器翻译。
原文发布于 Tom's Hardware(Vibe-coded AI project brings native Corsair iCUE Link RGB support to Fan Control),标题、摘要与正文由机器翻译,术语按行业惯例统一,未经人工逐句校订。