[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#909250: HPLIP - scanner HP_LaserJet_M1120n_MFP



Hi, Brian,

  Thank you for paying attention to this issue.

  Since I'm running HP Linux Imaging and Printing System (ver. 3.16.11) I downloaded https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-3.16.11-plugin.run and then ran:

  sh hplip-3.16.11-plugin.run --tar xf
  python installPlugin.py

  No errors so far. But i still get the same error when scanning with both commands:

  hp-scan -d hpaio:/net/HP_LaserJet_M1120n_MFP?ip=192.168.200.16
  scanimage -d hpaio:/net/HP_LaserJet_M1120n_MFP?ip=192.168.200.16 > image.pnm

  Using the latest hplip plugin (3.18.9) didn't help either. I even tried to install hplip and hplip-plugin from HP, the latest versions(both 3.18.9), to avoid debian's repos. I still get the same error.

  libsane-hpaio is installed, and the latest version(in debian's repos).

  I saw that that folder you gave me contains a .plugin file: https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hp_laserjet_m1120n_mfp.plugin that seems to be made for exactly this hp printer. Is there something special about this scanner device? should I use that file in any way?

  I am starting to think that there might be a problem at a lower level. Every now and then I can receive an image from that scanner, but It's quite random, maybe 1 out of 100 attempts. I'm not sure, but it might be related to powering off and on the device from it's button. Is there something we can do to determine if the problem is on the device itself, or the client computer? The network cable between them seems to be fine, because I can access the printer/scanner through it's web interface(and printing works fine). Also, the device settings did not change in the last few years and I am getting an image every now and then. The only thing changing is the software and config on my client computer. That's why I started this thread.

  Here's the network summary from that device:

Network Summary
   
Network Hardware Configuration
Hardware Address:     001F2917E3CA
Firmware Datecode:     20071213
Link Settings:     Auto
Link Speed:     100TX Full
IO Timeout:     120
Enabled Features
Password     Not Specified
SLP Config     Enabled
DHCP     Disabled
BootP     Disabled
AutoIP     Disabled
Enable Bonjour     Enabled
SNMP     Enabled
LPD Printing     Enabled
TCP/IP(v4)
Host Name:     NPI17E3CA
Domain Name:    
IP Configured By:     Manual
IPv4 Address:     192.168.200.16
IP Subnet Mask:     255.255.255.0
IP Default Gateway:     192.168.200.1
WINS Configured By:     DHCP
Preferred WINS Server:     192.168.200.4
TCP/IP(v6)
Link-Local    
Stateless (from Router)    
Stateful (from DHCPv6)    
SNMP
Status     Read Write Access Enabled
SNMP Version     v1/v2
Set Community Name     Not Specified (Defaults to public)
Get Community Name     Not Specified (Defaults to public)
Network Statistics
Total Packets Received:     4755724
Unicast Packets Received:     1264187
Broadcast Packets Received:     3491537
Bad Packets Received:     0
Total Packets Transmitted:     1271091
Unicast Packets Transmitted:     1258836
Broadcast Packets Transmitted:     12255
Bad Packets Transmitted:     0

Thank you,
Tancredi-Paul Grozav

On Sun, Sep 30, 2018 at 6:28 PM Brian Potkin <claremont102@gmail.com> wrote:
Thank you for your report, Tancredi-Paul.


On Thu 20 Sep 2018 at 13:56:43 +0300, Tancredi-Paul Grozav wrote:

> Package: hplip
> Version: 3.16.11+repack0-3
>
> I can not scan an image from a HP LaserJet M1120n MFP.
> I am using the hplip package provided by debian( HP Linux Imaging and
> Printing System (ver. 3.16.11))
>
> Here is a transcript:
> root@scanner:/# SANE_DEBUG_DLL=255 SANE_DEBUG_NET=128 hp-scan
> ...
> [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: dlopen()ing `/usr/lib/x86_64-linux-gnu/sane/libsane-hpaio.so.1'
> [dll] init: initializing backend `hpaio'
> [dll] init: backend `hpaio' is version 1.0.0
> [dll] sane_get_devices: found 1 devices
> Using device hpaio:/net/HP_LaserJet_M1120n_MFP?ip=192.168.200.16

Ok up to here.

> Opening connection to device...
> [dll] sane_open: trying to open
> `hpaio:/net/HP_LaserJet_M1120n_MFP?ip=192.168.200.16'
> error: SANE: Error during device I/O (code=9)

Things go wrong!

> root@scanner:/# tail /var/log/syslog
> Sep 20 13:49:20 scanner /hp-scan: hp-scan[260]: warning: hp-scan
> should not be run as root/superuser.
> Sep 20 13:49:29 scanner /hp-scan: io/hpmud/pp.c 627: unable to read
> device-id ret=-1
> Sep 20 13:49:30 scanner /hp-scan: hp-scan[260]: warning: No
> destinations specified. Adding 'file' destination by default.

Nothing to worry about. hp-scan will use hpscanxxx.png as the filename.

> Sep 20 13:49:39 scanner /hp-scan: io/hpmud/pp.c 627: unable to read
> device-id ret=-1

Looks worrying.

> Sep 20 13:49:40 scanner /hp-scan: common/utils.c 188: unable to load
> library libm.so: libm.so: cannot open shared object file: No such file
> or directory

libm.so isn't on my i386 system and scanning with hp-scan works. It is
in libc6-dev and this package wouldn't normally be installed (because
it is a -dev). I don't know how significant the message is.

> Sep 20 13:50:25 scanner /hp-scan: io/hpmud/jd.c 678: timeout
> read_channel sec=45 hp:/net/HP_LaserJet_M1120n_MFP?ip=192.168.200.16
> Sep 20 13:50:25 scanner /hp-scan: bb_marvell.c 346: invalid get_msg
> tmo=45 total=0 uri=hp:/net/HP_LaserJet_M1120n_MFP?ip=192.168.200.16
> Sep 20 13:50:25 scanner /hp-scan: hp-scan[260]: error: SANE: Error
> during device I/O (code=9)

[Snipped. Printing isn't really relevant.]

>  Can we add support for this? Or am I doing something wrong? The same
> command worked for this other printer: hp:/net/HP_LaserJet_3052
>
> Info about my computer:
> root@scanner:/# cat /etc/debian_version
> 9.4
> root@scanner:/# uname -a
> Linux scanner.docker.paul.grozav.info 4.9.0-8-amd64 #1 SMP Debian
> 4.9.110-3+deb9u4 (2018-08-21) x86_64 GNU/Linux
>
> The machine runs inside docker:
> pgrozav:~>docker version
> Client:
>  Version:           18.06.1-ce
>  API version:       1.38
>  Go version:        go1.10.3
>  Git commit:        e68fc7a
>  Built:             Tue Aug 21 17:23:18 2018
>  OS/Arch:           linux/amd64
>  Experimental:      false
>
> Server:
>  Engine:
>   Version:          18.06.1-ce
>   API version:      1.38 (minimum version 1.12)
>   Go version:       go1.10.3
>   Git commit:       e68fc7a
>   Built:            Tue Aug 21 17:22:21 2018
>   OS/Arch:          linux/amd64
>   Experimental:     false

I know nothing about Docker and containers

> I must say that the same problem occurs on the physical machine,

so this is useful to know.

> outside of docker. And I also have another container that is able to
> scan from hp:/net/HP_LaserJet_3052 .

The only package needed to scan over the network is libsane-hpaio. You
could install it in a container without its recommended packages
(--no-install-recommends) and try

hp-scan -d hpaio:/net/HP_LaserJet_M1120n_MFP?ip=192.168.200.16

and

scanimage -d hpaio:/net/HP_LaserJet_M1120n_MFP?ip=192.168.200.16 > image.pnm

(Obtain the correct plugin from

https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/

Then

sh hplip-<version>-plugin.run --tar vxf

and

python installPlugin.py).

Regards,

Brian.

Reply to: