Summary: | net-print/hplip-3.9.8 bottom on printout cut off | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | John Feuerstein <john> |
Component: | [OLD] Printing | Assignee: | Printing Team <printing> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | billie, calchan, flameeyes |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
John Feuerstein
2009-10-12 17:47:40 UTC
I experience the same problem here. Can you try installing hplip-3.9.8-r2 with the following use flags USE="-hpcups +hpijs" others you can leave at defaults. Then reconfigure with hp-setup and check if the problem persists. The problem persists :-( 1: Delete CUPS printer 2: $ USE="-hpcups hpijs" emerge -av =net-print/hplip-3.9.8-r2 These are the packages that would be merged, in order: Calculating dependencies ... done! [ebuild U ] net-print/hplip-3.9.8-r2 [3.9.4b-r1] USE="fax gtk hpijs%* libnotify%* scanner snmp -doc -hpcups% -minimal -parport -policykit -qt3 -qt4 -static-ppds% -udev-acl% (-cupsddk%*) (-dbus%*) (-ppds%)" 0 kB ... $ etc-update ... Replacing /etc/hp/hplip.conf with /etc/hp/._cfg0000_hplip.conf ... 3: $ hp-setup # with defaults 4: Print. Same Problem as with 3.9.8. I thought this was upstream bug [1]405116. You also restarted cups this time? [1] https://bugs.launchpad.net/hplip/+bug/405116 Yes, I restarted CUPS after step 1. Sorry to not mention it. I'm not really into it, but I re-did everything and during hp-setup it states: -------------------------------- snip ---------------------------------- Using queue name: Officejet_5600 Locating PPD file... Please wait. error: No PPD found for model officejet_5600 using new algorithm. Trying old algorithm... Found PPD file: drv:///hp/hpcups.drv/hp-officejet_5600_series.ppd -------------------------------- snap ---------------------------------- Why hpcups.drv, we disabled that with the USE flag -hpcups?! So what I did now is downgrade to 3.9.4b-r1, and I noticed this difference: PPD file: drv:///hp/hpijs.drv/hp-officejet_5600_series-hpijs.ppd The URI looks fine and uses hpijs (probably because hpcups was not available with that version...). I think I made an error in the ebuild so hpcups is built even if -hpcups is set. Will fix this in the evening. Is there a possiblility to choose the driver when running hp-setup so you can set this to hpijs. No, no such option. The ebuild is probably wrong because you forgot to explicitely disable some "default=yes" configure option. Anyways, I'd like to use the new hpcups driver instead of hpijs because of sane defaults ("Normal = 600dpi" etc.) -- So I've looked a bit further and finally found the bug. It looks like some HP dev defined a wrong CustomMedia size for A4. I've imported the PPD compiler source from the PPD file of both 3.9.4b-r1 (foomatic...) and 3.9.8-r2 (USE="hpcups"!) in /etc/cups/ppd/Officejet_5600.ppd and did a diff on them, here are the important lines from each one respectively: # hplip-3.9.4b-r1: CustomMedia "A4/A4 210x297mm" 595.00 842.00 10.00 36.00 10.00 9.00 HWMargins 18.00 36.00 18.00 36.00 # hplip-3.9.8-r2: CustomMedia "A4/A4 210x297mm" 595.44 841.68 18.00 36.00 18.00 9.00 HWMargins 9.00 36.00 9.00 36.00 # hplip-3.9.8-r2 *FIXED*: CustomMedia "A4/A4 210x297mm" 595.44 841.68 9.00 36.00 9.00 36.00 HWMargins 9.00 36.00 9.00 36.00 The PPDs were imported using ppdi(1). After compiling the fixed PPD source using ppdc(1) again, moving it to /etc/cups/ppd/Officejet_5600.ppd and restarting CUPS, everything is fine. Printouts are NOT cut off anymore and start early on the page, just like with 3.9.4b-r1 :-) OK, so what's wrong here? I hardcoded CustomMedia margins for A4 that match HWMargins. Reading the documentation[1] for the syntax: CustomMedia "name/text" width length left bottom right top "size-code" "region-code" HWMargins left bottom right top Points are assumed if no units are specified. Question 1: Why did they change HWMargins in the first place? Question 2: What are the _correct_ margin settings for A4 now? [1] http://www.cups.org/documentation.php/ref-ppdcfile.html (In reply to comment #7) > No, no such option. The ebuild is probably wrong because you forgot to > explicitely disable some "default=yes" configure option. I have committed hplip-3.9.8-r3 which fixes this. Thanks for pointing me at it. (In reply to comment #7) > OK, so what's wrong here? I hardcoded CustomMedia margins for A4 that match > HWMargins. Reading the documentation[1] for the syntax: I tried the same procedure here but with the resulting ppd file I was not able to print at all. Btw thanks for pointing hplip upstream at this bug. Humm, did you compile the PPD source file? Step by step how I did it: 1. Remove CUPS printer 2. Restart CUPS, the PPD in /etc/cups/ppd/ should be gone. 3. Emerge hplip-3.9.8 with USE="hpcups -hpijs" 4. hp-setup, the resulting non-foomatic PPD should be in /etc/cups/ppd/. 5: $ cd /etc/cups/ppd $ ppdi -o fixme.drv Officejet_5600.ppd $ ... edit fixme.drv and change this line: CustomMedia "A4/A4 210x297mm" 595.44 841.68 18.00 36.00 18.00 9.00 ... to: CustomMedia "A4/A4 210x297mm" 595.44 841.68 9.00 36.00 9.00 36.00 ... $ ppdc fixme.drv $ mv ppd/hp-officejet_5600_series.ppd Officejet_5600.ppd $ /etc/init.d/cupsd restart 6: Print. Just did it again -- Works fine here :-) (In reply to comment #10) > Humm, did you compile the PPD source file? > > Step by step how I did it: > > 1. Remove CUPS printer > 2. Restart CUPS, the PPD in /etc/cups/ppd/ should be gone. > 3. Emerge hplip-3.9.8 with USE="hpcups -hpijs" > 4. hp-setup, the resulting non-foomatic PPD should be in /etc/cups/ppd/. > > 5: > $ cd /etc/cups/ppd > $ ppdi -o fixme.drv Officejet_5600.ppd > $ ... edit fixme.drv and change this line: > CustomMedia "A4/A4 210x297mm" 595.44 841.68 18.00 36.00 18.00 9.00 ... > to: > CustomMedia "A4/A4 210x297mm" 595.44 841.68 9.00 36.00 9.00 36.00 ... > $ ppdc fixme.drv > $ mv ppd/hp-officejet_5600_series.ppd Officejet_5600.ppd > $ /etc/init.d/cupsd restart > > 6: Print. > > Just did it again -- Works fine here :-) > I did exactly this, besides I had to use other values as were other changes for my Business Inkjet 1000. I also tried the hpijs driver with the same result. Info here: http://hplipopensource.com/node/340 Margins were broken on ghostscript-gpl-8.64-r3, but work properly on ghostscript-gpl-8.64-r3 (needs ~x86 keyword at the moment) (In reply to comment #12) > Info here: > http://hplipopensource.com/node/340 > Margins were broken on ghostscript-gpl-8.64-r3, but work properly on > ghostscript-gpl-8.64-r3 (needs ~x86 keyword at the moment) You mean ghostscript-gpl-8.70. In hplip-3.10.2 I already depend on >=ghostscript-gpl-8.70 because of this note. Please try if this version fixes your problem. The originally reported bug is fixed. I've deleted the CUPS printers, restarted CUPS, emerged... app-text/ghostscript-gpl-8.71 USE="X cairo cups djvu gtk jpeg2k -bindist" net-print/hplip-3.10.2 USE="fax gtk hpcups libnotify scanner snmp -doc -hpijs -minimal -new-hpcups -parport -policykit -qt4 -static-ppds -udev-acl" ..., ran hp-setup... Found PPD file: drv:///hp/hpcups.drv/hp-officejet_5600_series.ppd ... and everything is fine now. Margins are perfect and I'm happy using hpcups now (sane quality defaults and human-readable quality descriptions... not everyone using a cups printer should have to know what 300dpi is. Draft, Normal, Photo ... so all non-techies here are happy now too). Thanks for the continued support everyone. > You mean ghostscript-gpl-8.70.
Indeed I do - it had been a long day. For the record hplip-3.9.12-r1 and ghostscript-gpl-8.71 give perfect results.
|