← Documents Documentation/ABI/testing/sysfs-driver-hid-roccat-kone GitHub 원문 ↗

Linux 6.18.37 · ABI / testing

Roccat Kone mouse sysfs ABI

Roccat Kone의 DPI·profile·firmware, 975-byte profiles, 36-byte settings, startup profile, TCU calibration과 detected weight를 설명합니다.

Source pathDocumentation/ABI/testing/sysfs-driver-hid-roccat-kone
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

DPI, active profile and firmware readback

sysfs-driver-hid-roccat-kone:1-44

Read-only raw DPI code를 800-3200 DPI로 변환하고 active profile과 firmware integer를 읽으며 firmware는 decimal point를 두 자리 이동합니다.

Profiles, settings and startup profile

sysfs-driver-hid-roccat-kone:45-87

Profile 1-5는 각각 975 bytes, settings는 36 bytes 고정 payload이며 startup_profile 1-5는 write 즉시 active profile도 전환합니다.

Tracking calibration and mouse weight

sysfs-driver-hid-roccat-kone:88-125

TCU는 0 off·1 calibration/start로 mousepad laser power를 맞추고 weight raw value 0-4는 none 또는 5-20g 추에 대응합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/kone/roccatkone<minor>/actual_dpi
2 Date: March 2010
3 Contact: Stefan Achatz <[email protected]>
4 Description: It is possible to switch the dpi setting of the mouse with the
5 press of a button.
6
7 When read, this file returns the raw number of the actual dpi
8 setting reported by the mouse. This number has to be further
9 processed to receive the real dpi value:
10
11 ===== =====
12 VALUE DPI
13 ===== =====
14 1 800
15 2 1200
16 3 1600
17 4 2000
18 5 2400
19 6 3200
20 ===== =====
21
22 This file is readonly.
23 Users: http://roccat.sourceforge.net
24
25 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/kone/roccatkone<minor>/actual_profile
26 Date: March 2010
27 Contact: Stefan Achatz <[email protected]>
28 Description: When read, this file returns the number of the actual profile.
29
30 This file is readonly.
31 Users: http://roccat.sourceforge.net
32
33 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/kone/roccatkone<minor>/firmware_version
34 Date: March 2010
35 Contact: Stefan Achatz <[email protected]>
36 Description: When read, this file returns the raw integer version number of the
37 firmware reported by the mouse. Using the integer value eases
38 further usage in other programs. To receive the real version
39 number the decimal point has to be shifted 2 positions to the
40 left. E.g. a returned value of 138 means 1.38
41
42 This file is readonly.
43 Users: http://roccat.sourceforge.net
44
45 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/kone/roccatkone<minor>/profile[1-5]
46 Date: March 2010
47 Contact: Stefan Achatz <[email protected]>
48 Description: The mouse can store 5 profiles which can be switched by the
49 press of a button. A profile holds information like button
50 mappings, sensitivity, the colors of the 5 leds and light
51 effects.
52
53 When read, these files return the respective profile. The
54 returned data is 975 bytes in size.
55
56 When written, this file lets one write the respective profile
57 data back to the mouse. The data has to be 975 bytes long.
58
59 The mouse will reject invalid data, whereas the profile number
60 stored in the profile doesn't need to fit the number of the
61 store.
62 Users: http://roccat.sourceforge.net
63
64 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/kone/roccatkone<minor>/settings
65 Date: March 2010
66 Contact: Stefan Achatz <[email protected]>
67 Description: When read, this file returns the settings stored in the mouse.
68 The size of the data is 36 bytes and holds information like the
69 startup_profile, tcu state and calibration_data.
70
71 When written, this file lets write settings back to the mouse.
72 The data has to be 36 bytes long. The mouse will reject invalid
73 data.
74 Users: http://roccat.sourceforge.net
75
76 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/kone/roccatkone<minor>/startup_profile
77 Date: March 2010
78 Contact: Stefan Achatz <[email protected]>
79 Description: The integer value of this attribute ranges from 1 to 5.
80
81 When read, this attribute returns the number of the profile
82 that's active when the mouse is powered on.
83
84 When written, this file sets the number of the startup profile
85 and the mouse activates this profile immediately.
86 Users: http://roccat.sourceforge.net
87
88 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/kone/roccatkone<minor>/tcu
89 Date: March 2010
90 Contact: Stefan Achatz <[email protected]>
91 Description: The mouse has a "Tracking Control Unit" which lets the user
92 calibrate the laser power to fit the mousepad surface.
93 When read, this file returns the current state of the TCU,
94 where 0 means off and 1 means on.
95
96 Writing 0 in this file will switch the TCU off.
97
98 Writing 1 in this file will start the calibration which takes
99 around 6 seconds to complete and activates the TCU.
100
101 Users: http://roccat.sourceforge.net
102
103 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/kone/roccatkone<minor>/weight
104 Date: March 2010
105 Contact: Stefan Achatz <[email protected]>
106 Description: The mouse can be equipped with one of four supplied weights
107 ranging from 5 to 20 grams which are recognized by the mouse
108 and its value can be read out. When read, this file returns the
109 raw value returned by the mouse which eases further processing
110 in other software.
111
112 The values map to the weights as follows:
113
114 ===== ======
115 VALUE WEIGHT
116 ===== ======
117 0 none
118 1 5g
119 2 10g
120 3 15g
121 4 20g
122 ===== ======
123
124 This file is readonly.
125 Users: http://roccat.sourceforge.net
126

3. 한국어 전문 번역

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

Current mouse DPI code

1-24
항목한국어 전문 번역
What/sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/kone/roccatkone<minor>/actual_dpi
Date2010년 3월
ContactStefan Achatz <[email protected]>
DescriptionMouse button으로 DPI setting을 전환할 수 있습니다. Read하면 mouse가 report한 actual DPI setting의 raw number를 반환하며 real DPI를 얻으려면 표에 따라 추가 처리해야 합니다. Read-only file입니다.
Usershttp://roccat.sourceforge.net
Roccat Kone raw DPI mapping
Raw valueDPI
1800
21200
31600
42000
52400
63200

원문의 VALUE-DPI 표를 여섯 행으로 구조화했습니다.

Current mouse profile

25-32
항목한국어 전문 번역
What/sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/kone/roccatkone<minor>/actual_profile
Date2010년 3월
ContactStefan Achatz <[email protected]>
DescriptionRead하면 actual profile number를 반환합니다. Read-only file입니다.
Usershttp://roccat.sourceforge.net

Mouse firmware version

33-44
항목한국어 전문 번역
What/sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/kone/roccatkone<minor>/firmware_version
Date2010년 3월
ContactStefan Achatz <[email protected]>
DescriptionRead하면 mouse가 report한 firmware의 raw integer version number를 반환합니다. 다른 program에서 처리하기 쉽도록 integer를 사용하며 real version은 decimal point를 왼쪽으로 두 자리 이동해 구합니다. 예를 들어 138은 1.38입니다. Read-only file입니다.
Usershttp://roccat.sourceforge.net
Kone firmware-version conversion
Read raw integer firmware_versionMove decimal point two positions leftExample: 138 becomes 1.38

Raw integer에서 display version을 얻는 decimal conversion입니다.

On-board profiles 1 through 5

45-63
항목한국어 전문 번역
What/sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/kone/roccatkone<minor>/profile[1-5]
Date2010년 3월
ContactStefan Achatz <[email protected]>
DescriptionMouse는 button으로 전환할 수 있는 5개 profiles를 저장합니다. Profile에는 button mappings, sensitivity, 5개 LEDs의 colors와 light effects 등이 들어 있습니다. Read하면 각 975-byte profile을 반환하고 write하면 정확히 975 bytes인 profile data를 mouse에 씁니다. Mouse는 invalid data를 거부하지만 profile 안에 저장된 profile number가 storage number와 일치할 필요는 없습니다.
Usershttp://roccat.sourceforge.net
Kone fixed-size persistent records
RecordSizeContents
profile[1-5]975 bytes eachMappings, sensitivity, 5 LED colors and effects
settings36 bytesstartup_profile, TCU state, calibration_data

Profiles와 global settings의 payload size 및 contents입니다.

Mouse settings record

64-75
항목한국어 전문 번역
What/sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/kone/roccatkone<minor>/settings
Date2010년 3월
ContactStefan Achatz <[email protected]>
DescriptionRead하면 mouse에 저장된 36-byte settings를 반환하며 startup_profile, TCU state와 calibration_data 같은 정보를 담습니다. Write data도 정확히 36 bytes여야 하며 mouse는 invalid data를 거부합니다.
Usershttp://roccat.sourceforge.net

Startup profile selection

76-87
항목한국어 전문 번역
What/sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/kone/roccatkone<minor>/startup_profile
Date2010년 3월
ContactStefan Achatz <[email protected]>
DescriptionInteger value 범위는 1부터 5입니다. Read하면 mouse power-on 시 active한 profile number를 반환합니다. Write하면 startup profile number를 설정하고 mouse가 이 profile을 즉시 activate합니다.
Usershttp://roccat.sourceforge.net
Kone startup and TCU controls
Attribute / valueEffect
startup_profile = 1-5Set and immediately activate
tcu = 0Switch Tracking Control Unit off
tcu = 1Run about 6 seconds of calibration and enable TCU

Profile selection과 tracking calibration write behavior입니다.

Tracking Control Unit calibration

88-102
항목한국어 전문 번역
What/sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/kone/roccatkone<minor>/tcu
Date2010년 3월
ContactStefan Achatz <[email protected]>
DescriptionTracking Control Unit은 mousepad surface에 맞게 laser power를 calibrate합니다. Read하면 current TCU state를 반환하며 0은 off, 1은 on입니다. 0을 write하면 TCU를 끄고 1을 write하면 약 6초가 걸리는 calibration을 시작한 뒤 TCU를 activate합니다.
Usershttp://roccat.sourceforge.net

Detected mouse weight

103-125
항목한국어 전문 번역
What/sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/kone/roccatkone<minor>/weight
Date2010년 3월
ContactStefan Achatz <[email protected]>
DescriptionMouse에는 5-20 grams 범위의 supplied weights 네 개 중 하나를 장착할 수 있고 mouse가 이를 인식합니다. Read하면 software 처리에 적합한 raw value를 반환합니다. Read-only file입니다.
Usershttp://roccat.sourceforge.net
Roccat Kone raw weight mapping
Raw valueWeight
0None
15g
210g
315g
420g

원문의 VALUE-WEIGHT 표를 다섯 행으로 구조화했습니다.