[sane-devel] Can't use scanner on Mac High Sierra (10.13)

Tom Myers tomlists at itainc.com
Wed Oct 25 23:13:30 UTC 2017


I have been able to build the SANE-Backends-1.0.27   But running it gives a problem on USB scanners. It works fine with network scanner 

——————— Building ---------------

./configure BACKENDS="epson2" PRELOADABLE_BACKENDS="epson2" --with-usb
make
make install

Note it would be great if the epson2.desc file be updated for the new 12000XL

:model      "Expression 12000XL"
:interface  "USB"
:usbid      "0x04b8" "0x015b"
:status     :good
:comment    "overseas version of the DS-G20000"

——————— LibUSB ————
I am using libusb 1.0.21

(found from brew list —versions)

————— Testing -------------

BUG Report

sane-find-scanner returns 

  # 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=0x0bda [Realtek], product=0x8153 [USB 10/100/1000 LAN]) at libusb:001:006
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
  # Your USB scanner was (probably) detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.

  # Not checking for parallel port scanners.

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

  # You may want to run this program as root to find all devices. Once you
  # found the scanner devices, be sure to adjust access permissions as
  # necessary.


——————————— And more verbose

sane-find-scanner -v -v
This is sane-find-scanner from sane-backends 1.0.27

  # 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.

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

searching for USB scanners:
trying libusb:

<device descriptor of 0x0bda/0x8153 at 001:006 (Realtek USB 10/100/1000 LAN)>
bLength               18
bDescriptorType       1
bcdUSB                3.00
bDeviceClass          0
bDeviceSubClass       0
bDeviceProtocol       0
bMaxPacketSize0       9
idVendor              0x0BDA
idProduct             0x8153
bcdDevice             48.00
iManufacturer         1 (Realtek)
iProduct              2 (USB 10/100/1000 LAN)
iSerialNumber         6 (000001000000)
bNumConfigurations    2
 <configuration 0>
 bLength              9
 bDescriptorType      2
 wTotalLength         57
 bNumInterfaces       1
 bConfigurationValue  1
 iConfiguration       0 ()
 bmAttributes         160 (Remote Wakeup)
 MaxPower             64 mA
  <interface 0>
   <altsetting 0>
   bLength            9
   bDescriptorType    4
   bInterfaceNumber   0
   bAlternateSetting  0
   bNumEndpoints      3
   bInterfaceClass    255
   bInterfaceSubClass 255
   bInterfaceProtocol 0
   iInterface         0 ()
    <endpoint 0>
    bLength           7
    bDescriptorType   5
    bEndpointAddress  0x81 (in 0x01)
    bmAttributes      2 (bulk)
    wMaxPacketSize    1024
    bInterval         0 ms
    bRefresh          0
    bSynchAddress     0
    <endpoint 1>
    bLength           7
    bDescriptorType   5
    bEndpointAddress  0x02 (out 0x02)
    bmAttributes      2 (bulk)
    wMaxPacketSize    1024
    bInterval         0 ms
    bRefresh          0
    bSynchAddress     0
    <endpoint 2>
    bLength           7
    bDescriptorType   5
    bEndpointAddress  0x83 (in 0x03)
    bmAttributes      3 (interrupt)
    wMaxPacketSize    2
    bInterval         8 ms
    bRefresh          0
    bSynchAddress     0
 <configuration 1>
 bLength              9
 bDescriptorType      2
 wTotalLength         98
 bNumInterfaces       2
 bConfigurationValue  2
 iConfiguration       0 ()
 bmAttributes         160 (Remote Wakeup)
 MaxPower             64 mA
  <interface 0>
   <altsetting 0>
   bLength            9
   bDescriptorType    4
   bInterfaceNumber   0
   bAlternateSetting  0
   bNumEndpoints      1
   bInterfaceClass    2
   bInterfaceSubClass 6
   bInterfaceProtocol 0
   iInterface         5 (CDC Communications Control)
    <endpoint 0>
    bLength           7
    bDescriptorType   5
    bEndpointAddress  0x83 (in 0x03)
    bmAttributes      3 (interrupt)
    wMaxPacketSize    16
    bInterval         8 ms
    bRefresh          0
    bSynchAddress     0
  <interface 1>
   <altsetting 0>
   bLength            9
   bDescriptorType    4
   bInterfaceNumber   1
   bAlternateSetting  0
   bNumEndpoints      0
   bInterfaceClass    10
   bInterfaceSubClass 0
   bInterfaceProtocol 0
   iInterface         0 ()
   <altsetting 1>
   bLength            9
   bDescriptorType    4
   bInterfaceNumber   1
   bAlternateSetting  1
   bNumEndpoints      2
   bInterfaceClass    10
   bInterfaceSubClass 0
   bInterfaceProtocol 0
   iInterface         4 (Ethernet Data)
    <endpoint 0>
    bLength           7
    bDescriptorType   5
    bEndpointAddress  0x81 (in 0x01)
    bmAttributes      2 (bulk)
    wMaxPacketSize    1024
    bInterval         0 ms
    bRefresh          0
    bSynchAddress     0
    <endpoint 1>
    bLength           7
    bDescriptorType   5
    bEndpointAddress  0x02 (out 0x02)
    bmAttributes      2 (bulk)
    wMaxPacketSize    1024
    bInterval         0 ms
    bRefresh          0
    bSynchAddress     0

<trying to find out which USB chip is used>
    checking for LM983[1,2,3] ...
    this is not a LM983x (bcdUSB = 0x300)
    checking for GT-6801 ...
    this is not a GT-6801 (bDeviceClass = 0)
    checking for GT-6816 ...
    this is not a GT-6816 (bcdUSB = 0x300)
    checking for GLxxx ...
    this is not a GL646 (bDeviceClass = 0, bInterfaceClass = 255)
    this is not a GLxxx (bDeviceClass = 0, bInterfaceClass = 255)
<Couldn't determine the type of the USB chip (result from sane-backends 1.0.27)>

found USB scanner (vendor=0x0bda [Realtek], product=0x8153 [USB 10/100/1000 LAN]) at libusb:001:006
device 0x04b8/0x0129 at 020:011 is not configured
could not fetch string descriptor: Pipe error
could not fetch string descriptor: Pipe error

<device descriptor of 0x2109/0x2812 at 020:010>
bLength               18
bDescriptorType       1
bcdUSB                2.10
bDeviceClass          9
bDeviceSubClass       0
bDeviceProtocol       1
bMaxPacketSize0       64
idVendor              0x2109
idProduct             0x2812
bcdDevice             144.90
iManufacturer         1 ()
iProduct              2 ()
iSerialNumber         0 ()
bNumConfigurations    1
 <configuration 0>
 bLength              9
 bDescriptorType      2
 wTotalLength         25
 bNumInterfaces       1
 bConfigurationValue  1
 iConfiguration       0 ()
 bmAttributes         224 (Self-poweredRemote Wakeup)
 MaxPower             0 mA
  <interface 0>
   <altsetting 0>
   bLength            9
   bDescriptorType    4
   bInterfaceNumber   0
   bAlternateSetting  0
   bNumEndpoints      1
   bInterfaceClass    9
   bInterfaceSubClass 0
   bInterfaceProtocol 0
   iInterface         0 ()
    <endpoint 0>
    bLength           7
    bDescriptorType   5
    bEndpointAddress  0x81 (in 0x01)
    bmAttributes      3 (interrupt)
    wMaxPacketSize    1
    bInterval         12 ms
    bRefresh          0
    bSynchAddress     0
could not fetch string descriptor: Pipe error
could not fetch string descriptor: Pipe error

<device descriptor of 0x2109/0x0812 at 001:005>
bLength               18
bDescriptorType       1
bcdUSB                3.00
bDeviceClass          9
bDeviceSubClass       0
bDeviceProtocol       3
bMaxPacketSize0       9
idVendor              0x2109
idProduct             0x0812
bcdDevice             144.91
iManufacturer         1 ()
iProduct              2 ()
iSerialNumber         0 ()
bNumConfigurations    1
 <configuration 0>
 bLength              9
 bDescriptorType      2
 wTotalLength         31
 bNumInterfaces       1
 bConfigurationValue  1
 iConfiguration       0 ()
 bmAttributes         224 (Self-poweredRemote Wakeup)
 MaxPower             0 mA
  <interface 0>
   <altsetting 0>
   bLength            9
   bDescriptorType    4
   bInterfaceNumber   0
   bAlternateSetting  0
   bNumEndpoints      1
   bInterfaceClass    9
   bInterfaceSubClass 0
   bInterfaceProtocol 0
   iInterface         0 ()
    <endpoint 0>
    bLength           7
    bDescriptorType   5
    bEndpointAddress  0x81 (in 0x01)
    bmAttributes      19 (interrupt)
    wMaxPacketSize    2
    bInterval         8 ms
    bRefresh          0
    bSynchAddress     0

<device descriptor of 0x2109/0x0100 at 020:001 (VIA Technologies Inc.          USB-C dongle)>
bLength               18
bDescriptorType       1
bcdUSB                2.01
bDeviceClass          17
bDeviceSubClass       0
bDeviceProtocol       0
bMaxPacketSize0       64
idVendor              0x2109
idProduct             0x0100
bcdDevice             6.03
iManufacturer         1 (VIA Technologies Inc.         )
iProduct              2 (USB-C dongle)
iSerialNumber         3 (0000000000000001)
bNumConfigurations    1
 <configuration 0>
 bLength              9
 bDescriptorType      2
 wTotalLength         18
 bNumInterfaces       1
 bConfigurationValue  1
 iConfiguration       4 (http://help.vesa.org/dp-usb-type-c/)
 bmAttributes         128 ()
 MaxPower             100 mA
  <interface 0>
   <altsetting 0>
   bLength            9
   bDescriptorType    4
   bInterfaceNumber   0
   bAlternateSetting  0
   bNumEndpoints      0
   bInterfaceClass    17
   bInterfaceSubClass 0
   bInterfaceProtocol 0
   iInterface         4 (http://help.vesa.org/dp-usb-type-c/)
  # Your USB scanner was (probably) detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.

  # Not checking for parallel port scanners.

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

  # You may want to run this program as root to find all devices. Once you
  # found the scanner devices, be sure to adjust access permissions as
  # necessary.
done
ITALex15:sane-backends-1.0.27 tmyers$ 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20171025/df43d3bc/attachment-0001.html>


More information about the sane-devel mailing list