Wacom logo

О том, как я подключал планшет дочери (Wacom Bamboo Fan (medium)) к своему лэптопу. В моем случае планшет подключался по USB.

Конфигурация ядра

Включаем поддержку USB планшета модулем:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
Device Drivers --->
Input device support --->
<*> Event interface
[*] Tablets --->
Wacom Intuos/Graphire tablet support (USB)
Device Drivers ---> Input device support ---> <*> Event interface [*] Tablets ---> Wacom Intuos/Graphire tablet support (USB)
Device Drivers --->
    Input device support --->
        <*> Event interface
        [*] Tablets --->
              Wacom Intuos/Graphire tablet support (USB)

Собираем ядро и устанавливаем модули.


Модуль ядра для планшета

Устанавливать нужно последнюю версию linuxwacom:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
USE="kernel_linux module usb" emerge x11-drivers/linuxwacom -av
USE="kernel_linux module usb" emerge x11-drivers/linuxwacom -av
USE="kernel_linux module usb" emerge x11-drivers/linuxwacom -av

Можно попробовать вставить модуль прямо сейчас – modprobe wacom, если не получится, значит придется перегрузить ядро.
Теперь у вас должен появиться новый девайс – /dev/input/wacom. Он создается на основе правил для udev при подключении планшета. Так же планшет должен быть виден по lsusb.

Сборка и настройка Xorg

Добавляем wacom в /etc/make.conf для INPUT_DEVICES и пересобираем xorg-server:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
emerge xorg-server -av
emerge xorg-server -av
emerge xorg-server -av

В файле конфигурации “иксов” добавляем следующие строки в соответствующую секцию:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
Section "ServerLayout"
InputDevice "stylus" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
# For Intuos3/CintiqV5/Graphire4/Bamboo tablets
InputDevice "pad"
EndSection
Section "ServerLayout" InputDevice "stylus" "SendCoreEvents" InputDevice "eraser" "SendCoreEvents" InputDevice "cursor" "SendCoreEvents" # For Intuos3/CintiqV5/Graphire4/Bamboo tablets InputDevice "pad" EndSection
Section "ServerLayout"
   InputDevice "stylus"    "SendCoreEvents"
   InputDevice "eraser"    "SendCoreEvents"
   InputDevice "cursor"    "SendCoreEvents"
   # For Intuos3/CintiqV5/Graphire4/Bamboo tablets
   InputDevice "pad"
EndSection

А так же добавляем следующие секции:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "USB" "on"
Option "Mode" "Relative" # or "Absolute"
# the official linuxwacom howto advises this line
Option "Threshold" "5"
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "USB" "on"
Option "Mode" "Relative" # or "Absolute"
# the official linuxwacom howto advises this line
Option "Threshold" "5"
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "USB" "on"
Option "Mode" "Relative" # or "Absolute"
EndSection
# This section is for Intuos3, CintiqV5, Graphire4, or Bamboo
Section "InputDevice"
Driver "wacom"
Identifier "pad"
Option "Device" "/dev/input/wacom"
Option "Type" "pad"
Option "USB" "on"
Option "ButtonsOnly" "off"
EndSection
Section "InputDevice" Driver "wacom" Identifier "stylus" Option "Device" "/dev/input/wacom" Option "Type" "stylus" Option "USB" "on" Option "Mode" "Relative" # or "Absolute" # the official linuxwacom howto advises this line Option "Threshold" "5" EndSection Section "InputDevice" Driver "wacom" Identifier "eraser" Option "Device" "/dev/input/wacom" Option "Type" "eraser" Option "USB" "on" Option "Mode" "Relative" # or "Absolute" # the official linuxwacom howto advises this line Option "Threshold" "5" EndSection Section "InputDevice" Driver "wacom" Identifier "cursor" Option "Device" "/dev/input/wacom" Option "Type" "cursor" Option "USB" "on" Option "Mode" "Relative" # or "Absolute" EndSection # This section is for Intuos3, CintiqV5, Graphire4, or Bamboo Section "InputDevice" Driver "wacom" Identifier "pad" Option "Device" "/dev/input/wacom" Option "Type" "pad" Option "USB" "on" Option "ButtonsOnly" "off" EndSection
Section "InputDevice"
  Driver        "wacom"
  Identifier    "stylus"
  Option        "Device"        "/dev/input/wacom"
  Option        "Type"          "stylus"
  Option        "USB"           "on"
  Option        "Mode"         "Relative" # or "Absolute"
  # the official linuxwacom howto advises this line
  Option        "Threshold"    "5"
EndSection

Section "InputDevice"
  Driver        "wacom"
  Identifier    "eraser"
  Option        "Device"        "/dev/input/wacom"
  Option        "Type"          "eraser"
  Option        "USB"           "on"
  Option        "Mode"         "Relative" # or "Absolute"
  # the official linuxwacom howto advises this line
  Option        "Threshold"    "5"
EndSection

Section "InputDevice"
  Driver        "wacom"
  Identifier    "cursor"
  Option        "Device"        "/dev/input/wacom"
  Option        "Type"          "cursor"
  Option        "USB"           "on"
  Option        "Mode"         "Relative" # or "Absolute"
EndSection

# This section is for Intuos3, CintiqV5, Graphire4, or Bamboo
Section "InputDevice"
   Driver        "wacom"
   Identifier    "pad"
   Option        "Device"        "/dev/input/wacom"
   Option        "Type"          "pad"
   Option        "USB"           "on"
   Option        "ButtonsOnly"   "off"
EndSection

После перезапуска “иксов” планшет должен работать.

Если собирать x11-drivers/linuxwacom с флагами “tcl tk”, то установится графическая утилита, страшная на вид, схожая с windows-версией.
Установка флага “gtk” ничего не дает. Во всяком случае, я не заметил никакой разницы. Возможно это актуально при использовании GNOME-related апплетов.

На данный момент у меня не работает Eraser (он просто выполняет роль стилуса), и сила нажатия не влияет на толщину линии в GIMP.