Plug&Pray was one thing, USB is not even better :-)

Following situation :

I have an USB printer  HP 959c.
I'm using CUPS on my Linux-2.4.17 system.

I have no hotplugging compiled in, the usb-printer module ist statically 
compiled in the kernel.


It works for a while, then suddenly (especially if I invoke a printjob from 
Win2000/XP) the printer stopps printing.

I get the following message in my /var/log/syslog :

-------------------------------------------------
Jan 31 17:10:42 quark kernel: printer.c: usblp0: nonzero read/write bulk 
status received: -110
Jan 31 17:10:42 quark kernel: printer.c: usblp0: error -110 reading printer 
status
Jan 31 17:10:42 quark kernel: printer.c: usblp0: error -110 reading printer 
status
Jan 31 17:10:42 quark kernel: printer.c: usblp0: error -110 reading printer 
status
Jan 31 17:10:42 quark kernel: printer.c: usblp0: error -110 reading printer 
status
Jan 31 17:10:42 quark kernel: hub.c: already running port 2 disabled by hub 
(EMI?), re-enabling...
Jan 31 17:10:42 quark kernel: usb.c: USB disconnect on device 2
Jan 31 17:10:42 quark kernel: hub.c: USB new device connect on bus1/2, 
assigned device number 3
Jan 31 17:10:42 quark kernel: printer.c: usblp1: USB Bidirectional printer dev 
3 if 0 alt 1
Jan 31 17:10:42 quark kernel: printer.c: usblp0: removed
----------------------------------------------------

As you can see, the printer device isn't on uslp0 anymore, but on usblp1, so 
cups also stopps and logically says :

State Stopped
StateMessage Unable to open USB port device file: No such device

I don't know which further information I should give you, if this is a bug, I 
can't easily avoid.

So I give the output from   lspci  &   lsusb.

tell me if I must add more debugging information.


> lsusb
Bus 001 Device 001: ID 0000:0000 Virtual Hub
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x0000 Virtual
  idProduct          0x0000 Hub
  bcdDevice            0.00
  iManufacturer           0 
  iProduct                2 USB UHCI-alt Root Hub
  iSerial                 1 d400
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x40
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               none
        wMaxPacketSize          8
        bInterval             255
  Language IDs: (length=4)
     0000 (null)((null))

Bus 001 Device 003: ID 03f0:1104 Hewlett-Packard 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.00
  bDeviceClass            0 Interface
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x03f0 Hewlett-Packard
  idProduct          0x1104 
  bcdDevice            1.00
  iManufacturer           1 Hewlett-Packard
  iProduct                2 DeskJet 950C
  iSerial                 3 ES0CI171Q6DF
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           55
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x40
      Self Powered
    MaxPower                2mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         7 Printer
      bInterfaceSubClass      1 Printer
      bInterfaceProtocol      1 Unidirectional
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               none
        wMaxPacketSize         64
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               none
        wMaxPacketSize         64
        bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       1
      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
  Language IDs: (length=4)
     0409 English(US)

> lspci 
00:00.0 Host bridge: VIA Technologies, Inc. VT82C598 [Apollo MVP3] (rev 04)
00:01.0 PCI bridge: VIA Technologies, Inc. VT82C598/694x [Apollo MVP3/Pro133x 
AGP]
00:07.0 ISA bridge: VIA Technologies, Inc. VT82C586/A/B PCI-to-ISA [Apollo VP] 
(rev 47)
00:07.1 IDE interface: VIA Technologies, Inc. Bus Master IDE (rev 06)
00:07.2 USB Controller: VIA Technologies, Inc. UHCI USB (rev 02)
00:07.3 Host bridge: VIA Technologies, Inc. VT82C586B ACPI (rev 10)
00:11.0 Multimedia audio controller: Ensoniq ES1370 [AudioPCI] (rev 01)
00:12.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139 (rev 10)
00:13.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8029(AS)
00:14.0 SCSI storage controller: LSI Logic / Symbios Logic (formerly NCR) 
53c810 (rev 12)
01:00.0 VGA compatible controller: NVidia / SGS Thomson (Joint Venture) 
Riva128 (rev 10)

Thanks so far

Kai Reichert

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

Reply via email to