WACOM One DTC133 + Gentooのメモ
環境
Linux localhost 5.10.76-gentoo-r1 #2 SMP Sat Dec 11 20:20:43 JST 2021 x86_64 Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz GenuineIntel GNU/Linux
Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 16384 x 16384 HDMI-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 294mm x 166mm 1920x1080 60.00*+ 59.94 1600x1200 60.00 1280x1024 60.02 1280x720 60.00 59.94 1024x768 60.00 800x600 60.32 720x480 60.00 59.94 640x480 60.00 59.94 720x400 70.08 HDMI-2 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 476mm x 268mm 1920x1080 60.00*+ 1680x1050 59.88 1280x1024 75.02 60.02 1440x900 74.98 59.90 1280x960 60.00 1152x864 75.00 1024x768 75.03 70.07 60.00 800x600 75.00 60.32 56.25 640x480 75.00 66.67 59.94 720x400 70.08 DP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 598mm x 336mm 1920x1080 60.00*+ 1680x1050 59.95 1600x900 60.00 1280x1024 75.02 60.02 1280x800 59.81 1152x864 75.00 1280x720 60.00 1024x768 75.03 60.00 832x624 74.55 800x600 75.00 60.32 640x480 75.00 59.94 720x400 70.08
HDMI-1がWACOM One DTC 133で,他の2つはデスクトップモニタ.
カーネルの設定
Gentoo WIkiのWacomのページに従って,以下の設定項目を有効にするか,モジュールとしてインストールする.以下は当該ページの内容を引用して加工したもの.
Device drivers --->
HID support --->
HID bus support --->
Special HID drivers --->
<*> Wacom Intuos/Graphire tablet support (USB)
Input device support --->
[*] Tablets --->
<*> Wacom protocol 4 serial tablet support--->
[*] Touchscreens --->
<*> Wacom W8001 penabled serial touchscreen
<*> Wacom Tablet support (I2C)
複数のモニタが存在する場合の不具合の修正
今回2枚のモニタが既に存在したため,どういうわけか,このタブレットの解像度がその2枚を横並びにしたものとなってしまっている*1.これをxsetwacomを利用して修正する.xsetwacomは以下のようにしてインストールする.
sudo emerge -avt xf86-input-wacom
なお,e-fileを利用してxsetwacomがどのパッケージに存在するかを確認することができる.
$ e-file xsetwacom
[I] x11-drivers/xf86-input-wacom
Available Versions: 0.38.0 0.39.0 0.40.0
Last Installed Ver: 0.40.0(2021年12月11日 20時48分11秒)
Matched Files: /usr/bin/xsetwacom;
Wacom タブレット - ArchWikiを参考に,以下のコマンドを実行してこの挙動を修正する.
$ xsetwacom --list devices Wacom One Pen Display 13 Pen stylus id: 10 type: STYLUS Wacom One Pen Display 13 Pen eraser id: 19 type: ERASER $ xsetwacom --set 10 MapToOutput "DP-1"
追記(2022/03/12)
以下のコマンドを使うとディスプレイのミラーリングを回避できる.
xrandr --output DP-1 --auto --output HDMI-2 --auto --right-of DP-1 --output HDMI-1 --auto --right-of HDMI-2
単に3枚のディスプレイを横並びにするだけ.
*1:上記の出力にもあるように,解像度が3840x1080となってしまっている