I ~may~ be wrong, but ps aux is the command to see what processes are
running on your box.  PS2 mice use /dev/ttySx these days (rh6.1 at least).
dev/cuaX is old (till rh 6)

Suresh Ramasubramanian   [EMAIL PROTECTED]


> -----Original Message-----
> From: Robin Chatterjee [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, April 26, 2000 1:27 PM
> To:   [EMAIL PROTECTED]
> Subject:      Re: [LIH] How do I detect a device?
> 
> a ps2 mouse uses psaux not /dev/cua doesn't it ?
> cheerio
> Robin
> 
> > Suppose in the middle of a Linux session, I have pulled out the mouse (a
> > PS/2) cable. How do I detect that the mouse is no longer intact? I tried
> > the following C code, but with no result. All the time the status
> >     if ((fd = open("/dev/cua1", O_RDWR | O_NDELAY)) < 0) /* /dev/cua1 is
> > the mouse port */
> >     {
> 

-----------------------------------------------------------------------
For information on this and other Linux India mailing lists check out
http://lists.linux-india.org/

Reply via email to