I bought a new keyboard, a Razer BlackWidow Ultimate Elite. All keys will operate until the macro keys M1 to M5.
xev
gives no output for this keys. Is there a way to use keys with Ubuntu?
% lsusb | grep Razer
Bus 007 Device 003: ID 1532:011a Razer USA, Ltd
First, we need a little Python3 script, taken from here (Please go and give @Sergey an upvote ;))
I have replaced the product id with my product id
011a
To start the script, we need
pyusb
for Python3Save the Python script as
init_blackwidow.py
and set the execution rights. Now start the script withNow you can check the keycodes with
xev
…… until the next reboot :\
But we can use
/etc/rc.local
andudev
:Copy the script
init_blackwidow.py
into/usr/local/bin
Add the line below in
/etc/rc.local
, before the lineexit 0
Now you should have something like this
Create a new rule
in
Restart
udev
and enjoy …
As an alternative to the good anwser of A.B. :
Easy install of razer chroma drivers
The following project has support for many Razer chroma drivers. It also activates the Mx keys.
https://github.com/pez2001/razer_chroma_drivers
MacroW - A simple macro player/recorder.
There is an on-the-fly macro recorder/ playback for the M1,M2,M3,M4 and M5 keys called MacroW. MacroW is very simple to use (IMHO as dev). If you managed to activate your Mx keys and want to try MacroW you can check it out:
https://github.com/igorbb/MacroW
I would love to get some feedback/ help on it.