安裝 Tablet PC 套件後,請設定您的手寫板設備。目前,SUSE Linux Enterprise 不支援對使用 SaX2 的 Wacom 設備設定組態,而必須編輯系統組態檔才能實現此目的。只有系統管理員方可變更 /etc/X11/xorg.conf 檔案。
![]() | 錯誤的 X 組態可能會損壞您的硬體 |
|---|---|
在編輯 | |
對於 Wacom 設備,請在 /etc/X11/xorg.conf 中新增數行,如範例 E.1 「Wacom 設備的組態」中所示。
範例 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 網站上的 HOWTO 部分:http://linuxwacom.sourceforge.net/index.php/howto/x11。
完成 X Window System 組態設定後,請重新啟動 X 伺服器,方法是執行登出,或者離開使用者介面並在虛擬主控台上執行 init 3 && init 5。