wtorek, 31 stycznia 2017

Razercfg - configure your Razer mouse on Linux

There is very nice little open source project at: http://bues.ch/cms/hacking/razercfg.html (which you can also contribute to) that allows you to control some of the Razer's mouse models.

The support table as shown on the website (as of 31.01.17) is quite good:

Device name Support status Usb id
Razer Boomslang ce mouse stable, but missing minor features. 1532:0005
Razer Copperhead mouse stable, but missing minor features. 1532:0101
Razer Deathadder classic mouse stable 1532:0007
Razer Deathadder 3500 dpi mouse stable 1532:0016
Razer Deathadder black edition mouse stable 1532:0029
Razer Deathadder 2013 mouse stable 1532:0037
Razer Deathadder chroma mouse stable 1532:0043
Razer Imperator classic and 2012 mice driver exists, but is currently broken 1532:0017
Razer Krait mouse stable 1532:0003
Razer Lachesis classic mouse stable, but missing minor features. 1532:000c
Razer Lachesis 5600 dpi mouse driver exists, but is currently broken 1532:001e
Razer Mamba (tournament edition) mouse stable 1532:0046
Razer Naga classic mouse stable 1532:0015
Razer Naga epic mouse stable 1532:001f
Razer Naga 2012 mouse stable 1532:002e
Razer Naga 2014 mouse stable 1532:0040
Razer Naga hex (v1) mouse stable 1532:0036
Razer Naga hex 2014 mouse stable 1532:0041
Razer Taipan mouse stable 1532:0034

Personally I use Razer Taipan Battlefield 4 Edition and everything works as it should. Sure it is not as fancy as Razer Synapse but hey... at least it  does not require account and login!

Website and Readme.md file have pretty good instructions and if you follow them closely you should be able to use the Razercfg. Tested on Linux Mint 18.1 but it should work on Ubuntu in exactly same way and probably some other Debian based distros.

Quick guide throught the installation process:

1. Install all of the mentioned dependencies in the Readme.md file:
  • Python 3.x  "sudo apt-get install python3-pyside"
  • libusb 1.0 "sudo apt-get install libusb-1.0-0-dev"
  • PySide (for GUI) "sudo apt-get install python3-pyside"
  • CMake (for building only) "sudo apt-get install cmake"
I had no problems with any of these on Linux Mint 18.1.

 2. Either download tar.gz from the website and unpack it or use "git clone https://git.bues.ch/git/razer.git" - if you choose to use Git, the "razer" folder will appear in your home directory (/home/user/).

3. Open terminal, cd into the "razer" folder (if you used git simply type in "cd razer")

4. Invoke "cmake ." - beware the dot is required!

5. Invoke "make".

6. Invoke "make install" - after this step everything should be installed, if you get errors try running these commands with root privileges (prefix "sudo") otherwise you did not satisfy the dependencies (installed everything required in step 1).

7. Razercfg should run at system startup - if it does not invoke following: 

"sudo cp ./razerd.initscript /etc/init.d/razerd"

"sudo ln -s /etc/init.d/razerd /etc/rc2.d/S99razerd"

"sudo ln -s /etc/init.d/razerd /etc/rc5.d/S99razerd"

"sudo ln -s /etc/init.d/razerd /etc/rc0.d/K01razerd"

"sudo ln -s /etc/init.d/razerd /etc/rc6.d/K01razerd"

Every single of these steps is listed and explained in more detail in Readme.md file provided within the tarball or folder you have cloned into. 

After all of this simply restart computer or type in "razercfg" in terminal. For GUI version (if you installed it) type in "qrazercfg".

Here are some screenshots:







Note: Your console output might be slightly different as at the time of doing this tutorial I already had Razercfg installed.


Brak komentarzy:

Prześlij komentarz