|
|
(10 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| | Gnome Onscreen Keyboard, for users with severe motor difficulties |
| == '''How to set up two mice on one box''' == | | == '''How to set up two mice on one box''' == |
| '''For Solaris10''' | | :'''For Solaris10''' |
| :A. [[For Sparc]] | | ::*A. [[For Sparc]] |
| :B. [[For X86]] | | ::*B. [[For x86]] |
| '''[[For Linux]]''' | | :'''[[For Linux]]''' |
| | == '''[[Setup GOK preferences in Solaris]]'''== |
|
| |
|
| == For Solaris10 == | | == Test Aim == |
| :'''A. For sparc:'''
| |
| :*1. Enable the XKB extension of xsun server([[How to]]).
| |
| :*2. Run "ls -l /dev/usb/hid*" to see what the existing device names are.
| |
| :*3. Attach the additional input device(the second mouse, usb physical interface) to the machine.
| |
| :*4. Run "ls -l /dev/usb/hid*" to see what the newly attached device names are. Note at the end of each symlink line it will list whetherit is a keyboard or a mouse(here we attached the mouse).
| |
| :*5. Backup the original file /usr/openwin/server/etc/OWconfig.
| |
| :*6. Edit the file /usr/openwin/server/etc/OWconfig, add lines of the following form to OWconfig, one for each device, and each with aunique name beginning with "IMOUSE" or "IKBD":
| |
|
| |
|
| For Keyboard:
| | == Tester Notes == |
| # sun Keyboard module
| |
| class="XINPUT" name="IKBD2"
| |
| dev="/dev/usb/hid3" strmod="usbkbm" #"hid*" here is as same as which you got from step3.
| |
| ddxHandler="ddxSUNWkbd.so.1"
| |
| ddxInitFunc="ddxSUNWkbdProc";
| |
| | |
| For Mouse:
| |
| # sun Mouse module
| |
| class="XINPUT" name="IMOUSE2" #"IMOUSE*" is determined by the amount of mice which
| |
| have been attached to your machine.
| |
| dev="/dev/usb/hid3" strmod="usbms" #"hid*" here is as same as which you got from step3.
| |
| ddxHandler="ddxSUNWmouse.so.1"
| |
| ddxInitFunc="ddxSUNWmouseProc";
| |
| | |
| :*6. Add "#" before each line of "Null Mouse module" section.
| |
| | |
| # Null Mouse module
| |
| #class="XINPUT" name="NMOUSE"
| |
| # ddxHandler="ddxSUNWmouse.so.1"
| |
| # ddxInitFunc="ddxnullmouseProc";
| |
| | |
| :*7. Save changes and restart Xsession.
| |
| | |
| :'''B. For X86:'''
| |
| :'''a. usb: core pointer, ps2: other input device'''
| |
| | |
| :*1. Run "ls -l /dev/usb/hid*" to see what the existing device names are.
| |
| :*2. Attach the additional input device(the second mouse, usb physical interface) to the machine.
| |
| :*3. Run "ls -l /dev/usb/hid*" to see what the newly attached device names are. Note at the end of each symlink line it will list whetherit is a keyboard or a mouse(here we attached the mouse).
| |
| :*4. Backup the original file /etc/X11/xorg.conf ( If this file doesn't exist, please run /usr/X11/bin/xorgconfig or /usr/X11/bin/xorgcfg to create it manually).
| |
| :*5. Edit the file /etc/X11/xorg.conf, add lines of the following form to xorg.conf, one for each device.
| |
| :*6. At the top of the xorg.conf file, you need to add in the name of the second input device which you are configuring e.g. in this case it is ps2.
| |
| | |
| Section "ServerLayout"
| |
| Identifier "X.org Configured"
| |
| Screen 0 "Screen0" 0 0
| |
| InputDevice "usb" "CorePointer"
| |
| InputDevice "Keyboard0" "CoreKeyboard"
| |
| InputDevice "ps2"
| |
| | |
| :*7. Add the following lines into input devices section.
| |
| | |
| For the usb mouse, the section below should be fine.
| |
| | |
| Section "InputDevice"
| |
| Identifier "usb"
| |
| Driver "mouse"
| |
| # Option "Protocol" "auto"
| |
| Option "Device" "/dev/usb/hid0" #"hid*" here is as same as which you got from step3.
| |
| EndSection
| |
| | |
| If you are setting up a ps2 mouse, you need to include the lines Protocol and StreamsModule. See below.
| |
| | |
| Section "InputDevice"
| |
| Identifier "ps2"
| |
| Driver "mouse"
| |
| Option "Protocol" "VUID"
| |
| Option "StreamsModule" "vuid3ps2"
| |
| Option "Device" "/dev/kdmouse"
| |
| EndSection
| |
| | |
| :*8. Save changes and restart Xsession.
| |
| | |
| :'''b. usb: core pointer, usb: other input device'''
| |
| | |
| :*1. Run "ls -l /dev/usb/hid*" to see what the existing device names are.
| |
| :*2. Attach the additional input device(the second mouse, usb physical interface) to the machine.
| |
| :*3. Run "ls -l /dev/usb/hid*" to see what the newly attached device names are. Note at the end of each symlink line it will list whetherit is a keyboard or a mouse(here we attached the mouse).
| |
| :*4. Backup the original file /etc/X11/xorg.conf ( If this file doesn't exist, please run /usr/X11/bin/xorgconfig or /usr/X11/bin/xorgcfg to create it manually).
| |
| :*5. Edit the file /etc/X11/xorg.conf, add lines of the following form to xorg.conf, one for each device.
| |
| :*6. At the top of the xorg.conf file, you need to add in the name of the second input device which you are configuring e.g. in this case it is other.
| |
| | |
| Section "ServerLayout"
| |
| Identifier "X.org Configured"
| |
| Screen 0 "Screen0" 0 0
| |
| InputDevice "Mouse0" "CorePointer"
| |
| InputDevice "Keyboard0" "CoreKeyboard"
| |
| InputDevice "other"
| |
| EndSection
| |
| | |
| :*7. Add or modify the following lines into input devices section.
| |
| | |
| For the usb core pointer mouse, you can modify the section as below:
| |
| | |
| Section "InputDevice"
| |
| Identifier "Mouse0"
| |
| Driver "mouse"
| |
| # Option "Protocol" "auto"
| |
| Option "Device" "/dev/usb/hid0" #"hid*" here is as same as which you got from step1.
| |
| # Option "ZAxisMapping" "4 5 6 7"
| |
| EndSection
| |
| | |
| For other input device, you need to include following section:
| |
| | |
| Section "InputDevice"
| |
| Identifier "other"
| |
| Driver "mouse"
| |
| Option "Protocol" "VUID"
| |
| # Option "Protocol" "auto"
| |
| Option "Device" "/dev/usb/hid2" #"hid*" here is as same as which you got from step3.
| |
| EndSection
| |
| | |
| | |
| :*8. Save changes and restart Xsession.
| |
| | |
| == For Linux: ==
| |
| | |
| == '''Setup GOK preferences in Solaris:''' ==
| |