Bug 26724 - wacom autodetection seems broken after upgrade (evdev?)
Summary: wacom autodetection seems broken after upgrade (evdev?)
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: xorg-drv-wacom (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Valery Inozemtsev
QA Contact: qa-sisyphus
URL: http://www.thinkwiki.org/wiki/Wacom_S...
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-17 15:01 MSK by Michael Shigorin
Modified: 2013-06-11 20:26 MSK (History)
4 users (show)

See Also:


Attachments
/etc/udev/rules.d/10-wacom.rules (318 bytes, text/plain)
2011-12-17 15:01 MSK, Michael Shigorin
no flags Details
/var/log/Xorg.0.log (24.06 KB, text/plain)
2011-12-17 15:03 MSK, Michael Shigorin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Shigorin 2011-12-17 15:01:22 MSK
Created attachment 5263 [details]
/etc/udev/rules.d/10-wacom.rules

+++ This bug was initially created as a clone of Bug #26723 +++

При использовании сизифных xorg-server-1.11.2-alt1 и xorg-drv-wacom-0.12.0-alt1 на /dev/ttyS0 пытается повеситься драйвер evdev, а не wacom -- что ему не удаётся.

mv /usr/share/X11/xorg.conf.d/{50,09}-wacom.conf не помогает (рядом 10-evdev.conf -- думал, успевает раньше отработать).

Свой xorg.conf с ручной настройкой (её достаточно) отодвинул, из нештатной конфигурации только /etc/udev/rules.d/10-wacom.rules (прилагается, с thinkwiki).

# udevadm info --name=/dev/ttyS0 --query=all 
P: /devices/pnp0/00:0b/tty/ttyS0
N: ttyS0
E: UDEV_LOG=3
E: DEVPATH=/devices/pnp0/00:0b/tty/ttyS0
E: MAJOR=4
E: MINOR=64
E: DEVNAME=/dev/ttyS0
E: SUBSYSTEM=tty
E: NAME=Serial Wacom Tablet
E: ID_INPUT=1
E: ID_INPUT_TABLET=1

Из возможно имеющего отношение:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=568236
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=570567
http://ubuntuforums.org/archive/index.php/t-1833248.html
http://old.nabble.com/Lenovo-X201t-touchscreen-not-supported-with-latest-input-wacom--td32363527.html

Если у нас заведётся inputattach, то вот что с ним наблюдали:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=632961
https://bugs.launchpad.net/ubuntu/+source/joystick/+bug/835634
Comment 1 Michael Shigorin 2011-12-17 15:03:17 MSK
Created attachment 5264 [details]
/var/log/Xorg.0.log

Модуль wacom вообще не фигурирует, устройство пытается схватить evdev:

--- Xorg.0.log
(II) config/udev: Adding input device Serial Wacom Tablet (/dev/ttyS0)
(**) Serial Wacom Tablet: Applying InputClass "Wacom serial class"
(**) Serial Wacom Tablet: Applying InputClass "keyboard"
(II) Using input driver 'evdev' for 'Serial Wacom Tablet'
(II) Loading /usr/lib/X11/modules/input/evdev_drv.so
(**) Serial Wacom Tablet: always reports core events
(**) Serial Wacom Tablet: Device: "/dev/ttyS0"
(EE) ioctl EVIOCGNAME failed: Invalid argument
(EE) PreInit returned 8 for "Serial Wacom Tablet"
(II) UnloadModule: "evdev"
(II) Unloading evdev
---
Comment 2 Michael Shigorin 2011-12-17 15:08:42 MSK
(In reply to comment #0)
> # udevadm info --name=/dev/ttyS0 --query=all 
Забыл -- ATTRS{id}, на который ссылается правило, присутствует:

# udevadm info --name=/dev/ttyS0 --query=all --attribute-walk

Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/devices/pnp0/00:0b/tty/ttyS0':
    KERNEL=="ttyS0"
    SUBSYSTEM=="tty"
    DRIVER==""

  looking at parent device '/devices/pnp0/00:0b':
    KERNELS=="00:0b"
    SUBSYSTEMS=="pnp"
    DRIVERS=="serial"
    ATTRS{id}=="WACf004"

  looking at parent device '/devices/pnp0':
    KERNELS=="pnp0"
    SUBSYSTEMS==""
    DRIVERS==""
Comment 3 Michael Shigorin 2012-03-08 13:31:19 MSK
ping, мне эти рулесы отдельно упаковать или лучше обождать до следующего xorg?
Comment 4 Michael Shigorin 2013-06-07 22:52:48 MSK
Проверил на текущей бете Simply -- из коробки планшет в составе X61t не завёлся, добавление приложенного к comment 1 10-wacom.rules и udevadm trigger сразу же его подобрало.

Прошу одобрить NMU, а ещё лучше -- добавить меня в ACL пакета:
http://git.altlinux.org/people/mike/packages/?p=xorg-drv-wacom.git;a=commitdiff;h=0990f6a6f55760a52a3090c75f511eadee09c82e
http://git.altlinux.org/people/mike/packages/?p=xorg-drv-wacom.git;a=commitdiff;h=bcc58ca794516b96c9c1ba8a8b2f63ad0282bdb3
http://git.altlinux.org/tasks/98491/

В t6/branch это исправлено полтора года тому (1:0.11.1-alt1.M60T.1, bug #26723).
Comment 5 Michael Shigorin 2013-06-07 22:54:46 MSK
*comment 0, конечно же.
Comment 6 Michael Shigorin 2013-06-11 17:31:56 MSK
2 ldv: прошу подтвердить NMU и/или выдать acl.
Comment 7 Michael Shigorin 2013-06-11 20:10:56 MSK
2 shrek: спасибо, опять проморгал твой approve.
Comment 8 Repository Robot 2013-06-11 20:21:11 MSK
xorg-drv-wacom-1:0.20.0-alt3 -> sisyphus:

* Fri Jun 07 2013 Michael Shigorin <mike@altlinux> 1:0.20.0-alt3
- NMU: added udev rules (closes: #26724)