如何在 Ubuntu Lucid 下校准 Wacom 数位板?

Cal*_*her 5 linux calibration ubuntu ubuntu-10.04

我在 Linux 上使用 Wacom 数位板已经有一段时间了,几乎只在 Ubuntu 上使用,在以前的版本中我用来xidump跟踪输入值。我将使用该信息将校准设置放入我的 xorg.conf 文件中。然而,在最新的 Ubuntu 版本中,该命令不存在,并且wacom-tools之前安装它的软件包现已被删除。

Linux 下有校准 Wacom 板的新方法吗?我是否应该一直使用不同的方法来获取此信息?

Cal*_*her 3

这就是最终对我有用的东西。

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).
Run Code Online (Sandbox Code Playgroud)

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
Run Code Online (Sandbox Code Playgroud)

3)调整直到找到合适的值。

$ xsetwacom set 12 TopX 60
Run Code Online (Sandbox Code Playgroud)

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
Run Code Online (Sandbox Code Playgroud)

必须反复重置这些值有点痛苦(比仅仅写下四个数字还要痛苦),但这并不是世界末日。