View previous topic :: View next topic |
Author |
Message |
shadowknight Tux's lil' helper
Joined: 03 Aug 2002 Posts: 142
|
Posted: Mon Oct 21, 2002 8:29 pm Post subject: need help setting up dual mouse |
|
|
I have usbmouse as mouse0, which is my primary mouse and works fine.......I decided to add an optical ps/2 mouse for gaming purposes, as mouse1, /dev/mouse.............in X log file I get this error:
(EE) Mouse1: Unknown protocol "PS/2:"
(EE) PreInit failed for input device "Mouse1"
I've tried with IMPS/2 as well with same error...........funny considering if i cat /dev/mouse I get all the garbage I should be getting by moving the optical, but doesn't work outside of cat
mouse0 is CorePointer "usb"
mouse1 is SendCoreEvents "ps/2"
any suggestions??? will post XF86Config file if neccessary but hoping not to have to (I'm lazy )
TIA |
|
Back to top |
|
|
Cloim Tux's lil' helper
Joined: 02 Aug 2002 Posts: 99
|
Posted: Mon Oct 21, 2002 11:25 pm Post subject: |
|
|
Quote: | (EE) Mouse1: Unknown protocol "PS/2:"
(EE) PreInit failed for input device "Mouse1"
|
I don't know what that means. But what your saying sounds about right.
I had two mice hooked up at one point. The second one, iirc, was hooked up to /dev/psaux. Though I don't know why that would be important.
You could try running
That should get you a config file (it'll put it in /root or your home directory) with a properly configured ps2 mouse -- but it probably won't get your usb mouse. |
|
Back to top |
|
|
duff Guru
Joined: 19 Jun 2002 Posts: 466 Location: Clemson, SC
|
Posted: Tue Oct 22, 2002 12:03 am Post subject: |
|
|
This might help. On my laptop I have two mice: the trackpad and a USB mouse, and I can use either or both at the same time. Here's some snippets from my XFree86Config file.
Code: | Section "ServerLayout"
InputDevice "Mouse0" "CorePointer"
InputDevice "Mouse1" "SendCoreEvents"
...
EndSection
...
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "PS/2"
Option "Device" "/dev/mouse"
Option "ZAxisMapping" "4 5"
End Section
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/usbmouse"
Option "ZAxisMapping" "4 5"
EndSection
|
Hope this helps you out. |
|
Back to top |
|
|
shadowknight Tux's lil' helper
Joined: 03 Aug 2002 Posts: 142
|
Posted: Tue Oct 22, 2002 1:00 am Post subject: |
|
|
LMAO......that's exactly how mine looks.......oh well maybe a bug with my system who knows.......Thanks for the responses |
|
Back to top |
|
|
OdinsDream Veteran
Joined: 01 Jun 2002 Posts: 1057
|
Posted: Thu Oct 24, 2002 4:03 am Post subject: |
|
|
duff wrote: | This might help. On my laptop I have two mice: the trackpad and a USB mouse, and I can use either or both at the same time. Here's some snippets from my XFree86Config file.
Code: | Section "ServerLayout"
InputDevice "Mouse0" "CorePointer"
InputDevice "Mouse1" "SendCoreEvents"
...
EndSection
...
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "PS/2"
Option "Device" "/dev/mouse"
Option "ZAxisMapping" "4 5"
End Section
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/usbmouse"
Option "ZAxisMapping" "4 5"
EndSection
|
Hope this helps you out. |
Following these directions on my desktop, I'm trying to get a USB mouse and a PS/2 mouse to both work at the same time (some things are easier with a trackball, some things arent)
But, the strangest thing, with these directions, my regular mouse, USB, continues to work, the PS/2 does not, and my KEYBOARD stops working.
I really had to manually power off the computer as a result of this. |
|
Back to top |
|
|
duff Guru
Joined: 19 Jun 2002 Posts: 466 Location: Clemson, SC
|
Posted: Thu Oct 24, 2002 12:28 pm Post subject: |
|
|
shadowknight wrote: | LMAO......that's exactly how mine looks.......oh well maybe a bug with my system who knows.......Thanks for the responses |
Are you sure your USB mouse is set up correctly? Try setting that as the primary and remove the PS/2 one. If your having problems still, consult this guide for help. |
|
Back to top |
|
|
Sequentious Apprentice
Joined: 07 Jun 2002 Posts: 290 Location: London Ontario Canada
|
Posted: Thu Oct 24, 2002 1:39 pm Post subject: |
|
|
On my laptop, I set up X to use the built in (ps/2) trackpoint, and also have a USB mouse for when i actually want to do things with the pointer.
Heres my screen section (the usb mouse is cheapmouse)
Code: | Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "CheapMouse" "SendCoreEvents"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection |
And these are the sections for my two mice. You can see which is the usb and which is the ps/2
Code: | Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Buttons" "3"
Option "Resolution" "400"
Option "Protocol" "PS/2"
Option "Device" "/dev/psaux"
EndSection
Section "InputDevice"
Identifier "CheapMouse"
Driver "mouse"
Option "Buttons" "3"
Option "Resolution" "400"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
EndSection |
According to some sites that I read, /dev/input/mice is the proper way to access a USB mouse, and supports adding and removing of the mouse while running X (neccessary for laptops, and yes - ive tested)
Good luck. _________________ --
Chris I
chris@cidesign.ca :: www.cidesign.ca/~chris/ |
|
Back to top |
|
|
stingray72 n00b
Joined: 08 May 2002 Posts: 40 Location: Atlanta, GA
|
Posted: Thu Oct 24, 2002 2:03 pm Post subject: |
|
|
shadowknight, I don't know if it would make a difference but I used
"AlwaysCore" instead of "SendCoreEvents" when I set up the 2nd mouse.
Code: |
Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Mouse1" "AlwaysCore"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
.....
Section "InputDevice"
Identifier "Mouse0"
# Modified by mouseconfig
Driver "mouse"
Option "Device" "/dev/mouse"
Option "Protocol" "PS/2"
Option "Emulate3Buttons" "yes"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Mouse1"
# Modified by mouseconfig
Driver "mouse"
Option "Device" "/dev/psaux"
Option "Protocol" "ImPS/2"
# Option "Emulate3Buttons" "no"
# Option "ZAxisMapping" "4 5"
EndSection
|
|
|
Back to top |
|
|
Sequentious Apprentice
Joined: 07 Jun 2002 Posts: 290 Location: London Ontario Canada
|
Posted: Thu Oct 24, 2002 3:13 pm Post subject: |
|
|
As I said in my post above, try using /dev/input/mice for your usb mouse.
Also: are both your mice USB? _________________ --
Chris I
chris@cidesign.ca :: www.cidesign.ca/~chris/ |
|
Back to top |
|
|
OdinsDream Veteran
Joined: 01 Jun 2002 Posts: 1057
|
Posted: Thu Oct 24, 2002 9:33 pm Post subject: |
|
|
Update: My previous post about having the keyboard stop responding...
...Turns out all I needed to do was have the mouse and keyboard (both PS/2) plugged in before I power on the system.
My BIOS has some auto-recognize thing, that will detect which port the mouse is plugged into, and apparently this was causing trouble when I added the mouse when the system was on.
The X configuration quoted in my last post works flawlessly for having a USB and PS/2 mouse (both scroll-wheel) set up. |
|
Back to top |
|
|
shadowknight Tux's lil' helper
Joined: 03 Aug 2002 Posts: 142
|
Posted: Fri Oct 25, 2002 7:33 pm Post subject: |
|
|
thanks for the input guys......i've changed my config to this:
Code: | Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Mouse1" "AlwaysCore"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "PS/2:
Option "Device" "/dev/psaux"
Option "ZAxisMapping" "4 5"
EndSection |
I'm going to see if it works now..........will keep you posted |
|
Back to top |
|
|
shadowknight Tux's lil' helper
Joined: 03 Aug 2002 Posts: 142
|
Posted: Fri Oct 25, 2002 8:00 pm Post subject: |
|
|
ok looking back at the code last posted, look carefully at the mouse1 section it says "PS/2: instead of "PS/2"...........I swapped out mouse1 and mouse0 and changed back to SendCoreEvents instead of AlwaysCore.............all's good now thank for the help |
|
Back to top |
|
|
shadowknight Tux's lil' helper
Joined: 03 Aug 2002 Posts: 142
|
Posted: Fri Oct 25, 2002 8:36 pm Post subject: |
|
|
almost all was good to enable scroll on both mice I changed "PS/2" to "IMPS/2" for both mice.........to avoid any confusion this is what the relevant sections look like in my XF86Config file:
Code: | Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Mouse1" "AlwaysCore"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection |
and: Code: | Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/psaux"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
EndSection |
usbmouse on mouse1 and ps/2 on mouse0........this is my woking config, hope it helps anybody else trying to figure theirs out |
|
Back to top |
|
|
Target Apprentice
Joined: 25 Apr 2002 Posts: 200
|
Posted: Thu Dec 19, 2002 1:49 am Post subject: |
|
|
OdinsDream-
For future reference, ps/2 devices are not hot-pluggable. You can get away with it in many cases but you aren't supposed to. |
|
Back to top |
|
|
broschi Apprentice
Joined: 20 Aug 2002 Posts: 189 Location: Atlantide
|
Posted: Thu Dec 19, 2002 4:17 am Post subject: |
|
|
Target wrote: | For future reference, ps/2 devices are not hot-pluggable. You can get away with it in many cases but you aren't supposed to. |
Not to mention that in some cases it can even fry the mobo! IMO, switching from serial ports to mini din (PS/2) was the worst move ever by the PC industry, same thing for the keyboards. _________________ "Is this type of thing going to happen every time we switch to improbability drive?" "Very probably I'm afraid." |
|
Back to top |
|
|
|