On Mon 27 Feb 2017 at 17:58:18 +0100, Svante Signell wrote: > > On Sat 11 Feb 2017 at 12:24:37 +0100, Didier 'OdyX' Raboud wrote:
An incorrect attribution. > > Seeing log1 and log2 might provide a clue. > > > > SANE_DEBUG_DLL=128 scanimage -L 2>log1 > > SANE_DEBUG_DLL=128 scanimage > image.pnm 2>log2 > > Attached are the logfiles from log1_3.16.7-1, log2_3.16.7-1 and > log2_3.16.11-2. > (log1_3.16.7-1 and log1_3.16.11-2 are identical) Thanks. > > My /etc/sane.d.dll.d/hplip has "hpaio". > > I don't have this file. A typo. /etc/sane.d/dll.d/hplip. > > /etc/sane.d/dll.conf has only > > the line "net" (the other backends are not required). > > net in my file too. Good. > > saned.conf is effectively empty. > > I have localhost, 127.0.0.1 and 192.168.1.0 as permitted hosts/networks. We are talking about files on the client machine, I hope. The client does not have to permit any connections to its saned daemon. It is only needed on a saned *server*. (I would question localhost and 127.0.0.1 as entries as connections from the local server machine to the scanner would be permitted anyway. Shouldn't 192.168.1.0 be something like 192.168.1.0/24?). > > > When you write that "3.16.7-1" works, is that the version of the Debian > > > package? (I ask because that version is not an hplip Debian release). > > > > Please clarify. > > Please do. We were hoping you would say explicitly what the Debian version was. > > > Can you confirm using http://snapshot.debian.org/package/hplip/ until > > > exactly > > > which version it works, and from which version it fails? > > > > Would be very useful. > > Installed packages are the latest (3.16.11+repack0-2) > hplip > hplip-data > libhpmud0 > libsane-hpaio > printer-driver-hpcups > > These packages are downgraded to 3.16.7+repack0-1 to get a working scanner: > libsane-hpaio > libhpmud0 These two packages (plus sane-utils) are all that is needed on the client. I've tried 3.16.11+repack0-2 and 3.16.7+repack0-1 versions and both work for me. > 3.16.9+repack0-2 has also been tried but fails! > > Comments on the printer driver setup: > - Setting up the printer with socket://192.168.1.4, as detected when setting > up > from localhost:631 makes the printer work, but the scanner is not found. > Printer > works. > > - Setting up the printer with hp-makeuri (from hplip) and using > hp:/net/HP_Color_LaserJet_MFP_M277dw?ip=192.168.1.4 as connection makes the > scanner detectable. Printer works, scanner detected. Works with 3.16.7 not > 3.16.9/3.16.11. > > (In both cases I use the same ppd-file, downloaded from HP:hp- > color_laserjet_pro_mfp_m277-ps.ppd.gz) As mentioned previously your device does bonjour broadcasting and both printer and scanner will be advertised in this way without the device being connected to a computer. In your very first mail you had: scanimage -L device `hpaio:/net/HP_Color_LaserJet_MFP_M277dw?ip=192.168.1.4' is a Hewlett-Packard HP_Color_LaserJet_MFP_M277dw all-in-one This is a net URI and could only have come from a Bonjour broadcast. There is also a twist to this. If an HP device is connected via USB to a computer with SANE on it the scanner will not be visible to client machines. Please see #807427 and #838212. [Some snipping] > [dll] sane_get_devices: found 1 devices > [dll] sane_open: trying to open > `hpaio:/net/HP_Color_LaserJet_MFP_M277dw?ip=192.168.1.4' > scanimage: open of device > hpaio:/net/HP_Color_LaserJet_MFP_M277dw?ip=192.168.1.4 failed: Error during > device I/O > [dll] sane_exit: exiting I get [dll] load: searching backend `hpaio' in`/usr/lib/i386-linux-gnu/sane:/usr/lib/sane' [dll] load: trying to load`/usr/lib/i386-linux-gnu/sane/libsane-hpaio.so.1' [dll] load: dlopen()ing`/usr/lib/i386-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 [dll] sane_open: trying to open `hpaio:/net/envy_4500_series?ip=192.168.7.235&queue=false' [dll] sane_open: open successful The only thing I can think of is the plugin your device needs for scanning. The minimum version required is 3.15.4. Later versions are at https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/ Download and install with hp-plugin. Cheers, -- Brian.