Yaroslav Chvanov
f69457c280
sinowealth: add breathing_mode to config report
2022-02-01 07:20:28 +10:00
Yaroslav Chvanov
756fee1202
sinowealth: sort values in an enum
2022-02-01 07:20:28 +10:00
Yaroslav Chvanov
d4126463e4
sinowealth: don't say that amount of breathing colors is constant
...
Based on information in gloryctl's documentation, it's not. I guess it
was marked as such because Glorious software doesn't allow to change it.
2022-02-01 07:20:28 +10:00
Yaroslav Chvanov
00832cb9f0
sinowealth: add a lift off distance value to config report
2022-02-01 07:20:28 +10:00
Yaroslav Chvanov
866d4e6433
sinowealth: put some macros into enums
2022-02-01 07:20:28 +10:00
Yaroslav Chvanov
cbba00f997
sinowealth: use a map to convert report rates
2022-02-01 07:20:28 +10:00
Yaroslav Chvanov
d2e4fcc23e
sinowealth: put report rate conversion comparison in order
...
And also not use some random number in the comparison.
2022-02-01 07:20:28 +10:00
Yaroslav Chvanov
f0c66d0e1f
sinowealth: separate config to real config and report_rate nibbles
2022-02-01 07:20:28 +10:00
Yaroslav Chvanov
b2fb91e261
sinowealth: use correct bits for report rate
...
Turns out it takes the whole nibble, not just three bits.
2022-02-01 07:20:28 +10:00
Yaroslav Chvanov
1a64d2b85d
Add a TODO to make ratbag_button_action_match support macro actions
2022-02-01 07:11:43 +10:00
Yaroslav Chvanov
8f5fdf8590
Fix ratbag_button_action_match not matching on type NONE
2022-02-01 07:11:43 +10:00
Yaroslav Chvanov
baad36060d
util: fix a string of text being printed out of nowhere
2022-02-01 07:06:38 +10:00
Yaroslav Chvanov
7ecabea70d
sinowealth: remove a redundant comment
2022-01-28 10:31:09 +10:00
Yaroslav Chvanov
c0c8d6c544
sinowealth: increase log level of printed firmware version
2022-01-28 10:31:09 +10:00
Yaroslav Chvanov
37587bb99c
sinowealth: fix a memory leak
...
We were getting profiles, but never unreferenced them afterwards.
2022-01-28 10:31:09 +10:00
Yaroslav Chvanov
cc2fff9c06
sinowealth: rename some functions to be more clear
...
So that they would match button data reading later on.
2022-01-28 10:31:09 +10:00
Yaroslav Chvanov
b80d3ac0a3
sinowealth: use the detected LED count
...
I put this in a separate commit as 99% of this is just a change of
indentation levels, which doesn't look nice in git.
2022-01-28 10:31:09 +10:00
Yaroslav Chvanov
a757180d60
sinowealth: detect LED count at run-time
2022-01-28 10:31:09 +10:00
Yaroslav Chvanov
8c0124d654
sinowealth: move raw data reading from init function to probe function
2022-01-28 10:31:09 +10:00
Yaroslav Chvanov
b5d41e3657
sinowealth: put reading of raw configuration data into a helper
2022-01-28 10:31:09 +10:00
Yaroslav Chvanov
bfd2fc9969
sinowealth: print firmware version on profile init, not on reading
2022-01-28 10:31:09 +10:00
Yaroslav Chvanov
566d160de3
sinowealth: make init_profile return error codes
2022-01-28 10:31:09 +10:00
Peter Hutterer
44a9959344
roccat: name two fields correctly
...
In hindsight, these should've been obvious.
2022-01-20 19:32:14 +00:00
Peter Hutterer
03891189da
hidpp20: add missing #define to the feature report strings ( #1237 )
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2021-12-06 08:46:40 +10:00
Ilya Guterman
2c83f9c3ef
add static assert
2021-11-04 03:36:41 +02:00
Ilya Guterman
b71f439ed6
fix ci failures
2021-11-04 03:36:41 +02:00
Ilya Guterman
dff102be43
steelseries: prefix hidraw writes with 0
2021-11-04 03:36:41 +02:00
staticssleever668
6c8a2d36fe
sinowealth: use proper config size when writing
2021-10-26 11:57:53 +03:00
staticssleever668
875aae6985
sinowealth: add support for mice with longer configuration data
2021-10-26 11:57:53 +03:00
Ilya Guterman
a55297e0fa
fix button count and default report rate always zero
2021-10-20 11:29:55 +03:00
staticssleever668
fa95abbc33
hidpp20: give some structures names
...
Fixes SWIG's 503 warnings.
2021-10-16 22:43:37 +03:00
staticssleever668
48d1b21036
driver-hidpp20: cast an internal log priority enumeration to the general one
...
Fixes an 'enum-conversion' warning by clang.
2021-10-16 22:43:37 +03:00
staticssleever668
904aedc555
driver-hidpp10: cast an internal log priority enumeration to the general one
...
Fixes an 'enum-conversion' warning by clang.
2021-10-16 22:43:37 +03:00
staticssleever668
4fa8663cfb
driver-hidpp10: remove a redundant character array null check
...
It is never null. Fixes a 'pointer-bool-conversion' warning by clang.
2021-10-16 22:43:37 +03:00
Tayllan
aef92645b7
hidpp20: allow setting a default buttons count
...
PR #1212
2021-10-16 20:08:44 +01:00
staticssleever668
2a0a3cf203
steelseries: add support for changing LEDs on Rival 100
2021-10-16 19:31:11 +01:00
staticssleever668
f96ba13f07
libratbag-data: add 'Rival100' quirk to SteelSeries driver
2021-10-16 19:31:11 +01:00
staticssleever668
724d31c8fe
steelseries: make settings unique to SteelSeries Sensei RAW a quirk
2021-10-16 19:31:11 +01:00
staticssleever668
66e44d76b9
steelseries: add 'Quirk' setting
2021-10-16 19:31:11 +01:00
Filipe Laíns
e908871e82
hidpp20: allow setting a default report rate ( #969 )
...
In case we can't get the report rate value from the device, allow
setting in the device file.
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2021-10-11 02:14:02 +03:00
Kristian Klausen
9732aa009e
steelseries: only use the HID vendor device
...
Rival mice are composite devices with multiple HID devices and only the
HID vendor device can be used to configure the device.
Tested with a SteelSeries Rival 300 (1038:1710).
Fix #888
2021-10-10 21:10:20 +01:00
LittleWhite-tb
5c3df3b218
Support for Roccat Kone EMP ( #1131 )
2021-10-07 16:00:36 +10:00
staticssleever668
37ae638a7c
steelseries: improve v1 LED breathing duration configuration
...
SteelSeries mice using V1 driver don't support changing LED breathing
duration precisely, so it was always locked on 5 seconds. Now we try to
match desired duration with factory preset values: 3, 5 and 7 seconds.
2021-07-24 22:05:49 +01:00
staticssleever668
6a071dc1ee
sinowealth: expose all eight resolution slots
...
It was limited to six because Glorious' software exposes only so many of
them, but SinoWealth mice firmware allows up to eight.
2021-07-24 22:05:16 +01:00
staticssleever668
7c9a75da9e
sinowealth: add support for changing report rate
2021-07-24 22:04:55 +01:00
staticssleever668
dd1c72a1d0
sinowealth: add support for reading current report rate
2021-07-24 22:04:55 +01:00
staticssleever668
8d7cbcba4f
steelseries: fix report rate changing for version 1 devices
...
Judging by rivalcfg's data for Sensei Raw, Rival 100, Rival (300) and Kinzu v2 (all are version 1 devices in our data), it should have been like that from the beginning.
Confirmed on Rival 100.
2021-07-24 22:04:14 +01:00
staticssleever668
4075227eb7
sinowealth: add support for changing active resolution number
2021-07-24 22:03:44 +01:00
Stephan Lachnit
abcec1d349
Register Roccat Kone Pure driver
...
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com >
2021-07-24 21:25:56 +01:00
Stephen Kitt
366f19abdd
openinput: fix "Unknown" typo
...
PR #1187
2021-06-30 19:21:47 +01:00