So yesterday I bought myself a Wacom drawing tablet, thinking I'd have no trouble getting it up and running on Linux. I would probably have been right if it wasn't for the fact that I use Linux from Scratch! Specifically this system was built in December 2016, as a Multilib X86 CLFS Systemd system, using the development version if memory serves. Most packages are kept up to date from the development BLFS. I have (most of) GNOME installed, and generally use
Sway as my WM, launched from the Wayland version of GDM.
Basically, no matter what I do, no input will register from the tablet. If I do:
Code:
sudo cat /dev/input/event21
(or event22 or 23, the event files on which the tablet always tends to end up) I either get nothing at all or "Device or resource busy". (I normally get the latter after a reboot, but unplugging and replugging the tablet sometimes gets rid of it.)
Likewise:
Code:
sudo libinput-debug-events
Often gives me:
Code:
Failed to open /dev/input/event21 (Device or resource busy)
Failed to open /dev/input/event22 (Device or resource busy)
Failed to open /dev/input/event23 (Device or resource busy)
Usually I can get the tablet's name to show up under libinput-debug-events by unplugging and replugging it,
if I'm on a tty. Even so, no actual events show up.
I don't get why this should be. The tablet works fine on a Debian installation on the same PC, so it can't be a hardware-conflict thing, can it? Still, this does happen even if I boot to TTY and don't start X or Wayland at all, so I get the feeling the kernel is doing something funky. I'm using kernel 4.16.3, and I've tried building the Wacom driver right in and as a module. I also tried building USB HID support as a module instead of building it in. I even tried downloading the input-wacom module from GitHub. Nothing works.
I'm tempted to post my entire kernel config, but I'm not sure if it'd be that helpful. I don't know how I could or should go about comparing it with the Debian config, even though I obviously have access to both.
Additional information:
I don't think systemd itself is grabbing the tablet either, because I see messages like
Code:
systemd-logind[288]: Failed to open /dev/input/event22: Device or resource busy
in the journal.
The Wacom settings in GNOME on Wayland seem to detect the tablet itself but not the stylus, but don't respond when I try to configure it. They also don't seem to respond if I unplug it! In GNOME on X, they usually don't detect it at all, but they do if I magically manage to suppress the "Device or resource busy" state (unplug/replug under some unclear circumstances) - then this state returns as soon as I try to configure the tablet!
I have a udev rules file, "/lib/udev/rules.d/65-libwacom.rules", which I copied straight from Debian. I don't think any relevant ordering of these files was changed by that. Without this file, libinput complains of missing capabilities on one of the event files.
Libwacom does at least always seem to recognize the device:
Code:
[ ~ ]$ libwacom-list-local-devices
[Device]
Name=Intuos Pen & Touch Medium
DeviceMatch=usb:056a:033e;
Class=Intuos
Width=9
Height=5
IntegratedIn=
Layout=intuos-m-pt2.svg
Styli=0x8e2;
[Features]
Reversible=false
Stylus=true
Ring=false
Ring2=false
Touch=true
TouchSwitch=true
StatusLEDs=
NumStrips=0
Buttons=4
[Buttons]
Left=
Right=
Top=A;B;C;D;
Bottom=
Touchstrip=
Touchstrip2=
OLEDs=
Ring=
Ring2=
RingNumModes=0
Ring2NumModes=0
StripsNumModes=0
---------------------------------------------------------------
[Device]
Name=Intuos Pen & Touch Medium
DeviceMatch=usb:056a:033e;
Class=Intuos
Width=9
Height=5
IntegratedIn=
Layout=intuos-m-pt2.svg
Styli=0x8e2;
[Features]
Reversible=false
Stylus=true
Ring=false
Ring2=false
Touch=true
TouchSwitch=true
StatusLEDs=
NumStrips=0
Buttons=4
[Buttons]
Left=
Right=
Top=A;B;C;D;
Bottom=
Touchstrip=
Touchstrip2=
OLEDs=
Ring=
Ring2=
RingNumModes=0
Ring2NumModes=0
StripsNumModes=0
---------------------------------------------------------------
[Device]
Name=Intuos Pen & Touch Medium
DeviceMatch=usb:056a:033e;
Class=Intuos
Width=9
Height=5
IntegratedIn=
Layout=intuos-m-pt2.svg
Styli=0x8e2;
[Features]
Reversible=false
Stylus=true
Ring=false
Ring2=false
Touch=true
TouchSwitch=true
StatusLEDs=
NumStrips=0
Buttons=4
[Buttons]
Left=
Right=
Top=A;B;C;D;
Bottom=
Touchstrip=
Touchstrip2=
OLEDs=
Ring=
Ring2=
RingNumModes=0
Ring2NumModes=0
StripsNumModes=0
---------------------------------------------------------------