38
edits
Jessie wang (talk | contribs) No edit summary |
Jessie wang (talk | contribs) |
||
| Line 1: | Line 1: | ||
== How to set up two mice on one box == | == '''How to set up two mice on one box''' == | ||
== For Solaris10 == | |||
:'''A. For sparc:''' | :'''A. For sparc:''' | ||
:*1. Enable the XKB extension of xsun server(How to). | :*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. | :*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. | :*3. Attach the additional input device(the second mouse, usb physical interface) to the machine. | ||
| Line 18: | Line 19: | ||
For Mouse: | For Mouse: | ||
# sun Mouse module | # sun Mouse module | ||
class="XINPUT" name="IMOUSE2" #"IMOUSE*" is determined by the amount of mice which have been attached to your machine. | 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. | dev="/dev/usb/hid3" strmod="usbms" #"hid*" here is as same as which you got from step3. | ||
ddxHandler="ddxSUNWmouse.so.1" | ddxHandler="ddxSUNWmouse.so.1" | ||
| Line 31: | Line 33: | ||
:*7. Save changes and restart Xsession. | :*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: == | |||
edits