Giter Club home page Giter Club logo

g213colors's People

Contributors

dereisele avatar jeroened avatar oncecreated avatar ukos-git avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

g213colors's Issues

`g213colors-gui -t` errors out if you have only a G203

Like the title says, running g213colors-gui -t (which the systemd task wraps) dies with this error if you only have a G203:

Traceback (most recent call last):
  File "/usr/bin/g213colors-gui", line 166, in <module>
    myG.connectG("G213")
  File "/usr/bin/G213Colors.py", line 68, in connectG
    raise ValueError("USB device not found!")
ValueError: USB device not found!

I had to edit line 173 in /usr/bin/g213colors-gui from myG.connectG("G213") to myG.connectG("G203") to get it to run without erroring out.

Operation Timed out with G213

Been trying to get my G213 to work with a few different solutions and G213Colors seems to the best option. However, I'm having an issue - it seems to be having issues.

nikki  seniornegi-c  ~/Build Area/G213Colors  g213colors-gui 
5000
static
G213
Send data to G213
bmRequestType, bmRequest, wValue[productName], wIndex, binascii.unhexlify(data)
33 9 529 1 �
            :
Traceback (most recent call last):
  File "/usr/bin/g213colors-gui", line 95, in on_button_clicked
    self.sendManager(product)
  File "/usr/bin/g213colors-gui", line 80, in sendManager
    self.sendStatic(product)
  File "/usr/bin/g213colors-gui", line 38, in sendStatic
    myG.sendColorCommand(self.btnGetHex(self.staticColorButton))
  File "/usr/bin/G213Colors.py", line 100, in sendColorCommand
    sendData(colorCommand[productName].format(str(format(field, '02x')), colorHex))
  File "/usr/bin/G213Colors.py", line 95, in sendData
    device.ctrl_transfer(bmRequestType, bmRequest, wValue[productName], wIndex, binascii.unhexlify(data))
  File "/home/nikki/.local/lib/python2.7/site-packages/usb/core.py", line 1077, in ctrl_transfer
    self.__get_timeout(timeout))
  File "/home/nikki/.local/lib/python2.7/site-packages/usb/backend/libusb1.py", line 901, in ctrl_transfer
    timeout))
  File "/home/nikki/.local/lib/python2.7/site-packages/usb/backend/libusb1.py", line 602, in _check
    raise USBTimeoutError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBTimeoutError: [Errno 110] Operation timed out
5000
static
G213
Send data to G213
bmRequestType, bmRequest, wValue[productName], wIndex, binascii.unhexlify(data)
33 9 529 1 �
            :���
Traceback (most recent call last):
  File "/usr/bin/g213colors-gui", line 95, in on_button_clicked
    self.sendManager(product)
  File "/usr/bin/g213colors-gui", line 80, in sendManager
    self.sendStatic(product)
  File "/usr/bin/g213colors-gui", line 38, in sendStatic
    myG.sendColorCommand(self.btnGetHex(self.staticColorButton))
  File "/usr/bin/G213Colors.py", line 100, in sendColorCommand
    sendData(colorCommand[productName].format(str(format(field, '02x')), colorHex))
  File "/usr/bin/G213Colors.py", line 95, in sendData
    device.ctrl_transfer(bmRequestType, bmRequest, wValue[productName], wIndex, binascii.unhexlify(data))
  File "/home/nikki/.local/lib/python2.7/site-packages/usb/core.py", line 1068, in ctrl_transfer
    self._ctx.managed_claim_interface(self, interface_number)
  File "/home/nikki/.local/lib/python2.7/site-packages/usb/core.py", line 113, in wrapper
    return f(self, *args, **kwargs)
  File "/home/nikki/.local/lib/python2.7/site-packages/usb/core.py", line 178, in managed_claim_interface
    self.backend.claim_interface(self.handle, i)
  File "/home/nikki/.local/lib/python2.7/site-packages/usb/backend/libusb1.py", line 829, in claim_interface
    _check(self.lib.libusb_claim_interface(dev_handle.handle, intf))
  File "/home/nikki/.local/lib/python2.7/site-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 16] Resource busy
5000
static
G213
Send data to G213
bmRequestType, bmRequest, wValue[productName], wIndex, binascii.unhexlify(data)
33 9 529 1 �
            :���
Traceback (most recent call last):
  File "/usr/bin/g213colors-gui", line 95, in on_button_clicked
    self.sendManager(product)
  File "/usr/bin/g213colors-gui", line 76, in sendManager
    self.sendManager(p)
  File "/usr/bin/g213colors-gui", line 80, in sendManager
    self.sendStatic(product)
  File "/usr/bin/g213colors-gui", line 38, in sendStatic
    myG.sendColorCommand(self.btnGetHex(self.staticColorButton))
  File "/usr/bin/G213Colors.py", line 100, in sendColorCommand
    sendData(colorCommand[productName].format(str(format(field, '02x')), colorHex))
  File "/usr/bin/G213Colors.py", line 95, in sendData
    device.ctrl_transfer(bmRequestType, bmRequest, wValue[productName], wIndex, binascii.unhexlify(data))
  File "/home/nikki/.local/lib/python2.7/site-packages/usb/core.py", line 1077, in ctrl_transfer
    self.__get_timeout(timeout))
  File "/home/nikki/.local/lib/python2.7/site-packages/usb/backend/libusb1.py", line 901, in ctrl_transfer
    timeout))
  File "/home/nikki/.local/lib/python2.7/site-packages/usb/backend/libusb1.py", line 602, in _check
    raise USBTimeoutError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBTimeoutError: [Errno 110] Operation timed out

Segments on G203

I don't know if they are supported by the mouse, but when i try to set them, here is what happens in the terminal:

3700
segments
G203
Connected G203
1
000000
Send data to G203
bmRequestType, bmRequest, wValue[productName], wIndex, binascii.unhexlify(data)
33 9 528 1 b'\x11\xff\x0e<\x01\x01\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2
000000
Send data to G203
bmRequestType, bmRequest, wValue[productName], wIndex, binascii.unhexlify(data)
33 9 528 1 b'\x11\xff\x0e<\x02\x01\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
Traceback (most recent call last):
  File "./main.py", line 95, in on_button_clicked
    self.sendManager(product)
  File "./main.py", line 86, in sendManager
    self.sendSegments(product)
  File "./main.py", line 66, in sendSegments
    myG.sendColorCommand(self.btnGetHex(self.segmentColorBtns[i -1]), i)
  File "/home/koko/tmp/G213Colors/G213Colors.py", line 100, in sendColorCommand
    sendData(colorCommand[productName].format(str(format(field, '02x')), colorHex))
  File "/home/koko/tmp/G213Colors/G213Colors.py", line 95, in sendData
    device.ctrl_transfer(bmRequestType, bmRequest, wValue[productName], wIndex, binascii.unhexlify(data))
  File "/usr/lib/python3.5/site-packages/usb/core.py", line 1043, in ctrl_transfer
    self.__get_timeout(timeout))
  File "/usr/lib/python3.5/site-packages/usb/backend/libusb1.py", line 883, in ctrl_transfer
    timeout))
  File "/usr/lib/python3.5/site-packages/usb/backend/libusb1.py", line 595, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 32] Pipe error

Enable/disable startup effect

You can enable/disable the "startup effect" on the G203 mouse with the following data:

11 ff 0e 5b 00 01 TOGGLE 00 00 00 00 00 00 00 00 00 00 00 00 00

TOGGLE should be 01 to enable and 02 to disable the effect.

I don't have the G213 keyboard, but I think it should be very similar. This would be a nice addition to the GUI

G512

Please add support for the G512. It's a very nice keyboard and I am stuck on FreeBSD without much use for the RGB sadly.

G213colors service

Hi "derEisele"

I set my G203 mouse with your code, it works with gui, but when i reboot my pc, it does not run.
i do "service systemctl enable g213colors.service", but it seems not working.

Here i put the status

● g213colors.service - Start G213Colors profile
   Loaded: loaded (/etc/systemd/system/g213colors.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fri 2017-12-08 17:34:56 CET; 27s ago
 Main PID: 8390 (code=exited, status=1/FAILURE)
    Tasks: 0 (limit: 4915)
   CGroup: /system.slice/g213colors.service

dic 08 17:34:56 user-pc systemd[1]: Starting Start G213Colors profile...
dic 08 17:34:56 user-pc g213colors-gui[8390]: Unable to init server: Could not connect: Connection refused
dic 08 17:34:56 user-pc g213colors-gui[8390]: Unable to init server: No se pudo conectar: Connection refused
dic 08 17:34:56 user-pc g213colors-gui[8390]: Traceback (most recent call last):
dic 08 17:34:56 user-pc g213colors-gui[8390]:   File "/usr/bin/g213colors-gui", line 166, in <module>
dic 08 17:34:56 user-pc g213colors-gui[8390]:     myG.connectG()
dic 08 17:34:56 user-pc g213colors-gui[8390]: TypeError: connectG() missing 1 required positional argument: 'Name'
dic 08 17:34:56 user-pc systemd[1]: g213colors.service: Main process exited, code=exited, status=1/FAILURE
dic 08 17:34:56 user-pc systemd[1]: g213colors.service: Failed with result 'exit-code'.
dic 08 17:34:56 user-pc systemd[1]: Failed to start Start G213Colors profile.

Brightness on Breathe and Cycle

Just an FYI, the value 64 in your breathe and cycle commands accepts values from 0x01 to 0x64 and represents the maximum color brightness of the effect.
Not sure if it does anything on the G213 as I don't own it, but it definitely works on the G203 mouse.

breathe

The breath option does not work.
I just bought this keyboard at bestbuy.
It was not easy getting pyusb installed or ctypes or setuptools.
A smoother process is defintely needed.

Any hope of the breathe option?
I can program python so I don't mind trying to fix it.

Wave effect

Hi, i just bought this beautiful keyboard and was amazed that you guys made the software work on Linux, Great work!!

so i saw the wave effect in the software by logitech guys, but i dont see that anywhere here, is it a feature that can be implemented? I dont know how the python script works but if its possible i would love to contribute.

Thanks

Last two segments don't work

I have a G213 Prodigy so should be grand.

All the colour settings seem to work except segment. The two rightmost segments are not set, but rather keep the colour they already had.

For example, if I set a Static colour to blue, and then change to Segments and make them all red, I will have 3 red segments and 2 blue ones.

The script from SebiTimeWaster works, however, if I pass five colours as per the help docs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.