Summary:
I am trying to connect to my HP Laserjet MFP 29w.
I first followed the instructions in the Handbook, 9.1 "Quick Start". The print test did not work, so I moved on to installing /print/hplip.
I got stuck at the step 3 of 3 "Setup Device" screen where it asks for the PPD file. I click to browse files, select /usr/local/share/ppd/HP/hp-laserjet_mfp_m28-m31.ppd.gz, and it returns me to the "Setup Device" dialog. The "PPD file:" box still says
First, this is what I did from Handbook, 9.1 "Quick Start":
Edited /etc/printcap to add
Edited /etc/rc.conf to add
But nothing printed. There are several files in /var/spool/lpd/lp, I assume from my various attempts to get the printer DNS host name correct in /etc/printcap.
Seeing no success so far, I thought /print/hplip might just do it all. It hasn't yet. First, I got the results described above. After searching for some solutions to this, I ran
So I think that file is fine. I just don't know why printer/hplip appears to disagree.
Ultimately, a few questions:
1. How can I get printer/hplip to load that PPD?
2. Assuming I get the PPD loaded, should I keep everything I did from the Handbook, or undo it? Does printer/hplip use all of that anyway?
-
edit: The solution I found was to add
I am trying to connect to my HP Laserjet MFP 29w.
I first followed the instructions in the Handbook, 9.1 "Quick Start". The print test did not work, so I moved on to installing /print/hplip.
I got stuck at the step 3 of 3 "Setup Device" screen where it asks for the PPD file. I click to browse files, select /usr/local/share/ppd/HP/hp-laserjet_mfp_m28-m31.ppd.gz, and it returns me to the "Setup Device" dialog. The "PPD file:" box still says
(Not found. Click browse button to select a PPD file.)
, and the "Add Printer" button remains grayed-out/unclickable.First, this is what I did from Handbook, 9.1 "Quick Start":
# mkdir -p /var/spool/lpd/lp
# chown daemon:daemon /var/spool/lpd/lp
# chmod 770 /var/spool/lpd/lp
Edited /etc/printcap to add
Code:
lp:\
:lp=:rm=NPI031DBF:rp=raw:\
:sh:\
:mx#0:\
:sd=/var/spool/lpd/lp:\
:lf=/var/log/lpd-errs:
lpd_enable="YES"
# service lpd start
# printf "1. This printer can print.\n2. This is the second line.\n" | lpr
But nothing printed. There are several files in /var/spool/lpd/lp, I assume from my various attempts to get the printer DNS host name correct in /etc/printcap.
Seeing no success so far, I thought /print/hplip might just do it all. It hasn't yet. First, I got the results described above. After searching for some solutions to this, I ran
Code:
$ cupstestppd /usr/local/share/ppd/HP/hp-laserjet_mfp_m28-m31.ppd.gz
/usr/local/share/ppd/HP/hp-laserjet_mfp_m28-m31.ppd.gz: PASS
WARN Size "195x270mm" should be the Adobe standard name "194.73x269.88mm".
WARN Size "184x260mm" should be the Adobe standard name "185.21x254mm".
WARN Size "Envroc16k" should be the Adobe standard name "Env195.44x273.05mm".
WARN Size "8.5x13in" should be the Adobe standard name "FanFoldGermanLegal".
WARN Size "216x340mm" should be the Adobe standard name "FanFoldGermanLegal".
WARN PCFileName longer than 8.3 in violation of PPD spec.
REF: Pages 61-62, section 5.3.
Ultimately, a few questions:
1. How can I get printer/hplip to load that PPD?
2. Assuming I get the PPD loaded, should I keep everything I did from the Handbook, or undo it? Does printer/hplip use all of that anyway?
-
edit: The solution I found was to add
cupsd_enable="YES"
to /etc/rc.conf
, then reboot. Details in a reply below.
Last edited: