Solaris Express Developer Edition Release Notes

x86: Problems Configuring USB Mouse Device as Extension Device for Use With GNOME On-Screen Keyboard

You cannot set up a USB mouse device as an extension device with the GOK. The configuration fails when you are setting up the USB mouse device while using a PS2 mouse device as the core pointer. To properly set up the USB mouse, follow these steps.

  1. Log in as superuser.

  2. While the USB mouse device is unplugged, type the following in a terminal window:


    # ls -l /dev/usb/hid*
    
  3. Connect the USB mouse and type the previous command again.

  4. Record the path of the USB mouse that is displayed on the screen.

  5. Log in to a command-line session.

    • If you are using the GNOME Display Manager, follow these steps:

      1. Log in to a session as superuser.

      2. At the prompt, type svcadm disable application/gdm2-login.

      3. Log in again as superuser.

    • If you are using dtlogin, follow these steps:

      1. In the dtlogin window, click Options and select Command Line Login.

      2. Log in as superuser.

  6. Create a new xorg.conf file.


    # /usr/X11/bin/Xorg -configure
    

    The command creates the file xorg.conf.new in the root (/) directory.

  7. Copy the new configuration file to the /etc/x11 directory and rename the file xorg.conf.


    # cp /xorg.conf.new /etc/X11/xorg.conf
    
  8. Modify the configurations in the file:

    • In the ServerLayout section, add an input device for Mouse1 after the line InputDevice "Mouse0" "CorePointer". See the following example:


      InputDevice   "Mouse0" "CorePointer"
      InputDevice   "Mouse1"
    • In the InputDevice section that contains the line Identifier "Mouse0", apply the following changes:

      • Change Option "Device" "/dev/mouse" to Option "Device" "/dev/kdmouse"

      • Change Option "Protocol" "auto" to Option "Protocol" "VUID"

      • Add the following new Option:


        Option    "StreamsModule" "vuid3ps2"

      After you have applied the changes, the section should appear similar to the following example:


      Section "InputDevice"
         Identifier  "Mouse0"
         Driver      "mouse"
         Option      "Protocol" "VUID"
         Option      "Device" "/dev/kdmouse"
         Option      "StreamsModule" "vuid3ps2"
      EndSection
    • Create a new InputDevice section after the preceding InputDevice section:


      Section "InputDevice"
         Identifier  "Mouse1"
         Driver      "mouse"
      	  Option      "Device" "/dev/usb/hid1"
      EndSection

      Note –

      /dev/usb/hid1 is an example path for the USB mouse. Use the path in Step 4 to replace /dev/usb/hid1.


  9. Save the file and exit.

  10. Reboot the system from the appropriate command-line session:

    • If you are using GDM, perform the following:

      1. Type svcadm enable application/gdm2-login.

      2. Reboot the system.

    • If you are using dtlogin, reboot the system.

  11. Log in to the accessible UI user's account.

  12. Enable Assistive Technology Support by clicking Launch Menu => Preferences => Accessibility => Assistive Technology Support.

  13. Log out of the system then log in to the accessible UI user's account again.

  14. Open a terminal window and type the following command:


    % /usr/sfw/bin/gok --select-action=switch1
    
  15. In the GOK window, click GOK and select Preferences.

  16. If necessary, set up GOK to the accessible UI user's needs. Otherwise, to accept the current setup, click Apply then click OK in the GOK Preferences window.

  17. Exit GOK and then restart it by clicking Launch Menu => Applications => Accessibility => On-Screen Keyboard. The following warning message might be displayed:


    The device you are using to control GOK is
    also controlling the system pointer.
  18. Click OK.

  19. Exit GOK and then repeat steps 14-17.

    The warning message is no longer displayed.