Results 1 to 2 of 2

Thread: USB printer problem

  1. #1
    Join Date
    Jul 2009
    Location
    Denmark
    Posts
    20

    Default USB printer problem

    Hello

    I want to connect two OKI B410d USB printers to a PC running SUSE 11.0 and CUPS.
    I install (using either YaST or CUPS administration) and get the following in the /etc/cups/printers.conf file:

    <Printer A>
    ...
    DeviceURI usb://OKI%20DATA%20CORP/B410
    ...
    </Printer>
    <Printer B>
    ...
    DeviceURI usb://OKI%20DATA%20CORP/B410
    ...
    </Printer>

    After installation all print is sent to the same printer, regardless of which of printers A or B is used (probably no big surprise with identical URIs).

    Does anybody know how I can obtain unique URIs for the printers A and B?

    --
    Jens

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,698
    Blog Entries
    1

    Default Re: USB printer problem

    It should be possible to differentiate the two identical-model printers via a custom udev rule.

    If you type 'lshal -m' you can monitor the output as they are plugged in. This may yield something like:

    11:25:06.910: usb_device_4b8_83f_B03240801260709018 added
    11:25:07.115: usb_device_4b8_83f_B03240801260709018_if0 added
    11:25:07.221: usb_device_4b8_83f_B03240801260709018_if1 added
    11:25:09.476: usb_device_4b8_83f_B03240801260709018_if1_printer_noserial added
    You can see the product ID, vendor ID, and unique serial no. This last attribute can be used to name the printer uniquely.

    Have a read of this:

    Writing udev rules

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •