Problem with installation
gravit22 opened this issue · comments
I can't install this
gravit@Gravit-PC:/Downloads/Q11K_Driver-master$ sudo make/Downloads/Q11K_Driver-master$ sudo make install
[sudo] password for gravit:
make -C /lib/modules/4.13.0-37-generic/build SUBDIRS=/home/gravit/Downloads/Q11K_Driver-master modules
make[1]: Entering directory '/usr/src/linux-headers-4.13.0-37-generic'
CC [M] /home/gravit/Downloads/Q11K_Driver-master/q11k_device.o
/home/gravit/Downloads/Q11K_Driver-master/q11k_device.c:158:12: warning: ‘q11k_prepare_pens’ declared ‘static’ but never defined [-Wunused-function]
static int q11k_prepare_pens(struct hid_device *hdev);
^~~~~~~~~~~~~~~~~
/home/gravit/Downloads/Q11K_Driver-master/q11k_device.c:160:12: warning: ‘q11k_register_relative_pen’ declared ‘static’ but never defined [-Wunused-function]
static int q11k_register_relative_pen(struct hid_device *hdev);
^~~~~~~~~~~~~~~~~~~~~~~~~~
Building modules, stage 2.
MODPOST 1 modules
CC /home/gravit/Downloads/Q11K_Driver-master/q11k_device.mod.o
LD [M] /home/gravit/Downloads/Q11K_Driver-master/q11k_device.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.13.0-37-generic'
gravit@Gravit-PC:
make -C /lib/modules/4.13.0-37-generic/build SUBDIRS=/home/gravit/Downloads/Q11K_Driver-master modules_install
make[1]: Entering directory '/usr/src/linux-headers-4.13.0-37-generic'
INSTALL /home/gravit/Downloads/Q11K_Driver-master/q11k_device.ko
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178
sign-file: certs/signing_key.pem: No such file or directory
DEPMOD 4.13.0-37-generic
make[1]: Leaving directory '/usr/src/linux-headers-4.13.0-37-generic'
install -D -m 0644 99-q11k_device.conf /etc/modprobe.d/99-q11k_device.conf
depmod -a
sudo rmmod uclogic
[sudo] password for gravit:
rmmod: ERROR: Module uclogic is not currently loaded
I restarted the computer and the pen is working. but buttons on the tablet are not
I don't check the last merge to master branch, and it may can be broken...
You can try old branch - all buttons was worked in it.
Hello and sorry to bother, I get this trying to install it (I'm really new at Ubuntu or any linux distro):
luciusdesign@luciusdesign-ubuntu:$ cd '/home/luciusdesign/Escritorio/Q11K_Driver-master'/Escritorio/Q11K_Driver-master$ sudo make & make install
luciusdesign@luciusdesign-ubuntu:
[1] 29257
make -C /lib/modules/4.15.0-38-generic/build SUBDIRS=/home/luciusdesign/Escritorio/Q11K_Driver-master modules_install
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-38-generic'
mkdir: cannot create directory ‘/lib/modules/4.15.0-38-generic/extra’: Permission denied
Makefile:1563: recipe for target 'emodinst' failed
make[1]: *** [emodinst] Error 1
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-38-generic'
Makefile:6: recipe for target 'modules_install' failed
make: *** [modules_install] Error 2
[1]+ Stopped sudo make
I managed to install it as root (newbie from me) but it's not recognized yet:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0c45:5204 Microdia
Bus 001 Device 003: ID 256c:006e
Bus 001 Device 002: ID 04d9:fa56 Holtek Semiconductor, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
@konachan700 Will not compile on kernel 4.18 or later.
warning: ‘q11k_register_relative_pen’ declared ‘static’ but never defined [-Wunused-function]
static int q11k_register_relative_pen(struct hid_device *hdev);
^~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:324: /run/media/lich/Vault/Downloads/Q11K_Driver-master/q11k_device.o] Error 1
make[1]: *** [Makefile:1505: _module_/run/media/lich/Vault/Downloads/Q11K_Driver-master] Error 2
make[1]: Leaving directory '/usr/lib/modules/4.18.17-1-MANJARO/build'
make: *** [Makefile:6: modules] Error 2
(Compiled fine for me on 4.14 though)
@konachan700 The issue is that HID_QUIRK_NO_EMPTY_INPUT was deprecated and doesn't exist in recent kernels anymore ( https://lore.kernel.org/patchwork/patch/935088/ ), the solution to make it compile and work again was replacing the following line:
hdev->quirks |= HID_QUIRK_NO_EMPTY_INPUT;
With this
hdev->quirks |= BIT(8);
This should probably work on all kernels so it is safe to change ( HID_QUIRK_MULTI_INPUT could also be renamed to BIT(6) if I am correct, but because I'm not much of a programmer I can't be certain). I don't know if this would mean other parts of the code need to be changed or not btw.
@konachan700 The issue is that HID_QUIRK_NO_EMPTY_INPUT was deprecated and doesn't exist in recent kernels anymore ( https://lore.kernel.org/patchwork/patch/935088/ ), the solution to make it compile and work again was replacing the following line:
hdev->quirks |= HID_QUIRK_NO_EMPTY_INPUT;
With this
hdev->quirks |= BIT(8);
This should probably work on all kernels so it is safe to change ( HID_QUIRK_MULTI_INPUT could also be renamed to BIT(6) if I am correct, but because I'm not much of a programmer I can't be certain). I don't know if this would mean other parts of the code need to be changed or not btw.
To be honest I started using linux just recently so I have no idea how and where to apply your suggestion, so If anyone test it and works I'd appreciate a guide for dummies.
@LuciusTalane This was not a response to your issue, this was my issue, and a solution for my issue. If you are having the same issue as I am however (failure to compile Q11K driver) the file you need to edit is q11k_device.c.
Hey @Rabcor, I just created a pull request with a potential fix as well. I had the same issue as you.
Credit where credit is due for the fix: DIGImend/digimend-kernel-drivers@52a69d9
I cant install it too.
[bep@kandalf Q11K_Driver-master]$ make
make -C /lib/modules/5.6.14-arch1-1/build SUBDIRS=/home/bep/Q11K_Driver-master modules
make[1]: Entering directory '/usr/lib/modules/5.6.14-arch1-1/build'
scripts/Makefile.build:44: arch/x86/entry/syscalls/Makefile: No such file or directory
make[2]: *** No rule to make target 'arch/x86/entry/syscalls/Makefile'. Stop.
make[1]: *** [arch/x86/Makefile:239: archheaders] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.6.14-arch1-1/build'
make: *** [Makefile:6: modules] Error 2
I was able to install it... Finally my tablet + pen are recognized by xsetwacom...
The downside is, that nothing else is working anymore...
I was able to use the tablet (on Kubuntu 20.04), but I wasn't able to configure its buttons.. after installation, I couldn't use the tablet anymore (even though it was recognized by xsetwacom), and wifi card, touchpad, and other devices weren't recognized anymore 😭
Please help!
I have the same issue as @harrybo91 Has anyone found a solution to that? It seems that the install script messes with sound / wifi / display (hdmi out) drivers. Is the xorg config changed maybe?