Page 1 of 1

Scanner trouble

Posted: Mon Nov 19, 2012 4:17 pm
by badiozam
Having trouble getting my scanner to work. I have a Fujitsu ScanSnap 1500 which is supported by SANE and it does get recognizes the device but gives the following error when I run

From sane-find-scanner I get:

Code: Select all

  # sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.

  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.

could not fetch string descriptor: Pipe error
could not fetch string descriptor: Pipe error
could not fetch string descriptor: Pipe error
could not fetch string descriptor: Pipe error
  # No USB scanners found. If you expected something different, make sure that
  # you have loaded a kernel driver for your USB host controller and have setup
  # the USB system correctly. See man sane-usb for details.

  # Not checking for parallel port scanners.

  # Most Scanners connected to the parallel port or other proprietary ports
  # can't be detected by this program.
From lsusb I get:

Code: Select all

Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 004: ID 0416:5518 Winbond Electronics Corp. 4-Port Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 1241:1122 Belkin Typhoon Stream Optical Mouse USB+PS/2
Bus 001 Device 004: ID 045e:00dd Microsoft Corp. Comfort Curve Keyboard 2000 V1.0
Bus 003 Device 005: ID 04c5:11a2 Fujitsu, Ltd 
The verbose output from lsusb -v seems to be correct also.

Code: Select all

Bus 003 Device 005: ID 04c5:11a2 Fujitsu, Ltd 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x04c5 Fujitsu, Ltd
  idProduct          0x11a2 
  bcdDevice            1.00
  iManufacturer           1 Fujitsu 
  iProduct                2 ScanSnap S1500
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xc0
      Self Powered
    MaxPower               98mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval             255
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval             255
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0001
  Self Powered
When I plug it in I get the following in syslog:

Code: Select all

Nov 19 12:17:01 Natasha kernel: [ 2969.228450] usb 3-4: >new high-speed USB device number 8 using xhci_hcd
Nov 19 12:17:01 Natasha kernel: [ 2969.260191] usb 3-4: >New USB device found, idVendor=04c5, idProduct=11a2
Nov 19 12:17:01 Natasha kernel: [ 2969.260196] usb 3-4: >New USB device strings: Mfr=1, Product=2, SerialNumber=0
Nov 19 12:17:01 Natasha kernel: [ 2969.260199] usb 3-4: >Product: ScanSnap S1500
Nov 19 12:17:01 Natasha kernel: [ 2969.260201] usb 3-4: >Manufacturer: Fujitsu 
Nov 19 12:17:01 Natasha kernel: [ 2969.260476] usb 3-4: >ep 0x81 - rounding interval to 128 microframes, ep desc says 255 microframes
Nov 19 12:17:01 Natasha kernel: [ 2969.260481] usb 3-4: >ep 0x2 - rounding interval to 128 microframes, ep desc says 255 microframes
Also, when I try to scan using any of the programs out there (xsane, scanimage, gscan2pdf, etc) I get "I/O" or "Broken pipe" errors. I've been running as root and still get the same issue. I tried fiddling with the udev rules but they didn't seem to have any effect. I double-checked the entry in sane-fujitsu.conf and it was correct. I figured maybe it was hardware issues so I tried plugging the scanner into different USB ports, and still got the same problem. Meanwhile the ports work with my printer and USB keyboard/mouse/flash drive. Then I tried the scanner on my laptop with the same USB cable and it works, so I'm at a bit of a loss here.

Any ideas?

Re: Scanner trouble

Posted: Mon Nov 19, 2012 7:06 pm
by remoulder
Mint version?

Re: Scanner trouble

Posted: Mon Nov 19, 2012 10:28 pm
by badiozam
Mint 14 Nadia

uname -a gives

Code: Select all

Linux Natasha 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:32:08 UTC 2012 i686 i686 i686 GNU/Linux

Re: Scanner trouble

Posted: Tue Nov 20, 2012 9:23 am
by remoulder
Mint 14 is not released, the RC is for testing and discussion of issues is requested http://blog.linuxmint.com/?p=2205

Re: Scanner trouble

Posted: Sun Jan 13, 2013 5:46 pm
by badiozam
Now that Mint 14 has been released, are there any steps I can take to make the scanner work? I've re-ran all of the programs and they're still giving me the same output as before. It seems that the scanner is detected but it's encountering a "Pipe Error" whenever it tries to get any information from it.

Re: Scanner trouble

Posted: Sun Jan 13, 2013 5:57 pm
by badiozam
A bit more info. When I tail syslog and try to open gscan2pdf this is what gets recorded (with the last line appearing when gscan2pdf attempts scan):

Code: Select all

Jan 13 13:58:31 Natasha kernel: [  305.821769] usb 3-4.1: >new full-speed USB device number 4 using xhci_hcd
Jan 13 13:58:31 Natasha kernel: [  305.844177] usb 3-4.1: >not running at top speed; connect to a high speed hub
Jan 13 13:58:31 Natasha kernel: [  305.855656] usb 3-4.1: >New USB device found, idVendor=04c5, idProduct=11a2
Jan 13 13:58:31 Natasha kernel: [  305.855661] usb 3-4.1: >New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jan 13 13:58:31 Natasha kernel: [  305.855664] usb 3-4.1: >Product: ScanSnap S1500
Jan 13 13:58:31 Natasha kernel: [  305.855667] usb 3-4.1: >Manufacturer: Fujitsu 
Jan 13 13:58:54 Natasha perl: io/hpmud/pp.c 627: unable to read device-id ret=-1

Re: Scanner trouble

Posted: Fri Dec 13, 2013 4:14 pm
by stewschneider
I'm having the same issue, so maybe this will bump it a bit. My earlier installation of Linux Mint 11 recognized my Epson Perfection V33 scanner out of the box. Upgraded the OS, and now, no love.
My system:

Code: Select all

uname -a
Linux Church 3.8.0-26-generic #38-Ubuntu SMP Mon Jun 17 21:43:33 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
My USB result:

Code: Select all

 sudo lsusb -v

Bus 001 Device 005: ID 04b8:0142 Seiko Epson Corp. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass          255 Vendor Specific Class
  bDeviceSubClass       255 Vendor Specific Subclass
  bDeviceProtocol       255 Vendor Specific Protocol
  bMaxPacketSize0        64
  idVendor           0x04b8 Seiko Epson Corp.
  idProduct          0x0142 
  bcdDevice            1.00
  iManufacturer           1 EPSON
  iProduct                2 EPSON Perfection V33/V330
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xc0
      Self Powered
    MaxPower                2mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval             255
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval             255
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass          255 Vendor Specific Class
  bDeviceSubClass       255 Vendor Specific Subclass
  bDeviceProtocol       255 Vendor Specific Protocol
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0001
  Self Powered
The Syslog

Code: Select all

Syslog:
12/13/13 02:17:01 PM	Church	CRON[3056]	(root) CMD (   cd / && run-parts --report /etc/cron.hourly)
12/13/13 02:18:21 PM	Church	kernel	[  451.661676] usb 1-4: USB disconnect, device number 2
12/13/13 02:18:21 PM	Church	colord	device removed: sysfs-EPSON-EPSON_Perfection_V33_V330
12/13/13 02:18:31 PM	Church	kernel	[  460.902801] usb 1-4: new high-speed USB device number 5 using ehci-pci
12/13/13 02:18:31 PM	Church	kernel	[  461.038097] usb 1-4: New USB device found, idVendor=04b8, idProduct=0142
12/13/13 02:18:31 PM	Church	kernel	[  461.038109] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
12/13/13 02:18:31 PM	Church	kernel	[  461.038117] usb 1-4: Product: EPSON Perfection V33/V330
12/13/13 02:18:31 PM	Church	kernel	[  461.038122] usb 1-4: Manufacturer: EPSON
12/13/13 02:18:31 PM	Church	colord	Device added: sysfs-EPSON-EPSON_Perfection_V33_V330

All of which looks right to my eye. However, when I try to locate a scanner:

Code: Select all

sudo sane-find-scanner

  # sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.

  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x04b8 [EPSON], product=0x0142 [EPSON Perfection V33/V330]) at libusb:001:005
could not fetch string descriptor: Pipe error
could not fetch string descriptor: Pipe error
  # Your USB scanner was (probably) detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.

What pipe are we talking about? What's the nature of the error? Whither shall I now turn?