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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-17-2022, 08:25 AM
|
#1
|
Member
Registered: Sep 2015
Distribution: Debian, Archlinux
Posts: 150
Rep: 
|
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
|
|
|
11-17-2022, 10:25 AM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,545
|
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.
|
|
|
11-17-2022, 11:09 AM
|
#3
|
LQ Newbie
Registered: Jul 2021
Location: /home/adeplus
Distribution: MX-Linux, Manjaro, openSUSE
Posts: 14
Rep: 
|
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.
|
|
|
11-17-2022, 02:53 PM
|
#4
|
Member
Registered: Sep 2015
Distribution: Debian, Archlinux
Posts: 150
Original Poster
Rep: 
|
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.
|
|
|
11-18-2022, 04:26 AM
|
#5
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,545
|
The "Error during device I/O" is the telltale sign of a hardware fault.
|
|
|
11-18-2022, 05:13 AM
|
#6
|
Member
Registered: Sep 2015
Distribution: Debian, Archlinux
Posts: 150
Original Poster
Rep: 
|
Quote:
Originally Posted by business_kid
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.
|
|
|
11-18-2022, 10:35 AM
|
#7
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,545
|
Quote:
Originally Posted by platypo
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:. - ABBYY do a closed source linux version with a one month free trial. It's simply better.
- 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!
|
|
|
11-19-2022, 03:10 PM
|
#8
|
Member
Registered: Sep 2015
Distribution: Debian, Archlinux
Posts: 150
Original Poster
Rep: 
|
Quote:
Originally Posted by adeplus
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.
|
|
|
11-21-2022, 02:52 PM
|
#9
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,545
|
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.
|
|
|
11-22-2022, 01:54 PM
|
#10
|
Member
Registered: Sep 2015
Distribution: Debian, Archlinux
Posts: 150
Original Poster
Rep: 
|
Quote:
Originally Posted by business_kid
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.
|
|
|
11-23-2022, 05:09 AM
|
#11
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,545
|
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.
|
|
|
All times are GMT -5. The time now is 01:15 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|