For x86: Difference between revisions
Jump to navigation
Jump to search
Jessie wang (talk | contribs) No edit summary |
Jessie wang (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 36: | Line 36: | ||
:*8. Save changes and restart Xsession. | :*8. Save changes and restart Xsession. | ||
== B. usb: core pointer, usb: other input device == | == B. usb: core pointer, usb: other input device == | ||
Line 75: | Line 74: | ||
Option "Device" "/dev/usb/hid2" #"hid*" here is as same as which you got from step3. | Option "Device" "/dev/usb/hid2" #"hid*" here is as same as which you got from step3. | ||
EndSection | EndSection | ||
:*8. Save changes and restart Xsession. | :*8. Save changes and restart Xsession. |
Latest revision as of 02:58, 21 June 2007
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.