another USB printer , can't print

Stewart sandreas41 at yahoo.com
Thu Jul 3 14:01:36 PDT 2008


I have a Canon Pixma usb printer, that did work with lpd and turboprint.
I installed cups-1.3.6 (and replaced lpd with cupsd in rc.M)
Reinstalled the printers with turboprint. I can print to another printer on the parallel port, but can not connect to the USB printer.

After searching for this problem, I can say I have tried the following mentioned elsewhere:
chown root.lp /dev/usb/lp0
chown root.lp /dev/usblp0
(I don't know which of these devices is the correct one)

looking for the usblp module is not applicable, as it is compiled into the kernel, (linux-2.6.18.8)
  Device Drivers  --->
    USB support  --->
<*>   USB Printer support

# lpinfo -v
network socket
network http
network ipp
network lpd
direct parallel:/dev/lp0
direct scsi

# lsusb
Bus 002 Device 002: ID 04a9:10a8 Canon Inc.
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 Interface
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x04a9 Canon Inc.
  idProduct          0x10a8
  bcdDevice            1.03
  iManufacturer           1 Canon
  iProduct                2 iP6220D
  iSerial                 3 100D07
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           80
    bNumInterfaces          3
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower                2mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         7 Printer
      bInterfaceSubClass      1 Printer
      bInterfaceProtocol      2 Bidirectional
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               none
        wMaxPacketSize         64
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               none
        wMaxPacketSize         64
        bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk (Zip)
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               none
        wMaxPacketSize         64
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x05  EP 5 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               none
        wMaxPacketSize         64
        bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Devices
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode            0
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     331
[clip]
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               none
        wMaxPacketSize          8
        bInterval              10
  Language IDs: (length=4)
     0409 English(US)

So it does report itself as a printer (among other things), but I can't find the proper URI or IEEE-1284 device ID string I should see when I do the following command

# cd /usr/lib/cups/backend
# usb
#

no output.

>From the setup page on port 631, when I try to print a test page, it says:
TurboPrint: printing page 1, 20% complete...
...
Printer not connected; will retry in 30 seconds..

# dmesg
uhci_hcd 0000:00:07.2: UHCI Host Controller
uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1
uhci_hcd 0000:00:07.2: irq 11, io base 0x0000d400
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:07.3[D] -> Link [LNKD] -> GSI 11 (level, low) -> IRQ 11
uhci_hcd 0000:00:07.3: UHCI Host Controller
uhci_hcd 0000:00:07.3: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:07.3: irq 11, io base 0x0000d800
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
usb 2-1: new full speed USB device using uhci_hcd and address 2
usb 2-1: configuration #1 chosen from 1 choice
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x04A9 pid 0x10A8
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 2
[clip]
EXT3-fs: mounted filesystem with ordered data mode.
  Vendor: Canon     Model: iP6220DStorage    Rev: 0103
  Type:   Direct-Access                      ANSI SCSI revision: 02
sd 0:0:0:0: Attached scsi removable disk sda
usb-storage: device scan complete
[clip]
usb 2-1: usbfs: process 2461 (lsusb) did not claim interface 2 before use

# cat /var/log/cups/error_log
[clip]
I [03/Jul/2008:12:58:34 -0700] Listening to 127.0.0.1:631 (IPv4)
I [03/Jul/2008:12:58:34 -0700] Listening to /var/run/cups/cups.sock (Domain)
I [03/Jul/2008:12:58:34 -0700] Loaded configuration file "/etc/cups/cupsd.conf"
I [03/Jul/2008:12:58:34 -0700] Using default TempDir of /var/spool/cups/tmp...
I [03/Jul/2008:12:58:34 -0700] Configured for up to 100 clients.
I [03/Jul/2008:12:58:34 -0700] Allowing up to 100 client connections per host.
I [03/Jul/2008:12:58:34 -0700] Using policy "default" as the default!
I [03/Jul/2008:12:58:34 -0700] Full reload is required.
I [03/Jul/2008:12:58:34 -0700] Loaded MIME database from '/etc/cups': 35 types,
37 filters...
I [03/Jul/2008:12:58:35 -0700] Loading job cache file "/var/cache/cups/job.cache"...
I [03/Jul/2008:12:58:35 -0700] Full reload complete.
I [03/Jul/2008:12:58:35 -0700] Cleaning out old temporary files in "/var/spool/cups/tmp"...
I [03/Jul/2008:12:58:35 -0700] Listening to 127.0.0.1:631 on fd 0...
I [03/Jul/2008:12:58:35 -0700] Listening to /var/run/cups/cups.sock on fd 2...
I [03/Jul/2008:12:58:35 -0700] Resuming new connection processing...
I [03/Jul/2008:12:59:47 -0700] Started "/usr/lib/cups/daemon/cups-deviced" (pid=2449)
I [03/Jul/2008:12:59:59 -0700] Started "/usr/lib/cups/daemon/cups-deviced" (pid=2474)
I [03/Jul/2008:13:22:15 -0700] Started "/usr/lib/cups/daemon/cups-driverd" (pid=2815)
E [03/Jul/2008:13:22:15 -0700] [cups-driverd] Unable to open PPD directory "/usr/local/share/ppd": No such file or directory
E [03/Jul/2008:13:22:15 -0700] [cups-driverd] Unable to open PPD directory "/usr/share/ppd": No such file or directory
E [03/Jul/2008:13:22:15 -0700] [cups-driverd] Unable to open PPD directory "/opt/share/ppd": No such file or directory
I [03/Jul/2008:13:41:31 -0700] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=3088)
I [03/Jul/2008:13:41:37 -0700] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=3090)
E [03/Jul/2008:13:41:37 -0700] Resume-Printer: Unauthorized
I [03/Jul/2008:13:41:39 -0700] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=3091)
E [03/Jul/2008:13:41:39 -0700] Resume-Printer: Unauthorized
I [03/Jul/2008:13:41:39 -0700] Saving printers.conf...
I [03/Jul/2008:13:41:39 -0700] Printer "tp1" started by "root".
I [03/Jul/2008:13:41:39 -0700] [Job 9] Started filter /usr/lib/cups/filter/pstops (PID 3092)
I [03/Jul/2008:13:41:39 -0700] [Job 9] Started filter /usr/lib/cups/filter/pstoturboprint (PID 3093)
I [03/Jul/2008:13:41:39 -0700] [Job 9] Started backend /usr/lib/cups/backend/usb (PID 3094)
I [03/Jul/2008:13:41:41 -0700] Started "/usr/lib/cups/cgi-bin/jobs.cgi" (pid=3111)
I [03/Jul/2008:13:41:45 -0700] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=3113)
I [03/Jul/2008:13:43:07 -0700] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=3130)
E [03/Jul/2008:13:43:07 -0700] CUPS-Accept-Jobs: Unauthorized
I [03/Jul/2008:13:43:07 -0700] Saving printers.conf...
I [03/Jul/2008:13:43:07 -0700] Printer "tp1" now accepting jobs ("root").
I [03/Jul/2008:13:43:09 -0700] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=3132)
I [03/Jul/2008:13:43:16 -0700] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=3135)
I [03/Jul/2008:13:43:26 -0700] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=3138)
I [03/Jul/2008:13:43:36 -0700] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=3141)
I [03/Jul/2008:13:43:47 -0700] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=3144)

I don't know why it said unauthorized, I used the root password.

and I have no special entry in /etc/hotplug/usb for this device.

So, what did I miss?
Stewart




More information about the cups mailing list