lkml.org 
[lkml]   [2004]   [Apr]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:02    [from the cache]
©2003-2011 Jasper Spaans