diff --git a/README.md b/README.md index 3a75db5..494a373 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ Linux led controller for Logitech G213, G410, G610, G810, G910 and GPRO Keyboard ## Compatible keyboards :
- **G213 Prodigy**
- **G410 Atlas Spectrum**
+- **G413 Carbon**
- **G610 Orion Brown**
- **G610 Orion Red**
- **G810 Orion Spectrum**
diff --git a/makefile b/makefile index 0674f7e..fc1feec 100644 --- a/makefile +++ b/makefile @@ -60,6 +60,7 @@ setup: @cp bin/$(PROGN) $(DESTDIR)/usr/bin @test -s $(DESTDIR)/usr/bin/g213-led || ln -s /usr/bin/$(PROGN) $(DESTDIR)/usr/bin/g213-led @test -s $(DESTDIR)/usr/bin/g410-led || ln -s /usr/bin/$(PROGN) $(DESTDIR)/usr/bin/g410-led + @test -s $(DESTDIR)/usr/bin/g413-led || ln -s /usr/bin/$(PROGN) $(DESTDIR)/usr/bin/g413-led @test -s $(DESTDIR)/usr/bin/g610-led || ln -s /usr/bin/$(PROGN) $(DESTDIR)/usr/bin/g610-led @test -s $(DESTDIR)/usr/bin/g910-led || ln -s /usr/bin/$(PROGN) $(DESTDIR)/usr/bin/g910-led @test -s $(DESTDIR)/usr/bin/gpro-led || ln -s /usr/bin/$(PROGN) $(DESTDIR)/usr/bin/gpro-led @@ -104,6 +105,7 @@ uninstall: @rm /usr/bin/g213-led @rm /usr/bin/g410-led + @rm /usr/bin/g413-led @rm /usr/bin/g610-led @rm /usr/bin/g910-led @rm /usr/bin/gpro-led diff --git a/src/classes/Keyboard.cpp b/src/classes/Keyboard.cpp index 3e3bc1f..f657b2d 100644 --- a/src/classes/Keyboard.cpp +++ b/src/classes/Keyboard.cpp @@ -355,7 +355,8 @@ bool LedKeyboard::commit() { byte_buffer_t data; switch (currentDevice.model) { case KeyboardModel::g213: - break; // Keyboard is non-transactional + case KeyboardModel::g413: + return true; // Keyboard is non-transactional case KeyboardModel::g410: case KeyboardModel::g610: case KeyboardModel::g810: @@ -727,7 +728,7 @@ bool LedKeyboard::setNativeEffect(NativeEffect effect, NativeEffectPart part, ui case KeyboardModel::g213: case KeyboardModel::g413: protocolByte = 0x0c; - if (part == NativeEffectPart::logo) return false; //Does not have logo component + if (part == NativeEffectPart::logo) return true; //Does not have logo component break; case KeyboardModel::g410: case KeyboardModel::g610: // Unconfirmed diff --git a/udev/g810-led.rules b/udev/g810-led.rules index edd72ea..d0935f3 100644 --- a/udev/g810-led.rules +++ b/udev/g810-led.rules @@ -1,5 +1,6 @@ ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c336", MODE="666" RUN+="/usr/bin/g213-led -p /etc/g810-led/profile" ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c330", MODE="666" RUN+="/usr/bin/g410-led -p /etc/g810-led/profile" +ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c33a", MODE="666" RUN+="/usr/bin/g413-led -p /etc/g810-led/profile" ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c333", MODE="666" RUN+="/usr/bin/g610-led -p /etc/g810-led/profile" ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c338", MODE="666" RUN+="/usr/bin/g610-led -p /etc/g810-led/profile" ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c331", MODE="666" RUN+="/usr/bin/g810-led -p /etc/g810-led/profile"