Решено: настройка wacom bamboo fun ( CHT-661) (или купила баба порося)

Разбираемся с подключением и настройкой устройств ввода информации.

Модератор: Модераторы разделов

Ответить
Аватара пользователя
humppalaki
Сообщения: 90
ОС: Debian GNU/LInux 6.0 64-bit

Решено: настройка wacom bamboo fun ( CHT-661)

Сообщение humppalaki »

И так имеется:
1. железка wacom bamboo fun ( CTH-661), которую ну никак не заставить работать. Хотя тут она ( железка, да) в списке подерживаемых

Код: Выделить всё

Bamboo Fun                 stylus, eraser; touch, pad
   (CTH661; Product ID = 0xd3)


2. Debian Squeeze ( ядро 2.6.32-5-amd64, XServer 1.7.7 )

Я пытался собрать скаченый драйвер linuxwacom-8.8-10. но без резултьтатно ( заветный wacom.ko так и не получил :( ). Собирал так

Код: Выделить всё

./configure --enable-wacom --prefix=/usr --libdir=/lib64


получил

Код: Выделить всё

----------------------------------------
  BUILD ENVIRONMENT:
       architecture - x86_64-linux-gnu
       linux kernel - yes
      kernel source - no
     XFree86 source - no
           Xorg SDK - yes /usr/include/xorg
          XSERVER64 - yes
           dlloader - yes
               XLib - yes /usr/lib
         xf86config - no
                TCL - yes /usr/include/tcl8.4
                 TK - yes /usr/include/tcl8.4
            ncurses - yes

  BUILD OPTIONS:
            wacom.o - no
            wacdump - no
             xidump - no
        libwacomcfg - no
         libwacomxi - no
          xsetwacom - no
          wacomxrrd - no
              hid.o - no
       wacom_drv.so - no /usr/lib/xorg/modules/input
        wacom_drv.o - no
  wacom*_drv quirks - IsXExtensionPointer key-events dixScreenOrigins
----------------------------------------
You can build the kernel driver from this package by
./configure --enable-wacom


NOTE: the X driver in this package only supports Xorg servers older than 1.7.
          You are running a newer version.
Please build the X driver from xf86-input-wacom.
The kernel driver provided in this package is independent of
the X server version

потом make

Код: Выделить всё

Making all in src
make[1]: Entering directory `/home/fhh/sandbox/linuxwacom-0.8.8-10/src'
make[2]: Entering directory `/home/fhh/sandbox/linuxwacom-0.8.8-10/src'
make[2]: Цель `all-am' не требует выполнения команд.
make[2]: Leaving directory `/home/fhh/sandbox/linuxwacom-0.8.8-10/src'
make[1]: Leaving directory `/home/fhh/sandbox/linuxwacom-0.8.8-10/src'
make[1]: Entering directory `/home/fhh/sandbox/linuxwacom-0.8.8-10'
make[1]: Цель `all-am' не требует выполнения команд.
make[1]: Leaving directory `/home/fhh/sandbox/linuxwacom-0.8.8-10'


поиск заветного wacom.ko

Код: Выделить всё

find -name "wacom.ko"


ничего не дал.

Хорошо, когда я собирал эту дравину была выдано предупреждение, что версия иксов новая, и ставить нужно xf86-input-wacom. взял его с git собрал и поставил ( ставил как в приведённой ссылке выше )

что дальше делать-то? с иксами какая-то чепуха проиходит, а иммено странный xorg.conf

Код: Выделить всё

# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg


Section "InputDevice"
    Identifier    "Generic Keyboard"
    Driver        "kbd"
    Option        "XkbRules"    "xorg"
    Option        "XkbModel"    "pc104"
    Option        "XkbLayout"    "us"
EndSection

Section "InputDevice"
    Identifier    "Configured Mouse"
    Driver        "mouse"
EndSection


Section "Device"
    Identifier    "Configured Video Device"
EndSection

Section "Monitor"
    Identifier    "Configured Monitor"
EndSection

Section "Screen"
    Identifier    "Default Screen"
    Monitor        "Configured Monitor"
EndSection

ни каких правил для udev создано не было, а я не пойму как их правильно составить.

при подключении dmesg | tail

Код: Выделить всё

[  267.434472] usb 4-3: Product: CTH-661
[  267.434477] usb 4-3: Manufacturer: Wacom Co.,Ltd.
[  267.434675] usb 4-3: configuration #1 chosen from 1 choice
[  271.654051] usb 4-3: USB disconnect, address 3
[ 2060.636063] usb 4-3: new full speed USB device using ohci_hcd and address 4
[ 2060.811006] usb 4-3: New USB device found, idVendor=056a, idProduct=00d8
[ 2060.811016] usb 4-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2060.811022] usb 4-3: Product: CTH-661
[ 2060.811027] usb 4-3: Manufacturer: Wacom Co.,Ltd.
[ 2060.811221] usb 4-3: configuration #1 chosen from 1 choice


и ls /dev/input

Код: Выделить всё

drwxr-xr-x 2 root root    120 Дек 30 22:17 by-id
drwxr-xr-x 2 root root    140 Дек 30 22:17 by-path
crw------- 1 root root 13, 64 Дек 30 22:17 event0
crw------- 1 root root 13, 65 Дек 30 22:17 event1
crw------- 1 root root 13, 66 Дек 30 22:17 event2
crw------- 1 root root 13, 67 Дек 30 22:17 event3
crw------- 1 root root 13, 68 Дек 30 22:17 event4
crw------- 1 root root 13, 69 Дек 30 22:17 event5
crw------- 1 root root 13, 70 Дек 30 22:17 event6
crw------- 1 root root 13, 71 Дек 30 22:17 event7
crw------- 1 root root 13, 63 Дек 30 22:17 mice
crw------- 1 root root 13, 32 Дек 30 22:17 mouse0
crw------- 1 root root 13, 33 Дек 30 22:17 mouse1


Вот такие пироги...
Abelujon ne incitu, amason ne spitu.
Спасибо сказали:
Аватара пользователя
humppalaki
Сообщения: 90
ОС: Debian GNU/LInux 6.0 64-bit

Re: Решено: настройка wacom bamboo fun ( CHT-661)

Сообщение humppalaki »

Так wacom.ko я таки получил ( просто поствил заголовочные файлы ядра ) скопировал в /lib/modules/2.6.32-5-amd64/kernel/drivers/input/tablet. Добавил в wacom в /etc/modules и сделал depmod -a. Ребутнулся теперь lsmod | grep wcom говорит вот что

Код: Выделить всё

wacom                  24752  0
usbcore               122034  6 wacom,usb_storage,usbhid,ohci_hcd,ehci_hcd


но планшет по прежнему не фурычит, гад.
Abelujon ne incitu, amason ne spitu.
Спасибо сказали:
Аватара пользователя
humppalaki
Сообщения: 90
ОС: Debian GNU/LInux 6.0 64-bit

Re: Решено: настройка wacom bamboo fun ( CHT-661)

Сообщение humppalaki »

вот что говорит udevadm monitor

Код: Выделить всё

monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[1293801916.161868] remove   /devices/pci0000:00/0000:00:12.1/usb4/4-3/4-3:1.0 (usb)
KERNEL[1293801916.161931] remove   /devices/pci0000:00/0000:00:12.1/usb4/4-3/4-3:1.1 (usb)
KERNEL[1293801916.162220] remove   /devices/pci0000:00/0000:00:12.1/usb4/4-3 (usb)
UDEV  [1293801916.163181] remove   /devices/pci0000:00/0000:00:12.1/usb4/4-3/4-3:1.0 (usb)
UDEV  [1293801916.163231] remove   /devices/pci0000:00/0000:00:12.1/usb4/4-3/4-3:1.1 (usb)
UDEV  [1293801916.163310] remove   /devices/pci0000:00/0000:00:12.1/usb4/4-3 (usb)
KERNEL[1293801923.716240] add      /devices/pci0000:00/0000:00:12.1/usb4/4-3 (usb)
KERNEL[1293801923.718230] add      /devices/pci0000:00/0000:00:12.1/usb4/4-3/4-3:1.0 (usb)
KERNEL[1293801923.718250] add      /devices/pci0000:00/0000:00:12.1/usb4/4-3/4-3:1.1 (usb)
UDEV  [1293801923.721010] add      /devices/pci0000:00/0000:00:12.1/usb4/4-3 (usb)
UDEV  [1293801923.725926] add      /devices/pci0000:00/0000:00:12.1/usb4/4-3/4-3:1.0 (usb)
UDEV  [1293801923.726828] add      /devices/pci0000:00/0000:00:12.1/usb4/4-3/4-3:1.1 (usb)
Abelujon ne incitu, amason ne spitu.
Спасибо сказали:
Аватара пользователя
humppalaki
Сообщения: 90
ОС: Debian GNU/LInux 6.0 64-bit

Re: Решено: настройка wacom bamboo fun ( CHT-661)

Сообщение humppalaki »

Теперь планшет подхватывается udev и создаёт симлинки в /dev/input

Код: Выделить всё

lrwxrwxrwx 1 root root      6 Янв  4 21:19 tablet-wacom-bamboo-pen_touch-stylus -> event8
lrwxrwxrwx 1 root root      6 Янв  4 21:19 tablet-wacom-bamboo-pen_touch-touch -> event9
lrwxrwxrwx 1 root root      6 Янв  4 21:19 wacom -> event8
lrwxrwxrwx 1 root root      6 Янв  4 21:19 wacom-touch -> event9


для это пришло изменить исходный код дравины как это показано здесь, собрать и завново установить модуль.
Abelujon ne incitu, amason ne spitu.
Спасибо сказали:
Аватара пользователя
humppalaki
Сообщения: 90
ОС: Debian GNU/LInux 6.0 64-bit

Re: Решено: настройка wacom bamboo fun ( CHT-661)

Сообщение humppalaki »

всё оно бежит!

и того

установил:
1. linuxwacom-0.8.8-10 ( + дописал в исходники адресс железяки, которую узнал из dmesg )
2. xf86-input-wacom из git

поправил правила для udev и иксов
1. cat /lib/udev/rules.d/69-xserver-xorg-input-wacom.rules

Код: Выделить всё

# udev rules for wacom tablets.
# These rules were compiled for the Debian GNU/Linux distribution,
# but others may, and indeed are encouraged to, use them also.
#
# Should you do so, PLEASE CO-ORDINATE ANY CHANGES OR ADDITIONS
# of new devices with Ron <ron@debian.org> so that we can try
# to present users with a standard set of device nodes which
# they can rely on across the board.

# Catch the serial tablets and tell X that's what they are
ACTION=="add|change", SUBSYSTEM=="pnp", ATTR{id}=="WACf*",     \
    ENV{NAME}="Serial Wacom Tablet",            \
    ENV{ID_INPUT}="1", ENV{ID_INPUT_TABLET}="1"

ACTION=="add|change", SUBSYSTEM=="pnp", ATTR{id}=="FUJ*",    \
    ENV{NAME}="Serial Wacom Tablet",            \
    ENV{ID_INPUT}="1", ENV{ID_INPUT_TABLET}="1"


KERNEL!="event[0-9]*", GOTO="wacom_end"

# Port specific link for users of multiple tablets of the same type.
# The ID_PATH variable is set by the "path_id" script in an earlier rule file.
ATTRS{idVendor}=="056a", ENV{ID_PATH}=="?*", SYMLINK="input/by-path/$env{ID_PATH}-wacom"

# Multiple interface support for stylus and touch devices.
DRIVERS=="wacom", ATTRS{bInterfaceNumber}=="00", ENV{WACOM_TYPE}="stylus"
DRIVERS=="wacom", ATTRS{bInterfaceNumber}=="01", ENV{WACOM_TYPE}="touch"

# Type-named links for multiple tablets.  If you want to use multiple
# tablets of the _same_ type, you will probably need to use the links
# from /dev/input/by-path to identify which is plugged into what usb
# port.  For different tablet types though, just pick your links from
# the list below.
#
# We override SYMLINK for tabletpc devices because the by-path link
# is not required with such devices, there will only ever be one.
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0000", SYMLINK+="input/tablet-penpartner"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0003", SYMLINK+="input/tablet-cintiq_partner"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0010", SYMLINK+="input/tablet-graphire"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0011", SYMLINK+="input/tablet-graphire2-4x5"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0012", SYMLINK+="input/tablet-graphire2-5x7"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0013", SYMLINK+="input/tablet-graphire3"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0014", SYMLINK+="input/tablet-graphire3-6x8"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0015", SYMLINK+="input/tablet-graphire4-4x5"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0016", SYMLINK+="input/tablet-graphire4-6x8"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0017", SYMLINK+="input/tablet-bamboofun-4x5"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0018", SYMLINK+="input/tablet-bamboofun-6x8"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0019", SYMLINK+="input/tablet-bamboo1-medium"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0020", SYMLINK+="input/tablet-intuos-4x5"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0021", SYMLINK+="input/tablet-intuos-6x8"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0022", SYMLINK+="input/tablet-intuos-9x12"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0023", SYMLINK+="input/tablet-intuos-12x12"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0024", SYMLINK+="input/tablet-intuos-12x18"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0030", SYMLINK+="input/tablet-pl400"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0031", SYMLINK+="input/tablet-pl500"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0032", SYMLINK+="input/tablet-pl600"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0033", SYMLINK+="input/tablet-pl600sx"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0034", SYMLINK+="input/tablet-pl550"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0035", SYMLINK+="input/tablet-pl800"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0037", SYMLINK+="input/tablet-pl700"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0038", SYMLINK+="input/tablet-pl510"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0039", SYMLINK+="input/tablet-dtu710"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="003f", SYMLINK+="input/tablet-cintiq21ux"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0041", SYMLINK+="input/tablet-intuos2-4x5"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0042", SYMLINK+="input/tablet-intuos2-6x8"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0043", SYMLINK+="input/tablet-intuos2-9x12"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0044", SYMLINK+="input/tablet-intuos2-12x12"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0045", SYMLINK+="input/tablet-intuos2-12x18"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0047", SYMLINK+="input/tablet-intuos2-6x8a"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0060", SYMLINK+="input/tablet-volito"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0061", SYMLINK+="input/tablet-penstation2"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0062", SYMLINK+="input/tablet-volito2-4x5"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0063", SYMLINK+="input/tablet-volito2-2x3"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0064", SYMLINK+="input/tablet-penpartner2"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0065", SYMLINK+="input/tablet-bamboo"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0069", SYMLINK+="input/tablet-bamboo1"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0081", SYMLINK+="input/tablet-graphire_bt-6x8"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0090",  SYMLINK="input/tablet-tpc90"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0093",  SYMLINK="input/tablet-tpc93-$env{WACOM_TYPE}"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="009a",  SYMLINK="input/tablet-tpc9a-$env{WACOM_TYPE}"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00b0", SYMLINK+="input/tablet-intuos3-4x5"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00b1", SYMLINK+="input/tablet-intuos3-6x8"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00b2", SYMLINK+="input/tablet-intuos3-9x12"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00b3", SYMLINK+="input/tablet-intuos3-12x12"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00b4", SYMLINK+="input/tablet-intuos3-12x19"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00b5", SYMLINK+="input/tablet-intuos3-6x11"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00b7", SYMLINK+="input/tablet-intuos3-4x6"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00b8", SYMLINK+="input/tablet-intuos4-4x6"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00b9", SYMLINK+="input/tablet-intuos4-6x9"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00ba", SYMLINK+="input/tablet-intuos4-8x13"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00bb", SYMLINK+="input/tablet-intuos4-12x19"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00c0", SYMLINK+="input/tablet-dtf521"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00c4", SYMLINK+="input/tablet-dtf720"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00c5", SYMLINK+="input/tablet-cintiq20wsx"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00c6", SYMLINK+="input/tablet-cintiq12wx"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00c7", ENV{WACOM_TYPE}!="touch", SYMLINK+="input/tablet-dtu1931"

ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00d8", SYMLINK="input/tablet-wacom-bamboo-pen_touch-$env{WACOM_TYPE}" # <--- ДОБАВИЛ ЭТО

# Convenience links for the common case of a single tablet.  We could do just this:
#ATTRS{idVendor}=="056a", SYMLINK+="input/wacom-$env{WACOM_TYPE}"
# but for legacy reasons, we keep the input/wacom link as the generic stylus device.
ATTRS{idVendor}=="056a", ENV{WACOM_TYPE}!="touch", SYMLINK+="input/wacom"
ATTRS{idVendor}=="056a", ENV{WACOM_TYPE}=="touch", SYMLINK+="input/wacom-touch"

# Check and repossess the device if a module other than the wacom one
# is already bound to it.
#
# We probably don't need this one in the Real World anymore ...
# See the old wacom-tools package if we actually do need to resurrect the
# check_driver script for this again.
#ATTRS{idVendor}=="056a", ACTION=="add", RUN+="check_driver wacom $devpath $env{ID_BUS}"

LABEL="wacom_end"

2. cat /usr/share/X11/xorg.conf.d/50-wacom.conf

Код: Выделить всё

Section "InputClass"
    Identifier "Wacom class"
# WALTOP needs a patched kernel driver, that isn't in mainline lk yet,
# so for now just let it fall through and be picked up by evdev instead.
#    MatchProduct "Wacom|WALTOP|WACOM"
    MatchProduct "Wacom|WACOM|Hanwang"
    MatchDevicePath "/dev/input/event*"
    Driver "wacom"
EndSection

Section "InputClass"
    Identifier "Wacom serial class"
    MatchProduct "Serial Wacom Tablet"
    Driver "wacom"
EndSection

Section "InputClass"
        Identifier "Wacom serial class identifiers"
        MatchProduct "WACf|FUJ02e5|FUJ02e7"
        Driver "wacom"
EndSection


# N-Trig Duosense Electromagnetic Digitizer
Section "InputClass"
    Identifier "Wacom N-Trig class"
    MatchProduct "HID 1b96:0001|N-Trig Pen"
    MatchDevicePath "/dev/input/event*"
    Driver "wacom"
    Option "Button2" "3"
EndSection


таки дела!
Abelujon ne incitu, amason ne spitu.
Спасибо сказали:
Ответить