最近购买了雷柏V500的机械键盘,但是在ubuntu系统上使用时好时坏,以为是键盘坏了,但是在舍友的电脑上尝试都没有问题,想着是自己的USB口坏了,但是其他键盘都能正常使用。于是上网搜索了一些解决方案。
问题的环境
雷柏V500+Ubuntu
机械键盘按键失灵,有时能响应,有时不能
解决方法
驱动地址:https://github.com/sxyseo/rapoov7-keyboard-driver
在终端输入命令:
# make
# ./rapoo7_hotfix
之后修改rapoo7_hotfix脚本的内容
由
# make the priority of our hotfix module higher than system modules
sudo rmmod usbhid hid
sudo insmod rapoov7_hotfix.ko
sudo modprobe usbhid
改为
rmmod usbhid hid
insmod /home/leyiwo/rapoov7-keyboard-driver-master/rapoov7_hotfix.ko
modprobe usbhid
保存为rapoo7_hotfix.sh
然后打开/etc/rc.local
把
/home/rapoov7_hotfix.sh
增加到exit 0前,保存退出
#!/bin/sh -e
## rc.local
## This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
## In order to enable or disable this script just change the execution
# bits.
## By default this script does nothing.
/home/rapoov7_hotfix.sh
exit 0
之后重启系统就OK了。