From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Thu, 22 Jan 2004 10:04:06 +0000 Subject: Re: udev rule for usb printer Message-Id: <20040122100406.GA644@vrfy.org> List-Id: References: <200401211924.08672.bobb@absamail.co.za> In-Reply-To: <200401211924.08672.bobb@absamail.co.za> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Thu, Jan 22, 2004 at 10:10:49AM +0200, Bob Barry wrote: > Kay - > > On Thursday 22 January 2004 you wrote: > > You may try the extras/udevinfo/udevinfo program. > > This is quite new, so I want to know if this can help. > > I tried the udevinfo of udev-014. It has no man; no help for > --help, -h, or no args; it does not seem to accept wild cards; > it does not take arguments from standard input > ("find ... | xargs udevinfo" does not work); and "udevinfo -a" > does not list "all", as would be useful. Sorry, udevinfo accepts only one sysfs path for one specific device, not a list what xargs expects. There are no options besides this one argument. "./udevinfo /sys/class/usb/lp0" should work, but it seems that it doesn't get the information you looking for. I don't have any usb printer, what does: "tree /sys/class/usb" "tree /sys/devices/pci0000:00/0000:00:02.0/usb1" print on your machine? thanks, Kay > device '/sys/class/usb/lp0' has major:minor 180:0 > > looking at class device '/sys/class/usb/lp0': > SYSFS_dev="180:0" > > follow class device's "device" link '/sys/class/usb/lp0': > BUS="usb" > ID="1-1:1.0" > SYSFS_detach_state="0" > SYSFS_bInterfaceNumber="00" > SYSFS_bAlternateSetting=" 0" > SYSFS_bNumEndpoints="02" > SYSFS_bInterfaceClass="07" > SYSFS_bInterfaceSubClass="01" > SYSFS_bInterfaceProtocol="02" > SYSFS_iInterface="00" ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel