第25章 グラフィックタブレット
システムに接続している Wacom タブレットを管理するには、次のツールを使用します。
-
gnome-settings-daemon
サービス GNOME 環境の
Wacom タブレット
設定パネルタブレット用の Wacom タブレット設定パネル
グリップペン用の Wacom タブレット設定パネル
libinput
スタックとこの両ツールは、Wacom タブレットのデータを格納する libwacom
タブレットのクライアントライブラリーを使用します。
新規タブレットのサポートを libwacom
ライブラリーに追加する場合は、この新規タブレットの定義ファイルが存在することを確認する必要があります。
25.1. タブレット定義ファイルの準備
追加するタブレットの定義ファイルを準備する必要があります。
前提条件
libwacom
が認識するローカルデバイスのリストを表示します。$ libwacom-list-local-devices
出力で、デバイスが認識されている。
お使いのデバイスがリストにない場合は、デバイスが
libwacom
のデータベースにないことを示しています。ただし、デバイスが、/proc/bus/input/devices
配下にカーネルのイベントデバイスとして表示され、X.Org ディスプレイサーバーを使用する場合は、xinput
リストの X11 に表示されます。
手順
タブレット定義ファイルを提供するパッケージをインストールします。
# yum install libwacom-data
このパッケージは、
/usr/share/libwacom/
ディレクトリーにタブレット定義をインストールします。定義ファイルが
/usr/share/libwacom/
ディレクトリーにあるかどうかを確認します。画面のマッピングを正しく使用するには、使用しているタブレットのサポートが、
libwacom
データベースおよびudev
ルールファイルに組み込まれている必要があります。重要デバイスが
libwacom
に対応していない一般的なインジケーターは、GNOME セッションでは正常に機能しても、デバイスは画面に正しくマッピングされません。デバイスの定義ファイルが
/usr/share/libwacom/
で利用できない場合は、以下のいずれかの方法で対処できます。- linuxwacom/libwacom アップストリームリポジトリーで、必要な定義ファイルが利用できる可能性があります。そのリポジトリーで、必要な定義ファイルを探してみてください。タブレットモデルがリストにある場合は、ファイルをローカルマシンにコピーします。
タブレットの定義ファイルを新たに作成できます。以下のような
data/wacom.example
ファイルを使用し、デバイスの特性に基づいて特定の行を編集します。例25.1 タブレットのモデルファイルの説明例
[Device] # The product is the product name announced by the kernel Product=Intuos 4 WL 6x9 # Vendor name of this tablet Vendor=Wacom # DeviceMatch includes the bus (usb, serial), the vendor ID and the actual # product ID DeviceMatch=usb:056a:00bc # Class of the tablet. Valid classes include Intuos3, Intuos4, Graphire, Bamboo, Cintiq Class=Intuos4 # Exact model of the tablet, not including the size. Model=Intuos 4 Wireless # Width in inches, as advertised by the manufacturer Width=9 # Height in inches, as advertised by the manufacturer Height=6 # Optional features that this tablet supports # Some features are dependent on the actual tool used, e.g. not all styli # have an eraser and some styli have additional custom axes (e.g. the # airbrush pen). These features describe those available on the tablet. # # Features not set in a file default to false/0 [Features] # This tablet supports styli (and erasers, if present on the actual stylus) Stylus=true # This tablet supports touch. Touch=false # This tablet has a touch ring (Intuos4 and Cintiq 24HD) Ring=true # This tablet has a second touch ring (Cintiq 24HD) Ring2=false # This tablet has a vertical/horizontal scroll strip VStrip=false HStrip=false # Number of buttons on the tablet Buttons=9 # This tablet is built-in (most serial tablets, Cintiqs) BuiltIn=false