Linux - HardwareThis 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.
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.
Hi,
I have a HP-P1606dn (LaserJet Professional) which since a few days gives me lots of problems (in Linux as well as in Windows):
This is a little summary of what happened:
The printer has been connected via ethernet to my router since months and it worked flawlessly utnil a week ago: from then on I can print only one job and then the printer stops working. Then I have to power cycle it to print another job.
To explain: If I print 2 (or more) jobs it prints the first immediately and the second only after the power cycle.
I tried:
inifinite number of power cycles: nothing changed
inifinite number of resets to factory: nothing changed
Then I had an idea: I connected the printer to my router via USB (My router is a Fritz!Box 3390 which supports this kind of things)
Finally I accomplished something: Now I can print from my Windows computers (2 windows 7 and a Windows 8), BUT I still can't configure correctly my two Ubuntu PC! (Ubuntu 14.10 and Lubuntu 14.10)
Manage printers > Add new Printer > Network Printer
Socket/JetDirect (Host=IP_OF_THE_ROUTER and Port=9100)
I did this (that's pretty much the same procedure on windows), but the result is that every print job I send says "Printer error" (in CUPS "Filter error")
I can print line of text by doing:
Code:
telnet IP_OF_ROUTER 9100
sometexthere
^]
quit
Although it takes some minutes to print from the moment I give the "quit" command in the end it prints "sometexthere"
This is not really useful for me, but I think this implies that the printer is somehow working...
So the question is:
How can I connect to this printer? (Or, alternatively: how can I use it with the ethernet cable, solving the first problem?)
Based on the Fritz!Box printer configuration guide, it does look as though the AppSocket (JetDirect) protocol is appropriate, and I'm surprised things aren’t working as expected.
I'm not sure if it will make a difference, but which printer driver are you using? Examine /etc/cups/ppd/ directory, and do
Code:
cat /etc/cups/ppd/<name-of-ppd>.ppd|grep Filter
I note that the HP LaserJet Professional p1606dn is supported by the HPLIP suite (with hpcups driver), so maybe if you're not using that already, you could try using it?
1) First of all: how do Iknow what driver do I use?
When installing the printer this is what I do:
Quote:
System Settings > Printer > Add > Network Printer > JetDirect > 192.168.178.1:9100 > HP > LaserJet Professional p1606dn > Next
When selecting the model it says: "HP LaserJet Professional p1606dn, hpcups 3.14.6, requires proprietary plugin [en] (recommended)"
This is the procedure I tried for the USB-router (and it's not working), but it's also the procedure I used to install it as network printer when it worked (and the procedure went fine)
2) Secondly, I tried, as you suggested,
Code:
sudo hp-setup
and did this:
Device discovery > Ethernet/wireless/Network (direct connession or JetDirect) > Next
After a few seconds a page appears saying that no printer could be found: I tried to set the host and the port in the options, but I could only assign 1 2 3 or 4 as "port number" (the port should be 9100).
3) There's another thing I can say: on Windows the procedure seems pretty much the same and works like this:
Add printer > 192.168.178.1:9100 > Error! No printer detected!
BUT at this point I can click "Next" anyway and continue linke this:
HP > p1606dn > Assign printer name > Done! Printer working
4) Lastly: I noticed that when adding the printer as I described in point 1 the printer is marked operative UNTIL I send the first job: only then it's marked as problematic. This makes me think that is a problem of communication rather than an installation one.
I suppose (I don't have nothing to support this supposition) that the problem is that sentence found in the FritzBox page: "The printer needs to operate unidirectionally". I think that my PC is somehow waiting for an answer from the printer (which the printer can't send) and therfore fails... Could it be the case?
Thanks for clarifying further. Some print utilities definitely try to detect the printer at configuration time. The CUPS web interface allows a network-attached printer to be defined (without it even being present), so maybe worth trying that approach perhaps?
I didn't say I've already tried that before, sorry.
However I tried again and the result was the same as before:
1) Printer added normally (the same as system>Printers)
2) When I tried to print the first job it says
I would use 'cupsctl --debug-logging' to increase reporting verbosity, then try a print job again, and xamine what is reported in /var/log/cups/error_log
Since we're in experimentation-mode, if the issue with the plugin cannot be resolved, it might be worth considering trying the open-source 'foo2zjs-z2' driver instead
Use hplip. It's in the repos,; note that it's often two packages, one for the basic hplip command line programs and another for the GUI interface (hp-toolbox on the command line).
Start the hplip GUI and select Device-->Setup Device. When the "Device Discovery" window appears, select the appropriate option (USB | Network | Wireless | Advanced) and go from there.
I usually use "Advanced" because it allows me to specify the ip address of my printer, which is directly on my network and has a static ip. Once hplip discovers your printer, it will present a list of *.ppd files (drivers) for you to choose from. Choose the one that matches your printer model name.
Use hplip. It's in the repos,; note that it's often two packages, one for the basic hplip command line programs and another for the GUI interface (hp-toolbox on the command line).
The OP has already confirmed that they are using HPLIP (with hpcups driver), and they're having a problem with communicating with the printer. (Refer to their attached log.)
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 829
Rep:
If you go through CUPS (localhost:631) and add a printer there by using (socket://routerIPaddress:9100) and using a generic postscript driver, what happens? Make sure to use root and root password when it prompts you.
So here's the complete story (SPOILER: I used ferrari's foo2zjs-z2 driver)
First I tried hp-doctor:
The first time it installed some missing packages, but it did not solve anything, moreover it displayed this:
Code:
Checking for Deprecated items....
error: This distro (i.e ubuntu 14.10) is either deprecated or not yet supported.
The diagnosis is limited on unsupported platforms. Do you want to continue?(y=yes*, n=no):y
Checking for HPLIP updates....
error: Failed to locate hp-upgrade utility
I tried rebooting, reinstalling hplip, but it did not solve anyting
Secondly I tried frankbell's advice, but I soon realized I had already tried it (don't know if I said that) and it couldn't see the printer.
Then I tried to use the Genric-PostScript driver as erik2282 suggested and something REALLY strange happened...
No matter what page/how many pages/which options I printed the printer sent out a first page saying:
Then it printed infinitely many blank pages (I had tu turn off the printer every-time to make it stop).
My last hope was ferrari's advice: the foo2zjs-z2 driver. I followed the instructions on the page he linked AND IT WORKED!
At first I was only able to print one-sided papers, but after tinkering alittle bit I am now able to print also double-sided papers. (If anyone wants to know it: I had set the options in the printer-options, but Firefox, where I was printing from, had different options, which needed to be set up separately).
So if anyone has problems using HP Laserjet Pro P1606dn with network connection on USB to router connection use foo2zjs driver as explained at this page.
Ferrari, I owe you one!
Obviously I also thank everyone else who made an effort in order to solve this frustrating problem. I was going to throw away my printer! Thank you guys!
So if anyone has problems using HP Laserjet Pro P1606dn with network connection on USB to router connection use foo2zjs driver as explained at this page.
Ferrari, I owe you one!
Obviously I also thank everyone else who made an effort in order to solve this frustrating problem. I was going to throw away my printer! Thank you guys!
You're most welcome GioBonvi. I'm glad that changing the driver helped here.... but I'm still curious as to what the HPLIP driver couldn't cope with (as far as having a print server in the chain).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.