Just bought me a pen tablet, and I was hoping to make it work in (Clear)Linux, though it doesn’t come with Linux drivers. System sort of detects … something as a Wacom tablet, though as you can be seen below, detection is not full. Any advice as to how I could make it work? Could this be the answer??
Looks like a long shot, but start here (paragraph explaining how to use libwacom-list-local-devices and debug devices that don’t show up):
Then take a look at https://opentabletdriver.net/ – I didn’t find the tablet in their database either, but it’s worth a try. You’d have to compile it yourself and try it, but if it’s not too bad, we can try to package it.
Thanks! I’m afraid that a bit more hand-holding is required.
I couldn’t find any libwacom-list-local-devices file in the libwacom-2.9.0 archive, so I don’t know how to use the tool. I tried compiling libwacom-list-local-devices.c, but that threw this error:
dad@DadsGram~/Downloads/libwacom-2.9.0/tools $ gcc list-local-devices.c -o lld
list-local-devices.c:27:10: fatal error: config.h: No such file or directory
27 | #include "config.h"
| ^~~~~~~~~~
compilation terminated.
Is the opentabletdriver route an alternative to libwacom, or is that something that has to be followed in continuation to the libwacom route?
Also, here’s what running run-full-test.sh in libwacom returned:
dad@DadsGram~/Downloads/libwacom-2.9.0 $ ./run-full-test.sh
####################################### running test suite
The Meson build system
Version: 1.3.0
Source dir: /home/dad/Downloads/libwacom-2.9.0
Build dir: /home/dad/Downloads/libwacom-2.9.0/build.2023-11-30-21.33.47
Build type: native build
Project name: libwacom
Project version: 2.9.0
C compiler for the host machine: gcc (gcc 13.2.1 "gcc (Clear Linux OS for Intel Architecture) 13.2.1 20231115 releases/gcc-13.2.0-463-g5d6f62c9b2")
C linker for the host machine: gcc ld.bfd 2.41
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python3 found: YES (/usr/bin/python3)
Compiler for C supports arguments -Wno-unused-parameter: YES
Compiler for C supports arguments -Wmissing-prototypes: YES
Compiler for C supports arguments -Wstrict-prototypes: YES
Compiler for C supports arguments -Wundef: YES
Compiler for C supports arguments -Wlogical-op: YES
Compiler for C supports arguments -Wpointer-arith: YES
Compiler for C supports arguments -Wuninitialized: YES
Compiler for C supports arguments -Winit-self: YES
Compiler for C supports arguments -Wstrict-prototypes: YES (cached)
Compiler for C supports arguments -Wimplicit-fallthrough: YES
Compiler for C supports arguments -Wredundant-decls: YES
Compiler for C supports arguments -Wincompatible-pointer-types: YES
Compiler for C supports arguments -Wformat=2: YES
Compiler for C supports arguments -Wsign-compare: YES
Compiler for C supports arguments -Wmissing-declarations: YES
Found pkg-config: YES (/usr/bin/pkg-config) 1.9.5
Found CMake: /usr/bin/cmake (3.27.8)
Run-time dependency gudev-1.0 found: NO (tried pkgconfig and cmake)
meson.build:54:15: ERROR: Dependency "gudev-1.0" not found, tried pkgconfig and cmake
A full log can be found at /home/dad/Downloads/libwacom-2.9.0/build.2023-11-30-21.33.47/meson-logs/meson-log.txt
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
If you have the desktop-apps bundle installed, you already have libwacom, although it’s currently version 2.8.0, so I’ll update it to 2.9.0 in the next release or two.
The bundle devpkg-libwacom provides libwacom-list-local-devices (sudo swupd search-file libwacom-list-local-devices), so you don’t need to build it yourself, nor diagnose the build test failures.
Thanks. I tried installing the RPM of the precompiled OpenTabletDriver yesterday, but I don’t think it installed properly. I’ll try the .tar.gz later today. How should I do that though? Would simply unpacking it (from root) do?