Browse Source

Add support for BlackWidow Chroma V2

master
Chaoten 7 months ago committed by GitHub
parent
commit
06fe2c9643
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      README.md
  2. 4
      blackwidowcontrol.py
  3. 1
      razer_blackwidow.rules

1
README.md

@ -14,6 +14,7 @@ The script is known to work with the following BlackWidow editions:
- the regular 2013 edition
- BlackWidow Ultimate Stealth 2014
- BlackWidow Ultimate 2012
- BlackWidow Chroma V2
If you can confirm that those or other devices work or don't work, let me now by editing this file.

4
blackwidowcontrol.py

@ -12,12 +12,14 @@ USB_INDEX = 0x2
USB_INTERFACE = 2
VENDOR_ID = 0x1532 # Razer
PRODUCT_ID_BLACK_WIDOW = 0x010e # BlackWidow
PRODUCT_ID_BLACK_WIDOW = 0x010e # BlackWidow
PRODUCT_ID_BLACK_WIDOW_V2 = 0x221 # BlackWidow v2
PRODUCT_ID_BLACK_WIDOW_ULTIMATE = 0x011a # BlackWidow Ultimate
PRODUCT_ID_BLACK_WIDOW_ULTIMATE_2012 = 0x010d # BlackWidow Ultimate 2012
PRODUCT_ID_BLACK_WIDOW_2013 = 0x011b # BlackWidow 2013/2014
PRODUCTS = [("Black Widow", PRODUCT_ID_BLACK_WIDOW),
("Black Widow Chroma V2",PRODUCT_ID_BLACK_WIDOW_V2),
("Black Widow Ultimate", PRODUCT_ID_BLACK_WIDOW_ULTIMATE),
("Black Widow Ultimate 2012", PRODUCT_ID_BLACK_WIDOW_ULTIMATE_2012),
("Black Widow 2013/2014", PRODUCT_ID_BLACK_WIDOW_2013)]

1
razer_blackwidow.rules

@ -3,3 +3,4 @@ SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="1532", ATTR{idProduct}=="010e"
SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="1532", ATTR{idProduct}=="010d", RUN+="/usr/bin/blackwidowcontrol -i"
SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="1532", ATTR{idProduct}=="011a", RUN+="/usr/bin/blackwidowcontrol -i"
SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="1532", ATTR{idProduct}=="011b", RUN+="/usr/bin/blackwidowcontrol -i"
SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="1532", ATTR{idProduct}=="0221", RUN+="/usr/bin/blackwidowcontrol -i"

Loading…
Cancel
Save