← Documents Documentation/hwmon/nzxt-smart2.rst GitHub 원문 ↗

Linux 6.18.37 · Hardware Monitoring

Kernel driver nzxt-smart2

NZXT Smart Device v2의 세 팬 속도·전압·전류와 PWM 또는 전압 출력을 관리합니다.

Source pathDocumentation/hwmon/nzxt-smart2.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

요약·해설

nzxt-smart2.rst:1-62

세 팬의 RPM·전류·전압을 읽고 0~255 출력으로 제어하며, 전원 중 팬 구성 변경 시 재감지가 필요합니다.

문서 개요
항목
SourceDocumentation/hwmon/nzxt-smart2.rst
분량62 source lines
팬 채널3
최소 갱신250 ms

원문 분량과 핵심 장치 구성을 정리합니다.

운영 흐름
장치 인식팬 감지전기·속도 측정PWM 또는 전압 적용구성 변경 시 재감지

장치 인식부터 측정·제어까지의 핵심 순서입니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 .. SPDX-License-Identifier: GPL-2.0-or-later
2
3 Kernel driver nzxt-smart2
4 =========================
5
6 Supported devices:
7
8 - NZXT RGB & Fan controller
9 - NZXT Smart Device v2
10
11 Description
12 -----------
13
14 This driver implements monitoring and control of fans plugged into the device.
15 Besides typical speed monitoring and PWM duty cycle control, voltage and current
16 is reported for every fan.
17
18 The device also has two connectors for RGB LEDs; support for them isn't
19 implemented (mainly because there is no standardized sysfs interface).
20
21 Also, the device has a noise sensor, but the sensor seems to be completely
22 useless (and very imprecise), so support for it isn't implemented too.
23
24 Usage Notes
25 -----------
26
27 The device should be autodetected, and the driver should load automatically.
28
29 If fans are plugged in/unplugged while the system is powered on, the driver
30 must be reloaded to detect configuration changes; otherwise, new fans can't
31 be controlled (`pwm*` changes will be ignored). It is necessary because the
32 device has a dedicated "detect fans" command, and currently, it is executed only
33 during initialization. Speed, voltage, current monitoring will work even without
34 reload. As an alternative to reloading the module, a userspace tool (like
35 `liquidctl`_) can be used to run "detect fans" command through hidraw interface.
36
37 The driver coexists with userspace tools that access the device through hidraw
38 interface with no known issues.
39
40 .. _liquidctl: https://github.com/liquidctl/liquidctl
41
42 Sysfs entries
43 -------------
44
45 ======================= ========================================================
46 fan[1-3]_input Fan speed monitoring (in rpm).
47 curr[1-3]_input Current supplied to the fan (in milliamperes).
48 in[0-2]_input Voltage supplied to the fan (in millivolts).
49 pwm[1-3] Controls fan speed: PWM duty cycle for PWM-controlled
50 fans, voltage for other fans. Voltage can be changed in
51 9-12 V range, but the value of the sysfs attribute is
52 always in 0-255 range (1 = 9V, 255 = 12V). Setting the
53 attribute to 0 turns off the fan completely.
54 pwm[1-3]_enable 1 if the fan can be controlled by writing to the
55 corresponding pwm* attribute, 0 otherwise. The device
56 can control only the fans it detected itself, so the
57 attribute is read-only.
58 pwm[1-3]_mode Read-only, 1 for PWM-controlled fans, 0 for other fans
59 (or if no fan connected).
60 update_interval The interval at which all inputs are updated (in
61 milliseconds). The default is 1000ms. Minimum is 250ms.
62 ======================= ========================================================
63

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

NZXT RGB & Fan Controller의 지원 범위

1-23

GPL-2.0-or-later `nzxt-smart2` 드라이버는 NZXT RGB & Fan Controller와 NZXT Smart Device v2를 지원합니다.

장치에 연결된 팬의 모니터링과 제어를 구현하며, 일반적인 회전 속도와 PWM 듀티뿐 아니라 각 팬에 공급되는 전압과 전류도 보고합니다.

장치에는 RGB LED용 커넥터 두 개가 있지만 표준화된 sysfs 인터페이스가 없어서 이 드라이버는 조명을 지원하지 않습니다.

소음 센서도 탑재되어 있으나 매우 부정확하고 실용성이 없다고 판단되어 지원하지 않습니다.

Smart Device v2 기능
기능지원 상태비고
팬 속도지원RPM
팬 PWM/전압 제어지원팬 방식에 따라 적용
팬 전압·전류지원팬별 측정
RGB 커넥터 2개미지원표준 sysfs 인터페이스 없음
소음 센서미지원부정확하고 실용성이 낮음

하드웨어 기능과 드라이버 지원 상태를 구분합니다.

팬 채널 모니터링
연결 팬 감지팬 제어 방식 확인회전 속도 측정공급 전압과 전류 측정hwmon 채널로 공개

팬 한 채널에서 여러 전기·기계 값을 함께 제공합니다.

.. SPDX-License-Identifier: GPL-2.0-or-later

Kernel driver nzxt-smart2
=========================

Supported devices:

- NZXT RGB & Fan controller
- NZXT Smart Device v2

Description
-----------

This driver implements monitoring and control of fans plugged into the device.
Besides typical speed monitoring and PWM duty cycle control, voltage and current
is reported for every fan.

The device also has two connectors for RGB LEDs; support for them isn't
implemented (mainly because there is no standardized sysfs interface).

Also, the device has a noise sensor, but the sensor seems to be completely
useless (and very imprecise), so support for it isn't implemented too.

팬 핫플러그와 재감지

24-40

장치는 자동으로 감지되고 드라이버도 자동 적재됩니다. 그러나 시스템이 켜진 상태에서 팬을 연결하거나 분리한 경우에는 구성이 바뀐 사실을 감지하도록 드라이버를 다시 적재해야 합니다.

재적재하지 않으면 새 팬의 `pwm*` 변경은 무시되어 제어할 수 없습니다. 장치에 전용 `detect fans` 명령이 있으며 현재 드라이버는 초기화할 때만 이 명령을 실행하기 때문입니다.

재적재하지 않아도 속도, 전압, 전류 모니터링은 계속 동작합니다. 대안으로 `liquidctl` 같은 사용자 공간 도구가 hidraw 인터페이스를 통해 `detect fans` 명령을 실행할 수 있습니다.

드라이버와 hidraw로 장치에 접근하는 사용자 공간 도구는 알려진 문제 없이 함께 사용할 수 있습니다.

팬 구성 변경 시 동작
상황모니터링pwm 제어조치
부팅 시 존재한 팬동작동작없음
전원 중 새 팬 연결동작재감지 전 무시드라이버 재적재
전원 중 팬 분리남은 채널 동작구성 갱신 필요드라이버 재적재
사용자 공간 대안동작재감지 가능liquidctl detect fans

핫플러그 뒤 모니터링과 제어의 차이를 보여줍니다.

팬 재감지 절차
팬 연결 또는 분리속도·전압·전류 모니터링 확인드라이버 재적재 또는 hidraw 도구 선택detect fans 명령 실행새 pwm 채널 제어 확인

구성 변경 후 제어 채널을 다시 활성화합니다.

Usage Notes
-----------

The device should be autodetected, and the driver should load automatically.

If fans are plugged in/unplugged while the system is powered on, the driver
must be reloaded to detect configuration changes; otherwise, new fans can't
be controlled (`pwm*` changes will be ignored). It is necessary because the
device has a dedicated "detect fans" command, and currently, it is executed only
during initialization. Speed, voltage, current monitoring will work even without
reload. As an alternative to reloading the module, a userspace tool (like
`liquidctl`_) can be used to run "detect fans" command through hidraw interface.

The driver coexists with userspace tools that access the device through hidraw
interface with no known issues.

.. _liquidctl: https://github.com/liquidctl/liquidctl

팬별 측정과 PWM 속성

41-62

`fan[1-3]_input`은 팬 속도를 RPM으로, `curr[1-3]_input`은 공급 전류를 밀리암페어로, `in[0-2]_input`은 공급 전압을 밀리볼트로 보고합니다.

`pwm[1-3]`은 PWM 팬에서는 듀티를, 그 밖의 팬에서는 공급 전압을 제어합니다. 전압 제어 팬은 9~12V 범위이지만 sysfs 값은 항상 0~255이며, 값 1은 9V, 값 255는 12V입니다. 0을 쓰면 팬을 완전히 끕니다.

읽기 전용 `pwm[1-3]_enable`은 장치가 해당 팬을 자체 감지하여 `pwm*` 쓰기로 제어할 수 있으면 1, 아니면 0입니다. `pwm[1-3]_mode`도 읽기 전용이며 PWM 팬이면 1, 비-PWM 팬 또는 미연결이면 0입니다.

`update_interval`은 모든 입력의 갱신 간격을 밀리초로 설정합니다. 기본값은 1000밀리초이고 허용되는 최소값은 250밀리초입니다.

Smart Device v2 sysfs
속성권한의미
fan[1-3]_inputRO팬 속도, RPM
curr[1-3]_inputRO팬 공급 전류, mA
in[0-2]_inputRO팬 공급 전압, mV
pwm[1-3]RW0=꺼짐, 1=9V, 255=12V 또는 PWM 듀티
pwm[1-3]_enableRO감지되어 제어 가능하면 1
pwm[1-3]_modeROPWM 팬 1, 그 밖에는 0
update_intervalRW기본 1000 ms, 최소 250 ms

세 팬 채널의 측정·제어 속성을 정리합니다.

팬 출력 조정
pwm_enable로 제어 가능 여부 확인pwm_mode로 PWM 팬인지 확인0~255 목표값 선택PWM 듀티 또는 9~12V로 변환update_interval에 맞춰 측정 갱신

감지 상태와 팬 방식을 확인한 뒤 출력값을 적용합니다.


Sysfs entries
-------------

=======================        ========================================================
fan[1-3]_input                Fan speed monitoring (in rpm).
curr[1-3]_input                Current supplied to the fan (in milliamperes).
in[0-2]_input                Voltage supplied to the fan (in millivolts).
pwm[1-3]                Controls fan speed: PWM duty cycle for PWM-controlled
                        fans, voltage for other fans. Voltage can be changed in
                        9-12 V range, but the value of the sysfs attribute is
                        always in 0-255 range (1 = 9V, 255 = 12V). Setting the
                        attribute to 0 turns off the fan completely.
pwm[1-3]_enable                1 if the fan can be controlled by writing to the
                        corresponding pwm* attribute, 0 otherwise. The device
                        can control only the fans it detected itself, so the
                        attribute is read-only.
pwm[1-3]_mode                Read-only, 1 for PWM-controlled fans, 0 for other fans
                        (or if no fan connected).
update_interval                The interval at which all inputs are updated (in
                        milliseconds). The default is 1000ms. Minimum is 250ms.
=======================        ========================================================