Package: libsane
Version: 1.0.19-23
Severity: important

"scanimage -L" detects my scanner, but I'm not able to scan anything.

$ 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.
  # Also you need support for SCSI Generic (sg) in your operating system.
  # If using Linux, try "modprobe sg".

found USB scanner (vendor=0x0bda, product=0x8187) at libusb:004:003
found USB scanner (vendor=0x04a9 [Canon], product=0x2213 [CanoScan], 
chip=GL841) at libusb:008:005
  # 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.

$ scanimage -L
device `v4l:/dev/video0' is a Noname UVC Camera (046d:08ca) virtual device
device `genesys:libusb:008:005' is a Canon LiDE 35/40/50 flatbed scanner
$ scanimage -d genesys:libusb:008:005
scanimage: sane_start: Invalid argument
$ dmesg
...
[  616.511009] usb 8-3.3: usbfs: USBDEVFS_CONTROL failed cmd scanimage rqt 64 
rq 12 len 1 ret -71
[  616.516233] usb 8-3.3: usbfs: USBDEVFS_CONTROL failed cmd scanimage rqt 64 
rq 12 len 1 ret -71
[  616.511009] usb 8-3.3: usbfs: USBDEVFS_CONTROL failed cmd scanimage rqt 64 
rq 12 len 1 ret -71
[  616.516233] usb 8-3.3: usbfs: USBDEVFS_CONTROL failed cmd scanimage rqt 64 
rq 12 len 1 ret -71
[  616.511009] usb 8-3.3: usbfs: USBDEVFS_CONTROL failed cmd scanimage rqt 64 
rq 12 len 1 ret -71
[  616.516233] usb 8-3.3: usbfs: USBDEVFS_CONTROL failed cmd scanimage rqt 64 
rq 12 len 1 ret -71
[  616.511009] usb 8-3.3: usbfs: USBDEVFS_CONTROL failed cmd scanimage rqt 64 
rq 12 len 1 ret -71
[  616.516233] usb 8-3.3: usbfs: USBDEVFS_CONTROL failed cmd scanimage rqt 64 
rq 12 len 1 ret -71
[  616.738681] usb 8-3.3: USB disconnect, address 5
[  617.035314] usb 8-3.3: new high speed USB device using ehci_hcd and address 8
[  617.145409] usb 8-3.3: configuration #1 chosen from 1 choice
[  617.145409] usb 8-3.3: New USB device found, idVendor=04a9, idProduct=2213
[  617.145409] usb 8-3.3: New USB device strings: Mfr=1, Product=2, 
SerialNumber=0
[  617.145409] usb 8-3.3: Product: CanoScan
[  617.145409] usb 8-3.3: Manufacturer: Canon

$ strace scanimage -d genesys:libusb:008:008
...
nanosleep({0, 10000000}, NULL)          = 0
ioctl(3, USBDEVFS_CONTROL, 0x7fff8ede4050) = 1
ioctl(3, USBDEVFS_CONTROL, 0x7fff8ede4050) = 1
ioctl(3, USBDEVFS_CONTROL, 0x7fff8ede4050) = 1
ioctl(3, USBDEVFS_CONTROL, 0x7fff8ede4050) = 1
ioctl(3, USBDEVFS_CONTROL, 0x7fff8ede4050) = -1 EPROTO (Protocol error)
ioctl(3, USBDEVFS_CONTROL, 0x7fff8ede4050) = -1 EPROTO (Protocol error)
ioctl(3, USBDEVFS_CONTROL, 0x7fff8ede4050) = -1 EPROTO (Protocol error)
ioctl(3, USBDEVFS_CONTROL, 0x7fff8ede4050) = -1 EPROTO (Protocol error)
ioctl(3, USBDEVFS_CONTROL, 0x7fff8ede4050) = -1 EPROTO (Protocol error)
ioctl(3, USBDEVFS_CONTROL, 0x7fff8ede4050) = -1 EPROTO (Protocol error)
ioctl(3, USBDEVFS_CONTROL, 0x7fff8ede3f50) = -1 EPROTO (Protocol error)
write(2, "scanimage: sane_start: Invalid ar"..., 40scanimage: sane_start: 
Invalid argument
) = 40
close(1)                                = 0
ioctl(3, USBDEVFS_CONTROL, 0x7fff8ede4070) = -1 EPROTO (Protocol error)
ioctl(3, USBDEVFS_RELEASEINTERFACE, 0x7fff8ede5224) = 0
close(3)                                = 0
munmap(0x7f028623f000, 2288992)         = 0
munmap(0x7f0285fbc000, 2629848)         = 0
munmap(0x7f0285db4000, 2128016)         = 0
exit_group(4)                           = ?

$  export  SANE_DEBUG_GENESYS=255
$  export SANE_DEBUG_GENESYS_GL841=255
...
[genesys] sane_start: start
[genesys] genesys_start_scan
[genesys_gl841] gl841_save_power: enable = 0
[genesys] sanei_genesys_read_register (0x6d, 0xdf) completed
[genesys] sanei_genesys_write_register (0x6d, 0xdf) completed
[genesys] sanei_genesys_read_register (0x6c, 0x11) completed
[genesys] sanei_genesys_write_register (0x6c, 0x10) completed
[genesys] sanei_genesys_read_register (0x6c, 0x11): failed while setting 
register: Invalid argument
[genesys] sanei_genesys_write_register (0x6c, 0x13): failed while setting 
register: Invalid argument
[genesys] sanei_genesys_read_register (0x6b, 0x11): failed while setting 
register: Invalid argument
[genesys] sanei_genesys_write_register (0x6b, 0x11): failed while setting 
register: Invalid argument
[genesys] sanei_genesys_read_register (0x6b, 0x11): failed while setting 
register: Invalid argument
[genesys] sanei_genesys_write_register (0x6b, 0x13): failed while setting 
register: Invalid argument
[genesys_gl841] gl841_slow_back_home (wait_until_home = 1)
[genesys] sanei_genesys_read_register (0x41, 0x00): failed while setting 
register: Invalid argument
[genesys_gl841] gl841_slow_back_home: Failed to read home sensor: Invalid 
argument
[genesys] genesys_start_scan: failed to move scanhead to home position: Invalid 
argument
scanimage: sane_start: Invalid argument
[genesys] sane_cancel: start
[genesys_gl841] gl841_end_scan (check_stop = 1)
[genesys] sanei_genesys_write_register (0x01, 0xa0): failed while setting 
register: Invalid argument
[genesys_gl841] gl841_end_scan: Failed to write registers: Invalid argument
[genesys] sane_cancel: Failed to end scan: Invalid argument
[genesys] sane_close: start
[genesys] sane_close: exit
[genesys] sane_exit: start
[genesys] sane_exit: exit


-- System Information:
Debian Release: 5.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libsane depends on:
ii  adduser                   3.110          add and remove users and groups
ii  libavahi-client3          0.6.23-3lenny1 Avahi client library
ii  libavahi-common3          0.6.23-3lenny1 Avahi common library
ii  libc6                     2.7-18         GNU C Library: Shared libraries
ii  libexif12                 0.6.16-2.1     library to parse EXIF files
ii  libgphoto2-2              2.4.1-3        gphoto2 digital camera library
ii  libgphoto2-port0          2.4.1-3        gphoto2 digital camera port librar
ii  libieee1284-3             0.2.11-5       cross-platform library for paralle
ii  libjpeg62                 6b-14          The Independent JPEG Group's JPEG 
ii  libsane-extras            1.0.19.11      API library for scanners -- extra 
ii  libtiff4                  3.8.2-11       Tag Image File Format (TIFF) libra
ii  libusb-0.1-4              2:0.1.12-13    userspace USB programming library
ii  makedev                   2.3.1-88       creates device files in /dev
ii  udev                      0.125-7        /dev/ and hotplug management daemo

Versions of packages libsane recommends:
ii  avahi-daemon              0.6.23-3lenny1 Avahi mDNS/DNS-SD daemon
ii  sane-utils                1.0.19-23      API library for scanners -- utilit

Versions of packages libsane suggests:
ii  hplip                         2.8.6.b-4  HP Linux Printing and Imaging Syst
pn  hpoj                          <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to