How do I install Roccat Vulcan 100 keyboard driver for light effects?
0
votes
1
answer
447
views
[Here's the driver (it is called a "driver", isn't it?) for keyboard backlight](https://github.com/duncanthrax/roccat-vulcan) .
I'm mostly interested in playing with the source code to understand something more about drivers, if possible.
However, before diving into the code, I'd like to install it and see it working. That way I could really loop on "edit-reinstall-try" to see what effect my changes have.
Well, I'm blocked at square 1, as I haven't been able to install the driver.
To be honest, I haven't tried running
sudo make install
, and before doing so, I'd like to understand whether I truly need it and, if I do need it, understand why.
I see that the [Makefile
](https://github.com/duncanthrax/roccat-vulcan/blob/master/src/Makefile) has this install
target:
install:
mkdir -p ${DESTDIR}${BINDIR}
cp $(NAME) ${DESTDIR}${BINDIR}/
mkdir -p ${DESTDIR}${UDEVDIR}
cp *.rules ${DESTDIR}${UDEVDIR}/
and a few lines above there's
BINDIR := /usr/bin
so it's clear to me that sudo
privileges are required because DESTDIR
is not set, so ${DESTDIR}${BINDIR}
resolves to /usr/bin
, which needs sudo
to be written to.
However, if there's a ${DESTDIR}
prefix in the first place, I wonder why I shouldn't run make install DESTDIR=$HOME
or something.
Indeed, I tried, but the executable, roccat-vulcan
, when run, errors with Unable to find keyboard
. Maybe it does need to be installed in /usr/bin
?
---
[A related question.](https://unix.stackexchange.com/questions/25715/why-do-some-packages-use-make-install-while-other-use-sudo-make-install)
---
**Update**
As suggested in the answer, I've tried installing with sudo make install BINDIR='/usr/local/bin'
, which succeed with the following **_output_**:
mkdir -p /usr/local/bin
cp roccat-vulcan /usr/local/bin/
mkdir -p /etc/udev/rules.d
cp *.rules /etc/udev/rules.d/
However, trying to run the software gives error. Below the output of roccat-vulcan -v
:
ROCCAT Vulcan for Linux [github.com/duncanthrax/roccat-vulcan]
Effect Color Table (change these with -c option)
colorIdx R G B Desc
------------------------------------------------
0 0 0 119 Base keyboard color (dark blue)
1 2303 0 -255 Typing color, initial key (over-red, under-blue)
2 2303 0 -143 Typing color, first neighbor key
3 2303 0 0 Typing color, second neighbor key
4 187 0 204 Ghost typing color, initial key
5 153 0 187 Ghost typing color, first neighbor key
6 85 0 170 Ghost typing color, second neighbor key
7 0 0 0 (null)
8 0 0 0 (null)
9 0 0 0 (null)
open_device(1e7d, 3098): No LED device found
open_device(1e7d, 307a): ignoring non-LED interface #0
open_device(1e7d, 307a): ignoring non-LED interface #1
open_device(1e7d, 307a): ignoring non-LED interface #2
open_device(1e7d, 307a): LED interface at USB path 1-3:1.3
open_device(1e7d, 307a): Unable to open LED interface 1-3:1.3
Error: Unable to find keyboard
Asked by Enlico
(2258 rep)
Mar 27, 2022, 01:07 PM
Last activity: Mar 28, 2022, 04:42 PM
Last activity: Mar 28, 2022, 04:42 PM