Click to See Complete Forum and Search --> : ps2 mouse and debian


phext
03-06-2004, 08:24 PM
I just did an install of debian woody and my ps2 mouse doesn't work. Can someone please help?

phext
03-06-2004, 08:31 PM
I would like to try editing my XF86Config file maybe, but I am not sure where it is located. Is that a good idea?

bosox79
03-06-2004, 08:34 PM
Originally posted by phext
I just did an install of debian woody and my ps2 mouse doesn't work. Can someone please help?

What mouse protocal is in your xfree86config file?

phext
03-06-2004, 08:40 PM
I am not 100% sure because I am not sure where the file is located, but I am pretty sure it is "auto"

bosox79
03-07-2004, 01:56 AM
Originally posted by phext
I am not 100% sure because I am not sure where the file is located, but I am pretty sure it is "auto"

I don't have a box running Debian but you could try issuing the command xf86config from a root# prompt but I believe the file should be in /etc/x11/XF86Config-4

I would take a look at the section of the file that looks like this Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/psaux"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection
and I believe the protocal you will want to use is IMPS/2

HTH
:)

sharth
03-07-2004, 02:36 AM
its IMPS/2 if its a scroll mouse, PS/2 if he doesn't.

the dev file should be /dev/psaux

phext
03-07-2004, 02:46 AM
I have 2 entries for mice in XF86Config-4. one is dev/psaux one is /dev/input/mice. Both are IMPS/2. Should I delete one of the entries? I am having a hard time figuring out how to use vi. The mouse that I am using is not a scroll mouse, just a standard 2 button ps/2.

bosox79
03-07-2004, 03:04 AM
Originally posted by phext
I have 2 entries for mice in XF86Config-4. one is dev/psaux one is /dev/input/mice. Both are IMPS/2. Should I delete one of the entries? I am having a hard time figuring out how to use vi. The mouse that I am using is not a scroll mouse, just a standard 2 button ps/2.

no you should leave both secitions just make sure the secitions relating to your mouse look like these files Section "InputDevice"


Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/psaux"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection

Section "InputDevice"
# If the normal CorePointer mouse is not a USB mouse then
# this input device can be used in AlwaysCore mode to let you
# also use USB mice at the same time.
Identifier "DevInputMice"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection

FYI this is from a fedora box starth may have a better file ;)
sharth posted the relavent info you should need ;)
HLH :D

sharth
03-07-2004, 03:09 AM
please post both mouse sections, and the section labled serverlayout

phext
03-07-2004, 06:28 AM
here it is, from /etc/X11/XF86Config-4

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/psaux"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection

Section "InputDevice"
Identifier "Generic Mouse"
Driver "mouse"
Option "SendCoreEvents" "true"
Option "Protocol" "ImPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Generic Mouse"
EndSection

sharth
03-07-2004, 12:11 PM
In the first inputdevice, the "ConfiguredMouse", change the protocal from IMPS/2 to PS/2

change emulate 3 buttons to yes in the same section.

then it should work.

phext
03-07-2004, 05:17 PM
Well I made those changes and it didn't seem to work. Just to be sure I booted a partition magic disk and the mouse does work, just not in debian... What if I try changing the device? What other options besides /dev/psaux and /dev/input/mice do I have?

mdwatts
03-07-2004, 06:18 PM
Originally posted by phext

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Generic Mouse"
EndSection

Does it matter if you do not have device options specified for the three InputDevices?

I have a PS/2 and Serial mouse and have


Section "ServerLayout"
Identifier "Layout[all]"
Screen 0 "Screen[0]"
Screen 1 "Screen[1]" LeftOf "Screen[0]"
InputDevice "Mouse[0]" "CorePointer"
InputDevice "Mouse[1]" "SendCoreEvents"
InputDevice "Keyboard[0]" "CoreKeyboard"
Option "Xinerama" "Off"
Option "Clone" "Off"
EndSection


for my ServerLayout section.

sharth
03-07-2004, 07:00 PM
hmm. well, lets try this then. what does /var/log/XFree86.0.log say?

phext
03-07-2004, 11:13 PM
PEXExtensionInit: Couldn't open default PEX font file Roman_M
(II) Keyboard "Generic Keyboard" handled by legacy driver
(**) Option "Protocol" "PS/2"
(**) Configured Mouse: Protocol: "PS/2"
(**) Option "CorePointer"
(**) Configured Mouse: Core Pointer
(**) Option "Device" "/dev/psaux"
(==) Configured Mouse: Buttons: 3
(**) Option "Emulate3Buttons" "yes"
(**) Configured Mouse: Emulate3Buttons, Emulate3Timeout: 50
(**) Option "ZAxisMapping" "4 5"
(**) Configured Mouse: ZAxisMapping: buttons 4 and 5
(**) Option "Protocol" "ImPS/2"
(**) Generic Mouse: Protocol: "ImPS/2"
(**) Option "SendCoreEvents" "true"
(**) Generic Mouse: always reports core events
(**) Option "Device" "/dev/input/mice"
(EE) xf86OpenSerial: Cannot open device /dev/input/mice
No such device.
(EE) Generic Mouse: cannot open input device
(EE) PreInit failed for input device "Generic Mouse"
(II) UnloadModule: "mouse"
(II) XINPUT: Adding extended input device "Configured Mouse" (type: MOUSE)
^@

phext
03-08-2004, 05:06 PM
Is there a way I can use my numpad for a mouse for now? If I try to do modprobe mousedev or psmouse it says Can't locate module. Could that have something to do with it? It seems like maybe I am missing the module psmouse. Is there a way I can install the module? How about makedev?

sharth
03-08-2004, 05:43 PM
I missed one other line in the config that may or may not screw it up. the ZAxisMapping line, try removing that.

and what exactly do you mean by the mouse isin't working anywho.

since it generally should fail to load X unless a mouse is loaded...

phext
03-08-2004, 06:08 PM
Should I remove it from both mouse entries in XF86Config-4? Thanx for all your help, that's really cool of you! When I am using vi is there a command to delete an entire line at once?