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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1312594

Title:
  14.04 won't detect common USB scanner

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to