On Tue, Jun 20, 2006 at 02:35:28PM -0500, Ken Cobler wrote:
> 
> I also experience this problem with printers.  When I have 2 USB printer 
> hooked up to a computer, first printer is /dev/usb/lp0, the second 
> printer is /dev/usb/lp1.   If the application is expecting to print 
> something on the first printer, I need the printer to be connected to 
> /dev/usb/lp0.  But, depending on how the user configures the printers to 
> the computer, the correct printer may or may not be /dev/usb/lp0.

This is exactly the situation that udev was created for.  Might I
suggest you use it to create a persistant device node based on the
serial number or name of the printer?

See the udev documentation for how to do this.

thanks,

greg k-h


_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to