Package: libwacom-common
Version: 0.19-1
Severity: normal
Tags: patch

Dear Maintainer,

For some time I tried to figure out why on Debian some functions of my two 
wacom tablets were not working properly and also they didn't work through 
libinput. Recently I had the ocasion to try my wacom tablets on an Arch Linux 
system and I was surprised to see them fully working and also with libinput.
With the Xorg input wacom driver, the stylus buttons and the eraser didn't work 
and also some of the buttons of the tablet weren't properly detected.
With libinput I couldn't use the tablet neither with the stylus or touch 
because it didn't identify correctly the pad.
Executing the command libinput-list-devices I got this error.

libinput error: libinput bug: Device 'Wacom Bamboo 2FG 6x8 SE Pad' does not 
meet tablet criteria. Ignoring this device.

All these problems went away when I copied Arch's libwacom udev rules, 
65-libwacom.rules to /lib/udev/rules.d/

Inspecting the Arch's PKGBUILD I see at the end of it that the udev rules are 
generated through the command generate-udev-rules, which is created during the 
build process.

https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/libwacom

I successfully tried to create new packages with the newest version of 
libwacom, 0.21, patching debian/rules to include the udev rules, and it worked 
for me. I don't know if it's the correct way to do it.

--- debian/rules        2016-06-19 15:41:52.532499180 +0200
+++ debian/rules.new    2016-06-19 13:40:40.082331560 +0200
@@ -6,6 +6,8 @@
 
 override_dh_install:
        find debian/tmp -name '*.la' -delete
+       mkdir -p debian/libwacom-common/lib/udev/rules.d/
+       build/tools/generate-udev-rules > 
debian/libwacom-common/lib/udev/rules.d/65-libwacom.rules
        dh_install --fail-missing
 
 override_dh_makeshlibs:


Also I think it's missing a libwacom-common.postinst refreshing udev rules with 
udevadm control --reload-rules.


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.6.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=ca_ES.UTF-8, LC_CTYPE=ca_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

-- no debconf information

Reply via email to