• 検索結果がありません。

タブレット定義ファイルの準備

第 9 章 GNOME デスクトップ機能のカスタマイズ

18.1. タブレット定義ファイルの準備

libwacom タブレットのクライアントライブラリーでは、追加するタブレットに定義ファイルが必要で

す。

タブレット定義ファイルが存在することを確認するには、以下の手順に従います。

前提条件 前提条件

libwacom が認識するローカルデバイスの一覧を表示します。

$ libwacom-list-local-devices 出力で、デバイスが認識されている。

お使いのデバイスが一覧にない場合は、デバイスが libwacom のデータベースにないことを示 しています。ただし、デバイスが、/proc/bus/input/devices 配下にカーネルのイベントデバイ スとして表示され、X.Org ディスプレイサーバーを使用する場合は、xinput 一覧の X11 に表示 されます。

手順 手順

1. タブレット定義ファイルを提供するパッケージをインストールします。

# yum install libwacom-data

このパッケージは、/usr/share/libwacom/ ディレクトリーにタブレット定義をインストールし ます。

2. 定義ファイルが /usr/share/libwacom/ ディレクトリーにあるかどうかを確認します。

画面のマッピングを正しく使用するには、使用しているタブレットのサポートが、libwacom データベースおよび udev ルールファイルに組み込まれている必要があります。

重要 重要

デバイスが libwacom に対応していない一般的なインジケーターは、GNOME セッションでは正常に機能しても、デバイスは画面に正しくマッピングされませ ん。

3. デバイスの定義ファイルが /usr/share/libwacom/ で利用できない場合は、以下のいずれかの方 法で対処できます。

linuxwacom/libwacom アップストリームリポジトリーで、必要な定義ファイルが利用でき

る可能性があります。そのリポジトリーで、必要な定義ファイルを探してみてください。

タブレットモデルが一覧にある場合は、ファイルをローカルマシンにコピーします。

タブレットの定義ファイルを新たに作成できます。以下のような data/wacom.example ファイルを使用し、デバイスの特性に基づいて特定の行を編集します。

例18.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

18.2. 新しいタブレットのサポートの追加

libwacom タブレット情報クライアントライブラリーに、新規タブレットのサポートを追加するには、

以下の手順に従います。

前提条件 前提条件

追加するタブレットの定義ファイルが存在する。

定義ファイルが存在することを確認する方法は、「タブレット定義ファイルの準備」を参照し てください。

手順 手順

1. .tablet 接尾辞を含む定義ファイルを追加およびインストールします。

# cp the-new-file.tablet /usr/share/libwacom/

インストールが完了すると、タブレットは libwacom のデータベースの一部になります。次 に、このタブレットは libwacom-list-local-devices から利用できるようになります。

2. 以下の内容で /etc/udev/rules/99-libwacom-override.rules ファイルを新規作成し、設定が上 書きされないようにします。

ACTION!="add|change", GOTO="libwacom_end"

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

[new tablet match entries go here]

LABEL="libwacom_end"

3. システムを再起動します。