I'm having a similar problem.  I have an old 32-bit Debian laptop on
which my scanner is working fine, and a new 64-bit Ubuntu 14.04 laptop
on which the scanner is not working.   The scanner is connected via USB
cable.  It is part of a Brother DCP-8155DN (multifunction black and
white laser printer, copier, and scanner).  The copier is working, and
the printer part is working with CUPS just fine as far as I can tell.

The scanner seems to be detected, but then gscan2pdf and Simple Scan
give errors, and sane-find-scanner can not find it.  Scanimage sees it
but cannot produce an output image.    I tried these as root and not
root.

I have sane 1.0.14-9 and sane-utils 1.0.23-3.  The kernel is Linux
version 3.13.0-32-generic.

lsusb:

   Bus 003 Device 006: ID 04f9:0293 Brother Industries, Ltd

grep bro /etc/sane.d/dll.conf

   brother4

locate libsane | grep rules

   /etc/udev/rules.d/40-brother-libsane-type1.rules
   /lib/udev/rules.d/40-libsane.rules

grep 0293 /lib/udev/rules.d/40-libsane.rules

   ATTRS{idVendor}=="04f9", ATTRS{idProduct}=="0293",
ENV{libsane_matched}="yes"

scanimage -L

   device `brother4:bus2;dev1' is a Brother DCP-8155DN USB scanner

sudo scanimage -T

   scanimage: rounded value of br-x from 215.9 to 215.88
   scanimage: rounded value of br-y from 355.6 to 355.567
   scanimage: sane_start: Invalid argument

sudo sane-find-scanner

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

When I ran gscan2pdf as root from the command line, it gave a command
line error:

   ERROR - opening device 'brother4:bus2;dev1': Invalid argument

*************************************************************************************

sudo SANE_DEBUG_SANEI_USB=255 sane-find-scanner

[sanei_debug] Setting debug level of sanei_usb to 255.
[sanei_usb] sanei_usb_init: marking existing devices
[sanei_usb] sanei_usb_init: Looking for kernel scanner devices
[sanei_usb] sanei_usb_init: initializing libusb-1.0
[sanei_usb] sanei_usb_init: Looking for libusb-1.0 devices
...
[sanei_usb] sanei_usb_init: device 0x04f9/0x0293, interface 0 doesn't look like 
a scan
ner (0/7)
[sanei_usb] sanei_usb_init: found libusb-1.0 device (0x04f9/0x0293) interface 1 
at lib
usb:003:006
[sanei_usb] store_device: add dn 0 with libusb:003:006
[sanei_usb] sanei_usb_init: found 1 devices
[sanei_usb] sanei_usb_init: device 00 is libusb:003:006
[sanei_usb] sanei_usb_open: trying to open device `/dev/usb/scanner'
[sanei_usb] sanei_usb_open: can't find device `/dev/usb/scanner' in list
...
[sanei_usb] sanei_usb_open: trying to open device `/dev/usbscanner'
[sanei_usb] sanei_usb_open: can't find device `/dev/usbscanner' in list
...
  # 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.

******************************************************************************

sudo SANE_DEBUG_SANEI_USB=255 scanimage -T

[sanei_debug] Setting debug level of sanei_usb to 255.
[sanei_usb] sanei_usb_init: marking existing devices
[sanei_usb] sanei_usb_init: Looking for kernel scanner devices
[sanei_usb] sanei_usb_init: initializing libusb-1.0
[sanei_usb] sanei_usb_init: Looking for libusb-1.0 devices
...
[sanei_usb] sanei_usb_init: device 0x04f9/0x0293, interface 0 doesn't look like 
a scanner (0/7)
[sanei_usb] sanei_usb_init: found libusb-1.0 device (0x04f9/0x0293) interface 1 
at libusb:003:006
[sanei_usb] store_device: add dn 0 with libusb:003:006  (*** some paragraphs in 
the output have this line ***)
[sanei_usb] store_device: not storing device libusb:003:006  (*** alternate 
paragraphs in the output have this line ***)
...
[sanei_usb] sanei_usb_init: found 1 devices
[sanei_usb] sanei_usb_init: device 00 is libusb:003:006
...
[sanei_usb] sanei_usb_open: trying to open device `/dev/usbscanner'
[sanei_usb] sanei_usb_open: can't find device `/dev/usbscanner' in list
...
scanimage: rounded value of br-x from 215.9 to 215.88
scanimage: rounded value of br-y from 355.6 to 355.567
scanimage: sane_start: Invalid argument

*************************************************************************

/etc/udev/rules.d/40-brother-libsane-type1.rules:

   ACTION!="add", GOTO="brother_mfp_end"

   SUBSYSTEM=="usb", GOTO="brother_mfp_udev_1"
   SUBSYSTEM!="usb_device", GOTO="brother_mfp_end"
   LABEL="brother_mfp_udev_1"

   SYSFS{idVendor}=="04f9", GOTO="brother_mfp_udev_2"
   ATTRS{idVendor}=="04f9", GOTO="brother_mfp_udev_2"
   GOTO="brother_mfp_end"
   LABEL="brother_mfp_udev_2"

   ATTRS{bInterfaceClass}!="0ff", GOTO="brother_mfp_end"
   ATTRS{bInterfaceSubClass}!="0ff", GOTO="brother_mfp_end"
   ATTRS{bInterfaceProtocol}!="0ff", GOTO="brother_mfp_end"

   ENV{libsane_matched}="yes"

   LABEL="brother_mfp_end"

Here's a link that has some source code that has to do with this, not
sure it's the version I have:

http://sane-
backends.sourcearchive.com/documentation/1.0.19-19/sanei__usb_8h_7e7a35cd2d6c02d93dbf9addbdf06452.html

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to sane-backends in Ubuntu.
https://bugs.launchpad.net/bugs/1312594

Title:
  14.04 won't detect common USB scanner

Status in “sane-backends” package in Ubuntu:
  Confirmed

Bug description:
  My multifunction Samsung SCX3200 printer is not detected by sane, but
  printing is fine. This scanner is faily generic and supported out of
  the box by the Xerox MFP driver (sane default).

  Printer/scanner as seen by the kernel, device 007 : ID 04e8:3441

  
--------------------------------------------------------------------------------------------
  $ lsusb
  Bus 002 Device 003: ID 0a5c:5800 Broadcom Corp. BCM5880 Secure Applications 
Processor
  Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
  Bus 002 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 003 Device 002: ID 046d:c50e Logitech, Inc. Cordless Mouse Receiver
  Bus 003 Device 007: ID 04e8:3441 Samsung Electronics Co., Ltd
  Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  
--------------------------------------------------------------------------------------------

  The IDs are properly set in udev and sane.d configuration:

  
--------------------------------------------------------------------------------------------
  $ cat /lib/udev/rules.d/40-libsane.rules | grep 3441
  ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3441", ENV{libsane_matched}="yes"

  $ cat /etc/sane.d/xerox_mfp.conf | grep 3441
  usb 0x04e8 0x3441
  
--------------------------------------------------------------------------------------------

  Problem: sane-find-scanner can't find the scanner:

  
--------------------------------------------------------------------------------------------
  $ sudo sane-find-scanner -q
  $ (no output)
  $ sudo scanimage -L

  No scanners were identified. If you were expecting something different,
  check that the scanner is plugged in, turned on and detected by the
  sane-find-scanner tool (if appropriate). Please read the documentation
  which came with this software (README, FAQ, manpages).
  $
  
--------------------------------------------------------------------------------------------

  The kernel module is properly loaded when the printer is connected, no
  blacklisting :

  
--------------------------------------------------------------------------------------------
  $ sudo lsmod | grep usblp
  usblp 22891 0

  $ modinfo usblp
  filename: /lib/modules/3.13.0-24-generic/kernel/drivers/usb/class/usblp.ko
  license: GPL
  description: USB Printer Device Class driver
  author: Michael Gee, Pavel Machek, Vojtech Pavlik, Randy Dunlap, Pete 
Zaitcev, David Paschal
  srcversion: BD8A318D5C286F1E78768B9
  alias: usb:v04B8p0202d*dc*dsc*dp*ic*isc*ip*in*
  alias: usb:v*p*d*dc*dsc*dp*ic07isc01ip03in*
  alias: usb:v*p*d*dc*dsc*dp*ic07isc01ip02in*
  alias: usb:v*p*d*dc*dsc*dp*ic07isc01ip01in*
  alias: usb:v*p*d*dc07dsc01dp03ic*isc*ip*in*
  alias: usb:v*p*d*dc07dsc01dp02ic*isc*ip*in*
  alias: usb:v*p*d*dc07dsc01dp01ic*isc*ip*in*
  depends:
  intree: Y
  vermagic: 3.13.0-24-generic SMP mod_unload modversions
  signer: Magrathea: Glacier signing key
  sig_key: 00:A5:A6:57:59:DE:47:4B:C5:C4:31:20:88:0C:1B:94:A5:39:F4:31
  sig_hashalgo: sha512
  parm: proto_bias:Favourite protocol number (int)
  
--------------------------------------------------------------------------------------------

  Simple-scan will just show a "Unable to start scan" error.

  Also tried:
  - Running simple-scan and xscan as root
  - Adding myself to lp, saned and scanner groups, then log off + log on
  - Power cyling the printer, disconnected and plugged back in
  - Switching USB port (USB2 <-> USB3)
  - Restarting the udev service

  This scanner is faily generic and is supposed to be working OOTB since 12.04:
  
http://askubuntu.com/questions/88700/how-do-i-get-a-samsung-scx3200-multifunction-printer-scanner-working
  http://ubuntuforums.org/showthread.php?t=1857478

  I think this may be a bug with libsane.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1312594/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to