Bug#436271: PS/2 mouse not working

2007-08-08 Thread Adrian Mariano
On Wed, Aug 08, 2007 at 07:31:14AM +0200, Brice Goglin wrote:
> Adrian Mariano wrote:
> > I have never observed /dev/input/mice to work when the mouse was
> > plugged into the PS/2 port.  At the moment I am using evdev and have
> > the mouse plugged into the USB and the mouse works.  If I switch it to
> > the PS/2 it doesn't work.
> >
> > After switching the mouse to the PS/2 I tried "cat /dev/input/mice"
> > and saw nothing.  I also tried "cat /dev/psaux" and also saw nothing.
> > (Is some action required for the PS/2 port to realize it's got a mouse
> > connected?)  
> >
> > Just as a confirmation I put the mouse back in the USB and did "cat
> > /dev/input/mice" and when I moved the mouse I got characters.  
> >   
> 
> Then the bug is not in X. If psmouse is loaded and events don't appear
> in /dev/psaux or /dev/input/mice, something is missing in the kernel or
> so. Did the ps/2 mouse ever work before installing this Debian? In
> another Linux? In Windows? Any BIOS option to enable it?

When I first installed, the mouse was on the ps/2 port.  The
configuration that was supplied by the installer was 

Section "InputDevice"
Identifier  "Configured Mouse"
Driver  "mouse"
Option  "CorePointer"
Option  "Device""/dev/input/mice"
Option  "Protocol"  "ImPS/2"
Option  "Emulate3Buttons"   "true"
EndSection

The mouse did not work.  I moved the mouse from the ps/2 port to the
USB port and it worked fine.  

Then I tried changing /dev/input/mice to /dev/psaux.  The mouse WORKED
FINE with this setup.  (It worked just as well as it worked on the USB
or as it now works with evdev on the USB---everything worked but the
tilting of the tilt wheel.)  

This seems puzzling in light of the recent behavior with /dev/psaux.
Is it possible that some action (e.g. reboot) is necessary to cause
the kernel to realize there is a mouse on the ps/2 port?  



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#436271: PS/2 mouse not working

2007-08-08 Thread Adrian Mariano
On Wed, Aug 08, 2007 at 07:31:14AM +0200, Brice Goglin wrote:
> Adrian Mariano wrote:
> > I have never observed /dev/input/mice to work when the mouse was
> > plugged into the PS/2 port.  At the moment I am using evdev and have
> > the mouse plugged into the USB and the mouse works.  If I switch it to
> > the PS/2 it doesn't work.
> >
> > After switching the mouse to the PS/2 I tried "cat /dev/input/mice"
> > and saw nothing.  I also tried "cat /dev/psaux" and also saw nothing.
> > (Is some action required for the PS/2 port to realize it's got a mouse
> > connected?)  
> >
> > Just as a confirmation I put the mouse back in the USB and did "cat
> > /dev/input/mice" and when I moved the mouse I got characters.  
> >   
> 
> Then the bug is not in X. If psmouse is loaded and events don't appear
> in /dev/psaux or /dev/input/mice, something is missing in the kernel or
> so. Did the ps/2 mouse ever work before installing this Debian? In
> another Linux? In Windows? Any BIOS option to enable it?

I rebooted with the mouse in the ps/2 port and tried the experiment
again. 

When I do 'cat /dev/psaux' or 'cat /dev/input/mice' and move the mouse
I see characters on the terminal in both cases.  


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#436271: PS/2 mouse not working

2007-08-08 Thread Adrian Mariano
On Wed, Aug 08, 2007 at 01:07:23PM +0200, Brice Goglin wrote:
> Adrian Mariano wrote:
> > When I first installed, the mouse was on the ps/2 port.  The
> > configuration that was supplied by the installer was 
> >
> > Section "InputDevice"
> > Identifier  "Configured Mouse"
> > Driver  "mouse"
> > Option  "CorePointer"
> > Option  "Device""/dev/input/mice"
> > Option  "Protocol"  "ImPS/2"
> > Option  "Emulate3Buttons"   "true"
> > EndSection
> >   
> 
> That's the default config provided by the installer.
> 
> > The mouse did not work.  I moved the mouse from the ps/2 port to the
> > USB port and it worked fine.  
> >
> > Then I tried changing /dev/input/mice to /dev/psaux.  The mouse WORKED
> > FINE with this setup.
> 
> So PS/2 on /dev/psaux worked once. Then it would be a kernel problem or so.
> 
> But you said earlier that pluging on PS/2 did not generate any character
> in "cat /dev/psaux" or "cat /dev/input/mice". This needs to be
> clarified. Either /dev/psaux works (and generates characters) or it
> doesn't at all.
> 
> > Is it possible that some action (e.g. reboot) is necessary to cause
> > the kernel to realize there is a mouse on the ps/2 port?  
> >   
> 
> I don't think so.
> 
> Please check your BIOS in case there some config for the PS/2 port. And
> check whether PS/2 works in other Linux/OS if you can.

This is a brand new machine that has only the one OS installed.  I
tried booting Knoppix and it wouldn't boot.  So I don't think we're
going to see other OS results.  

After observing that /dev/input/mice was responding to the mouse I
changed the X config to 

Section "InputDevice"
Identifier  "Configured Mouse"
Driver  "mouse"
Option  "CorePointer"
Option  "Device""/dev/input/mice"
Option  "Protocol"  "ImPS/2"
Option  "Buttons"   "7"
Option  "Resolution""1000"
EndSection

and restarted X and at that point it started working.  This is the
first time I've seen the ps/2 mouse work with /dev/input/mice.  

This is basically the same X configuration that wasn't working when
the system first installed.  






-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#436271: PS/2 mouse not working

2007-08-07 Thread Adrian Mariano
On Tue, Aug 07, 2007 at 02:42:17PM +0200, Brice Goglin wrote:
> Adrian Mariano wrote:
> > I have messed around with the mouse settings as I have tried to
> > gain full functionality of the mouse.  I've attached xorg.conf.bak
> > which I believe is the original file that was installed.  With this
> > initial setup the mouse did not work in the ps/2 port but did work in
> > the usb port.  I switched the "Device" in xorg.conf to /dev/psaux and
> > then the mouse worked in the ps/2 port.
> >   
> 
> If /dev/input/mice does not work while /dev/psaux does, the problem
> might be in the kernel, not in xorg. IIRC, /dev/input/mice is supposed
> to contain /dev/psaux events and the kernel manages these devices
> (together with udev).
> 
> If you switch back to /dev/input/mice now, does it work? If not, does
> the file /dev/input/mice even exist? If yes, do you get some ugly
> characters in the terminal if you move the PS/2 mouse after starting
> "cat /dev/input/mice" as root?

I have never observed /dev/input/mice to work when the mouse was
plugged into the PS/2 port.  At the moment I am using evdev and have
the mouse plugged into the USB and the mouse works.  If I switch it to
the PS/2 it doesn't work.

After switching the mouse to the PS/2 I tried "cat /dev/input/mice"
and saw nothing.  I also tried "cat /dev/psaux" and also saw nothing.
(Is some action required for the PS/2 port to realize it's got a mouse
connected?)  

Just as a confirmation I put the mouse back in the USB and did "cat
/dev/input/mice" and when I moved the mouse I got characters.  

I did all these tests leaving the configuration as it presently stands
with evdev.  

> > The documentation for evdev suggests that it should work regardless of
> > the type of connection.  And certainly the device appears in
> > /proc/bus/input/devices when it is on the ps/2 port.  But it does not
> > work in the ps/2 port, only the usb port.  I restarted X with the mouse
> > in the ps/2 port and then shifted it back to usb when it didn't
> > respond.
> >   
> 
> evdev config might be a different problem. And I don't think you are
> supposed to get a evdev configuration for the mouse after an install.
> Did you modify the config afterwards?

As noted above, I have been experimenting with the configuration to
find a way (any way) to get the tilt wheel to work.  

> > Section "InputDevice"
> > Identifier  "Configured Mouse"
> > Driver  "evdev"
> > Option  "Name""ImExPS/2 Logitech Explorer Mouse"
> >
> > EndSection
> >   
> 
> I am not very familiar with the evdev config, but you might need more
> options than this. The evdev manpage is pretty well documented, you
> might want to look at it.

The information I found floating around indicated that with recent
versions of evdev, the simple configuration shown below is supposed to
work.  Additional options are not supposed to be necessary.  I did
also note that the evdev instructions make it sound like evdev should
work fine with a ps/2 connected mouse, which would seem to implicate
the kernel as you suggested above.  (I don't think this is an exotic
mouse.  Why would the kernel have trouble with it?)

Note that the mouse works with evdev as long as the mouse is in the
USB.  It's just the tilt wheel that doesn't work.  (I checked with xev
and it shows no event for the tilt wheel.)  The mouse does not work
with evdev if I plug it into the ps/2 port.  

> 
> > (II) evdev brain: Rescanning devices (1).
> > (EE) PreInit returned NULL for "Configured Mouse"
> > (WW) : No Device specified, looking for one...
> > (II) : Setting Device option to "/dev/input/mice"
> > (--) : Device: "/dev/input/mice"
> > (==) : Protocol: "Auto"
> > (**) Option "CorePointer"
> > (**) : Core Pointer
> > (==) : Emulate3Buttons, Emulate3Timeout: 50
> > (**) : ZAxisMapping: buttons 4 and 5
> > (**) : Buttons: 9
> > (**) : Sensitivity: 1
> >   
> 
> Looks like evdev is using /dev/input/mice here.
> 
> > Module  Size  Used by
> > psmouse34952  0 
> >   
> 
> Looks good.
> 
> Brice
> 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]