配置 Wacom 设备 配置 WacomWacom
设备

Tablet PC 包安装完成后,请配置您的手写板设备。目前,SUSE Linux Enterprise 不支持用 SaX2 配置 Wacom 设备。但是,必须编辑系统配置文件。仅系统管理员可对 /etc/X11/xorg.conf 文件作出更改。

[Warning]错误的 X 配置可能会损坏您的硬件

编辑 /etc/X11/xorg.conf 文件之前,请为原始文件创建备份。不要编辑文件的其他部分,因为这样做可能会损坏您的硬件。

对于 Wacom 设备,按例 E.1 “配置 Wacom 设备”中所示向 /etc/X11/xorg.conf 中添加几行。

例 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 万维网站点 http://linuxwacom.sourceforge.net/index.php/howto/x11 中的 HOWTO。

  3. 完成配置 X Window System 之后,注销或退出用户界面以重启动 X 服务器并在虚拟控制台上运行 init 3 && init 5