Skip to contentSkip to conversation

Getting 2 usb printers to appear on same ports on

Linux-usb-users Miles Lane 2 participants 2 messages May 3, 2001 – May 4, 2001

lore
Share & tools
lore

Miles Lane

author
#0 lore raw
Quoted 11 lines · Karl Heinz Kremer

This is not just a printer problem. I have multiple USB scanners (up to three) connected to my machine. Depending on the order in which I power them on they are assigned /dev/usb/scanner[012].

I have to admit that the print queue problem is much worse than what Sane does with these, but I would still like to assign one physical device to a specific device file.

Would the hot-plugging support be the right place to look for a solution?

Yes, such issues should be discussed on
[email protected]
as well. I am CCing the list on this reply.

Miles

Quoted 10 lines
Quoted 8 lines · Dan Gray

I have two usb printers, a Brother HL-1250 and a HP 840C and have a large
problem with them, when I boot up it seems to be a matter of chance which is found first on the USB bus and which therefore is assigned /dev/usb/lp0 and which gets /dev/usb/lp1. Obviously this is making setting up my print queues a nightmare as I have to keep changing them whenever I reboot and the printers get re-assigned. So, how (if at all) do I get the kernel to always assign a particular printer to a given port?

Quoted 2 lines
Quoted 2 lines

Thanks
Dan

_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw

Re: [Linux-usb-users] Getting 2 usb printers to appear on same ports

Oh my ... the naming problem surfaces again! The one whereby names assigned by the kernel can't generally be "user meaningful names".

What naming policy is it that you want to provide? Is it based on printer connection (port N on that hub), or device type, both, something else, ...?

You could probably arrange to have hotplugging set up device links to obey such a policy, if you could rely on a patch like this one (as updated to apply to scanner drivers, not printers).

http://marc.theaimsgroup.com/?l=linux-usb-devel&m˜639571912668&w=2

Regardless of how/whether scanners converge towards a single driver, you'll have such a problem.

- Dave

----- Original Message -----
From: "Miles Lane" <[email protected]>
To: "Karl Heinz Kremer" <[email protected]>
Cc: <[email protected]>; <[email protected]>
Sent: Thursday, May 03, 2001 1:10 PM
Subject: Re: [Linux-usb-users] Getting 2 usb printers to appear on same ports on each boot...

Quoted 30 lines
Quoted 11 lines · Karl Heinz Kremer

This is not just a printer problem. I have multiple USB scanners (up to three) connected to my machine. Depending on the order in which I power them on they are assigned /dev/usb/scanner[012].

I have to admit that the print queue problem is much worse than what Sane does with these, but I would still like to assign one physical device to a specific device file.

Would the hot-plugging support be the right place to look for a solution?

Yes, such issues should be discussed on
[email protected]
as well. I am CCing the list on this reply.

Miles

Quoted 10 lines
Quoted 8 lines · Dan Gray

I have two usb printers, a Brother HL-1250 and a HP 840C and have a large
problem with them, when I boot up it seems to be a matter of chance which is found first on the USB bus and which therefore is assigned /dev/usb/lp0 and which gets /dev/usb/lp1. Obviously this is making setting up my print queues a nightmare as I have to keep changing them whenever I reboot and the printers get re-assigned. So, how (if at all) do I get the kernel to always assign a particular printer to a given port?

Quoted 7 lines
Quoted 2 lines
Quoted 2 lines

Thanks
Dan

_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel