I am experiencing the same problems with an HP Laserjet 1220 scanner.
>From what is listed below, there seems to be some problem starting with
sane_open().  The first time it runs on a new device it claims to be
successful, but that message is never repeated until the device is
removed and replaced.  Details below:

My system is Ubuntu 14.04.1 LTS.  
$uname -a 
 Linux computer 3.13.0-34-generic #60-Ubuntu SMP Wed Aug 13 15:45:27 UTC 2014 
x86_64 x86_64 x86_64 GNU/Linux

There were no udev rules or associated .conf file so I created hpaio.conf and 
added 
 usb 0x03f0 0x0417
I also added the following lines to /lib/udev/rules.d/40-libsane.rules
 # Hewlett-Packard LaserJet 1220
 ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0417", ENV{libsane_matched}="yes"
though neither of these seemed to change things.

After unplugging and replugging the device, with SANE_DEBUG_DLL=128, the first 
time I got:
<pre>
[sanei_debug] Setting debug level of dll to 128.
[dll] sane_init: SANE dll backend version 1.0.13 from sane-backends 1.0.23
[dll] sane_init/read_dlld: attempting to open directory `./dll.d'
[dll] sane_init/read_dlld: attempting to open directory `/etc/sane.d/dll.d'
[dll] sane_init/read_dlld: using config directory `/etc/sane.d/dll.d'
[dll] sane_init/read_dlld: considering /etc/sane.d/dll.d/hplip
[dll] sane_init/read_config: reading dll.d/hplip
[dll] add_backend: adding backend `hpaio'
[dll] sane_init/read_dlld: done.
[dll] sane_init/read_config: reading dll.conf
[dll] add_backend: adding backend `hp'
[dll] add_backend: adding backend `hpaio'
[dll] add_backend: `hpaio' is already there
[dll] sane_get_devices
[dll] load: searching backend `hpaio' in 
`/usr/lib/x86_64-linux-gnu/sane:/usr/lib/sane'
[dll] load: trying to load `/usr/lib/x86_64-linux-gnu/sane/libsane-hpaio.so.1'
[dll] load: couldn't open `/usr/lib/x86_64-linux-gnu/sane/libsane-hpaio.so.1' 
(No such file or directory)
[dll] load: trying to load `/usr/lib/sane/libsane-hpaio.so.1'
[dll] load: dlopen()ing `/usr/lib/sane/libsane-hpaio.so.1'
[dll] init: initializing backend `hpaio'
[dll] init: backend `hpaio' is version 1.0.0
[dll] load: searching backend `hp' in 
`/usr/lib/x86_64-linux-gnu/sane:/usr/lib/sane'
[dll] load: trying to load `/usr/lib/x86_64-linux-gnu/sane/libsane-hp.so.1'
[dll] load: dlopen()ing `/usr/lib/x86_64-linux-gnu/sane/libsane-hp.so.1'
[dll] init: initializing backend `hp'
[dll] init: backend `hp' is version 1.0.8
[dll] sane_get_devices: found 1 devices
[dll] sane_open: trying to open 
`hpaio:/usb/HP_LaserJet_1220?serial=00XXXXXXXXXX'
[dll] sane_open: open successful
[dll] sane_get_option_descriptor(handle=0x7fa9a801b480,option=0)
[dll] sane_get_option_descriptor(handle=0x7fa9a801b480,option=1)
[dll] sane_get_option_descriptor(handle=0x7fa9a801b480,option=2)
[dll] sane_get_option_descriptor(handle=0x7fa9a801b480,option=3)
[dll] sane_get_option_descriptor(handle=0x7fa9a801b480,option=4)
[dll] sane_get_option_descriptor(handle=0x7fa9a801b480,option=5)
[dll] sane_get_option_descriptor(handle=0x7fa9a801b480,option=6)
[dll] sane_get_option_descriptor(handle=0x7fa9a801b480,option=7)
[dll] sane_get_option_descriptor(handle=0x7fa9a801b480,option=8)
[dll] sane_get_option_descriptor(handle=0x7fa9a801b480,option=9)
[dll] sane_get_option_descriptor(handle=0x7fa9a801b480,option=10)
[dll] sane_get_option_descriptor(handle=0x7fa9a801b480,option=11)
[dll] sane_get_option_descriptor(handle=0x7fa9a801b480,option=12)
[dll] sane_get_option_descriptor(handle=0x7fa9a801b480,option=13)
[dll] sane_get_option_descriptor(handle=0x7fa9a801b480,option=14)
[dll] sane_get_option_descriptor(handle=0x7fa9a801b480,option=15)
[dll] sane_get_option_descriptor(handle=0x7fa9a801b480,option=16)
[dll] sane_get_option_descriptor(handle=0x7fa9a801b480,option=17)
[dll] sane_get_option_descriptor(handle=0x7fa9a801b480,option=18)
[dll] sane_get_option_descriptor(handle=0x7fa9a801b480,option=10)
[dll] 
sane_control_option(handle=0x7fa9a801b480,option=10,action=1,value=0x7fa9a801cf60,info=(nil))
[dll] sane_get_option_descriptor(handle=0x7fa9a801b480,option=2)
[dll] 
sane_control_option(handle=0x7fa9a801b480,option=2,action=1,value=0x7fa9a801d3a0,info=(nil))
[dll] sane_get_option_descriptor(handle=0x7fa9a801b480,option=9)
[dll] 
sane_control_option(handle=0x7fa9a801b480,option=9,action=1,value=0x7fa9b5579b0c,info=(nil))
[dll] sane_get_option_descriptor(handle=0x7fa9a801b480,option=7)
[dll] 
sane_control_option(handle=0x7fa9a801b480,option=7,action=1,value=0x7fa9a801bec0,info=(nil))
[dll] sane_get_option_descriptor(handle=0x7fa9a801b480,option=3)
[dll] 
sane_control_option(handle=0x7fa9a801b480,option=3,action=1,value=0x7fa9b5579acc,info=(nil))
[dll] sane_get_option_descriptor(handle=0x7fa9a801b480,option=16)
[dll] 
sane_control_option(handle=0x7fa9a801b480,option=16,action=1,value=0x7fa9b5579b1c,info=(nil))
[dll] sane_get_option_descriptor(handle=0x7fa9a801b480,option=17)
[dll] 
sane_control_option(handle=0x7fa9a801b480,option=17,action=1,value=0x7fa9b5579b1c,info=(nil))
[dll] sane_get_option_descriptor(handle=0x7fa9a801b480,option=6)
[dll] sane_get_option_descriptor(handle=0x7fa9a801b480,option=5)
[dll] sane_start(handle=0x7fa9a801b480)
[dll] sane_cancel(handle=0x7fa9a801b480)
[dll] sane_close(handle=0x7fa9a801b480)
[dll] sane_exit: exiting
[dll] sane_exit: calling backend `hpaio's exit function
[dll] sane_exit: calling backend `hp's exit function
[dll] sane_exit: finished
</pre>
Later all I got was
<pre>
$ scanimage -d hpaio:/usb/HP_LaserJet_1220?serial=00XXXXXXXXXX
[sanei_debug] Setting debug level of dll to 128.
[dll] sane_init: SANE dll backend version 1.0.13 from sane-backends 1.0.23
[dll] sane_init/read_dlld: attempting to open directory `./dll.d'
[dll] sane_init/read_dlld: attempting to open directory `/etc/sane.d/dll.d'
[dll] sane_init/read_dlld: using config directory `/etc/sane.d/dll.d'
[dll] sane_init/read_dlld: considering /etc/sane.d/dll.d/hplip
[dll] sane_init/read_config: reading dll.d/hplip
[dll] add_backend: adding backend `hpaio'
[dll] sane_init/read_dlld: done.
[dll] sane_init/read_config: reading dll.conf
[dll] add_backend: adding backend `hp'
[dll] add_backend: adding backend `hpaio'
[dll] add_backend: `hpaio' is already there
[dll] sane_open: trying to open 
`hpaio:/usb/HP_LaserJet_1220?serial=00XXXXXXXXXX'
[dll] load: searching backend `hpaio' in 
`/usr/lib/x86_64-linux-gnu/sane:/usr/lib/sane'
[dll] load: trying to load `/usr/lib/x86_64-linux-gnu/sane/libsane-hpaio.so.1'
[dll] load: couldn't open `/usr/lib/x86_64-linux-gnu/sane/libsane-hpaio.so.1' 
(No such file or directory)
[dll] load: trying to load `/usr/lib/sane/libsane-hpaio.so.1'
[dll] load: dlopen()ing `/usr/lib/sane/libsane-hpaio.so.1'
[dll] init: initializing backend `hpaio'
[dll] init: backend `hpaio' is version 1.0.0
scanimage: open of device hpaio:/usb/HP_LaserJet_1220?serial=00XXXXXXXXXX 
failed: Invalid argument
[dll] sane_exit: exiting
[dll] sane_exit: calling backend `hpaio's exit function
[dll] sane_exit: finished
</pre>

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