[原创]在ubuntu下驱动Razer Krait~

CPU/显卡/打印机/USB设备等硬件问题
回复
头像
蓝深
帖子: 13
注册时间: 2005-11-22 23:54

[原创]在ubuntu下驱动Razer Krait~

#1

帖子 蓝深 » 2008-09-16 20:18

中秋帮表弟配了台机器,顺便自己也奢侈了一把,败得了金环蛇一个.
其实洒家游戏的时间越来越少了,原来的G1也是工作的时间远大于游戏的时间,唉,也算是一时冲动吧,不过买回家后很爽到是真的:D.
1600dpi,刚上来的确上人不太适应,G1的800dpi就显得慢悠悠了,不过还好,用了几个小时后就习惯.手腕的活动范围能小不少,估计得鼠标手的可能性也能降下来不少吧:D.
和G1的比较,哥俩差不多一样大,不过实际使用起来,Razer要比G1小一些,除非手指放在按键的最前面,不然掌心是悬空的.所以操作上要比G1灵活的多,不过可能刚开始时有拿不太稳的感觉吧:

光盘中的驱动是1.02的,官网上有最新版的1.04,感觉区别不大.可惜的是只提供windows版的驱动.
游戏固然不可缺少的,可工作却更重要啊,ubuntu下就只能自己解决驱动的问题了.
最后万能的google里找到了Razer device configuration tool这个工具.见http://www.bu3sch.de/razercfg.php这个页.这个驱动功能比较弱 ... dpi,不过也够用了.

下载后tar,看了下README,软件依赖python,libusb,QT4和cmake,QT4图形界面才需要的,所以

代码: 全选

$sudo apt-get install cmake
在解压后的文件夹下运行

代码: 全选

$cmake .
结果提示"CMake Error: Could not find library "libusb". On Debian Linux try "apt-get install libusb-dev" to install the library."于是再

代码: 全选

$sudo apt-get install libusb-dev
然后cmake还是找不到libusb,后来发现运行cmake后,多了一个CMakeCache.txt文件,于是

代码: 全选

$rm CMakeCache.txt
$cmake .
还是不行,提示如下错误
CMake Error: This project requires some variables to be set,
and cmake can not find them.
Please set the following variables:
PYTHON_INCLUDE_PATH
查看帮助后,原来用-D参数可以帮cmake指定变量,于是

代码: 全选

$rm CMakeCache.txt
$cmake -DPYTHON_INCLUDE_PATH=/usr/include/python2.5/
$cmake .
好了,顺利生成Makefile文件了. 可惜编译还是通不过,最后从头一步步检查依赖,原来是没有安装python-dev.好了,找到原因,从头再来一次吧.
重新解压文件后,接下来

代码: 全选

$sudo apt-get install libusb-dev python-dev
$cmake .
$make
这回没有错了.马上

代码: 全选

$sudo make install
OK,至此驱动就装好了.不过只有命令行版的,图行界面的,需要再

代码: 全选

$sudo apt-get install pyqt4-dev-tools
图形界面可以在shell里输入qrazercfg来启动,当然也可以在命令行用razercfg来设置.
需要注意的是,两个命令都要以root来运行,不然可能会抓不到鼠标.

代码: 全选

$sudo qrazercfg
anmijay
帖子: 12
注册时间: 2008-04-17 13:49

Re: [原创]在ubuntu下驱动Razer Krait~

#2

帖子 anmijay » 2009-04-11 11:22

:em01 我顶你阿,找了很久了 ,我试试。
头像
wangdu2002
帖子: 13284
注册时间: 2008-12-13 19:39
来自: 物华天宝人杰地灵

Re: [原创]在ubuntu下驱动Razer Krait~

#3

帖子 wangdu2002 » 2009-04-11 11:24

:em09
:em11
行到水穷处,坐看云起时。
海内生明月,天涯共此夕。
--------------------吾本独!
yanghe842
帖子: 4
注册时间: 2012-10-07 23:12
系统: Ubuntu 12.04.1

Re: [原创]在ubuntu下驱动Razer Krait~

#4

帖子 yanghe842 » 2012-10-07 23:18

急!求大虾教我如何在Ubuntu12.04下安装并使用雷蛇鼠标linux驱动,鄙人刚刚开始接触Ubuntu,不知如何安装并使用这个雷蛇鼠标linux驱动,我己按您说的把软件都装齐了,可还是用不了,出现下面的代码:

root@yanghe842-Z68X-UD3R-B3:/home/yanghe842/下载/razercfg-0.18# cmake .
-- The C compiler identification is unknown
CMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
CMake Error at /usr/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (GET_FILENAME_COMPONENT):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
CMakeLists.txt:2 (PROJECT)


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Looking for sys/types.h - not found
-- Looking for stdint.h
CMake Error at /usr/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (GET_FILENAME_COMPONENT):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
CMakeLists.txt:2 (PROJECT)


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Looking for stdint.h - not found
-- Looking for stddef.h
CMake Error at /usr/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (GET_FILENAME_COMPONENT):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
CMakeLists.txt:2 (PROJECT)


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Looking for stddef.h - not found
-- Check size of unsigned short
CMake Error at /usr/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (GET_FILENAME_COMPONENT):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
CMakeLists.txt:2 (PROJECT)


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check size of unsigned short - failed
-- Check size of unsigned int
CMake Error at /usr/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (GET_FILENAME_COMPONENT):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
CMakeLists.txt:2 (PROJECT)


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check size of unsigned int - failed
-- Check size of unsigned long
CMake Error at /usr/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (GET_FILENAME_COMPONENT):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
CMakeLists.txt:2 (PROJECT)


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check size of unsigned long - failed
CMake Error at /usr/share/cmake-2.8/Modules/TestBigEndian.cmake:44 (MESSAGE):
no suitable type found
Call Stack (most recent call first):
scripts/cmake.global:3 (test_big_endian)
CMakeLists.txt:12 (include)


-- Configuring incomplete, errors occurred!
root@yanghe842-Z68X-UD3R-B3:/home/yanghe842/下载/razercfg-0.18#

请大虾详细的教我,急!Email:yanghe84245378@sina.com
头像
YeLee
论坛版主
帖子: 26406
注册时间: 2008-08-13 8:48
系统: Fundu i64
来自: 东海硇州,一双管钥。
联系:

Re: [原创]在ubuntu下驱动Razer Krait~

#5

帖子 YeLee » 2012-10-07 23:40

楼上把编译器放哪了?
◎当我站在道德的高度上俯视别人的时候,发现自己是多么渺小。
♥执着但不偏激,反对而不排斥,坚决捍卫矛盾体的存在方式。
★★★天气预报★★★
fcitx-yatable一个可以使用的码表输入法
[教程]几个实例攻克软件编译难关
Gentoo Development Guide
字体相关
yanghe842
帖子: 4
注册时间: 2012-10-07 23:12
系统: Ubuntu 12.04.1

Re: [原创]在ubuntu下驱动Razer Krait~

#6

帖子 yanghe842 » 2012-10-07 23:45

不知道呀,我就是用终端自动装的,怎么办呀
yanghe842
帖子: 4
注册时间: 2012-10-07 23:12
系统: Ubuntu 12.04.1

Re: [原创]在ubuntu下驱动Razer Krait~

#7

帖子 yanghe842 » 2012-10-08 0:02

在网上有人说:“你出现这个问题,应该是因为你点CONFIG后那个选项你没有选定,要选成你已经安装的VS或者别的编译程序。比如你装了VC2008就要选择VC2008才行啊,不要选错了”
可是config在哪呀?
yanghe842
帖子: 4
注册时间: 2012-10-07 23:12
系统: Ubuntu 12.04.1

Re: [原创]在ubuntu下驱动Razer Krait~

#8

帖子 yanghe842 » 2012-10-08 2:08

之前的问题解决了,$sudo make install也通过了,可是到了这步,怎么用呀
root@yanghe842-Z68X-UD3R-B3:/home/yanghe842/razercfg-0.18# razercfg
Razer device configuration tool
Version 0.18

Usage: razercfg [OPTIONS] [-d DEV DEVOPS] [-d DEV DEVOPS]...

-h|--help Print this help text
-v|--version Print the program version number
-B|--background Fork into the background
-s|--scan Scan for devices and print the bus IDs
-K|--reconfigure Force-reconfigure all detected devices

-d|--device DEV Selects the device with the bus ID "DEV"
Use the special value "mouse" for DEV to select
the first razer mouse device found in the system.
If this option is omitted, the first Razer device found is selected.

-S|--sleep SECS Sleep SECS seconds.

Device operations (DEVOPS):
These options apply to the device that is specified with -d

Options for mice:
-V|--fwver Print the firmware version number
-p|--profile profile Changes the active profile
-P|--getprofile Prints the active profile
-r|--res profile:DPI Changes the scan resolution.
-R|--getres Prints the resolutions
-f|--freq [profile:]FREQ Changes the scan frequency.
-F|--getfreq Prints the frequencies
-L|--leds Print the identifiers of the LEDs on the device
-l|--setled [profile:]LED:off Toggle the LED with the identifier "LED" ON or OFF
-c|--setledcolor [profile:]LED:aabbcc Set LED color to RGB 'aabbcc'
-X|--flashfw FILE Flash a firmware image to the device

The 'profile' number may be 0 for the current profile. If 'profile' is
omitted, the global settings are changed (not possible for every device).
root@yanghe842-Z68X-UD3R-B3:/home/yanghe842/razercfg-0.18#
AE86JAY
帖子: 9
注册时间: 2009-03-14 14:39

Re: [原创]在ubuntu下驱动Razer Krait~

#9

帖子 AE86JAY » 2013-01-06 11:44

我的是炼狱蝰蛇3.5G,试试。
shaying526
帖子: 23
注册时间: 2011-10-11 17:05

Re: [原创]在ubuntu下驱动Razer Krait~

#10

帖子 shaying526 » 2013-05-01 23:39

按着楼主的步骤安装成功了, 但是运行好像有问题, Mark 一下 重启试试!
shaying526
帖子: 23
注册时间: 2011-10-11 17:05

Re: [原创]在ubuntu下驱动Razer Krait~

#11

帖子 shaying526 » 2013-05-02 0:03

使用
sudo qrazercfg

报错:
Failed to connect to razerd socket: [Errno 2] No such file or directory


貌似说没链接到雷蛇的设备? 我用的是地狱狂蛇
shaying526
帖子: 23
注册时间: 2011-10-11 17:05

Re: [原创]在ubuntu下驱动Razer Krait~

#12

帖子 shaying526 » 2013-05-02 0:33

shaying526 写了:使用
sudo qrazercfg

报错:
Failed to connect to razerd socket: [Errno 2] No such file or directory


貌似说没链接到雷蛇的设备? 我用的是地狱狂蛇

这个问题解决了, 我看了下README,忘记启动守护进程了,但是现在运行很多命令
例如
sudo razercfg -L #Print the identifiers of the LEDs on the device

就打印 No Razer device found in the system


我用的是地狱狂蛇, 这是为什么 0.0

版本 razercfg 0.20
shaying526
帖子: 23
注册时间: 2011-10-11 17:05

Re: [原创]在ubuntu下驱动Razer Krait~

#13

帖子 shaying526 » 2013-05-02 0:38

shaying526 写了:
shaying526 写了:使用
sudo qrazercfg

报错:
Failed to connect to razerd socket: [Errno 2] No such file or directory


貌似说没链接到雷蛇的设备? 我用的是地狱狂蛇

这个问题解决了, 我看了下README,忘记启动守护进程了,但是现在运行很多命令
例如
sudo razercfg -L #Print the identifiers of the LEDs on the device

就打印 No Razer device found in the system


我用的是地狱狂蛇, 这是为什么 0.0

版本 razercfg 0.20


忙了半天,发现不支持 Abyssus

Device support

Device name Support status
Razer Boomslang CE mouse Stable, but missing minor features.
Razer Copperhead mouse Stable, but missing minor features.
Razer DeathAdder Classic mouse Stable
Razer DeathAdder 3500 DPI mouse Stable
Razer DeathAdder Black Edition mouse Stable
Razer Imperator Classic and 2012 mice Driver exists, but is currently broken
Razer Krait mouse Stable
Razer Lachesis Classic mouse Stable, but missing minor features.
Razer Lachesis 5600 DPI mouse Driver exists, but is currently broken
Razer Naga Classic mouse (wired) Stable
Razer Naga 2012 mouse Stable
Razer Taipan mouse Stable
Any other wired, wireless or hybrid wired/wireless Razer mouse not listed here Currently unsupported
回复