forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HID: roccat: fix actual/startup profile sysfs attribute in koneplus
startup_profile and actual_profile didn't work as expected. Also as the actual profile is persistent, the distinction between the two was ambiguous, so both use the same code now and startup_profile has been deprecated. Also the event is now propagated through chardev. The userland tool has been updated to support this change. Signed-off-by: Stefan Achatz <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
- Loading branch information
Stefan Achatz
authored and
Jiri Kosina
committed
May 18, 2011
1 parent
dd2ed48
commit b50f315
Showing
4 changed files
with
65 additions
and
57 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
Documentation/ABI/obsolete/sysfs-driver-hid-roccat-koneplus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/koneplus/roccatkoneplus<minor>/startup_profile | ||
Date: October 2010 | ||
Contact: Stefan Achatz <[email protected]> | ||
Description: The integer value of this attribute ranges from 0-4. | ||
When read, this attribute returns the number of the actual | ||
profile. This value is persistent, so its equivalent to the | ||
profile that's active when the mouse is powered on next time. | ||
When written, this file sets the number of the startup profile | ||
and the mouse activates this profile immediately. | ||
Please use actual_profile, it does the same thing. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/koneplus/roccatkoneplus<minor>/actual_profile | ||
Date: October 2010 | ||
Contact: Stefan Achatz <[email protected]> | ||
Description: When read, this file returns the number of the actual profile in | ||
range 0-4. | ||
This file is readonly. | ||
Description: The integer value of this attribute ranges from 0-4. | ||
When read, this attribute returns the number of the actual | ||
profile. This value is persistent, so its equivalent to the | ||
profile that's active when the mouse is powered on next time. | ||
When written, this file sets the number of the startup profile | ||
and the mouse activates this profile immediately. | ||
Users: http://roccat.sourceforge.net | ||
|
||
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/koneplus/roccatkoneplus<minor>/firmware_version | ||
|
@@ -89,16 +92,6 @@ Description: The mouse has a tracking- and a distance-control-unit. These | |
This file is writeonly. | ||
Users: http://roccat.sourceforge.net | ||
|
||
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/koneplus/roccatkoneplus<minor>/startup_profile | ||
Date: October 2010 | ||
Contact: Stefan Achatz <[email protected]> | ||
Description: The integer value of this attribute ranges from 0-4. | ||
When read, this attribute returns the number of the profile | ||
that's active when the mouse is powered on. | ||
When written, this file sets the number of the startup profile | ||
and the mouse activates this profile immediately. | ||
Users: http://roccat.sourceforge.net | ||
|
||
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/koneplus/roccatkoneplus<minor>/tcu | ||
Date: October 2010 | ||
Contact: Stefan Achatz <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters