static public void main (String argv [])
    {
	try {
	    Host	h = Linux.getHost ();
	    Bus		bus [] = h.getBusses ();

	    for (int i = 0; i < bus.length; i++) {
		for (int j = 1; j < 128; j++) {
		    Device	dev = bus [i].getDevice (j);

		    if (dev == null)
			continue;

		    System.out.println (new PortIdentifier (dev).toString ());
		    try {
			HID	hid = new HID (dev);

			System.out.println ("HID: " + hid);
			for (int k = 0; k < 20; k++) {
			    Event e = hid.readEvent ();
			    System.out.println ("Event:  " + e);
			}
			System.out.println ("done!");
			System.exit (0);
		    } catch (IllegalArgumentException e) {
			System.out.println ("skip, " + e.getMessage ());
			continue;
		    }
		}
	    }

	} catch (Exception e) {
	    e.printStackTrace ();
	}
    }