2004-04-20 14:20:31

by Erik Steffl

[permalink] [raw]
Subject: logitech mouseMan wheel doesn't work with 2.6.5

it looks that after update to 2.6.5 kernel (debian source package but
I guess it would be the same with stock 2.6.5) the mouse wheel and side
button on Logitech Cordless MouseMan Wheel mouse do not work.

Here's the most basic/simple situation/symptoms:

I stop X, read bytes from /dev/psaux (c program, using open and
read). for each mouse action there are few bytes read, usually number
(depends on action), 8 (almost all the time, at least for clicks)), few
zeros. I don't have exact log but here's what it looked like:

left click: some number, 8, 0, 0
middle click: some number, 8, 0, 0
right click: some number, 8, 0, 0
side button: middle click number, 8, 0, 0
wheel clockwise: 8, 0, 0
wheel counterclockwise: 8, 0, 0

exact numbers don't matter (I think), the point is that it is not
possible to tell side button click from middle click and the wheel
rotation sends same info no matter in which direction the wheel is
rotated, it seems to miss the first byte that in case of other buttons
tells what's going on.

BTW X windows is confused in the same way (I guess because that's
what it gets from kernel driver - using xev I found that it thinks the
sidebutton is button 2 and that turning the wheel is not an event at all).

any ideas how to make kernel understand the mouse better? or is this
a kernel bug? I've read that kernel now interprets the mouse protocol -
but there doesn't seem to be a way to indicate to kernel which protocol
to use...

system:

debian unstable
kernel-source-2.6.5
logitech cordless mouseMan wheel
mouse connected via /dev/psaux

mouse related kernel config:

#
# Userland interfaces
#
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1280
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=1024
CONFIG_INPUT_MOUSEDEV_PSAUX_ENABLE=y
CONFIG_INPUT_JOYDEV=m
# CONFIG_INPUT_TSDEV is not set
CONFIG_INPUT_EVDEV=m
# CONFIG_INPUT_EVBUG is not set
...
#
# Input Device Drivers
#
...
CONFIG_INPUT_MOUSE=y
CONFIG_MOUSE_PS2=y


the mouse used to work with 2.2 and 2.4 kernels.

TIA

erik


2004-04-20 15:22:51

by Paul Rolland

[permalink] [raw]
Subject: Re: logitech mouseMan wheel doesn't work with 2.6.5

Hello,

> it looks that after update to 2.6.5 kernel (debian source
> package but
> I guess it would be the same with stock 2.6.5) the mouse
> wheel and side
> button on Logitech Cordless MouseMan Wheel mouse do not work.
I've got a new mouse with a wheel, and I've got the same problem,
though I can't tell if it was working before...

> Here's the most basic/simple situation/symptoms:
>
> I stop X, read bytes from /dev/psaux (c program, using open and
> read). for each mouse action there are few bytes read, usually number
Could you provide me with the program so that I can test too ?

> BTW X windows is confused in the same way (I guess because that's
> what it gets from kernel driver - using xev I found that it
> thinks the
> sidebutton is button 2 and that turning the wheel is not an
> event at all).
Got the same : wheel is no-op :-(

I guess I should try a stock 2.4.x kernel to see if it working or
not...

Regards,
Paul


2004-04-20 15:37:46

by Craig Bradney

[permalink] [raw]
Subject: Re: logitech mouseMan wheel doesn't work with 2.6.5

I've got 4 PCs all with logitech cordless optical mice.. all work
perfectly with Gentoo dev sources 2.6.5.. as well as 2.6.3, 2.6.1 etc

Craig

On Tue, 2004-04-20 at 17:22, Paul Rolland wrote:
> Hello,
>
> > it looks that after update to 2.6.5 kernel (debian source
> > package but
> > I guess it would be the same with stock 2.6.5) the mouse
> > wheel and side
> > button on Logitech Cordless MouseMan Wheel mouse do not work.
> I've got a new mouse with a wheel, and I've got the same problem,
> though I can't tell if it was working before...
>
> > Here's the most basic/simple situation/symptoms:
> >
> > I stop X, read bytes from /dev/psaux (c program, using open and
> > read). for each mouse action there are few bytes read, usually number
> Could you provide me with the program so that I can test too ?
>
> > BTW X windows is confused in the same way (I guess because that's
> > what it gets from kernel driver - using xev I found that it
> > thinks the
> > sidebutton is button 2 and that turning the wheel is not an
> > event at all).
> Got the same : wheel is no-op :-(
>
> I guess I should try a stock 2.4.x kernel to see if it working or
> not...
>
> Regards,
> Paul
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>


Attachments:
signature.asc (189.00 B)
This is a digitally signed message part

2004-04-20 19:03:44

by Erik Steffl

[permalink] [raw]
Subject: Re: logitech mouseMan wheel doesn't work with 2.6.5

Paul Rolland wrote:
> Hello,
>
>
>> it looks that after update to 2.6.5 kernel (debian source
>>package but
>>I guess it would be the same with stock 2.6.5) the mouse
>>wheel and side
>>button on Logitech Cordless MouseMan Wheel mouse do not work.
>
> I've got a new mouse with a wheel, and I've got the same problem,
> though I can't tell if it was working before...
>
>
>>Here's the most basic/simple situation/symptoms:
>>
>> I stop X, read bytes from /dev/psaux (c program, using open and
>>read). for each mouse action there are few bytes read, usually number
>
> Could you provide me with the program so that I can test too ?

it's very simple, just gcc and run it from console, I guess you should
quit X before running it, ctrl-c to exit:

#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

int main(void)
{
unsigned char buf[10];
unsigned char last;
unsigned long counter = 0;

int fd = open("/dev/psaux", O_RDONLY);
if(fd == -1) { perror("couldn't open file"); exit(1); }

while(read(fd, buf, 1) != -1) {
if( (last == 0) && (buf[0] != 0) ) {
printf("\n[%010d] ", counter);
}
printf("[%03d] ", buf[0]);
last = buf[0];
counter++;
}

return 0;
}
/* eof */

erik

2004-04-20 19:06:27

by Erik Steffl

[permalink] [raw]
Subject: Re: logitech mouseMan wheel doesn't work with 2.6.5

Craig Bradney wrote:
> I've got 4 PCs all with logitech cordless optical mice.. all work
> perfectly with Gentoo dev sources 2.6.5.. as well as 2.6.3, 2.6.1 etc

can you please send:

- related parts kernel config
- usb or ps2 port?
- which device (/dev/input or /dev/psaux or...)

is it stock kernel or does gentoo provide any patches?

thanks,

erik

>
> Craig
>
> On Tue, 2004-04-20 at 17:22, Paul Rolland wrote:
>
>>Hello,
>>
>>
>>> it looks that after update to 2.6.5 kernel (debian source
>>>package but
>>>I guess it would be the same with stock 2.6.5) the mouse
>>>wheel and side
>>>button on Logitech Cordless MouseMan Wheel mouse do not work.
>>
>>I've got a new mouse with a wheel, and I've got the same problem,
>>though I can't tell if it was working before...
>>
>>
>>>Here's the most basic/simple situation/symptoms:
>>>
>>> I stop X, read bytes from /dev/psaux (c program, using open and
>>>read). for each mouse action there are few bytes read, usually number
>>
>>Could you provide me with the program so that I can test too ?
>>
>>
>>> BTW X windows is confused in the same way (I guess because that's
>>>what it gets from kernel driver - using xev I found that it
>>>thinks the
>>>sidebutton is button 2 and that turning the wheel is not an
>>>event at all).
>>
>>Got the same : wheel is no-op :-(
>>
>>I guess I should try a stock 2.4.x kernel to see if it working or
>>not...
>>
>>Regards,
>>Paul
>>
>>
>>-
>>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>>the body of a message to [email protected]
>>More majordomo info at http://vger.kernel.org/majordomo-info.html
>>Please read the FAQ at http://www.tux.org/lkml/
>
>

2004-04-20 22:13:10

by Craig Bradney

[permalink] [raw]
Subject: Re: logitech mouseMan wheel doesn't work with 2.6.5

On Tue, 2004-04-20 at 21:06, Erik Steffl wrote:
> Craig Bradney wrote:
> > I've got 4 PCs all with logitech cordless optical mice.. all work
> > perfectly with Gentoo dev sources 2.6.5.. as well as 2.6.3, 2.6.1 etc
>
> can you please send:
>
> - related parts kernel config

err not sure which parts, have attached this laptops config

> - usb or ps2 port?

this laptop has a usb cordless optical notebook mouse. I have 3 desktops
using optical cordless but PS2 (2 of them share the
mouse/keyboard/monitor through a switch)

> - which device (/dev/input or /dev/psaux or...)

usb/psaux here.. cant check on the others right now.

> is it stock kernel or does gentoo provide any patches?

gentoo provides patches, but they have worked as above since 2.6.1 or
2.6.3 in the case of the laptop (its new)

regards
Craig


Attachments:
.config (31.34 kB)
signature.asc (189.00 B)
This is a digitally signed message part
Download all attachments

2004-04-20 22:20:49

by Kim Holviala

[permalink] [raw]
Subject: Re: logitech mouseMan wheel doesn't work with 2.6.5

On Tuesday 20 April 2004 18:36, Craig Bradney wrote:

> I've got 4 PCs all with logitech cordless optical mice.. all work
> perfectly with Gentoo dev sources 2.6.5.. as well as 2.6.3, 2.6.1 etc

USB mice? USB is the same as it was in 2.4, it's PS/2 that changed.



Kim

2004-04-20 22:35:14

by Kim Holviala

[permalink] [raw]
Subject: Re: logitech mouseMan wheel doesn't work with 2.6.5

On Tuesday 20 April 2004 17:14, Erik Steffl wrote:

> it looks that after update to 2.6.5 kernel (debian source package but
> I guess it would be the same with stock 2.6.5) the mouse wheel and side
> button on Logitech Cordless MouseMan Wheel mouse do not work.

Try my patch for 2.6.5: http://lkml.org/lkml/2004/4/20/10

Build psmouse into a module (for easier testing) and insert it with the proto
parameter. I'd say "modprobe psmouse proto=exps" works for you, but you might
want to try imps and ps2pp too. The reason I wrote the patch in the first
place was that a lot of PS/2 Logitech mice refused to work (and yes, exps
works for me and others)....



Kim

2004-04-20 23:31:57

by Erik Steffl

[permalink] [raw]
Subject: Re: logitech mouseMan wheel doesn't work with 2.6.5

Kim Holviala wrote:
> On Tuesday 20 April 2004 17:14, Erik Steffl wrote:
>
>
>> it looks that after update to 2.6.5 kernel (debian source package but
>>I guess it would be the same with stock 2.6.5) the mouse wheel and side
>>button on Logitech Cordless MouseMan Wheel mouse do not work.
>
>
> Try my patch for 2.6.5: http://lkml.org/lkml/2004/4/20/10

which part is patch? click on view this diff only and copy&paste that
and use it as a patch?

thanks,

erik

> Build psmouse into a module (for easier testing) and insert it with the proto
> parameter. I'd say "modprobe psmouse proto=exps" works for you, but you might
> want to try imps and ps2pp too. The reason I wrote the patch in the first
> place was that a lot of PS/2 Logitech mice refused to work (and yes, exps
> works for me and others)....
>
>
>
> Kim
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>


2004-04-20 23:46:56

by Randy.Dunlap

[permalink] [raw]
Subject: Re: logitech mouseMan wheel doesn't work with 2.6.5

On Tue, 20 Apr 2004 16:31:05 -0700 Erik Steffl wrote:

| Kim Holviala wrote:
| > On Tuesday 20 April 2004 17:14, Erik Steffl wrote:
| >
| >
| >> it looks that after update to 2.6.5 kernel (debian source package but
| >>I guess it would be the same with stock 2.6.5) the mouse wheel and side
| >>button on Logitech Cordless MouseMan Wheel mouse do not work.
| >
| >
| > Try my patch for 2.6.5: http://lkml.org/lkml/2004/4/20/10
|
| which part is patch? click on view this diff only and copy&paste that
| and use it as a patch?

Don't copy&paste, just save that file to disk.

|
| > Build psmouse into a module (for easier testing) and insert it with the proto
| > parameter. I'd say "modprobe psmouse proto=exps" works for you, but you might
| > want to try imps and ps2pp too. The reason I wrote the patch in the first
| > place was that a lot of PS/2 Logitech mice refused to work (and yes, exps
| > works for me and others)....


--
~Randy
"We have met the enemy and he is us." -- Pogo (by Walt Kelly)
(Again. Sometimes I think ln -s /usr/src/linux/.config .signature)

2004-04-21 16:08:35

by Frank Otto

[permalink] [raw]
Subject: Re: logitech mouseMan wheel doesn't work with 2.6.5

Erik Steffl <[email protected]> wrote:
: it looks that after update to 2.6.5 kernel (debian source package but
: I guess it would be the same with stock 2.6.5) the mouse wheel and side
: button on Logitech Cordless MouseMan Wheel mouse do not work.
:
: [snip]
:
: BTW X windows is confused in the same way (I guess because that's
: what it gets from kernel driver - using xev I found that it thinks the
: sidebutton is button 2 and that turning the wheel is not an event at all).

What worked for me is to make a change to my XF86Config:
use /dev/psaux for the mouse device, and choose "ExplorerPS/2"
for the mouse protocol (I previously used "MouseManPlusPS/2").

HTH,
Frank

[Sorry if this post falls out of its thread, I'm not subscribed to
LKML and only read it via the newsgroup interface but that currently
doesn't allow posting.]

2004-04-24 07:27:42

by Erik Steffl

[permalink] [raw]
Subject: Re: logitech mouseMan wheel doesn't work with 2.6.5

Kim Holviala wrote:
> On Tuesday 20 April 2004 17:14, Erik Steffl wrote:
>
>
>> it looks that after update to 2.6.5 kernel (debian source package but
>>I guess it would be the same with stock 2.6.5) the mouse wheel and side
>>button on Logitech Cordless MouseMan Wheel mouse do not work.
>
>
> Try my patch for 2.6.5: http://lkml.org/lkml/2004/4/20/10
>
> Build psmouse into a module (for easier testing) and insert it with the proto
> parameter. I'd say "modprobe psmouse proto=exps" works for you, but you might
> want to try imps and ps2pp too. The reason I wrote the patch in the first
> place was that a lot of PS/2 Logitech mice refused to work (and yes, exps
> works for me and others)....

didn't help, I still see (without X running):

8, 0, 0 any button down
9, 0, 0 left button up
12, 0, 0 wheel up, sidebutton up
10, 0, 0 right button up

8, 0, 0 wheel rotation (any direction)

except of some protocols (IIRC ps2pp, bare, genps) ignore wheel
completely. is there any way to verify which protocol the mouse is
using? modprobe -v printed different messages for each protocol so I
think that worked (it said Generic Explorer etc.)

I tried: exps, imps, ps2pp, bare, genps

any ideas?

the mouse says: Cordless MouseMan Wheel (Logitech), it has left/right
buttonss, wheel that can be pushed or rotated and a side button, not
sure how to better identify it. With 2.4 kernels it used to work with X
using protocol MouseManPlusPS/2.

erik

2004-04-24 08:41:30

by Craig Bradney

[permalink] [raw]
Subject: Re: logitech mouseMan wheel doesn't work with 2.6.5

On Sat, 2004-04-24 at 09:27, Erik Steffl wrote:
> Kim Holviala wrote:
> > On Tuesday 20 April 2004 17:14, Erik Steffl wrote:
> >
> >
> >> it looks that after update to 2.6.5 kernel (debian source package but
> >>I guess it would be the same with stock 2.6.5) the mouse wheel and side
> >>button on Logitech Cordless MouseMan Wheel mouse do not work.
> >
> >
> > Try my patch for 2.6.5: http://lkml.org/lkml/2004/4/20/10
> >
> > Build psmouse into a module (for easier testing) and insert it with the proto
> > parameter. I'd say "modprobe psmouse proto=exps" works for you, but you might
> > want to try imps and ps2pp too. The reason I wrote the patch in the first
> > place was that a lot of PS/2 Logitech mice refused to work (and yes, exps
> > works for me and others)....
>
> didn't help, I still see (without X running):
>
> 8, 0, 0 any button down
> 9, 0, 0 left button up
> 12, 0, 0 wheel up, sidebutton up
> 10, 0, 0 right button up
>
> 8, 0, 0 wheel rotation (any direction)
>
> except of some protocols (IIRC ps2pp, bare, genps) ignore wheel
> completely. is there any way to verify which protocol the mouse is
> using? modprobe -v printed different messages for each protocol so I
> think that worked (it said Generic Explorer etc.)
>
> I tried: exps, imps, ps2pp, bare, genps
>
> any ideas?
>
> the mouse says: Cordless MouseMan Wheel (Logitech), it has left/right
> buttonss, wheel that can be pushed or rotated and a side button, not
> sure how to better identify it. With 2.4 kernels it used to work with X
> using protocol MouseManPlusPS/2.

IMPS/2 here:
Option "Protocol" "IMPS/2"
Option "Device" "/dev/mouse"
Option "ZAxisMapping" "4 5"

Craig



Attachments:
signature.asc (189.00 B)
This is a digitally signed message part

2004-04-27 23:19:11

by Erik Steffl

[permalink] [raw]
Subject: Re: logitech mouseMan wheel doesn't work with 2.6.5

Erik Steffl wrote:
> Kim Holviala wrote:
>
>> On Tuesday 20 April 2004 17:14, Erik Steffl wrote:
>>
>>
>>> it looks that after update to 2.6.5 kernel (debian source package but
>>> I guess it would be the same with stock 2.6.5) the mouse wheel and side
>>> button on Logitech Cordless MouseMan Wheel mouse do not work.
>>
>>
>>
>> Try my patch for 2.6.5: http://lkml.org/lkml/2004/4/20/10
>>
>> Build psmouse into a module (for easier testing) and insert it with
>> the proto parameter. I'd say "modprobe psmouse proto=exps" works for
>> you, but you might want to try imps and ps2pp too. The reason I wrote
>> the patch in the first place was that a lot of PS/2 Logitech mice
>> refused to work (and yes, exps works for me and others)....
>
>
> didn't help, I still see (without X running):
>
> 8, 0, 0 any button down
> 9, 0, 0 left button up
> 12, 0, 0 wheel up, sidebutton up
> 10, 0, 0 right button up
>
> 8, 0, 0 wheel rotation (any direction)
>
> except of some protocols (IIRC ps2pp, bare, genps) ignore wheel
> completely. is there any way to verify which protocol the mouse is
> using? modprobe -v printed different messages for each protocol so I
> think that worked (it said Generic Explorer etc.)
>
> I tried: exps, imps, ps2pp, bare, genps
>
> any ideas?
>
> the mouse says: Cordless MouseMan Wheel (Logitech), it has left/right
> buttonss, wheel that can be pushed or rotated and a side button, not
> sure how to better identify it. With 2.4 kernels it used to work with X
> using protocol MouseManPlusPS/2.

anybody? any hints? should I look at driver? are there some docs for
logitech mice (protocol)?

TIA

erik

2004-04-27 23:29:27

by Craig Bradney

[permalink] [raw]
Subject: Re: logitech mouseMan wheel doesn't work with 2.6.5

On Wed, 2004-04-28 at 01:18, Erik Steffl wrote:
> Erik Steffl wrote:
> > Kim Holviala wrote:
> >
> >> On Tuesday 20 April 2004 17:14, Erik Steffl wrote:
> >>
> >>
> >>> it looks that after update to 2.6.5 kernel (debian source package but
> >>> I guess it would be the same with stock 2.6.5) the mouse wheel and side
> >>> button on Logitech Cordless MouseMan Wheel mouse do not work.
> >>
> >>
> >>
> >> Try my patch for 2.6.5: http://lkml.org/lkml/2004/4/20/10
> >>
> >> Build psmouse into a module (for easier testing) and insert it with
> >> the proto parameter. I'd say "modprobe psmouse proto=exps" works for
> >> you, but you might want to try imps and ps2pp too. The reason I wrote
> >> the patch in the first place was that a lot of PS/2 Logitech mice
> >> refused to work (and yes, exps works for me and others)....
> >
> >
> > didn't help, I still see (without X running):
> >
> > 8, 0, 0 any button down
> > 9, 0, 0 left button up
> > 12, 0, 0 wheel up, sidebutton up
> > 10, 0, 0 right button up
> >
> > 8, 0, 0 wheel rotation (any direction)
> >
> > except of some protocols (IIRC ps2pp, bare, genps) ignore wheel
> > completely. is there any way to verify which protocol the mouse is
> > using? modprobe -v printed different messages for each protocol so I
> > think that worked (it said Generic Explorer etc.)
> >
> > I tried: exps, imps, ps2pp, bare, genps
> >
> > any ideas?
> >
> > the mouse says: Cordless MouseMan Wheel (Logitech), it has left/right
> > buttonss, wheel that can be pushed or rotated and a side button, not
> > sure how to better identify it. With 2.4 kernels it used to work with X
> > using protocol MouseManPlusPS/2.
>
> anybody? any hints? should I look at driver? are there some docs for
> logitech mice (protocol)?

err.. they all Just Work (tm) here.. ps2 or USB, IMPS/2 driver

Craig


Attachments:
signature.asc (189.00 B)
This is a digitally signed message part

2004-04-27 23:57:06

by Erik Steffl

[permalink] [raw]
Subject: Re: logitech mouseMan wheel doesn't work with 2.6.5

Craig Bradney wrote:
> On Wed, 2004-04-28 at 01:18, Erik Steffl wrote:
>
>>Erik Steffl wrote:
>>
>>>Kim Holviala wrote:
>>>
>>>
>>>>On Tuesday 20 April 2004 17:14, Erik Steffl wrote:
>>>>
>>>>
>>>>
>>>>> it looks that after update to 2.6.5 kernel (debian source package but
>>>>>I guess it would be the same with stock 2.6.5) the mouse wheel and side
>>>>>button on Logitech Cordless MouseMan Wheel mouse do not work.
>>>>
>>>>
>>>>
>>>>Try my patch for 2.6.5: http://lkml.org/lkml/2004/4/20/10
>>>>
>>>>Build psmouse into a module (for easier testing) and insert it with
>>>>the proto parameter. I'd say "modprobe psmouse proto=exps" works for
>>>>you, but you might want to try imps and ps2pp too. The reason I wrote
>>>>the patch in the first place was that a lot of PS/2 Logitech mice
>>>>refused to work (and yes, exps works for me and others)....
>>>
>>>
>>> didn't help, I still see (without X running):
>>>
>>>8, 0, 0 any button down
>>>9, 0, 0 left button up
>>>12, 0, 0 wheel up, sidebutton up
>>>10, 0, 0 right button up
>>>
>>>8, 0, 0 wheel rotation (any direction)
>>>
>>>except of some protocols (IIRC ps2pp, bare, genps) ignore wheel
>>>completely. is there any way to verify which protocol the mouse is
>>>using? modprobe -v printed different messages for each protocol so I
>>>think that worked (it said Generic Explorer etc.)
>>>
>>> I tried: exps, imps, ps2pp, bare, genps
>>>
>>> any ideas?
>>>
>>> the mouse says: Cordless MouseMan Wheel (Logitech), it has left/right
>>>buttonss, wheel that can be pushed or rotated and a side button, not
>>>sure how to better identify it. With 2.4 kernels it used to work with X
>>>using protocol MouseManPlusPS/2.
>>
>> anybody? any hints? should I look at driver? are there some docs for
>>logitech mice (protocol)?
>
>
> err.. they all Just Work (tm) here.. ps2 or USB, IMPS/2 driver

which kernel (mine doesn't work with 2.6.5, used to work with 2.4.x),
which mouse models? I guess there might be more models and for some
reason my particular model does not work. Can you find out which
protocol the kernel is using (psmouse, not usb)?

erik

2004-04-28 07:13:31

by Craig Bradney

[permalink] [raw]
Subject: Re: logitech mouseMan wheel doesn't work with 2.6.5

On Wed, 2004-04-28 at 01:56, Erik Steffl wrote:
> Craig Bradney wrote:
> > On Wed, 2004-04-28 at 01:18, Erik Steffl wrote:
> >
> >>Erik Steffl wrote:
> >>
> >>>Kim Holviala wrote:
> >>>
> >>>
> >>>>On Tuesday 20 April 2004 17:14, Erik Steffl wrote:
> >>>>
> >>>>
> >>>>
> >>>>> it looks that after update to 2.6.5 kernel (debian source package but
> >>>>>I guess it would be the same with stock 2.6.5) the mouse wheel and side
> >>>>>button on Logitech Cordless MouseMan Wheel mouse do not work.
> >>>>
> >>>>
> >>>>
> >>>>Try my patch for 2.6.5: http://lkml.org/lkml/2004/4/20/10
> >>>>
> >>>>Build psmouse into a module (for easier testing) and insert it with
> >>>>the proto parameter. I'd say "modprobe psmouse proto=exps" works for
> >>>>you, but you might want to try imps and ps2pp too. The reason I wrote
> >>>>the patch in the first place was that a lot of PS/2 Logitech mice
> >>>>refused to work (and yes, exps works for me and others)....
> >>>
> >>>
> >>> didn't help, I still see (without X running):
> >>>
> >>>8, 0, 0 any button down
> >>>9, 0, 0 left button up
> >>>12, 0, 0 wheel up, sidebutton up
> >>>10, 0, 0 right button up
> >>>
> >>>8, 0, 0 wheel rotation (any direction)
> >>>
> >>>except of some protocols (IIRC ps2pp, bare, genps) ignore wheel
> >>>completely. is there any way to verify which protocol the mouse is
> >>>using? modprobe -v printed different messages for each protocol so I
> >>>think that worked (it said Generic Explorer etc.)
> >>>
> >>> I tried: exps, imps, ps2pp, bare, genps
> >>>
> >>> any ideas?
> >>>
> >>> the mouse says: Cordless MouseMan Wheel (Logitech), it has left/right
> >>>buttonss, wheel that can be pushed or rotated and a side button, not
> >>>sure how to better identify it. With 2.4 kernels it used to work with X
> >>>using protocol MouseManPlusPS/2.
> >>
> >> anybody? any hints? should I look at driver? are there some docs for
> >>logitech mice (protocol)?
> >
> >
> > err.. they all Just Work (tm) here.. ps2 or USB, IMPS/2 driver
>
> which kernel (mine doesn't work with 2.6.5, used to work with 2.4.x),
> which mouse models? I guess there might be more models and for some
> reason my particular model does not work. Can you find out which
> protocol the kernel is using (psmouse, not usb)?

2.4.x, 2.61,3,5, currently 2.6.5 on 4 PCs

-logitech cordless optical for notebooks (USB)
-logitech cordless mouseman optical (via a kmv switch to 2PCs )(ps2)
-logitech cordless optical mouse(ps2)

err. how do i find out the protocol the kernel uses?

Craig


Attachments:
signature.asc (189.00 B)
This is a digitally signed message part

2004-04-28 07:22:27

by Kim Holviala

[permalink] [raw]
Subject: Re: logitech mouseMan wheel doesn't work with 2.6.5

On Wednesday 28 April 2004 10:13, Craig Bradney wrote:

> > >>> the mouse says: Cordless MouseMan Wheel (Logitech), it has
> > >>> left/right buttonss, wheel that can be pushed or rotated and a side
> > >>> button, not sure how to better identify it. With 2.4 kernels it used
> > >>> to work with X using protocol MouseManPlusPS/2.
> > >>
> > >> anybody? any hints? should I look at driver? are there some docs for
> > >>logitech mice (protocol)?
> > >
> > > err.. they all Just Work (tm) here.. ps2 or USB, IMPS/2 driver
> >
> > which kernel (mine doesn't work with 2.6.5, used to work with 2.4.x),
> > which mouse models? I guess there might be more models and for some
> > reason my particular model does not work. Can you find out which
> > protocol the kernel is using (psmouse, not usb)?
>
> 2.4.x, 2.61,3,5, currently 2.6.5 on 4 PCs
>
> -logitech cordless optical for notebooks (USB)
> -logitech cordless mouseman optical (via a kmv switch to 2PCs )(ps2)
> -logitech cordless optical mouse(ps2)
>
> err. how do i find out the protocol the kernel uses?

Check your kernel logs (/var/log/messages perhaps). Grepping for "psmouse"
will help you find the relevant part.




Kim

2004-04-28 08:21:21

by Erik Steffl

[permalink] [raw]
Subject: Re: logitech mouseMan wheel doesn't work with 2.6.5

Kim Holviala wrote:
> On Wednesday 28 April 2004 10:13, Craig Bradney wrote:
>
>
>>>>>> the mouse says: Cordless MouseMan Wheel (Logitech), it has
>>>>>>left/right buttonss, wheel that can be pushed or rotated and a side
>>>>>>button, not sure how to better identify it. With 2.4 kernels it used
>>>>>>to work with X using protocol MouseManPlusPS/2.
>>>>>
>>>>> anybody? any hints? should I look at driver? are there some docs for
>>>>>logitech mice (protocol)?
>>>>
>>>>err.. they all Just Work (tm) here.. ps2 or USB, IMPS/2 driver
>>>
>>> which kernel (mine doesn't work with 2.6.5, used to work with 2.4.x),
>>>which mouse models? I guess there might be more models and for some
>>>reason my particular model does not work. Can you find out which
>>>protocol the kernel is using (psmouse, not usb)?
>>
>>2.4.x, 2.61,3,5, currently 2.6.5 on 4 PCs
>>
>>-logitech cordless optical for notebooks (USB)
>>-logitech cordless mouseman optical (via a kmv switch to 2PCs )(ps2)
>>-logitech cordless optical mouse(ps2)
>>
>>err. how do i find out the protocol the kernel uses?
>
>
> Check your kernel logs (/var/log/messages perhaps). Grepping for "psmouse"
> will help you find the relevant part.

didn't find anything for psmouse but found these in dmesg output
after doing modprobe psmouse with difeferent protocols (you can see I
was trying different protocols, none of them worked (turning wheel
doesn't work, sidebutton is same as middle button):

input: ImPS/2 Logitech Wheel Mouse on isa0060/serio1
input: ExPS/2 Generic Explorer Mouse on isa0060/serio1
input: PS2++ Logitech Mouse on isa0060/serio1
input: ImPS/2 Generic Wheel Mouse on isa0060/serio1
input: ExPS/2 Generic Explorer Mouse on isa0060/serio1
input: ImPS/2 Generic Wheel Mouse on isa0060/serio1
input: PS2++ Logitech Mouse on isa0060/serio1
input: PS/2 Generic Mouse on isa0060/serio1
input: PS/2 Generic Mouse on isa0060/serio1
input: ExPS/2 Generic Explorer Mouse on isa0060/serio1

erik

2004-04-28 08:36:40

by Craig Bradney

[permalink] [raw]
Subject: Re: logitech mouseMan wheel doesn't work with 2.6.5

On Wed, 2004-04-28 at 10:21, Erik Steffl wrote:
> Kim Holviala wrote:
> > On Wednesday 28 April 2004 10:13, Craig Bradney wrote:
> >
> >
> >>>>>> the mouse says: Cordless MouseMan Wheel (Logitech), it has
> >>>>>>left/right buttonss, wheel that can be pushed or rotated and a side
> >>>>>>button, not sure how to better identify it. With 2.4 kernels it used
> >>>>>>to work with X using protocol MouseManPlusPS/2.
> >>>>>
> >>>>> anybody? any hints? should I look at driver? are there some docs for
> >>>>>logitech mice (protocol)?
> >>>>
> >>>>err.. they all Just Work (tm) here.. ps2 or USB, IMPS/2 driver
> >>>
> >>> which kernel (mine doesn't work with 2.6.5, used to work with 2.4.x),
> >>>which mouse models? I guess there might be more models and for some
> >>>reason my particular model does not work. Can you find out which
> >>>protocol the kernel is using (psmouse, not usb)?
> >>
> >>2.4.x, 2.61,3,5, currently 2.6.5 on 4 PCs
> >>
> >>-logitech cordless optical for notebooks (USB)
> >>-logitech cordless mouseman optical (via a kmv switch to 2PCs )(ps2)
> >>-logitech cordless optical mouse(ps2)
> >>
> >>err. how do i find out the protocol the kernel uses?
> >
> >
> > Check your kernel logs (/var/log/messages perhaps). Grepping for "psmouse"
> > will help you find the relevant part.
>
> didn't find anything for psmouse but found these in dmesg output
> after doing modprobe psmouse with difeferent protocols (you can see I
> was trying different protocols, none of them worked (turning wheel
> doesn't work, sidebutton is same as middle button):
>
> input: ImPS/2 Logitech Wheel Mouse on isa0060/serio1
> input: ExPS/2 Generic Explorer Mouse on isa0060/serio1
> input: PS2++ Logitech Mouse on isa0060/serio1
> input: ImPS/2 Generic Wheel Mouse on isa0060/serio1
> input: ExPS/2 Generic Explorer Mouse on isa0060/serio1
> input: ImPS/2 Generic Wheel Mouse on isa0060/serio1
> input: PS2++ Logitech Mouse on isa0060/serio1
> input: PS/2 Generic Mouse on isa0060/serio1
> input: PS/2 Generic Mouse on isa0060/serio1
> input: ExPS/2 Generic Explorer Mouse on isa0060/serio1
>
> erik
> -
laptop:
input: USB HID v1.10 Mouse [Logitech USB Receiver] on usb-0000:00:1d.0-1
desktop:
input: ImExPS/2 Logitech Explorer Mouse on isa0060/serial

Note.. I dont use modules in the kernel if possible...

Craig



Attachments:
signature.asc (189.00 B)
This is a digitally signed message part

2004-04-28 12:41:17

by Dmitry Torokhov

[permalink] [raw]
Subject: Re: logitech mouseMan wheel doesn't work with 2.6.5

If I may chime in...

On Wednesday 28 April 2004 03:21 am, Erik Steffl wrote:

> input: ImPS/2 Logitech Wheel Mouse on isa0060/serio1
> input: ExPS/2 Generic Explorer Mouse on isa0060/serio1
> input: PS2++ Logitech Mouse on isa0060/serio1
> input: ImPS/2 Generic Wheel Mouse on isa0060/serio1
> input: ExPS/2 Generic Explorer Mouse on isa0060/serio1
> input: ImPS/2 Generic Wheel Mouse on isa0060/serio1
> input: PS2++ Logitech Mouse on isa0060/serio1
> input: PS/2 Generic Mouse on isa0060/serio1
> input: PS/2 Generic Mouse on isa0060/serio1
> input: ExPS/2 Generic Explorer Mouse on isa0060/serio1
>

So your mouse pretty much can work with any protocol... Now could you please
re-load the module without any parameters and post the output of
"cat /proc/bus/input/devices"

Also compile evbug module, insert it in the kernel (with psmouse loaded as
well), hit all buttons again and post the excerpt of dmesg with evbug data.
I want to make sure that your button is not identified correctly as opposed
to some data lost in protocol transformation.

What protocol are you using in XFree?

--
Dmitry

2004-04-28 19:14:30

by Erik Steffl

[permalink] [raw]
Subject: Re: logitech mouseMan wheel doesn't work with 2.6.5

Dmitry Torokhov wrote:
> If I may chime in...
>
> On Wednesday 28 April 2004 03:21 am, Erik Steffl wrote:
>
>
>>input: ImPS/2 Logitech Wheel Mouse on isa0060/serio1
>>input: ExPS/2 Generic Explorer Mouse on isa0060/serio1
>>input: PS2++ Logitech Mouse on isa0060/serio1
>>input: ImPS/2 Generic Wheel Mouse on isa0060/serio1
>>input: ExPS/2 Generic Explorer Mouse on isa0060/serio1
>>input: ImPS/2 Generic Wheel Mouse on isa0060/serio1
>>input: PS2++ Logitech Mouse on isa0060/serio1
>>input: PS/2 Generic Mouse on isa0060/serio1
>>input: PS/2 Generic Mouse on isa0060/serio1
>>input: ExPS/2 Generic Explorer Mouse on isa0060/serio1
>>
>
>
> So your mouse pretty much can work with any protocol... Now could you please

it does NOT work with any protocol.

there are two problems:

wheel:

turning of the wheel in both direction produces 8, 0, 0 (which seems
to mean any button down), all other buttons produces 8, 0, 0 on button
down and x, 0, 0 on button up (x depends on button).

side button: produces exactly same numbers as middle button (clicking
the wheel, 12, 0, 0 on button up).

that's with most protocols, some protocols (ps2pp, bare, genps)
ignore the wheel completely (as far as I can tell that's OK)

> re-load the module without any parameters and post the output of
> "cat /proc/bus/input/devices"

jojda:/home/erik# rmmod psmouse
jojda:/home/erik# modprobe -v psmouse
insmod /lib/modules/2.6.5/kernel/drivers/input/mouse/psmouse.ko
jojda:/home/erik# cat /proc/bus/input/devices
I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
H: Handlers=kbd event0
B: EV=120003
B: KEY=4 2000000 3802078 f840d001 f2ffffdf ffefffff ffffffff fffffffe
B: LED=7

I: Bus=0011 Vendor=0002 Product=0020 Version=0038
N: Name="ImPS/2 Logitech Wheel Mouse"
P: Phys=isa0060/serio1/input0
H: Handlers=mouse0 event1
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=103

jojda:/home/erik#

> Also compile evbug module, insert it in the kernel (with psmouse loaded as
> well), hit all buttons again and post the excerpt of dmesg with evbug data.
> I want to make sure that your button is not identified correctly as opposed
> to some data lost in protocol transformation.

ok, I'll try that (have nobody to push the mouse buttons right now)

> What protocol are you using in XFree?

that's irrelevant, I got the results above without X running (by
reading /dev/psaux). In case it might shed some light anyway, here's the
X info: protocol is MouseManPlusPS/2, it worked with kernel 2.4.x. Now
(with 2.6.5) X reports same results as you see above (using xev I see
the wheel is no event, side button is button 2, just like wheel click)

erik

2004-04-28 23:27:46

by Dmitry Torokhov

[permalink] [raw]
Subject: Re: logitech mouseMan wheel doesn't work with 2.6.5

On Wednesday 28 April 2004 01:47 pm, Erik Steffl wrote:
> Dmitry Torokhov wrote:
>
> > What protocol are you using in XFree?
>
> that's irrelevant, I got the results above without X running (by

No, it is not. Please change protocol in XF86Config to ExplorerPS/2.

> reading /dev/psaux). In case it might shed some light anyway, here's the
> X info: protocol is MouseManPlusPS/2, it worked with kernel 2.4.x. Now
> (with 2.6.5) X reports same results as you see above (using xev I see
> the wheel is no event, side button is button 2, just like wheel click)
>

Kernel only provides emulation of 3 protocols via /dev/psaux: bare PS/2,
IntelliMouse PS/2 and Explorer PS/2. Since your program does not issue
Intellimouse or Explorer protocol initialization sequences it gets just
bare PS/2 protocol data - 2 axis, 3 buttons. Extra buttons are mapped onto
first 3. For exact mapping consult drivers/input/mousedev.c


--
Dmitry

2004-04-29 06:34:51

by Erik Steffl

[permalink] [raw]
Subject: Re: logitech mouseMan wheel doesn't work with 2.6.5

Dmitry Torokhov wrote:
> On Wednesday 28 April 2004 01:47 pm, Erik Steffl wrote:
>>Dmitry Torokhov wrote:
>>
>>>What protocol are you using in XFree?
>>
>> that's irrelevant, I got the results above without X running (by
>
> No, it is not. Please change protocol in XF86Config to ExplorerPS/2.
...
> Kernel only provides emulation of 3 protocols via /dev/psaux: bare PS/2,
> IntelliMouse PS/2 and Explorer PS/2. Since your program does not issue
> Intellimouse or Explorer protocol initialization sequences it gets just
> bare PS/2 protocol data - 2 axis, 3 buttons. Extra buttons are mapped onto
> first 3. For exact mapping consult drivers/input/mousedev.c

thanks, that makes sense, I tried ExplorerPS/2, it works better, the
wheel works but side button is still same as button 2.

would it be different if I used /dev/input/mouse0? or
/dev/input/mice? kernel Documentation/input/input.txt seems to be
fairly old (mentions 2.5/2.6 in future tense) and it says to use
"ExplorerPS/2 if you want to use extra (up to 5) buttons" when
discussing what /dev/input/mouse0 provides. Does that mean that there's
no way to use extra side button (which is the sixth button)?

erik

2004-06-02 23:37:54

by Vojtech Pavlik

[permalink] [raw]
Subject: Re: logitech mouseMan wheel doesn't work with 2.6.5

On Wed, Apr 28, 2004 at 11:34:34PM -0700, Erik Steffl wrote:
> Dmitry Torokhov wrote:
> >On Wednesday 28 April 2004 01:47 pm, Erik Steffl wrote:
> >>Dmitry Torokhov wrote:
> >>
> >>>What protocol are you using in XFree?
> >>
> >> that's irrelevant, I got the results above without X running (by
> >
> >No, it is not. Please change protocol in XF86Config to ExplorerPS/2.
> ...
> >Kernel only provides emulation of 3 protocols via /dev/psaux: bare PS/2,
> >IntelliMouse PS/2 and Explorer PS/2. Since your program does not issue
> >Intellimouse or Explorer protocol initialization sequences it gets just
> >bare PS/2 protocol data - 2 axis, 3 buttons. Extra buttons are mapped onto
> >first 3. For exact mapping consult drivers/input/mousedev.c
>
> thanks, that makes sense, I tried ExplorerPS/2, it works better, the
> wheel works but side button is still same as button 2.
>
> would it be different if I used /dev/input/mouse0? or
> /dev/input/mice? kernel Documentation/input/input.txt seems to be
> fairly old (mentions 2.5/2.6 in future tense) and it says to use
> "ExplorerPS/2 if you want to use extra (up to 5) buttons" when
> discussing what /dev/input/mouse0 provides. Does that mean that there's
> no way to use extra side button (which is the sixth button)?

Yes, at this time you can't use the sixth button in X with a 2.6 kernel.
An event driver for X would be needed instead of the ExplorerPS/2 one.

--