Oracle® Solaris 11 Desktop 辅助功能指南

退出打印视图

更新时间: 2014 年 7 月
 
 

在 Oracle Solaris x86 系统上配置两个 USB 鼠标设备

  1. 将第二个鼠标连接到系统之前,列出现有设备:
    # ls -l /dev/usb/hid*
  2. 将第二个鼠标连接到系统。
  3. 列出新设备。
    # ls -l /dev/usb/hid*
  4. /etc/X11/xorg.conf 文件中,编辑 ServerLayout 部分,如下所示:
    Section "ServerLayout"
             Identifier     "X.org Configured"
             Screen      0  "Screen0" 0 0
             InputDevice    "Mouse0" "CorePointer"
             InputDevice    "Mouse1"
             InputDevice    "Keyboard0" "CoreKeyboard"
    					EndSection
  5. 编辑 InputDevice 部分,如下所示:
    Section "InputDevice"
             Identifier  "Mouse0"
             Driver      "mouse"
             Option      "Protocol" "VUID"
             Option      "Device" "/dev/mouse"
    EndSection
  6. 插入另一个 InputDevice 部分,如下所示:
    Section "InputDevice"
             Identifier  "Mouse1"
             Driver      "mouse"
             Option      "Protocol" "VUID"
             Option      "StreamsModule" "usbms"
             Option      "Device" "/dev/usb/hidx"
    EndSection

    其中:

    /dev/usb/hidx 是在步骤 3 中标识的设备名称。

  7. 保存 /etc/X11/xorg.conf 文件。
  8. 重新启动 X 服务器。