雷蛇精灵 是一个开源 GUI 应用程序,它在后台使用 OpenRazer 守护程序来管理所有 Razer 设备和外围设备上的 RGB。
Linux 游戏正在兴起,众所周知,RGB 可以提高游戏性能,因此我们将尝试在您的设备上配置 RGB,以在本教程中使用此新软件而不是 Polychromatic,使其更加美观和美观。
我们还将查看此应用程序提供的一些功能,但首先,让我们开始安装。
目录
在 Linux 上安装 OpenRazer
在我们安装 Razergenie 之前,我们必须安装守护进程,以便应用程序识别我们的 Razer 设备。 根据您的 Linux 发行版,在终端中键入以下命令:
在基于 Debian 的发行版上:
echo 'deb https://download.opensuse.org/repositories/hardware:/razer/Debian_Unstable/ /' | sudo tee /etc/apt/sources.list.d/hardware:razer.list curl -fsSL https://download.opensuse.org/repositories/hardware:razer/Debian_Unstable/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/hardware_razer.gpg > /dev/null sudo apt update && sudo apt install openrazer-meta
在 Fedora 工作站 (37),类型:
sudo dnf config-manager --add-repo https://download.opensuse.org/repositories/hardware:razer/Fedora_37/hardware:razer.repo sudo dnf install openrazer-meta
在基于 Ubuntu 的发行版上,键入以下命令:
echo 'deb https://download.opensuse.org/repositories/hardware:/razer/xUbuntu_20.04/ /' | sudo tee /etc/apt/sources.list.d/hardware:razer.list curl -fsSL https://download.opensuse.org/repositories/hardware:razer/xUbuntu_20.04/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/hardware_razer.gpg > /dev/null sudo apt update sudo apt install openrazer-meta
在基于 Arch Linux 的发行版上,您可以使用您最喜欢的 AUR 帮助程序从 Arch 用户存储库安装此应用程序:
yay -S openrazer-meta
如果您使用的是 Arch Linux,开发人员还建议安装与您的内核版本匹配的 linux-headers 包,其他发行版会自动安装它。
sudo pacman -S linux-headers # If you are using an LTS kernel, then try installing this package : sudo pacman -S linux-lts-headers
现在,将您的用户添加到 插件开发组 通过键入以下命令(将 USER 替换为您的用户名):
sudo gpasswd -a $USER plugdev
现在,重新启动您的电脑。 如果您使用启用了安全启动的 PC,那么我建议您从 BIOS 菜单中禁用它,否则您的设备将不会被检测到。
在 Linux 上安装雷蛇精灵
现在,重新启动后打开终端并键入以下命令,具体取决于您的发行版:
在 Debian 上,键入:
echo 'deb https://download.opensuse.org/repositories/hardware:/razer/Debian_Unstable/ /' | sudo tee /etc/apt/sources.list.d/hardware:razer.list curl -fsSL https://download.opensuse.org/repositories/hardware:razer/Debian_Unstable/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/hardware_razer.gpg > /dev/null sudo apt update sudo apt install razergenie
在基于 Ubuntu 的发行版上:
echo 'deb https://download.opensuse.org/repositories/hardware:/razer/xUbuntu_22.10/ /' | sudo tee /etc/apt/sources.list.d/hardware:razer.list curl -fsSL https://download.opensuse.org/repositories/hardware:razer/xUbuntu_22.10/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/hardware_razer.gpg > /dev/null sudo apt update sudo apt install razergenie
在 Fedora 工作站 (37) :
sudo dnf config-manager --add-repo https://download.opensuse.org/repositories/hardware:razer/Fedora_37/hardware:razer.repo sudo dnf install razergenie

在 Arch Linux 上,这个包在 AUR 中也可用,只需键入以下命令:
sudo pacman -S razergenie
配置设备
从应用程序的网格/菜单中,搜索并启动应用程序。 您应该能够看到插入系统的所有 Razer 设备。

如您所见,我可以为我的 Razer viper mini 配置轮询率、颜色、DPI 和 RGB 效果类型。
概括
尽管制造商本身的支持为零,但看到开源开发人员为他们的设备制作驱动程序真是太酷了。 Razer 的 Synapse 应用程序仅适用于 Windows 和 macOS,因此需要开源应用程序才能在 Linux 平台上配置 RGB。 OpenRazer 是一个开源驱动程序,许多 GUI 应用程序使用它来提供用户所需的不同服务。