ksv1986
d16df8d100
hidpp10: fix crash if device failed to initialize properly
...
Signed-off-by: ksv1986 <ksv0x07c2@gmail.com >
2020-04-26 15:07:23 +01:00
Filipe Laíns
4b1e49d522
hidpp20: fix report type in ColorLedEffects (0x8070) set_zone_effect
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-04-26 15:07:06 +01:00
Filipe Laíns
786cebcb0b
hidpp20: cleanup, use short reports when possible
...
libratbag has a quite communication-intensive setup routine. This patch
uses short reports when possible. Using short reports will speed up the
setup process and have a lower power consumption, which is relevant for
wireless devices.
We now check the report descriptor for the supported report IDs and
adjust the report type used based on the device capabilities. Because of
that, this patch should work without any issues as the report type will
get overwritten if it not supported.
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-04-26 15:07:06 +01:00
Filipe Laíns
d53454bcb3
hidpp10: fix circular loop on hidpp10_onboard_profiles_read_macro
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-04-26 15:06:25 +01:00
Filipe Laíns
a0def65b64
hidpp10: add debug log on hidpp10_onboard_profiles_parse_macro fail
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-04-26 15:06:25 +01:00
Stephan Lachnit
2a40279903
doc: replace some tabs with spaces
...
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com >
2020-04-26 15:06:08 +01:00
Filipe Laíns
02c95422f0
hidpp20: fix mapping button to consumer usages
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-04-18 02:31:17 +01:00
Filipe Laíns
4ce1cf2807
hidpp10: convert key actions to macro
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-04-18 02:31:17 +01:00
Filipe Laíns
89168f2187
hidpp10: add support from writting simple macro actions
...
Fixes #900
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-04-18 02:31:17 +01:00
Filipe Laíns
bb92337268
ci: remove dbus policy dir hack in arch
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-04-18 02:29:05 +01:00
Filipe Laíns
a8316c07f3
ratbagd: create path if not present before installing dbus policy dir
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-04-18 02:29:05 +01:00
Filipe Laíns
39769c57dd
ci: save cache between jobs for fedora and arch
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-04-17 05:57:38 +01:00
Filipe Laíns
200a8af7a7
ci: cache packages in arch
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-04-17 05:57:38 +01:00
FFY00
fcf9f7745d
ci: add arch
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-04-17 05:57:38 +01:00
Filipe Laíns
633c9fc55d
libratbag-data: add missing header entry ( #958 )
...
Dicovered in #957
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-04-16 15:59:50 +02:00
Peter Hutterer
ee73434ead
circleci: bump to use ubuntu 19.10
...
The 19.04 repos give us 404s, so let's update to the next version.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2020-04-16 08:01:53 +10:00
Filipe Laíns
d60b1c9d71
data: overwrite led count in G305
...
Fixes #949
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-04-14 19:00:12 +01:00
Filipe Laíns
88a60f55b4
hidpp20: allow overwritting the led count
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-04-14 19:00:12 +01:00
D33M0N
dba202ae8b
data: added bluetooth ID to the MX Anywhere 2
2020-04-03 19:27:02 +01:00
Filipe Laíns
6cdcce9de4
hidpp20: log error number when commiting
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-04-03 17:02:44 +02:00
Filipe Laíns
e2c3373145
hidpp10: log errors when comitting
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-04-03 17:02:44 +02:00
Filipe Laíns
02575a9008
hidpp20: add button/macro opcodes
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-03-22 19:17:47 +00:00
Filipe Laíns
1097b1ba68
meson: silence swig warnings
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-03-22 19:13:58 +00:00
Filipe Laíns
77b67775da
ratbagctl: don't print empty properties
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-03-22 19:08:58 +00:00
Filipe Laíns
5b23c9ebae
data: add Logitech M720
...
Fixes #939
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-03-22 18:58:07 +00:00
Stephan Lachnit
6d0974be25
circleci: add diffutils dependency for fedora
...
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com >
2020-02-21 15:21:42 +01:00
simrat39
ea9111a2a6
devices: Set g402 LedTypes
...
Signed-off-by: simrat39 <simrats169169@gmail.com >
2020-02-10 15:49:45 +00:00
Filipe Laíns
42787ee422
meson: libratbag 0.13
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
v0.13
2020-02-09 23:32:55 +00:00
Filipe Laíns
611dd9be0d
hidpp20: keep unsupported effects
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-02-09 23:31:42 +00:00
Filipe Laíns
fd20f9e642
hidpp20: simplify hidpp20_onboard_profiles_write_led
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-02-09 23:31:42 +00:00
Filipe Laíns
9be5576967
hidpp20: add some missing led effects
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-02-09 23:31:42 +00:00
Filipe Laíns
9fe511fcc5
hidpp20: add profile field to special bindings in onboard profiles
...
New devices define a profile field in the button configuration. This
allows us to map a button to set the target profile as active. Even
though we don't support configuring this right now, some devices, such
as the G915/G815, come pre-configured with this action on th M-Keys.
This patch makes us able to read and write those settings, this way they
don't get lost when we write a profile to the device.
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-02-09 23:31:42 +00:00
Filipe Laíns
f0b69aab19
hidpp20: only set active resolution if there are resolutions on 0x8100
...
This prevents us from trying to set a resolution on keyboards.
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-02-09 23:31:42 +00:00
Filipe Laíns
7610b80ced
hidpp20: log errors when failed to write sector
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-02-09 23:31:42 +00:00
Filipe Laíns
f0a05bb522
data: add the Logitech G Powerplay
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-02-10 08:24:10 +10:00
Torbjørn Fylling
2669cc28b2
data: add support for Logitech G815 keyboard
2020-01-31 10:13:37 +00:00
Peter Hutterer
302702d94a
Declare a bunch of structs as extern
...
gcc 10 complains about multiple definitions of these when linking.
/usr/bin/ld: libhidpp.a(src_hidpp-generic.c.o):/builddir/build/BUILD/libratbag-0.12/x86_64-redhat-linux-gnu/../src/libratbag-private.h:588:
multiple definition of `etekcity_driver';
libutil.a(src_libratbag-util.c.o):/builddir/build/BUILD/libratbag-0.12/x86_64-redhat-linux-gnu/../src/libratbag-private.h:588:
first defined here
Special case here is the test_driver struct, without the extern gcc seems to
think it's a new struct with all zeros, causing a segfault when we then try to
strcmp the test driver name.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2020-01-29 02:12:28 +00:00
Filipe Laíns
e1136c4d30
hidpp20: add debug log when failed to read led (8070, getZoneEffects)
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-01-28 21:41:45 +01:00
Filipe Laíns
0012853a1d
hidpp20: make sure getZoneEffect (8070) is supported
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-01-28 21:41:45 +01:00
Filipe Laíns
afb85f868c
hidpp20: change unsupported effect log msg to debug verbosity
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-01-28 21:41:45 +01:00
Filipe Laíns
b76fcdadde
hidpp20: enable 0x8070 (ColorLedEffects) standalone use
...
0x8071 is still missing but as of now we don't have any device that
needs it.
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-01-28 21:41:45 +01:00
Stephan Lachnit
ba7c092ee2
driver-hidpp20: replace goto with return
...
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com >
2020-01-08 07:36:52 +10:00
Stephan Lachnit
3483bd8c14
driver-hidpp20: minor cleanup
...
Removes useless setting of the dpi index when updating resolutions.
Removes weird empty line.
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com >
2020-01-08 07:36:52 +10:00
Filipe Laíns
0fb0eb3d42
hidpp20: log errors in hidpp20drv_commit
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-01-06 19:22:57 +00:00
Filipe Laíns
5fb1f4429d
ratbagd: log error if failed to commit
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-01-06 19:22:57 +00:00
Filipe Laíns
5f5e294598
hidpp20: add support for reading/writing the report rate via 0x8060
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-01-06 19:18:06 +00:00
Filipe Laíns
b4218737cd
hidpp20: fix bug that was unsetting some capabilities
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-01-06 19:18:06 +00:00
Filipe Laíns
3875bb70fd
hidpp20: implement dirty flag for report rate
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-01-06 19:13:01 +00:00
Filipe Laíns
e9d67b7235
ratbag: add dirty flag for report rate
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-01-06 19:13:01 +00:00
Filipe Laíns
8a476a8724
hidpp: fix supported_report_types data type
...
Signed-off-by: Filipe Laíns <lains@archlinux.org >
2020-01-03 22:40:03 +00:00