Tablet PC 包安装完成后,请配置您的手写板设备。目前,SUSE Linux Enterprise 不支持用 SaX2 配置 Wacom 设备。但是,必须编辑系统配置文件。仅系统管理员可对 /etc/X11/xorg.conf 文件作出更改。
![]() | 错误的 X 配置可能会损坏您的硬件 |
|---|---|
编辑 | |
对于 Wacom 设备,按例 E.1 “配置 Wacom 设备”中所示向 /etc/X11/xorg.conf 中添加几行。
例 E.1. 配置 Wacom 设备
添加以下 InputDevice 部分:
Section "InputDevice"Driver "wacom" Identifier "Mouse[5]" Option "Device" "/dev/ttyS0" Option "ForceDevice" "ISDV4" Option "InputFashion" "Tablet" Option "Mode" "Absolute" Option "SendCoreEvents" "on" Option "Type" "cursor" EndSection Section "InputDevice"
Driver "wacom" Identifier "Mouse[7]" Option "Device" "/dev/ttyS0" Option "ForceDevice" "ISDV4" Option "InputFashion" "Pen" Option "Mode" "Absolute" Option "Type" "stylus" EndSection Section "InputDevice"
Driver "wacom" Identifier "Mouse[9]" Option "Device" "/dev/ttyS0" Option "ForceDevice" "ISDV4" Option "InputFashion" "Eraser" Option "Mode" "Absolute" Option "Type" "eraser" EndSection
将以下行添加到 ServerLayout 部分:
InputDevice "Mouse[5]" "SendCoreEvents"
InputDevice "Mouse[7]" "SendCoreEvents"
InputDevice "Mouse[9]" "SendCoreEvents"
作出这些更改后,您的 /etc/X11/xorg.conf 将与以下内容类似:
[...] Section "InputDevice"Driver "mouse" Identifier "Mouse[3]" Option "Buttons" "5" Option "Device" "/dev/input/mice" Option "Name" "ImPS/2 Generic Wheel Mouse" Option "Protocol" "explorerps/2" Option "Vendor" "Sysp" Option "ZAxisMapping" "4 5" EndSection Section "InputDevice"
Driver "wacom" Identifier "Mouse[5]" Option "Device" "/dev/ttyS0" Option "ForceDevice" "ISDV4" Option "InputFashion" "Tablet" Option "Mode" "Absolute" Option "SendCoreEvents" "on" Option "Type" "cursor" EndSection Section "InputDevice"
Driver "wacom" Identifier "Mouse[7]" Option "Device" "/dev/ttyS0" Option "ForceDevice" "ISDV4" Option "InputFashion" "Pen" Option "Mode" "Absolute" Option "Type" "stylus" EndSection Section "InputDevice"
Driver "wacom" Identifier "Mouse[9]" Option "Device" "/dev/ttyS0" Option "ForceDevice" "ISDV4" Option "InputFashion" "Eraser" Option "Mode" "Absolute" Option "Type" "eraser" EndSection [...] Section "ServerLayout" Identifier "Layout[all]" InputDevice "Keyboard[0]" "CoreKeyboard" InputDevice "Mouse[1]" "CorePointer" InputDevice "Mouse[3]" "SendCoreEvents" InputDevice "Mouse[5]" "SendCoreEvents"
InputDevice "Mouse[7]" "SendCoreEvents" InputDevice "Mouse[9]" "SendCoreEvents" Option "Clone" "off" Option "Xinerama" "off" Screen "Screen[0]" EndSection
| 默认鼠标配置。 |
| 新添加的手写板光标输入设备配置。 |
| 新添加的手写板手写输入笔输入设备配置。 |
| 新添加的手写板橡皮输入设备配置。 |
| 手写板输入设备的 |
此示例配置应适用于绝大多数 Tablet PC。有关详细信息,请查看 Linux Wacom 万维网站点 http://linuxwacom.sourceforge.net/index.php/howto/x11 中的 HOWTO。
完成配置 X Window System 之后,注销或退出用户界面以重启动 X 服务器并在虚拟控制台上运行 init 3 && init 5。