LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 04-21-2018, 11:06 AM   #1
PluMGMK
LQ Newbie
 
Registered: Apr 2018
Location: Ireland
Distribution: Cross Linux from Scratch
Posts: 2

Rep: Reputation: Disabled
No input and/or "Device or resource busy" for Wacom Intuos Pen & Touch Medium (CLFS + BLFS)


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

---------------------------------------------------------------
 
Old 04-22-2018, 11:23 AM   #2
PluMGMK
LQ Newbie
 
Registered: Apr 2018
Location: Ireland
Distribution: Cross Linux from Scratch
Posts: 2

Original Poster
Rep: Reputation: Disabled
Smile

Managed to solve it. I got rid of that udev rules file, but more importantly I mucked around a bit more with the kernel. As of now, the total config difference from before I bought the tablet is:
Code:
--- linux-4.16.2/.config	2018-04-18 18:46:31.862917185 +0100
+++ linux-4.16.3/.config	2018-04-22 17:12:46.806391590 +0100
@@ -1,6 +1,6 @@
 #
 # Automatically generated file; DO NOT EDIT.
-# Linux/x86 4.16.2 Kernel Configuration
+# Linux/x86 4.16.3 Kernel Configuration
 #
 CONFIG_64BIT=y
 CONFIG_X86_64=y
@@ -2493,7 +2493,7 @@
 #
 # Multifunction device drivers
 #
-# CONFIG_MFD_CORE is not set
+CONFIG_MFD_CORE=m
 # CONFIG_MFD_AS3711 is not set
 # CONFIG_PMIC_ADP5520 is not set
 # CONFIG_MFD_BCM590XX is not set
@@ -3087,35 +3087,35 @@
 #
 # HID support
 #
-CONFIG_HID=y
-# CONFIG_HID_BATTERY_STRENGTH is not set
+CONFIG_HID=m
+CONFIG_HID_BATTERY_STRENGTH=y
 CONFIG_HIDRAW=y
 # CONFIG_UHID is not set
-CONFIG_HID_GENERIC=y
+CONFIG_HID_GENERIC=m
 
 #
 # Special HID drivers
 #
-CONFIG_HID_A4TECH=y
+CONFIG_HID_A4TECH=m
 # CONFIG_HID_ACCUTOUCH is not set
 # CONFIG_HID_ACRUX is not set
-CONFIG_HID_APPLE=y
+CONFIG_HID_APPLE=m
 # CONFIG_HID_APPLEIR is not set
 # CONFIG_HID_ASUS is not set
 # CONFIG_HID_AUREAL is not set
-CONFIG_HID_BELKIN=y
+CONFIG_HID_BELKIN=m
 # CONFIG_HID_BETOP_FF is not set
-CONFIG_HID_CHERRY=y
-CONFIG_HID_CHICONY=y
+CONFIG_HID_CHERRY=m
+CONFIG_HID_CHICONY=m
 # CONFIG_HID_CORSAIR is not set
 # CONFIG_HID_PRODIKEYS is not set
 # CONFIG_HID_CMEDIA is not set
-CONFIG_HID_CYPRESS=y
+CONFIG_HID_CYPRESS=m
 # CONFIG_HID_DRAGONRISE is not set
 # CONFIG_HID_EMS_FF is not set
 # CONFIG_HID_ELECOM is not set
 # CONFIG_HID_ELO is not set
-CONFIG_HID_EZKEY=y
+CONFIG_HID_EZKEY=m
 # CONFIG_HID_GEMBIRD is not set
 # CONFIG_HID_GFRM is not set
 # CONFIG_HID_HOLTEK is not set
@@ -3124,16 +3124,16 @@
 # CONFIG_HID_KYE is not set
 # CONFIG_HID_UCLOGIC is not set
 # CONFIG_HID_WALTOP is not set
-CONFIG_HID_GYRATION=y
+CONFIG_HID_GYRATION=m
 # CONFIG_HID_ICADE is not set
-CONFIG_HID_ITE=y
+CONFIG_HID_ITE=m
 # CONFIG_HID_JABRA is not set
 # CONFIG_HID_TWINHAN is not set
-CONFIG_HID_KENSINGTON=y
+CONFIG_HID_KENSINGTON=m
 # CONFIG_HID_LCPOWER is not set
 # CONFIG_HID_LED is not set
 # CONFIG_HID_LENOVO is not set
-CONFIG_HID_LOGITECH=y
+CONFIG_HID_LOGITECH=m
 # CONFIG_HID_LOGITECH_DJ is not set
 # CONFIG_HID_LOGITECH_HIDPP is not set
 CONFIG_LOGITECH_FF=y
@@ -3142,48 +3142,49 @@
 CONFIG_LOGIWHEELS_FF=y
 # CONFIG_HID_MAGICMOUSE is not set
 # CONFIG_HID_MAYFLASH is not set
-CONFIG_HID_MICROSOFT=y
-CONFIG_HID_MONTEREY=y
+CONFIG_HID_MICROSOFT=m
+CONFIG_HID_MONTEREY=m
 # CONFIG_HID_MULTITOUCH is not set
 # CONFIG_HID_NTI is not set
-CONFIG_HID_NTRIG=y
+CONFIG_HID_NTRIG=m
 # CONFIG_HID_ORTEK is not set
-CONFIG_HID_PANTHERLORD=y
+CONFIG_HID_PANTHERLORD=m
 CONFIG_PANTHERLORD_FF=y
 # CONFIG_HID_PENMOUNT is not set
-CONFIG_HID_PETALYNX=y
+CONFIG_HID_PETALYNX=m
 # CONFIG_HID_PICOLCD is not set
 # CONFIG_HID_PLANTRONICS is not set
 # CONFIG_HID_PRIMAX is not set
 # CONFIG_HID_RETRODE is not set
 # CONFIG_HID_ROCCAT is not set
 # CONFIG_HID_SAITEK is not set
-CONFIG_HID_SAMSUNG=y
-CONFIG_HID_SONY=y
+CONFIG_HID_SAMSUNG=m
+CONFIG_HID_SONY=m
 # CONFIG_SONY_FF is not set
 # CONFIG_HID_SPEEDLINK is not set
 # CONFIG_HID_STEELSERIES is not set
-CONFIG_HID_SUNPLUS=y
+CONFIG_HID_SUNPLUS=m
 # CONFIG_HID_RMI is not set
 # CONFIG_HID_GREENASIA is not set
 # CONFIG_HID_SMARTJOYPLUS is not set
 # CONFIG_HID_TIVO is not set
-CONFIG_HID_TOPSEED=y
+CONFIG_HID_TOPSEED=m
 # CONFIG_HID_THINGM is not set
 # CONFIG_HID_THRUSTMASTER is not set
 # CONFIG_HID_UDRAW_PS3 is not set
-# CONFIG_HID_WACOM is not set
+CONFIG_HID_WACOM=m
 # CONFIG_HID_WIIMOTE is not set
 # CONFIG_HID_XINMO is not set
 # CONFIG_HID_ZEROPLUS is not set
 # CONFIG_HID_ZYDACRON is not set
-# CONFIG_HID_SENSOR_HUB is not set
+CONFIG_HID_SENSOR_HUB=m
+# CONFIG_HID_SENSOR_CUSTOM_SENSOR is not set
 # CONFIG_HID_ALPS is not set
 
 #
 # USB HID support
 #
-CONFIG_USB_HID=y
+CONFIG_USB_HID=m
 CONFIG_HID_PID=y
 CONFIG_USB_HIDDEV=y
 
@@ -3208,7 +3209,7 @@
 # Miscellaneous USB options
 #
 CONFIG_USB_DEFAULT_PERSIST=y
-# CONFIG_USB_DYNAMIC_MINORS is not set
+CONFIG_USB_DYNAMIC_MINORS=y
 # CONFIG_USB_OTG is not set
 # CONFIG_USB_OTG_WHITELIST is not set
 # CONFIG_USB_LEDS_TRIGGER_USBPORT is not set
@@ -3219,7 +3220,10 @@
 # USB Host Controller Drivers
 #
 # CONFIG_USB_C67X00_HCD is not set
-# CONFIG_USB_XHCI_HCD is not set
+CONFIG_USB_XHCI_HCD=y
+# CONFIG_USB_XHCI_DBGCAP is not set
+CONFIG_USB_XHCI_PCI=y
+# CONFIG_USB_XHCI_PLATFORM is not set
 CONFIG_USB_EHCI_HCD=y
 # CONFIG_USB_EHCI_ROOT_HUB_TT is not set
 # CONFIG_USB_EHCI_TT_NEWSCHED is not set
@@ -3302,7 +3306,7 @@
 # CONFIG_USB_FTDI_ELAN is not set
 # CONFIG_USB_APPLEDISPLAY is not set
 # CONFIG_USB_SISUSBVGA is not set
-# CONFIG_USB_LD is not set
+CONFIG_USB_LD=m
 # CONFIG_USB_TRANCEVIBRATOR is not set
 # CONFIG_USB_IOWARRIOR is not set
 # CONFIG_USB_TEST is not set
Not sure which setting worked the magic, but all's well that ends well! (Somehow I never compiled in USB3 support even though my motherboard has USB3 ports. Maybe transfers to and from my USB stick over the last year would've been quicker had I twigged this before!)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
graphic tablet wacom intuos pen&touch cth480s vonavy14 Linux - Hardware 10 10-10-2014 01:11 PM
[SOLVED] device-mapper: remove ioctl on failed: Device or resource busy jheengut Linux - Kernel 1 10-23-2013 08:38 AM
[SOLVED] cannot install wacom bamboo pen & touch CTH 460 in mint 10 sheila kopaska Linux - Hardware 2 07-18-2011 12:02 PM
Wacom Bamboo Pen & Touch in Ubuntu 10.04 davedotwojo Linux - Hardware 0 04-03-2011 11:19 PM
psmouse and wacom pen in kernel 2.6.6 on /dev/input/mice Moloko Linux - Hardware 0 07-18-2004 12:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration