Bug 28451 - xsane doen't detect the scanner of HP color laserjet Pro MFP M282
Summary: xsane doen't detect the scanner of HP color laserjet Pro MFP M282
Status: RESOLVED WORKSFORME
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Lewis Smith
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2021-02-26 17:46 CET by peter lawford
Modified: 2021-03-02 23:04 CET (History)
1 user (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
return_of_commands.txt (2.45 KB, text/plain)
2021-02-27 13:46 CET, peter lawford
Details
hp-setup return (505 bytes, text/plain)
2021-02-27 13:47 CET, peter lawford
Details
xsane clicking (116.70 KB, image/png)
2021-02-27 13:48 CET, peter lawford
Details
xsane-1 (179.44 KB, image/png)
2021-02-27 13:48 CET, peter lawford
Details
xsane-2 (169.18 KB, image/png)
2021-02-27 13:48 CET, peter lawford
Details
xsane-3 (175.14 KB, image/png)
2021-02-27 13:49 CET, peter lawford
Details
xsane-4 (234.51 KB, image/png)
2021-02-27 13:49 CET, peter lawford
Details
return of hplip-3.21.2.run (7.62 KB, text/plain)
2021-02-28 13:33 CET, peter lawford
Details

Description peter lawford 2021-02-26 17:46:56 CET
Description of problem:I've just changed my old HP office jet 7310 all-in-one against a color laserjet Pro M282nw, which is linked to my computer by usb
xsane doesn't detect the scanner of this printer:
[alain4@mga6-64 ~]$ xsane
and nothing: a window opens and say: no stuff detected
whereas I encountered not this problem whith my old officejet 7310 although:
[alain4@mga6-64 ~]$ rpm -qa |grep lib64sane
lib64sane1-1.0.28-1.1.mga7
lib64sane1-devel-1.0.28-1.1.mga7
lib64sane-hpaio1-3.19.5-1.mga7



Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
Comment 1 Lewis Smith 2021-02-27 11:59:46 CET
Sorry for the problem.
For starters, can you please post the output of (works better as root):
 sane-find-scanner
Also:
 $ scanimage -L
 $ lpinfo -v
 $ rpm -q xsane
 $ rpm -q sane-backends
 $ rpm -q hplip
And from the various 'HP...' options from clicking the HPLIP Systray icon?

Have asked on a Mageia forum whether anyone else has been able to scan with this MFP model? The experience of other users is valuable.

 http://www.sane-project.org/sane-mfgs.html#Z-HEWLETT-PACKARD
shows only the following HP USB Laserjet USB scanners are supported:
 LaserJet M1005 MFP
 LaserJet M1120 MFP
 LaserJet M1120n MFP
It may be that this new device is not [yet?] supported by Sane.

 https://sourceforge.net/p/hplip/news/2019/12/31912/
HPLIP 3.19.12 Release Notes 
Added support for the following new Printers:
-HP Color LaserJet Pro MFP M282nw
 but the relevance of that for Sane, I am not sure.

 https://bugs.launchpad.net/hplip/+bug/1822762
"HP Color LaserJet m278-m281 needs plugin for scanning"
may be relevant; the model a near miss from yours.

 https://forums.linuxmint.com/viewtopic.php?p=1711447#p1711447
Re: HP Color Laserjet Pro MFP M281fdw - unable to scan
although for a different device model, & LinuxMint, may be worth investigating.
"I hope I come bearing good news!"
and the next comment:
"Success! ...After [all] that I invoked simple-scan and it worked. I rebooted PC and printer, invoked simple-scan again. It continues working."

Assignee: bugsquad => lewyssmith
CC: (none) => ouaurelien
Keywords: (none) => NEEDINFO

Comment 2 peter lawford 2021-02-27 13:45:13 CET
(In reply to Lewis Smith from comment #1)
> Sorry for the problem.
> For starters, can you please post the output of (works better as root):
>  sane-find-scanner
> Also:
>  $ scanimage -L
>  $ lpinfo -v
>  $ rpm -q xsane
>  $ rpm -q sane-backends
>  $ rpm -q hplip
here attached "return_of_commands.txt"
> And from the various 'HP...' options from clicking the HPLIP Systray icon?
> 
> Have asked on a Mageia forum whether anyone else has been able to scan with
> this MFP model? The experience of other users is valuable.
> 
>  http://www.sane-project.org/sane-mfgs.html#Z-HEWLETT-PACKARD
> shows only the following HP USB Laserjet USB scanners are supported:
>  LaserJet M1005 MFP
>  LaserJet M1120 MFP
>  LaserJet M1120n MFP
> It may be that this new device is not [yet?] supported by Sane.
> 
>  https://sourceforge.net/p/hplip/news/2019/12/31912/
> HPLIP 3.19.12 Release Notes 
> Added support for the following new Printers:
> -HP Color LaserJet Pro MFP M282nw
>  but the relevance of that for Sane, I am not sure.

I have also tried the method given in bug 26695 comment 30; here attached return of command "hp'setup"; it seems to be successfull, but it is not for the scanner.
successive sequences of screenshots when attempting to use xsane are provided as here attached .png files by using spectacle
> 
>  https://bugs.launchpad.net/hplip/+bug/1822762
> "HP Color LaserJet m278-m281 needs plugin for scanning"
> may be relevant; the model a near miss from yours.
> 
>  https://forums.linuxmint.com/viewtopic.php?p=1711447#p1711447
> Re: HP Color Laserjet Pro MFP M281fdw - unable to scan
> although for a different device model, & LinuxMint, may be worth
> investigating.
> "I hope I come bearing good news!"
> and the next comment:
> "Success! ...After [all] that I invoked simple-scan and it worked. I
> rebooted PC and printer, invoked simple-scan again. It continues working."
simple-scan doesn'twork too (the same as xsane)
Comment 3 peter lawford 2021-02-27 13:46:41 CET
Created attachment 12401 [details]
return_of_commands.txt
Comment 4 peter lawford 2021-02-27 13:47:32 CET
Created attachment 12402 [details]
hp-setup return
Comment 5 peter lawford 2021-02-27 13:48:04 CET
Created attachment 12403 [details]
xsane clicking
Comment 6 peter lawford 2021-02-27 13:48:36 CET
Created attachment 12404 [details]
xsane-1
Comment 7 peter lawford 2021-02-27 13:48:59 CET
Created attachment 12405 [details]
xsane-2
Comment 8 peter lawford 2021-02-27 13:49:22 CET
Created attachment 12406 [details]
xsane-3
Comment 9 peter lawford 2021-02-27 13:49:47 CET
Created attachment 12407 [details]
xsane-4
Comment 10 peter lawford 2021-02-27 14:24:17 CET
recto-verso printing doesn't work too
Comment 11 peter lawford 2021-02-27 15:46:36 CET
sorry, but recto-verso printing doesn't work with this machine; it's independant of hplip
Comment 12 peter lawford 2021-02-28 12:53:28 CET
in comment 11, I would want to say that recto-verso printing is not encountered by my printer, and then recto-verso printing is of course impossible
sorry
Comment 13 peter lawford 2021-02-28 13:31:41 CET
I tried to run hplip-3.21.2.run I have downloaded at HP'site, but unsuccessfully;
it seems that mageia is not recognized, as are major distros (ubuntu, fedora,... and so on): see attached file hplip-3.21.2.run.txt
Comment 14 peter lawford 2021-02-28 13:33:10 CET
Created attachment 12411 [details]
return of hplip-3.21.2.run
Comment 15 Lewis Smith 2021-03-02 09:45:40 CET
Thank you for the various attachments, most of which showed things progressing as they should.

> # scanimage -L
> device `hpaio:/usb/Officejet_7300_series?serial=MY59EN80020407' is a
> Hewlett-Packard Officejet_7300_series all-in-one
> device `hpaio:/usb/HP_ColorLaserJet_MFP_M282-M285?serial=VNBRNCJFLC' is a
> Hewlett-Packard HP_ColorLaserJet_MFP_M282-M285 all-in-one
> 
> # sane-find-scanner
> found USB scanner (vendor=0x03f0 [HP], product=0x4211
> [Officejet 7300 series]) at libusb:002:008
> found USB scanner (vendor=0x03f0 [HP], product=0x0970
> [HP ColorLaserJet MFP M282-M285]) at libusb:002:009
> 
> # lpinfo -v
> direct hp:/usb/Officejet_7300_series?serial=MY59EN80020407
> direct hp:/usb/HP_ColorLaserJet_MFP_M282-M285?serial=VNBRNCJFLC
all looks very encouraging: the scanner *is* 'seen'.
'scanimage -L' is more fragile than 'sane-find-scanner', meaning that the former sometimes does not find a scanner that the latter does (which is the case for me). But it did for you, which is convincing.
As for 'lpinfo -v', the forum thread I gave said
 "Your lpinfo -v output shows
  direct hp
 Otherwise it is empty of content. It should not be"
which indicates that your output is what it should be.

> I've just changed my old HP office jet 7310 all-in-one against a
> color laserjet Pro M282nw
Added rather than changed?
All these command outputs show both attached. Can we take it that the OfficeJet 7310 *does* work for scanning?

The 3rd attachment "xsane clicking" in fact contradicts the bug title, because it shows that Xsane *does* see the new scanner; it even says 'M282'.

Attachment xsane-1 shows it wants a proprietary plugin.
-2 the installation dialogue for that
-3 the checksum failure of same, captioned <3>
-4 failure to install the plugin, captioned <2>
which also mentions a password. Were you asked for one? It makes one wonder whether this plugin installation should be done with root privilege.

Re attachment 'return of hplip-3.21.2.run': I do not think you should have messed with this, because from comment 1:
 "HPLIP 3.19.12 Release Notes 
 Added support for the following new Printers:
 -HP Color LaserJet Pro MFP M282nw"
and it seems that the latest Mageia 7 version is hplip-3.20.6-1.mga7, already there. Can you make sure you have that?

Reviewing all this indicates that your problem comes down to installing successfully the proprietary HP plugin. Do you agree?

Status: NEW => NEEDINFO

Comment 16 peter lawford 2021-03-02 13:02:33 CET
solved! it was really a bug
I have downloaded hplip-3.20.6-plugin.run and hplip-3.20.6-plugin.run.asc, respectively in ~/scan/ and ~/.hplip
I have ran hp-plugin in a terminal, a window automatically opened (see xsane-2.png), at this step I've choosen "select and install...plugin-file (advanced)", then "next" and selected the path ~/scan/; at this step, the name of the plugin had changed and became _hplip-3.20.6-plugin.run (with an underscore as first character); here was the bug; after deleting this underscore, everything successfully proceed:
[alain4@mga6-64 ~]$ hp-plugin

HP Linux Imaging and Printing System (ver. 3.20.6)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.


HP Linux Imaging and Printing System (ver. 3.20.6)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

kf5.kio.core: "Impossible d'entrer dans le dossier tags:/."
Downloading plug-in from: file:///home/alain4/scan/hplip-3.20.6-plugin.run
1100%Receiving digital keys: /usr/bin/gpg --homedir /home/alain4/.hplip/.gnupg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9
Creating directory plugin_tmp
Verifying archive integrity... All good.
Uncompressing HPLIP 3.20.6 Plugin Self Extracting Archive..............................................................

HP Linux Imaging and Printing System (ver. 3.20.6)
Plugin Installer ver. 3.0

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Plug-in version: 3.20.6
Installed HPLIP version: 3.20.6
Number of files to install: 64

note: Using PyQt5
 
Done.
 Plug-in installation successful 

Done.

now the scanner fine works
thank you for all
best regards
Comment 17 Lewis Smith 2021-03-02 20:47:48 CET
Thank you for your perseverence, and congratulations on your eventual success.

It would be nice to clarify what you did outside Mageia, for the benefit of others. Difficult to see the wood for the trees.
> I have downloaded hplip-3.20.6-plugin.run and
> hplip-3.20.6-plugin.run.asc, respectively in ~/scan/ and ~/.hplip
Was this from the HP site? I am not on M7 at the moment, and see nothing of these in our M8 packages.
How did you know where to put them?
Did you need any other HP additions (extra to hplip), or were those two sufficient?

> the name of the plugin had changed and became _hplip-3.20.6-plugin.run
> (with an underscore as first character); here was the bug;
> after deleting this underscore, everything successfully proceeded
Is this 'bug' in any Mageia package, or the HP additions?

Closing the bug, but your response would be appreciated.

Status: NEEDINFO => RESOLVED
Resolution: (none) => WORKSFORME

Comment 18 peter lawford 2021-03-02 23:04:12 CET
(In reply to Lewis Smith from comment #17)
> Thank you for your perseverence, and congratulations on your eventual
> success.
> 
> It would be nice to clarify what you did outside Mageia, for the benefit of
> others. Difficult to see the wood for the trees.
> > I have downloaded hplip-3.20.6-plugin.run and
> > hplip-3.20.6-plugin.run.asc, respectively in ~/scan/ and ~/.hplip
> Was this from the HP site? I am not on M7 at the moment, and see nothing of
> these in our M8 packages.
no, I've downloaded then from https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/
> How did you know where to put them?
I use usually ~/scan/ to put results of paper documents scanning, and remove them when I no longer need; therefore, this directory is almost always empty, and, then, it is easy to find a file inside it, and furthermore the path is short; but any other download directory can be choosen as well; for ~/.hplip/, when considering the return of hp-plugin (see comment 16) you see it is convenient that the gpg key were in this directory.
> Did you need any other HP additions (extra to hplip), or were those two
> sufficient?
those two were sufficient; even more, I tried to run hp-plugin without downloading hplip-3.20.6-plugin.run.asc and it did work, but the system complained and asked me if I agreed to process the installation without checking gpg-key: I replied "yes"
> 
> > the name of the plugin had changed and became _hplip-3.20.6-plugin.run
> > (with an underscore as first character); here was the bug;
> > after deleting this underscore, everything successfully proceeded
> Is this 'bug' in any Mageia package, or the HP additions?
I can't say, but I think this bug was in the HP additions
> 
> Closing the bug, but your response would be appreciated.

Note You need to log in before you can comment on or make changes to this bug.