Configure HP LaserJet P1505n printer.
- Login o registrati per inviare commenti
I can access a nifty HTML page at the printer's network address, but there's no link from there
to my Lenovo T420 laptop. There's a cups server link that I haven't been able to activate.
I remember seeing a huge long list of HP printer drivers, from which it was always easy to choose
correctly. But every time I reinstall Trisquel, I have to fumble my way through the procedure
to re-activate the printer again. /var/log/syslog shows a few signs of my fumbling. Configuration
files aren't telling me anything. I prepared a long page about this, but an errant pinkie erased
it all in the blink of an eye.
I found this, searching for "p1505n" in the forum:
https://trisquel.info/en/forum/trisquel10-nabia-fails-detect-hewlett-packard-p1505n-network-printer
Maybe your past self will be able to help you here.
Prospero was clearly more alert than I while searching the forum.
I followed the twelve steps in the posting that prospero found (which I had written, oh so many months (6) ago)
with an additional step: I created another MyDirectory/run/cups folder in the Data partition of that same
HDD, and I copied the three items in the cups folder into the mirrored cups folder as well as into the one
in the home folder. That might just protect the printer's setup when I upgrade to Trisquel_11. I am trying
to "go to school" on the procedure that protects my Icedove data during system upgrades and re-installs.
Upon restarting the computer I ran across the same problem that precipitated my present posting: Click on
the wrong step and it freezes. It's not so straightforward as I said in June. Here's the correct procedure:
A. Unlock the dialog found at System/ControlCenter/Printers; hovering the cursor over the box at the upper
right hand corner of the dialog will reveal what that ikon means.
B. When you click on the [+Add] button, do not be tempted to select that "suggested" printer name that
appears; that's what freezes the dialog. At the [Enter Device URI] address line, I put http://[printer's
network IPv4 address] because that's where the nifty "home" page of the P1505n printer is located. That
step makes the final connection between the 'Puter and the printer.
The Trisquel_10 dongle is a huge help in this process.
Update: Tried to print a page ... pending for an hour; cannot find where I can tell it to print a test page.
The nifty HP P1505n page is still visible at its network IPv4 address. Printer dialog: "cannot get printer status."
cat /etc/cups/printers.conf
# Printer configuration file for CUPS v2.3.1
# Written by cupsd
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
NextPrinterId 2
PrinterId 1
UUID urn:uuid:336f2658-a597-38fa-7085-57422e5538ac
Info HP LaserJet P1505n
Location Upstairs Office
MakeModel HP LaserJet P1505n Foomatic/foo2xqx (recommended)
DeviceURI http://192.168.1.4
State Idle
StateTime 1671201545
ConfigTime 1671201545
Type 8425492
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
cd /usr/share/cups/data ; lpr testprint
"pending" like all the others.
I changed the printer IPP from http://[network address] to ipp://[network address] and sent a test page;
it's processing but the next line in the dialog is that the printer is not responding.
Then I swapped the T420 for a T430, also running Trisquel_10, and installed the same P1505n without any
problems (now that I know to use ipp://[networkaddress], but when I elected to print a test page, it, too
ended up in the "processing" status, and the dialog said "Processing - The printer is not responding."
Added on December 17, 2022:
cat syslog | tail -n 50
Dec 17 07:52:48 george-ThinkPad-T430 dbus-daemon[794]: [system] Activating service name='org.opensuse.CupsPkHelper.Mechanism' requested by ':1.182' (uid=1000 pid=3158 comm="/usr/bin/python3 /usr/share/system-config-printer/" label="unconfined") (using servicehelper)
Dec 17 07:52:48 george-ThinkPad-T430 dbus-daemon[794]: [system] Successfully activated service 'org.opensuse.CupsPkHelper.Mechanism'
Dec 17 07:53:23 george-ThinkPad-T430 systemd[1]: cups.service: Main process exited, code=exited, status=1/FAILURE
Dec 17 07:53:23 george-ThinkPad-T430 systemd[1]: cups.service: Failed with result 'exit-code'.
Dec 17 07:53:23 george-ThinkPad-T430 systemd[1]: cups.service: Scheduled restart job, restart counter is at 1.
Dec 17 07:53:23 george-ThinkPad-T430 systemd[1]: Stopped CUPS Scheduler.
Dec 17 07:53:23 george-ThinkPad-T430 systemd[1]: cups.path: Succeeded.
Dec 17 07:53:23 george-ThinkPad-T430 systemd[1]: Stopped CUPS Scheduler.
Dec 17 07:53:23 george-ThinkPad-T430 systemd[1]: Stopping CUPS Scheduler.
Dec 17 07:53:23 george-ThinkPad-T430 systemd[1]: Started CUPS Scheduler.
Dec 17 07:53:23 george-ThinkPad-T430 systemd[1]: cups.socket: Succeeded.
Dec 17 07:53:23 george-ThinkPad-T430 systemd[1]: Closed CUPS Scheduler.
Dec 17 07:53:23 george-ThinkPad-T430 systemd[1]: Stopping CUPS Scheduler.
Dec 17 07:53:23 george-ThinkPad-T430 systemd[1]: Listening on CUPS Scheduler.
Dec 17 07:53:23 george-ThinkPad-T430 systemd[1]: Started CUPS Scheduler.
Dec 17 07:53:23 george-ThinkPad-T430 colord[866]: failed to get session [pid 3307]: No data available
Look here: https://bbs.archlinux.org/viewtopic.php?pid=1370717
Here's some more data:sudo cat /var/log/cups/error_log
E [16/Dec/2022:15:34:18 -0500] [Job 1] The printer is not responding.
E [17/Dec/2022:07:53:23 -0500] Scheduler shutting down due to program error.
E [17/Dec/2022:07:53:52 -0500] [Job 2] The printer is not responding.
That was in response to my command for the P1505n to print a self-test page,
but that elicits only a printer is not responding page.
Further exploration:
See: https://bugs.launchpad.net/ubuntu/+source/cups/+bug/1973441 where I learned to try:
sudo cat /var/log/cups/error_log
where I found statements like:
D [17/Dec/2022:12:35:41 -0500] [Client 62] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=75, response=0x55d9cf0f6480(IPP_STATE_DATA), pipe_pid=0, file=-1
D [17/Dec/2022:12:35:41 -0500] [Client 62] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [17/Dec/2022:12:35:41 -0500] [Client 62] bytes=0, http_state=0, data_remaining=75
D [17/Dec/2022:12:35:41 -0500] [Client 62] Flushing write buffer.
D [17/Dec/2022:12:35:41 -0500] [Client 62] New state is HTTP_STATE_WAITING
D [17/Dec/2022:12:35:41 -0500] [Client 62] Waiting for request.
D [17/Dec/2022:12:35:41 -0500] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Active clients, printing jobs, and dirty files"
D [17/Dec/2022:12:35:41 -0500] [Client 62] HTTP_STATE_WAITING Closing for error 32 (Broken pipe)
One thing leads to another ...
See: https://developers.hp.com/hp-linux-imaging-and-printing/binary_plugin.html where it's said that my P1505n needs something
called a binary plugin, hp-plugin, but I haven't found out how to get & install that.
Update: HP's official support site fails to recognize my P14505n's product name and serial number, and won't proceed
until I provide those details. However, I copied the serial number from the printer's nameplate where the serial
number it clearly identified and easily read. The product name is identical to the name under which the printer is listed
for driver downloads on the Trisquel_10 printer installation page. But HP steadfastly fails to recognize it, so further
progress becomes impossible, except for chat, which fails to recognize that I'm already registered on the HP Support site;
and there's no logout page ...
Falling back and punting, I used the Trisquel_9 Live DVD to make another installation attempt,
but was quickly greeted with "Cups server error" and "Client-error-not-possible." However, I
noticed that of the four suggested drivers, three were annotated, "require proprietary plugin."
Everything looks OK at http://192.168.1.4, but this time I noticed that the password entries
had been filled out. I erased those and entered my own password along with "admin" as user,
but in subsequent browsing the new username and password were not accepted.
Then I ran the command, sudo apt-get purge cups, and reinstalled cups after rebooting.
Back to Trisquel_10. I tried the three remaining drivers suggested for the HP-LaserJet-P1505n.
None have the annotation noted from the TQ_9 Live DVD. Those drivers are:
(1) HP LaserJet p1505n hpijs pcl3, which displays the "Printer is not responding" message as
does the recommended Foomatic.foo2xqx driver's setup on attempting to print a test page.
(2) HP LaserJet p1505n hpijs, zxs, which displays a status of "Filter failed" from the
diagnostics tool available when checking the job status.
The syslog diplays something alarming:cat /var/log/syslog
Near the end of which these lines are repeated:
prnt/hpijs/hpijs.cpp 271: unable to set device=HP LaserJet M1005, err=48
prnt/hpijs/hpijs.cpp 292: unable to set device=HP LaserJet M1005, err=48
prnt/hpijs/hpijs.cpp 707: unable to read client data err=-2
That's not my printers name: HP LaserJet P1505n.
What's the complete path to that record ?
See: https://superuser.com/questions/1750127/can-no-longer-print-using-cups where it's said:Can no longer print using CUPS
Asked 1 month ago
Modified 1 month ago
Viewed 70 times
I have a Brother_HL_L3270CDW_series printer which worked out-of-the-box, was detected by Ubuntu 22.04
over WiFi and could print immediately. It stopped working and I don't know why. With cupsctl --debug-logging,
here are is /var/log/cups/error_log
which looks like my own /var/log/cups/error_log, attached as var-log-cups-error_log.txt.
Allegato | Dimensione |
---|---|
var-log-cups-error_log.txt | 6.83 KB |
Recently I came across an accessory called HPLIP Toolbox, which can be opened from the Mate index
by installing hplip-gui. Thereafter, installation of the HP LaserJet P1505n can be accomplished by
opening HPLIP Toolbox (which does not at first detect any HP products !) and selecting CUPS Web
Interface from the HP Device Manager Popup that appears. Another page then appears with URI
localhost:631/admin whose functions are fairly clear. It will find the printer, add a printer
or manage the one you've got. Upon picking an existing printer, another page comes up that lists
its details. Double-clicking on the printer name brings up additional actions you can take.
In my case, I told the printer to print a test page, which appeared promptly at the printer
output tray. Then I asked for a printer self-test page, which took a couple of minutes to produce
a single page with the banner: "If you can read this, you are using the wrong printer driver."
Later I tested the installation by asking it to print a page of FeatherPad text, which came out
OK. That may be what's preventing Trisquel (and other linux OS's access to the printer.
Getting a printer driver update is an entirely different experience. See:
See: https://support.hp.com/us-en/drivers/selfservice/hp-laserjet-p1500-printer-series/3435666/model/3435667
where it's said ==> HP Customer Support - Software and Driver Downloads ... Download Linux
drivers from the HP Linux Imaging and Printing Web site. I retrieved hplip-3.22.10
Then I attempted to run the installation programsh hplip-3.22.10.run
but it has no way of dealing with Trisquel,
except perhaps by choosing ubuntu ... Opening the hplip-3.22.10 folder reveals one file, cups_drv.inc,
which is not a directory but which contains lines like these:cups_ppd_printers = \
ppd/hpcups/apollo-2100.ppd.gz \
ppd/hpcups/apollo-2150.ppd.gz \
...
ppd/hpcups/hp-laserjet_p1505.ppd.gz \
ppd/hpcups/hp-laserjet_p1505n-zxs.ppd.gz \ which I haven't been able to unzip. The second-
to-last one may contain a better printer driver, but I'll need help to install it.
Update: During the process of installing a new printer with this CUPS interface, there is an
opportunity to identify the printer by its PPD file.
- Login o registrati per inviare commenti