1
0
mirror of https://github.com/MatMoul/g810-led.git synced 2024-12-22 17:06:10 +00:00
Commit Graph

401 Commits

Author SHA1 Message Date
efa3c35e74 Version 0.4.3 2022-11-30 19:52:57 +01:00
MatMoul
cb3e552119
Merge pull request #297 from skitt/device-permissions
Rely on uaccess to control device access
2022-11-30 19:29:43 +01:00
Stephen Kitt
e2b486fd1b
Rely on uaccess to control device access
The udev rules currently make supported device nodes world-readable
and writable, which means that any process on the system can read
traffic from keyboards including passwords etc. To avoid this, while
still allowing the "controlling" user to run g810-led without being
root, this patch adds a uaccess tag; this ensures that the user at the
console has write access to the devices. The mode is also changed to
660 to ensure that existing device nodes are fixed on upgrade.

Thanks to Xavi Drudis Ferran for bringing this to my attention.

Fixes: #293
Signed-off-by: Stephen Kitt <steve@sk2.org>
2022-11-28 21:05:05 +01:00
MatMoul
db6fae8e80
Merge pull request #241 from dioni21/abnt_keyboard
Add new key for ABNT keyboards: abnt_slash
2021-09-05 03:29:42 +02:00
MatMoul
e0090759c3
Merge pull request #250 from panticz/patch-1
Update INSTALL.md
2020-11-06 19:16:43 +01:00
MatMoul
0f44df71ba
Merge pull request #245 from pearsonk/check_perms
Add error context to failures to open devices
2020-11-06 19:16:09 +01:00
panticz
a4bf20e22d
Update INSTALL.md
use sudo on Debian / Ubuntu
2020-10-28 20:48:31 +01:00
Kevin Pearson
0998cc370d Add error context to failures to open devices
This should address common misconceptions of "No matching or compatible
device found" by isolating permission problems from lack of a matching
device in the system.
2020-10-01 10:55:03 -04:00
Joao Carlos Mendes Luis
e0cade190f Add new key for ABNT keyboards: abnt_slash
USB Scan Code: 0x87
Windows Direct Input Name: ABNT_C1
2020-09-12 17:11:30 -03:00
5ee810a520 Version 0.4.2 2020-05-19 23:44:50 +02:00
669b9d9479 Bug: G812 set individual keys 2020-05-19 23:41:09 +02:00
e1c529c1cd Version 0.4.1 2020-05-06 01:20:11 +02:00
6d9058a017 Finalize g815 2020-05-06 01:13:18 +02:00
5e093c1581 Version 0.4.0 2020-04-28 02:21:29 +02:00
9056fad33a Update README 2020-04-28 02:20:34 +02:00
5ba6063ad2 Resolve merge conflicts 2020-04-26 18:48:26 +02:00
3cea57cf4b g815 basic support 2020-04-26 18:36:18 +02:00
b6051dfe8a g815 all keys support 2020-04-26 08:57:20 +02:00
MatMoul
10b01b6206
Merge pull request #204 from cornernote/patch-1
fix error when compiling - missing enums in switch
2020-04-25 22:29:44 +02:00
MatMoul
999889f7de
Merge pull request #208 from pfsmorigo/master
Add support for g512
2020-04-25 22:26:35 +02:00
MatMoul
b61655fe59
Merge branch 'develop' into master 2020-04-25 22:22:11 +02:00
0a1cc29e8d Fix make error 2020-04-25 22:14:08 +02:00
b8f51d777a Merge branch 'cornernote-patch-1' into g815 2020-04-25 22:09:23 +02:00
376b61f791 Merge branch 'patch-1' of https://github.com/cornernote/g810-led into cornernote-patch-1 2020-04-25 22:08:52 +02:00
81aff33c1f Merge branch 'cornernote-develop' into g815 2020-04-25 17:41:36 +02:00
cornernote
f1284cc0b7 remove unneeded switch 2020-01-17 10:45:26 +10:30
cornernote
b881e69698 tweak 2020-01-14 09:16:53 +10:30
cornernote
a5acdf4113 add support for g815 on-board-mode 2020-01-14 08:40:45 +10:30
cornernote
a3cbef418d updates for G815 support 2020-01-13 12:47:29 +10:30
Paulo Flabiano Smorigo
1642d2dc02
Add support for g512
Signed-off-by: Paulo Flabiano Smorigo <pfsmorigo@gmail.com>
2020-01-04 22:10:00 -03:00
Brett O'Donnell
60cefd4ee8
fix error when compiling - missing enums in switch 2019-12-20 20:05:59 +10:30
MatMoul
a1b1127046
Merge pull request #195 from localleon/profile-docu
Improving Documentation for Profiles
2019-11-18 23:19:01 +01:00
localleon
14e331ad2a Adding seperate Profile Sections in README 2019-10-29 17:46:51 +01:00
MatMoul
394f7fbbb0
Merge pull request #192 from DanEble/develop
Stop prepending a zero byte to the input of hid_write()
2019-10-16 23:10:15 +02:00
MatMoul
37d98ada71
Merge pull request #191 from pearsonk/g815
G815 Effects Support
2019-10-16 22:58:16 +02:00
Dan Eble
d438ec2e3a Stop prepending a zero byte to the input of hid_write()
hid_write() expects a report ID in the first byte.  The 0x11 and 0x12
values sent as the first byte of commands are consistent with report
IDs published in the keyboard's USB descriptors.

This change was motivated by commands not working reliably using
hidapi on macOS with a G Pro keyboard.
2019-09-30 11:16:37 -04:00
Kevin Pearson
b938bf6c1d Add ripple and off effects
NOTE: Ripple effect (0x05) seems to have a conflict with an unadvertised
"stars"-like effect for the G410 and G810. Did not explore setting
timing for the G410/G810 effect, but is likely contrasted greatly with
the timing of the new Ripple effect. GHub limits ripple timing between
20ms and 200ms, but actual values are arbitrary and were tested up to
5000ms. Ideally should be kept within the 20-200ms range for best feel
of the effect. Logo does not honor the effect, and GHub simply sets to
the default "Logitech Blue".

Signed-off-by: Kevin Pearson <kevin.pearson@ortmanconsulting.com>
2019-09-26 08:50:46 -04:00
Kevin Pearson
1a26bf7e64 Initial g815 support: native effects
TODO: There is a new ripple effect that needs to be added. This commit
only provides support for the current effects.

Signed-off-by: Kevin Pearson <kevin.pearson@ortmanconsulting.com>
2019-09-25 08:15:22 -04:00
MatMoul
3c42eee3e8
Merge pull request #190 from pearsonk/g815
Set two protocol bytes for effects
2019-09-23 21:38:57 +02:00
118631d184 Version 0.3.9 2019-09-21 00:44:32 +02:00
Kevin Pearson
59aafb262a Set two protocol bytes for effects
The g815 doesn't use 0x3c as the 5th byte, so have it specified per
device.

Signed-off-by: Kevin Pearson <kevin.pearson@ortmanconsulting.com>
2019-09-20 09:37:49 -04:00
MatMoul
895861c185
Merge pull request #184 from Krutonium/master
Updated Install.MD
2019-09-09 21:28:00 +02:00
Krutonium
4f927ea954
Add Trizen 2019-09-08 15:28:43 -04:00
Krutonium
2a23006c9b Updated Arch Instructions; yaourt is deprecated and yay has effectivly replaced it 2019-09-06 03:37:25 -04:00
Krutonium
3c26fc81cf Add Solus install instructions, Minor Formatting 2019-09-06 03:36:18 -04:00
dfd170f0c1 Version 0.3.8 2019-08-28 22:35:47 +02:00
MatMoul
0d4600e8f7
Merge pull request #181 from lanodan/fix/makefile-clang
makefile: Fix compiling with clang
2019-08-28 22:32:16 +02:00
Haelwenn (lanodan) Monnier
0f1853e30b
makefile: Fix compiling with clang 2019-08-28 10:22:52 +02:00
b00ba8aa0c Version 0.3.7 2019-07-25 22:00:58 +02:00
a6586266f1 upadate udev rules 2019-07-25 21:59:49 +02:00