Oracle® Solaris 11 桌面輔助功能指南

結束列印檢視

更新日期: 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 伺服器。