Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with tertiary color on Kraken Ultimate headset #1266

Closed
2 tasks done
kevchu3 opened this issue Sep 24, 2020 · 2 comments
Closed
2 tasks done

Error with tertiary color on Kraken Ultimate headset #1266

kevchu3 opened this issue Sep 24, 2020 · 2 comments
Labels

Comments

@kevchu3
Copy link
Contributor

kevchu3 commented Sep 24, 2020

Distribution

Fedora 32, kernel 5.8.10-200.fc32.x86_64

Support

Reproduce Issue

I previously opened this issue at polychromatic/polychromatic#287 but it was confirmed to be an issue with openrazer, and thus I am opening it here.

I am using the Razer Kraken Ultimate headset and pulled the latest commit 55c219f from the master branch. Steps to reproduce are as follows:

  1. I set the Breath effect for my device using Single or Dual, and the headset colors work.

  2. I then set the Triple color effect, and the headset colors also work and will cycle through all three colors.

  3. I then go back and select either Single or Dual, which produces the stacktrace below. I've also noticed that any future selection of Single or Dual in the Breath effect, or even the single color from Static effect, will continue to produce this error. The only workaround is to unplug and replug in my device.

I've also noted when using polychromatic, that the Triple color effect is labeled undefined, which may be related. I also noticed that the stacktrace is in chroma_keyboard.py but that isn't one of the devices I am using.

Stacktrace below:

Traceback (most recent call last):
  File "test-razer.py", line 12, in <module>
    device.fx.breath_dual(255,255,255, 128,128,128)  # Error happens
  File "/usr/lib/python3.8/site-packages/openrazer/client/fx.py", line 277, in breath_dual
    self._lighting_dbus.setBreathDual(red, green, blue, red2, green2, blue2)
  File "/usr/lib64/python3.8/site-packages/dbus/proxies.py", line 141, in __call__
    return self._connection.call_blocking(self._named_service,
  File "/usr/lib64/python3.8/site-packages/dbus/connection.py", line 652, in call_blocking
    reply_message = self.send_message_with_reply_and_block(
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.TypeError: Traceback (most recent call last):
  File "/usr/lib64/python3.8/site-packages/dbus/service.py", line 711, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python3.8/site-packages/openrazer_daemon/dbus_services/dbus_methods/chroma_keyboard.py", line 479, in set_breath_dual_effect
    First byte is row, on firefly its always 1, on keyboard its 0-5
TypeError: 'tuple' object does not support item assignment

In a python3 interpreter:

import openrazer.client as rclient
device = rclient.DeviceManager().devices[0]  # First device
device.fx.breath_single(255,255,255)
device.fx.breath_dual(255,255,255, 128,128,128)
device.fx.breath_triple(255,255,255, 128,128,128, 255,255,255)
device.fx.breath_dual(255,255,255, 128,128,128)  # Error happens
@z3ntu
Copy link
Member

z3ntu commented Sep 26, 2020

Caused by the (not yet merged) PR #1149 , so I'm closing the issue and noting it there.

@z3ntu
Copy link
Member

z3ntu commented Sep 26, 2020

I've fixed that issue in #1149 already btw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants