web-dev-qa-db-ja.com

Ubuntu LucidでWacomタブレットを調整する方法は?

私はLinuxでWacomタブレットをかなり長い間使用しており、ほとんどがUbuntuでのみ使用されていました。以前のバージョンでは、入力値を追跡するために xidump を使用していました。その情報を使用して、キャリブレーション設定をxorg.confファイルに配置します。ただし、最新のUbuntuリリースでは、このコマンドは存在せず、パッケージwacom-tools以前にインストールしていたものが削除されました。

LinuxでWacomパッドを調整するための新しい方法はありますか?この情報を取得するために、ずっと別の方法を使用する必要がありましたか?

4
Calvin Fisher

これが私のために働いた結果です。

1)タブレットのデバイス番号を見つけます。 (私にとって、デバイス識別子として文字列を使用することは機能しませんでした。デバイス番号を使用することが最善の方法のようです。)

$ xsetwacom --list --verbose
... Display is '(null)'.
... 'list' requested.
... Found device 'Virtual core XTEST pointer' (4).
... Found device 'Virtual core XTEST keyboard' (5).
... Found device 'Power Button' (6).
... Found device 'Video Bus' (7).
... Found device 'Power Button' (8).
... Found device 'Sleep Button' (9).
... Found device 'AT Translated Set 2 keyboard' (10).
... Found device 'Serial Wacom Tablet eraser' (11).
Serial Wacom Tablet eraser ERASER    
... Found device 'Serial Wacom Tablet' (12).
Serial Wacom Tablet STYLUS    
... Found device 'Macintosh mouse button emulation' (13).
... Found device 'SynPS/2 Synaptics TouchPad' (14).

2)システムのデフォルト/現在の値を見つけます。

$ cat /var/log/Xorg.0.log | grep "Serial Wacom Tablet:"
(**) Serial Wacom Tablet: Applying InputClass "Wacom serial class"
(II) Serial Wacom Tablet: type not specified, assuming 'stylus'.
(II) Serial Wacom Tablet: other types will be automatically added.
(**) Serial Wacom Tablet: always reports core events
(II) Serial Wacom Tablet: hotplugging dependent devices.
(II) Serial Wacom Tablet: hotplugging completed.
(--) Serial Wacom Tablet: top X=0 top Y=0 bottom X=30730 bottom Y=18520 resol X=2540 resol Y=2540

3)適切な値が見つかるまで微調整します。

$ xsetwacom set 12 TopX 60

4)適切な値を見つけたら、それらを/usr/lib/X11/xorg.conf.d/10-wacom.confに配置します。

Section "InputClass"
        Identifier "Wacom serial class"
        MatchProduct "Serial Wacom Tablet"
        Driver "wacom"
        Option "ForceDevice" "ISDV4"
        Option "Button2" "3"
        Option "TopX" "60"
        Option "BottomX" "30690"
        Option "TopY" "10"
        Option "BottomY" "18350"
EndSection

値を繰り返しリセットしなければならないのは少し面倒ですが(4つの数字を書き留めるだけでは不十分です)、それは世界の終わりではありません。

2
Calvin Fisher

ワコムのタブレットを調整する必要性を実際に見たことがありませんが、それでもお手伝いできるかもしれません...

パッケージをインストールしますevtestそしてSudo evtest /dev/input/wacomを実行します。これは私のシステムではうまくいきました。ただし、manエントリとは異なり、evtestは開始時の瞬間的な値のみをキャプチャしているようです。したがって、キャリブレーションでは、evtestを数回実行し、CTRL-Cを使用して停止する必要があります。

キャリブレーション設定を保存する場合は、Xサーバーにログインするたびに提供されるファイル。xsessionrcに保存する必要があります。スタイラスボタンを切り替える私のファイルからの抜粋を次に示します。

if [ -x /usr/bin/xsetwacom ]; then
  # Wacom Intuos3 (Stylus)
  xsetwacom set 'Wacom Intuos3 6x8' 'Button1' '1'
  xsetwacom set 'Wacom Intuos3 6x8' 'Button2' '3'
  xsetwacom set 'Wacom Intuos3 6x8' 'Button3' '2'
fi
0
mzuther