Try editing the javax.usb.properties file and change both the com.ibm.jusb.os.linux.LinuxUsbServices.topologyUpdateDelay and com.ibm.jusb.os.linux.LinuxUsbServices.topologyUpdateNewDeviceDelay properties to 0 (or a small number, it's in ms).
Those are from the days of a less robust Linux USB subsystem, when immediately talking to devices after they were plugged in caused problems with the hub driver and/or other drivers. Things may be better with newer kernels but using "forceClaim" immediately probably will still cause problems :( Let me know if that speeds it up or not... On Wed, 21 Sep 2005, Elliotte Harold wrote: >I've written a very simple program to find all the USB devices connected >to a system: > >import java.util.*; >import javax.usb.*; > >public class USBLister { > > public static void main(String[] args) throws UsbException { > UsbServices services = UsbHostManager.getUsbServices(); > UsbHub root = services.getRootUsbHub(); > listDevices(root); > } > > public static void listDevices(UsbHub hub) { > List devices = hub.getAttachedUsbDevices(); > Iterator iterator = devices.iterator(); > while (iterator.hasNext()) { > UsbDevice device = (UsbDevice) iterator.next(); > System.out.println(device); > if (device.isUsbHub()) { > listDevices((UsbHub) device); > } > } > } >} > >What surprises me is how long this program takes to run. It's on the >order of 10 seconds. There are only two devices connected to the system. >What's happening that's taking so long? Where is the time going? > > -- Dan Streetman [EMAIL PROTECTED] --------------------- 186,272 miles per second: It isn't just a good idea, it's the law! ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ javax-usb-devel mailing list javax-usb-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/javax-usb-devel