[ale] FW: Mouse does not work
Chris Fowler
ChrisF at computone.com
Wed Feb 21 15:11:39 EST 2001
Â
I am useing a generic PC that when I start X the mouse will not work. I can make the mouse work by using command "cat < /dev/mouse" and then movig the mouse. when I see characters, I then do "CTRL-C" and switch to X. Mouse works fine! I figured that opening the mouse may help so I tried to write code that did the following:
Â
Â
 int
 main(void)
 {
       int fd;
      Â
       fd = open("/dev/mouse", O_RDWR);
Â
       if (fd == -1)
       {
              perror("mouse");
              exit(1);
       }
Â
       close(fd);
Â
       return 0;
 }
Â
However, this does not have the same effect as "cat < /dev/mouse" Does anyone know what I should do. gpm is not running. X is the only one with control of mouse.
Â
Chris
Â
More information about the Ale
mailing list