LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-17-2022, 08:25 AM   #1
platypo
Member
 
Registered: Sep 2015
Distribution: Debian, Archlinux
Posts: 140

Rep: Reputation: Disabled
HP LaserJet MFP M139-M142 on Debian 11


I've downloaded hplip from 123.hp.com and successfully set up the printer. Scanjobs fail with the following message:
Code:
me@debian:~$ scanimage > image.pnm
Output format is not set, using pnm as a default.
scanimage: open of device hpaio:/usb/HP_LaserJet_MFP_M139-M142?serial=VNF3Y03019 failed: Error during device I/O
With this line a dialogue from the hp status service software pops up, leading me to obtain a plugin from an official hp server. Aside from the message that it was unable to recieve a key from the keyserver, i get prompted for the superuser password after accepting the license agreement, but the dialogue ends with the error message that the password was incorrect or the process was skipped.

The HP Device Manager features a diagnose for HPLIP drivers. It runs a row of checks and diagnose in a terminal window. I'm struggling to recreate the output here, its more lines than the console buffer has and i haven't found out what script/command it is scince it starts from the hp GUI. But it contains messages about not being able to connect to the hp server, and ends something about missing dependencies (cups and libcups2 wich regarding to dpkg -l is installed and according to systemctl is up and running), prompting me for the root password (not sudo password). I get prompted for it three times, everytime getting the line that i've entered it incorrectly.

I've been through the process serveral times and am sure that i've entered the correct password. I've removed the user i am working with from the sudoers file if that is of matter.

Thank you in advance
 
Old 11-17-2022, 10:25 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
I have the MFP M129-134 and got that error 1-2 years in.

I ran it down to a faulty scanner section by a process of elimination. I never used the fax, but the thing still prints fine. I think you'll find it's hardware, not software.
 
Old 11-17-2022, 11:09 AM   #3
adeplus
LQ Newbie
 
Registered: Jul 2021
Location: /home/adeplus
Distribution: MX-Linux, Manjaro, openSUSE
Posts: 14

Rep: Reputation: Disabled
Sometimes the driver is not in a readable directory and the "scanner not found" error appears.

I had a similar problem and, no matter how many times I installed the HP driver, I couldn't get it to work.

I was finally able to get it to work with comment #8 of this thread:

https://www.linuxquestions.org/quest...5/#post6183594

Maybe it can help you solve the problem.
 
Old 11-17-2022, 02:53 PM   #4
platypo
Member
 
Registered: Sep 2015
Distribution: Debian, Archlinux
Posts: 140

Original Poster
Rep: Reputation: Disabled
Edit: scince i've just completed my first scan successfully i won't have to ask anymore. This particular problem was solved by configuring the device as network-printer. It says in the manual that the device will need an up and running internet connection to work properly- i did read it before but scince the setup via usb was so easy i thought it would work otherwise too.

Last edited by platypo; 11-17-2022 at 03:25 PM.
 
Old 11-18-2022, 04:26 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
The "Error during device I/O" is the telltale sign of a hardware fault.
 
Old 11-18-2022, 05:13 AM   #6
platypo
Member
 
Registered: Sep 2015
Distribution: Debian, Archlinux
Posts: 140

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
The "Error during device I/O" is the telltale sign of a hardware fault.
As a network device xsane recognizes two ports on it with :443 as the port to the scanner and it works fine.
By installing said plugin it maybe would be possible to use it via usb somehow but it's not as intended by the manufacturer i guess. I still haven't figured out why the authentication as root doesn't work during the installation.

OCR doesn't work yet, it will require another package, and gscan2pdf still can't open the device at startup but otherwise everything works as it should

Last edited by platypo; 11-18-2022 at 05:18 AM.
 
Old 11-18-2022, 10:35 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
Originally Posted by platypo View Post
As a network device xsane recognizes two ports on it with :443 as the port to the scanner and it works fine.
By installing said plugin it maybe would be possible to use it via usb somehow but it's not as intended by the manufacturer i guess. I still haven't figured out why the authentication as root doesn't work during the installation.

OCR doesn't work yet, it will require another package, and gscan2pdf still can't open the device at startup but otherwise everything works as it should
If you're within warranty, return the printer. That's my advice. I was in Electronic hardware, and when mine died with exactly that error, I did due diligence. It's hardware most likely.

gscan2pdf isn't a whole lot of use at OCR. After my Hardware repair business, I got a job with a professional company doing OCR, and got experience. The programs to use are:.
  1. ABBYY do a closed source linux version with a one month free trial. It's simply better.
  2. Tesseract is GPL and the best linux offering. It benefits from scanning at 600dpi. 300dpi just isn't enough.
You don't want gscan2pdf because there's a cpu and disk overhead making pdfs. Pictures are always reduced in resolution during the process and pdf is a most inefficient format. What I did was

Scan-->jpeg-->OCR-->Text editor-->pdf. I had a single copy of a hand-typed play that had later been edited by hand in fountain pen. The type was nearly invisible, as someone did not know typewriter ribbons wear out!

My edited text file is a 44k .odt; A pdf of that is 371k; a pdf of the images was over 50 Megs!
 
Old 11-19-2022, 03:10 PM   #8
platypo
Member
 
Registered: Sep 2015
Distribution: Debian, Archlinux
Posts: 140

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by adeplus View Post
Sometimes the driver is not in a readable directory and the "scanner not found" error appears.

I had a similar problem and, no matter how many times I installed the HP driver, I couldn't get it to work.

I was finally able to get it to work with comment #8 of this thread:

https://www.linuxquestions.org/quest...5/#post6183594

Maybe it can help you solve the problem.
I think i was celebrating too early. After it ran out of paper the devices regular state can't be reached. Trying to resume the print job as said in the manual results in a test page with the header
Quote:
Printer setup incomplete
Finish printer setup to enable printing. This printer requires use of an HP account, enabled web service and Internet connection for setup and use. See the documentation provided with the printer or visit 123.ph.com for setup information
I realize, what i basically do is trying to work around the hp+ smart app to which basically every documentation points to. I don't have any smart connected devices and the support for linux led me to hplip and it's application, the HP Device manager. Up until now the vendors linux support was great for this device, i hope i'll find a way.

Before to proceed troubleshooting and eventually make use of my warranty i would like to ask about your approach. In my case only
Code:
ln -s /usr/lib64 /usr/lib/x86_64-linux-gnu
would work scince /usr/lib/i386-linux-gnu and /usr/lib64/x86-64-linux-gnu doesn't exist. /usr/lib64/ allready contains one link from /lib/x86-64-linux-gnu/. Wouldn't it be better for this particular issue to create links to cups library files instead of the whole directory or am i completely off track here?

Edit: marked as unsolved again because the MFP can't be operated by the manufacturers linux-software after it ran out of paper, and it demands to be set up with an app that's not available for linux desktop pcs. Steps i've taken: Taking the device off the power supply for 60 seconds, updating the firmware over the http-interface and linking /usr/lib64 to /usr/lib/x86-64-linux-gnu/ in the hope that this would resolve the missing plugin problem, all of it with no effect.

Last edited by platypo; 11-20-2022 at 12:53 PM.
 
Old 11-21-2022, 02:52 PM   #9
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
I wouldn't put that link personally. You're linking 2 directories that were separated for a reason. I'd like to know the reason first, not reinstall later. Call me lazy.

Especially as you're having miscellaneous issues, stop playing with it and use the warranty if you want to get printing this year.

I never take one word of advice from HP on software. Cups downloads a plugin, sane can handle HP printer/scanner/fax devices too. Too much of that stuff counts your pages for you anyhow, and shuts off when they think you've had enough. I beg to differ.
 
Old 11-22-2022, 01:54 PM   #10
platypo
Member
 
Registered: Sep 2015
Distribution: Debian, Archlinux
Posts: 140

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
I wouldn't put that link personally. You're linking 2 directories that were separated for a reason. I'd like to know the reason first, not reinstall later. Call me lazy.

Especially as you're having miscellaneous issues, stop playing with it and use the warranty if you want to get printing this year.

I never take one word of advice from HP on software. Cups downloads a plugin, sane can handle HP printer/scanner/fax devices too. Too much of that stuff counts your pages for you anyhow, and shuts off when they think you've had enough. I beg to differ.
So here's a final update: I clarified via cs that my device was a HP LaserJet m140we. This one costs about 1/5 less than the Laserjet m140w, wich oddly doesn't feature hp+ services. However i paid the difference and have now a device that works perfectly with hplip even if the paper runs out.

I will have to read into drivers again. The way you put it, cups is a different strain than sane? As far as i understood cups has the drivers and sane is a package with the proper back- and front ends.

Anyhow this thread is solved again.

Last edited by platypo; 11-22-2022 at 02:02 PM.
 
Old 11-23-2022, 05:09 AM   #11
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Sane reads in making images. Cups writes out converting files and scheduling or queueing them. Of course they are different. The printers and scanners started life as two separate units; now they are in the same same bit of plastic, but the PCBs might not be merged yet.

My scanner died 2(?) years ago, but the printer is fine. That sort of longevity in a blown pcb is unusual.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] HP LaserJet Pro MFP m125nw - not printing SerenaVictoria Linux - Hardware 11 07-05-2015 05:49 PM
[SOLVED] Printer HP LaserJet M1132 MFP not printing frushiyama Slackware - ARM 5 01-06-2015 03:46 PM
HP LaserJet Professional M1217nfw MFP hplip hp-setup binary plugin won't download scheidel21 Linux - Hardware 5 05-17-2012 09:47 PM
[SOLVED] Adding HP Color LaserJet CM2320nf MFP to CUPS mitchell7man Linux - Hardware 3 07-14-2010 09:02 PM
Kubuntu 7.04 & HP Laserjet M1005 MFP logicopinion Linux - Software 1 11-09-2007 09:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration