Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with installation #4

Open
gravit22 opened this issue Mar 26, 2018 · 13 comments
Open

Problem with installation #4

gravit22 opened this issue Mar 26, 2018 · 13 comments

Comments

@gravit22
Copy link

gravit22 commented Mar 26, 2018

I can't install this
gravit@Gravit-PC:/Downloads/Q11K_Driver-master$ sudo make
[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:
/Downloads/Q11K_Driver-master$ sudo make install
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
@gravit22
Copy link
Author

sudo rmmod uclogic
[sudo] password for gravit:
rmmod: ERROR: Module uclogic is not currently loaded

@gravit22
Copy link
Author

I restarted the computer and the pen is working. but buttons on the tablet are not

@konachan700
Copy link
Owner

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.

@LuciusTalane
Copy link

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'
luciusdesign@luciusdesign-ubuntu:
/Escritorio/Q11K_Driver-master$ sudo make & make install
[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

@LuciusTalane
Copy link

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

@Rabcor
Copy link

Rabcor commented Nov 15, 2018

@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)

@Rabcor
Copy link

Rabcor commented Nov 15, 2018

@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.

@LuciusTalane
Copy link

@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.

@Rabcor
Copy link

Rabcor commented Nov 15, 2018

@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.

@SquirrelHub
Copy link
Contributor

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

@Lefteris-Pachis
Copy link

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

@harrybo91
Copy link

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!

@C-Loftus
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants