jath03 / openrgb-python

A python client for the OpenRGB SDK
GNU General Public License v3.0
115 stars 22 forks source link

openrgb-python and OpenRGB 0.8: not setting all leds #63

Closed enku closed 1 year ago

enku commented 1 year ago

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.

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.

enku commented 1 year ago

Moving this to discussions.