Re: logitech mouseMan wheel doesn't work with 2.6.5

From: Erik Steffl
Date: Tue Apr 20 2004 - 14:05:29 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/