jath03 / openrgb-python

A python client for the OpenRGB SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

openrgb-python and OpenRGB 0.8: not setting all leds

enku opened this issue · comments

I have a setup where I have a bunch of "devices" (not sure if that's the right OpenRGB term) all plugged into a single hub which is then plugged into an RGB port on my MSI motherboard. These devices have multiple "LEDs" on them and I really just want "all LEDs on all devices the same color". On OpenRGB-0.7 the following does what I want:

for device in openrgb.ee_devices:
    rgb_color = RGBColor(randint(0, 255), randint(0, 255), randint(0, 255))
    device.set_mode("direct")
    device.set_color(rgb_color)

When I upgrade to OpenRGB-0.8 however it seems that only 2 LEDs on each device gets set to the color and the other LEDs are off. Oddly it seems to be 2, not 1 which confuses me but perhaps they're somehow "mirrored". I've tried set_colors([rgb_color] * len(device.leds) but the result is the same.

From what I can tell (not much since I'm fairly new to the ARGB game), one of the following is occurring, ordered by likeliness.

  • The above code is incorrect for what I want but just so happens to work with OpenRGB-0.7
  • Something changed in OpenRGB-0.8 and openrgb-python does not yet work with this change
  • There is a regression bug in OpenRGB-0.8
  • There is something wrong with the hardware

As I said likely there is something I'm doing wrong in the code, but if that's the case I'm not sure what it is (or why it worked before).

openrgb-python-0.2.15 on Linux.

Thanks.

Moving this to discussions.