Re: How to detect USB camera disconnection?
|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
On Thu, 20 Aug 2009 13:54:26 -0300 "Nilo Roberto C Paim" <nilopaim@xxxxxxxxx> wrote: > I've a Vimicro USB cam that I'm constantly pooling for taking > snapshots using an application made by me. How can I programmatically > detect when the cam is disconnected? > > It seems to me that V4L "thinks" that the cam is still there, even > with the cable disconnected. > > --- > I'd forgot to say: the driver I'm using is gspca, last > version. Works like a charm. My problem is related to cable's cam > disconnected. Hi Nilo, I don't know how you poll. Normally, when the webcam is disconnected, the I/O calls should fail with errno = NODEV. Cheers. -- Ken ar c'hentañ | ** Breizh ha Linux atav! ** Jef | http://moinejf.free.fr/ -- video4linux-list mailing list Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list
[Linux Media] [Older V4L] [Linux DVB] [Video Disk Recorder] [Linux Kernel] [Asterisk] [Photo] [DCCP] [Netdev] [Xorg] [Util Linux NG] [Xfree86] [Free Photo Albums] [Fedora Users] [Fedora Women] [ALSA Users] [ALSA Devel] [SSH] [DVB Maintainers] [Linux USB] [Yosemite Information]