Differences between version 31 and predecessor to the previous major change of CUPSNotes.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 31 | Last edited on Monday, February 27, 2006 12:59:22 pm | by JohnMcPherson | Revert |
Older page: | version 30 | Last edited on Friday, July 15, 2005 2:12:18 pm | by PerryLorier | Revert |
@@ -157,8 +157,54 @@
mknod /dev/usb/lp0 c 180 0 allowed cups to see the printer but not to work.
The only solution seems to upgrade the kernel or to use a different printer.c that comes from hpoj.sourceforge.net, but I still have not tested it...
HP Office Jets need extra configuration files, which don't come with CUPS by default. Install the "hpoj" package (or the newer "hplip" package).
+----
+!!!Printer-specific bugs/workarounds
+!!Brother HL-1440
+CUPS will recommend and use the hl1250 PPD driver for this printer. Unfortunately, it doesn't handle the page margins quite right. Since no package seems to have a PPD file specifically for this printer, you'll have to work around it. Try one of the following methods:
+
+__1.__ Set some default options for this printer:
+<pre>
+lpoptions -p ''<your printer>'' -o page-left=22 -o page-right=22 -o page-top=22 -o page-bottom=22
+</pre>
+If you run "lpoptions" as root, the setting will be valid for all users. I can't tell what unit those distances are in, but this method worked for me.
+Doing so as root just puts them into the file <tt>/etc/cups/lpoptions</tt>.
+
+__2.__ add the following to your ppd file (/etc/cups/''printer_name''.ppd):
+<verbatim>
+*OpenUI *Margins/Page Margins/Offsets: PickOne
+*DefaultMargins: Custom
+*Margins Default/Driver Default: ""
+*Margins Custom/Custom: "<</.HWMargins[0 0 0 0] /Margins[150 150
+>>setpagedevice"
+*CloseUI: *Margins
+</verbatim>
+
+(you may need to change the margins to suit).
+
+__3.__ change the following in your ppd file:
+<verbatim>
+59a60
+< VICE=hl1250%A%Z -sOutputFile=- -"
+> *JCLBegin: "<1B>%-12345X@PJL JOB<0A>@PJL SET RESOLUTION = 600<0A>"
+62c63
+> VICE=hl1250%A%Z -r600 -sOutputFile=- -"
+</verbatim>
+(This tells the driver to use 600dpi, since the hl1250 driver apparently doesn't have the margin problems at this resolution).
+
+__4.__ :
+> The good news was that by specifying on 1200x600 and changing the
+> drivers to 0.15 for top, left, and right and 0.20 for the bottom margin,
+> the CUPS testpage, (postscript) and text prints look as close to their
+> 'raw' postscript HP printer counterparts as I can get. Without changing
+> the margin settings and using 1200x600, top lines of text would be cutoff
+> the page, etc.
+
+__5.__: Proprietary PPD file
+There should be an appropriate PPD file on the CD-ROM containing the windows driver that came with the printer. This might be better under CUPS than cups's
+ppd files. Brother have also freed up the licensing on some of their printing drivers, so maybe their ppd files will be included with cups in the future.
+
----
!! Useful Command-line tools
To see a list of all successful print jobs from the current machine (by all users)
lpstat -W completed -u