Date: Thu, 10 Jul 2014 19:17:33 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 191781] [patch] multimedia/webcamd - much improved rc.d script Message-ID: <bug-191781-13-nB5y8oV6eo@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-191781-13@https.bugs.freebsd.org/bugzilla/> References: <bug-191781-13@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191781 --- Comment #12 from dreamcat4@gmail.com --- (In reply to dreamcat4 from comment #11) > A possible way to make simpler for user, is to automatically generate and > keep some local cache file. Which specify the list of all detected USB > serial numbers, just to know their relative positions. Then the /dev/ > ordering is kept consistent. But the user never to need to know or find out > the USB device serial numbers. For this way quoted ^^, maintaining a cache file not necessary. If we just sort on the list of found USB serial numbers low-high. Then the lowest value USB serial number get loaded first, then the next one, etc. In theory that should keep a consistent ordering for hot-swapping identical devices. But for that method to work, each USB serial numbers must actually be unique, random, or not often duplicated. Perhaps that fact may depend a lot on the device manufacturer. I don't know if it is universally true for all cases. > > ** The USB Serial number can be grepped for, individually 1 device, with the > following command: > > usbconfig -u 7 -a 2 dump_device_desc > There is also a small time penalty, to run this command 1x time for each detected device. > > > --HPS -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-191781-13-nB5y8oV6eo>