設定 Wacom 設備 設定 WacomWacom
設備

安裝 Tablet PC 套件後,請設定您的手寫板設備。目前,SUSE Linux Enterprise 不支援對使用 SaX2 的 Wacom 設備設定組態,而必須編輯系統組態檔才能實現此目的。只有系統管理員方可變更 /etc/X11/xorg.conf 檔案。

[Warning]錯誤的 X 組態可能會損壞您的硬體

在編輯 /etc/X11/xorg.conf 檔案之前,請建立原始檔案的備份。請勿編輯檔案的其他段落,因為這麼做可能會損壞您的硬體。

對於 Wacom 設備,請在 /etc/X11/xorg.conf 中新增數行,如範例 E.1 「Wacom 設備的組態」中所示。

範例 E.1. Wacom 設備的組態

  1. 新增下列 InputDevice 段落:

      Section "InputDevice" 1
        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" 2
        Driver       "wacom"
        Identifier   "Mouse[7]"
        Option       "Device" "/dev/ttyS0"
        Option       "ForceDevice" "ISDV4"
        Option       "InputFashion" "Pen"
        Option       "Mode" "Absolute"
        Option       "Type" "stylus"
      EndSection
      
      Section "InputDevice" 3
        Driver       "wacom"
        Identifier   "Mouse[9]"
        Option       "Device" "/dev/ttyS0"
        Option       "ForceDevice" "ISDV4"
        Option       "InputFashion" "Eraser"
        Option       "Mode" "Absolute"
        Option       "Type" "eraser"
      EndSection
         
    1

    連接至 /dev/ttyS0 之手寫板游標輸入設備的組態。如果使用的是 HP Compaq tc4200,請嘗試改用 /dev/ttyS2。為設備指定 "Mouse[5]" 識別碼,以免即將發佈的 SaX2 版本出現問題。

    2

    手寫筆輸入設備的組態。

    3

    手寫板橡皮擦輸入設備的組態。在某些應用程式中,可以使用筆的該部分來擦除輸入。

  2. ServerLayout 段落中新增下列行:

      InputDevice  "Mouse[5]" "SendCoreEvents"
      InputDevice  "Mouse[7]" "SendCoreEvents"
      InputDevice  "Mouse[9]" "SendCoreEvents"
         

    完成這些變更後,/etc/X11/xorg.conf 應類似於:

       [...]
       
       Section "InputDevice"  1
         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"  2
         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"  3
         Driver       "wacom"
         Identifier   "Mouse[7]"
         Option       "Device" "/dev/ttyS0"
         Option       "ForceDevice" "ISDV4"
         Option       "InputFashion" "Pen"
         Option       "Mode" "Absolute"
         Option       "Type" "stylus"
       EndSection
       
       Section "InputDevice" 4
         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"  5
         InputDevice  "Mouse[7]" "SendCoreEvents"  
         InputDevice  "Mouse[9]" "SendCoreEvents"  
         Option       "Clone" "off"
         Option       "Xinerama" "off"
         Screen       "Screen[0]"
       EndSection
      
    1

    預設滑鼠組態。

    2

    為手寫板游標輸入設備新增的組態。

    3

    為手寫筆輸入設備新增的組態。

    4

    為手寫板橡皮擦輸入設備新增的組態。

    5

    手寫板輸入設備 "Mouse[5]""Mouse[7]""Mouse[9]" 已新增到 X 伺服器設備。

    該範例組態應適用於大多數 Tablet PC。如需詳細資訊,請參閱 Linux Wacom 網站上的 HOWTO 部分:http://linuxwacom.sourceforge.net/index.php/howto/x11

  3. 完成 X Window System 組態設定後,請重新啟動 X 伺服器,方法是執行登出,或者離開使用者介面並在虛擬主控台上執行 init 3 && init 5



SUSE Linux Enterprise Desktop GNOME 使用者指南 10 SP2