Razer mouse on SUSE

I just got a Razer Taipan mouse today. The mouse works fine after connecting to the system (other than very fast default acceleration), but I wanted to configure it using the open source tool created by Michael Busch. This tool is a replacement for Razer’s Synapse configuration tool that only runs on Windows and OSX. I almost have it working. I’m having a couple issues:

  1. I can’t seem to get the razerd daemon to start after boot. After putting the provided razerd init script in /etc/init.d/, I used Yast2/System Services to Enable razerd. I confirmed with “chkconfig --list” after a reboot to see that razerd is listed to run at runlevels 2, 3, 4, 5 and stop at 0, 1, 6. When I do a “ps -ef | grep razerd”, I don’t see the daemon running.

  2. When I manually run razerd in a separate shell, I can’t run the QT-based gui version of razercfg, qrazercfg. I get this error:

    File “/usr/local/bin/qrazercfg”, line 18, in <module>
    from PySide.QtCore import *
    ImportError: No module named ‘PySide’

    The commandline razercfg works fine with razerd running in a separate shell. As far as I know, I do have python3-pyside installed.

Any help appreciated! Thanks!

P.S. What works right now: After reboot, mouse acceleration works fine and is controlled by pressing the two center buttons on the top of the mouse. One button increases acceleration, the other slows it down. The scroll wheel is lit up. The Razer logo is set to “breathing” mode. The side buttons, which I haven’t tested too much, goes forward/backward a page in FireFox.


Notes:

My system is GNU/Linux openSUSE 12.3 64-bit. (I haven’t had time to update to 13.x.)

I grabbed the source from here:

http://bues.ch/cms/hacking/razercfg.html

I unarchived it:

tar xvfj razercfg-0.31.tar.bz2

which created files in this directory:

cd razercfg-0.31/

The README instructed me to install these packages:

install python3
install libusb-1.0.0-dev
install python3-pyside
install cmake

I could find python3-pyside in the standard 12.3 release, so I added this repository:

ftp.uni-stuttgart.de/opensuse-buildservice/KDE:/Qt/openSUSE_12.3

While still in razercfg-0.31/

cmake .
make

Then to superuser mode to

make install

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

Then back to Yast2 and System Services to Enable

razerd

I experienced the same problem, but I am using openSUSE 13.2. I followed the compilation and installation instructions as you did, but ended up with the same result. After some time I was able to fix it, but as I said before, I am using openSUSE 13.2. In my case, I have different python versions in my system, and when I installed PySide it installed only in one version (2.X) and not in the python version qrazercfg uses. If you locate qrazercfg command (whereis qrazercfg) and check the first script line you will see it uses “/usr/bin/python3”. What I did to solve the problem was:

Install PySide module using “pip3” as root:

$> pip3 install PySide

I took its time and showed an error like the following one:

error: Failed to locate the Python library with /usr/lib64/libpython3.4m.so, /usr/lib64/libpython3.4m.so.1, /usr/lib64/libpython3.4m.a

A library was missing, so I checked the available libraries in my “/usr/lib64/” similar to “libpython3.4m.so*” and I found a very similar one called “/usr/lib64/libpython3.4m.so.1.0” so I created a soft link to it with the name the pip3 PySide installation was expecting.

$> ln -s /usr/lib64/libpython3.4m.so.1.0 /usr/lib64/libpython3.4m.so.1

After that, you can execute the command to install the module:

$> pip3 install PySide

But be sure to have “Python.h” in your system. If it is not in your system, you will get an error like this: “fatal error: Python.h: No such file or directory”. To have “Python.h” in your system install “python3-devel” package (zypper install python3-devel).

I hope you can fix the error and use qrazercfg, it’s far more easy to make quick modifications to your mouse settings :smiley: .

You should never randomly symlink libraries.

Instead, grab the razercfg compiled vs 13.2 from: https://software.opensuse.org/package/razercfg?search_term=razer

Thanks Miuku; but I won’t call it a random symlink. It’s the same library with the same version, so it’s the library has the same interface. It’s is more like an easy/quick hack. If you have a link to the package for openSUSE 12.3 it will be great because it is the version linuxvinh is running.

After taking a look again at my libraries folder /usr/lib64 I found a new file “libpython3.4m.so” which is the first option showed by the error message when looking for the missing library (remember, the error message was “error: Failed to locate the Python library with /usr/lib64/libpython3.4m.so, /usr/lib64/libpython3.4m.so.1, /usr/lib64/libpython3.4m.a”). Making a query to the rpm system (rpm -qf libpython3.4m.so), it was installed with the “python3-devel” package I mentioned in my previous reply, so you can install “python3-devel” before installing PySide and everything should work.