LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-10-2008, 12:59 PM   #1
jelaiwang
LQ Newbie
 
Registered: Nov 2006
Posts: 28

Rep: Reputation: 15
Thumbs up HP Photosmart C6280 + CUPS 1.3.4 + HPLIP 2.7.12 works, problem with margins


I bought a C6280 a few weeks ago, here are a few notes on how to get it working over Ethernet on Slackware 12.

Slackware 12 comes with an HPLIP package version 1.7.4a, however, according to the HPLIP home page, you need at least 2.7.9. There is an HPLIP 2.7.10 package in slackware-current; I tried this, but I couldn't get it to pass hp-check, kept complaining about not seeing the python extensions (like cupsext).

I ended up building a package for HPLIP 2.7.12 from the source code, configuring it with the following options:
./configure --prefix=/usr --disable-foomatic-xml-install --enable-foomatic-ppd-install
--with-hpppddir=/usr/share/ppd/hpijs/HP --disable-pp-build --disable-scan-build
--disable-gui-build --disable-fax-build --enable-network-build

I used trackinstall from src2pkg to build the package (thanks, gnashley!)

hp-check and hp-makeuri worked as advertised. I also installed the following packages from slackware-current: cups 1.3.4, ghostscript 8.61, and foomatic 3.0-20070919. The cups and ghostscript packages from Slackware 12 would probably have worked just fine, but there was no foomatic package in Slackware 12.

The printouts from Firefox and vi look great, color-wise.

The main problem I need to fix is the margins are messed up (In Firefox the header is cut in half and in vi the text also appears to be shifted upward). I haven't determined whether this is an HPLIP, CUPS, or application problem. Can anyone corroborate these findings? Tips?
 
Old 02-10-2008, 02:47 PM   #2
xflow7
Member
 
Registered: May 2004
Distribution: Slackware
Posts: 215

Rep: Reputation: 45
I have the same problem with CUPS, HPLIP 1.7.4a and an HP8250 printer on Slack 12. It seems to be an issue both in Firefox as well as when printing pdf's, so I don't think it's an app thing. Haven't sorted it out yet.

Last edited by xflow7; 02-10-2008 at 02:49 PM.
 
Old 02-10-2008, 03:59 PM   #3
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,372

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
The page margins in Firefox can be adjusted using File -> Page Setup... -> Margins & Header/Footer.
If you want to change the default printer settings in Firefox, type 'about:config' in the Firefox address bar, and scroll down to the 'print.XXX' settings.

Last edited by allend; 02-10-2008 at 04:01 PM.
 
Old 02-10-2008, 04:13 PM   #4
xflow7
Member
 
Registered: May 2004
Distribution: Slackware
Posts: 215

Rep: Reputation: 45
If the OP and I are talking about the same problem, it isn't a margins thing; I've played with them before. What it seems to be is applications placing header information outside the printable area of the page. for instance, if you mess with the margins in Firefox, it scales the body of the document accordingly but leaves the header way up at the upper edge of the page.
 
Old 02-10-2008, 04:22 PM   #5
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,372

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
With my install, under 'about:config' I find printer specific settings like these.
Quote:
print.printer_CUPS/DCP110C.print_edge_bottom
print.printer_CUPS/DCP110C.print_edge_left
print.printer_CUPS/DCP110C.print_edge_right
print.printer_CUPS/DCP110C.print_edge_top
 
Old 02-10-2008, 05:08 PM   #6
jelaiwang
LQ Newbie
 
Registered: Nov 2006
Posts: 28

Original Poster
Rep: Reputation: 15
I took a look at these settings in my instance of Firefox (2.0.0.11). I don't have any called print_edge*, but I do have print_margin* and the value is 0.5 which I think is the default. I'm still trying to understand how to best troubleshoot this problem, but I think I'm with xflow7 in that I don't think it's necessarily a margin problem, but I don't know what a better name is.

I did find two settings that seem interesting:
print_paper_height 279.40
print_paper_width 215.90

These are for print_paper_name of Letter. A few questions,

(1) Are these settings passed to Firefox from CUPS?
(2) Are they supposed to match the values on the test page from CUPS? In the "Imageable Area" on the CUPS test page, it claims the letter page size is 209.6x273.1mm, which is smaller than what Firefox seems to think it is.
 
Old 02-10-2008, 07:52 PM   #7
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,372

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
I suggest that you try changing the print_paper_height and print_paper_width from the absolute size of the Letter paper ( 279.40x215.90 m ) to the printable size ( 273.1x209.6mm ) in Firefox.
 
Old 02-15-2008, 08:47 PM   #8
jelaiwang
LQ Newbie
 
Registered: Nov 2006
Posts: 28

Original Poster
Rep: Reputation: 15
I tried tweaking with the options in Firefox, but the values didn't seem to affect the printouts at all. I also submitted a bug report to HPLIP support this week, the report is at https://answers.launchpad.net/hplip/+question/24362. Given the comments from Aaron in that report and the fact that I was able to reproduce this problem in Firefox on a different printer (HP 2600n), different version of CUPS (1.2.11), doesn't use HPLIP (uses foo2zjs), I think evidence points to an application problem, not a problem with CUPS or HPLIP.

See the Firefox printing bug reports at https://bugzilla.mozilla.org/show_bug.cgi?id=130075 and https://bugzilla.mozilla.org/show_bug.cgi?id=414314. It sounds like this and related printing issues are known, but no one is actively working on it right now.

Aaron does mention a workaround involving hp-toolbox that I haven't tried yet. I'll probably try this weekend. Thanks to all for the helpful suggestions so far.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CUPS/HPLIP vs Kernel-2.4.18-14 aka Shiva Red Hat 1 05-08-2006 02:29 PM
CUPS + Cannon BJC-250ex; Wrong margins jmoschetti45 Linux - Software 1 12-03-2004 12:54 PM
CUPS problem - page margins bitpicker Linux - Software 1 11-19-2004 03:42 PM
CUPS - margins and rastr linuxfond Linux - Newbie 2 06-26-2004 03:19 AM
cups and margins amoor757 Linux - Software 0 10-20-2003 09:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration