On Tue, 22 Feb 2005, Glenn Maynard wrote: > On Tue, Feb 22, 2005 at 01:38:03PM -0500, Alan Stern wrote: > > At present there's no way to do it in general. If you restrict your > > program to the period while usb-storage waits before scanning the devices > > then things will work, as you've seen. But there's no guarantee about how > > long that period is; users can set it all the way down to 0. And ub has > > no such settling period. > > I'd also prefer not to have such a period, unless there are USB pen > drives that require it, since it makes things unresponsive--when the > player inserts a card, we play a sound and display the player's name > on screen, so having that take several seconds (when it doesn't have > to--the Shuffle seems to take a couple seconds to show up as a USB > device regardless) is undesirable.
You can change or eliminate the delay by using the usb-storage "delay_use=..." module parameter, where the delay time is given in seconds. If you specify 0 there will be no delay. I don't know if pen drives need that delay, but there are some devices that do. Alan Stern ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
