openrazer / openrazer

Open source driver and user-space daemon to control Razer lighting and other features on GNU/Linux
https://openrazer.github.io
GNU General Public License v2.0
3.59k stars 522 forks source link

pylib: Pulsate/blinking missing #1575

Open lah7 opened 3 years ago

lah7 commented 3 years ago

Devices like BlackWidow Ultimate 2013, Orbweaver and Blackwidow Stealth have a Pulsate effect. Under the Python library (or under fake driver at least), the pulsate function doesn't exist, even though it's supposed to be there.

AttributeError: 'RazerFX' object has no attribute 'pulsate'

Oddly enough, it is there:

https://github.com/openrazer/openrazer/blob/5ddf10eb85a803c83fa31465c1df4bdf0e860a17/pylib/openrazer/client/fx.py#L770-L786

z3ntu commented 3 years ago

These two functions don't seem to be used by the pylib

@endpoint('razer.device.lighting.bw2013', 'setPulsate')
@endpoint('razer.device.lighting.bw2013', 'setStatic')

PRs welcome ;) But a rewrite of everything is really overdue :/

Not sure what the existing pulsate function in the pylib is supposed to call...

lah7 commented 3 years ago

I was having a poke as multiple users are reporting this issue, but no luck. What I can dig out:

I think I'll workaround in the app for now by echoing to the driver file directly, as _available_features lists razer.device.lighting.bw2013 to know.