Skip to content

Commit 47dbdbf

Browse files
Stefan AchatzJiri Kosina
authored andcommitted
HID: roccat: Add support for Roccat Kone[+] v2
This patch adds support for Roccat Kone[+] gaming mouse. Kone[+] is an enhanced version of the old Kone with more memory for macros, a better sensor and more functionality. This driver is conceptual similar to the existing Kone and Pyra drivers. Userland tools can soon be found at http://sourceforge.net/projects/roccat Signed-off-by: Stefan Achatz <erazor_de@users.sourceforge.net> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent 14a057f commit 47dbdbf

7 files changed

Lines changed: 1187 additions & 0 deletions

File tree

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/actual_profile
2+
Date: October 2010
3+
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
4+
Description: When read, this file returns the number of the actual profile in
5+
range 0-4.
6+
This file is readonly.
7+
8+
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/firmware_version
9+
Date: October 2010
10+
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
11+
Description: When read, this file returns the raw integer version number of the
12+
firmware reported by the mouse. Using the integer value eases
13+
further usage in other programs. To receive the real version
14+
number the decimal point has to be shifted 2 positions to the
15+
left. E.g. a returned value of 121 means 1.21
16+
This file is readonly.
17+
18+
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/macro
19+
Date: October 2010
20+
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
21+
Description: The mouse can store a macro with max 500 key/button strokes
22+
internally.
23+
When written, this file lets one set the sequence for a specific
24+
button for a specific profile. Button and profile numbers are
25+
included in written data. The data has to be 2082 bytes long.
26+
This file is writeonly.
27+
28+
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/profile_buttons
29+
Date: August 2010
30+
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
31+
Description: The mouse can store 5 profiles which can be switched by the
32+
press of a button. A profile is split in settings and buttons.
33+
profile_buttons holds informations about button layout.
34+
When written, this file lets one write the respective profile
35+
buttons back to the mouse. The data has to be 77 bytes long.
36+
The mouse will reject invalid data.
37+
Which profile to write is determined by the profile number
38+
contained in the data.
39+
This file is writeonly.
40+
41+
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/profile[1-5]_buttons
42+
Date: August 2010
43+
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
44+
Description: The mouse can store 5 profiles which can be switched by the
45+
press of a button. A profile is split in settings and buttons.
46+
profile_buttons holds informations about button layout.
47+
When read, these files return the respective profile buttons.
48+
The returned data is 77 bytes in size.
49+
This file is readonly.
50+
51+
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/profile_settings
52+
Date: October 2010
53+
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
54+
Description: The mouse can store 5 profiles which can be switched by the
55+
press of a button. A profile is split in settings and buttons.
56+
profile_settings holds informations like resolution, sensitivity
57+
and light effects.
58+
When written, this file lets one write the respective profile
59+
settings back to the mouse. The data has to be 43 bytes long.
60+
The mouse will reject invalid data.
61+
Which profile to write is determined by the profile number
62+
contained in the data.
63+
This file is writeonly.
64+
65+
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/profile[1-5]_settings
66+
Date: August 2010
67+
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
68+
Description: The mouse can store 5 profiles which can be switched by the
69+
press of a button. A profile is split in settings and buttons.
70+
profile_settings holds informations like resolution, sensitivity
71+
and light effects.
72+
When read, these files return the respective profile settings.
73+
The returned data is 43 bytes in size.
74+
This file is readonly.
75+
76+
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/sensor
77+
Date: October 2010
78+
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
79+
Description: The mouse has a tracking- and a distance-control-unit. These
80+
can be activated/deactivated and the lift-off distance can be
81+
set. The data has to be 6 bytes long.
82+
This file is writeonly.
83+
84+
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/startup_profile
85+
Date: October 2010
86+
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
87+
Description: The integer value of this attribute ranges from 0-4.
88+
When read, this attribute returns the number of the profile
89+
that's active when the mouse is powered on.
90+
When written, this file sets the number of the startup profile
91+
and the mouse activates this profile immediately.
92+
93+
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/tcu
94+
Date: October 2010
95+
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
96+
Description: When written a calibration process for the tracking control unit
97+
can be initiated/cancelled.
98+
The data has to be 3 bytes long.
99+
This file is writeonly.
100+
101+
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/tcu_image
102+
Date: October 2010
103+
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
104+
Description: When read the mouse returns a 30x30 pixel image of the
105+
sampled underground. This works only in the course of a
106+
calibration process initiated with tcu.
107+
The returned data is 1028 bytes in size.
108+
This file is readonly.

‎drivers/hid/Kconfig‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,13 @@ config HID_ROCCAT_KONE
406406
---help---
407407
Support for Roccat Kone mouse.
408408

409+
config HID_ROCCAT_KONEPLUS
410+
tristate "Roccat Kone[+] mouse support"
411+
depends on USB_HID
412+
select HID_ROCCAT
413+
---help---
414+
Support for Roccat Kone[+] mouse.
415+
409416
config HID_ROCCAT_PYRA
410417
tristate "Roccat Pyra mouse support"
411418
depends on USB_HID

‎drivers/hid/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ obj-$(CONFIG_HID_PETALYNX) += hid-petalynx.o
5656
obj-$(CONFIG_HID_PICOLCD) += hid-picolcd.o
5757
obj-$(CONFIG_HID_ROCCAT) += hid-roccat.o
5858
obj-$(CONFIG_HID_ROCCAT_KONE) += hid-roccat-kone.o
59+
obj-$(CONFIG_HID_ROCCAT_KONEPLUS) += hid-roccat-koneplus.o
5960
obj-$(CONFIG_HID_ROCCAT_PYRA) += hid-roccat-pyra.o
6061
obj-$(CONFIG_HID_SAMSUNG) += hid-samsung.o
6162
obj-$(CONFIG_HID_SMARTJOYPLUS) += hid-sjoy.o

‎drivers/hid/hid-core.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1397,6 +1397,7 @@ static const struct hid_device_id hid_have_special_driver[] = {
13971397
{ HID_USB_DEVICE(USB_VENDOR_ID_QUANTA, USB_DEVICE_ID_QUANTA_OPTICAL_TOUCH) },
13981398
{ HID_USB_DEVICE(USB_VENDOR_ID_QUANTA, USB_DEVICE_ID_PIXART_IMAGING_INC_OPTICAL_TOUCH_SCREEN) },
13991399
{ HID_USB_DEVICE(USB_VENDOR_ID_ROCCAT, USB_DEVICE_ID_ROCCAT_KONE) },
1400+
{ HID_USB_DEVICE(USB_VENDOR_ID_ROCCAT, USB_DEVICE_ID_ROCCAT_KONEPLUS) },
14001401
{ HID_USB_DEVICE(USB_VENDOR_ID_ROCCAT, USB_DEVICE_ID_ROCCAT_PYRA_WIRED) },
14011402
{ HID_USB_DEVICE(USB_VENDOR_ID_SAMSUNG, USB_DEVICE_ID_SAMSUNG_IR_REMOTE) },
14021403
{ HID_USB_DEVICE(USB_VENDOR_ID_SAMSUNG, USB_DEVICE_ID_SAMSUNG_WIRELESS_KBD_MOUSE) },

‎drivers/hid/hid-ids.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,7 @@
485485

486486
#define USB_VENDOR_ID_ROCCAT 0x1e7d
487487
#define USB_DEVICE_ID_ROCCAT_KONE 0x2ced
488+
#define USB_DEVICE_ID_ROCCAT_KONEPLUS 0x2d51
488489
#define USB_DEVICE_ID_ROCCAT_PYRA_WIRED 0x2c24
489490
#define USB_DEVICE_ID_ROCCAT_PYRA_WIRELESS 0x2cf6
490491

0 commit comments

Comments
 (0)