Bug 133647

Summary: HP2000C support broken
Product: [Fedora] Fedora Reporter: Kyrre Ness Sjøbæk <kyrsjo>
Component: foomaticAssignee: Tim Waugh <twaugh>
Status: CLOSED CANTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3CC: mattdm
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 3.0.2-2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-10-30 14:54:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
A picture of the page described
none
The ppd file of the broken install
none
the broken printers.conf
none
the broken cupsd.conf
none
The cupsd.conf which seem to work
none
the ppd which seem to work
none
the printers.conf which seem to work
none
How a standard CUPS testpage should not look
none
no, still broken
none
the changed ppd file none

Description Kyrre Ness Sjøbæk 2004-09-25 16:35:25 UTC
Description of problem:
When printing to a hp2000C printer, all i get is totaly destroyed
output - images are distorted (look like B/W static), and text also.

Version-Release number of selected component (if applicable):
rpm -qa | grep cups:
cups-1.1.21-1.rc2.1
cups-devel-1.1.21-1.rc2.1
cups-libs-1.1.21-1.rc2.1
libgnomecups-0.1.11-4
hal-cups-utils-0.5.2-1

How reproducible:
Every time
This bug was present in Fedora Core 2 as well, but Fedora Core 1, SuSE
9.1 personal, and Windows 2000 handles the printer nicely.

Steps to Reproduce:
1. Install the HP 2000C printer. Personally i just left it on during
first boot of machine after install
2. Try to print something. I used this page, from epiphany:
http://bugweek.fedora.redhat.com/index.shtml
3. The printer spits out something unreadable
  
Actual results:
Completely distorted output

Expected results:
Nice and fast prints. It is a nice and fast inkjet - even if it uses a
lot of desktop space.

Additional info:
Connected to lp0

Comment 1 Kyrre Ness Sjøbæk 2004-09-25 16:43:19 UTC
Created attachment 104321 [details]
A picture of the page described

Comment 2 Kyrre Ness Sjøbæk 2004-09-29 17:38:45 UTC
Just testing with Knoppix on a laptop - adding it there using the cups
web interface posed no problems.

attaching current, broken config.

Comment 3 Kyrre Ness Sjøbæk 2004-09-29 17:41:05 UTC
Created attachment 104529 [details]
The ppd file of the broken install

Comment 4 Kyrre Ness Sjøbæk 2004-09-29 17:43:07 UTC
Created attachment 104530 [details]
the broken printers.conf

Comment 5 Kyrre Ness Sjøbæk 2004-09-29 17:43:51 UTC
Created attachment 104531 [details]
the broken cupsd.conf

Comment 6 Kyrre Ness Sjøbæk 2004-09-29 18:31:02 UTC
Hmm...

I got it to work - by configuring it trough cups'es web-interface. But
now it is only printing in B/W...

Maybe the bug is in some program *creating* the config?

What i did in the "localhost:631" interface was to hit "printers" ->
"HP2000C"."modify printer" -> "continue" (do not change the
name/comment) -> Device: Paralell port #1 -> Make: HP -> Model:
DeskJet Series Cups v.1.1 (en)

This then stands in the printers info place in "printers":

HP DeskJet Series CUPS v1.1  	
Use system-config-printer to edit this!
Location:
Printer State: idle, accepting jobs.
"CUPS v1.1.21rc2 is ready to print."
Device URI: parallel:/dev/lp0

Now printing a test page produces a B/W test page (which is much
better that garbage, but still not how it should be...)

I now go of doing the same as above, changing just one parameter, the
model to "HP New DeskJet series CUPS v.1.1 (en)"

and print a test page...
And there is colours!

Ill attach the new config files. If i have forgotten anything - just ask!

Comment 7 Kyrre Ness Sjøbæk 2004-09-29 18:37:07 UTC
Created attachment 104534 [details]
The cupsd.conf which seem to work

Comment 8 Kyrre Ness Sjøbæk 2004-09-29 18:37:45 UTC
Created attachment 104535 [details]
the ppd which seem to work

Comment 9 Kyrre Ness Sjøbæk 2004-09-29 18:38:15 UTC
Created attachment 104536 [details]
the printers.conf which seem to work

Comment 10 Kyrre Ness Sjøbæk 2004-09-30 14:19:10 UTC
Arg... A reeboot, and the problem is back again. (hmm... kudzu altered
anything? The printers name hasn't changed, but who knows...)

Well, i can now give a better description of how it is distorted. It
seems like the printout is "streched" horisontaly. That means that it
is  all to wide to fit onto the paper. I will attach a picture of what
is suposed to be the standard cups testpage.

Comment 11 Kyrre Ness Sjøbæk 2004-09-30 14:34:43 UTC
Created attachment 104587 [details]
How a standard CUPS testpage should not look

Comment 12 Tim Waugh 2004-10-04 14:22:20 UTC
Please try to create a queue for this printer using
system-config-printer (Red Hat menu->System Settings->Printing). 
Select 'HP' as the manufacturer and '2000C' as the model, if this is
not selected automatically.  Don't print a test page.

After you have added the queue, but before you exit
system-config-printer, click on the queue and select 'Edit'.  Go to
the 'Printer driver' tab and change the driver from hpijs to
gimp-print-ijs.

Does printing work properly with that configuration?  (If not, please
don't change any further settings until I ask you to..)

Comment 13 Kyrre Ness Sjøbæk 2004-10-04 15:26:12 UTC
Great that someone is looking at it.

This is a transcript of what i did:
- ssh the box from a nearby fc2 box (X forwarding on) as root

- start system config printer (in gui mode)

- kill the malfunctioning que (HP2000C)

- Create a new que

- name: HpNew

- Device: local /dev/lp0 (it was automatically detected and configured
there)

- Select printer manufacturer and model: Hp 2000 C

- Finish

- No, don't print a test page

- Edit HpNew

- Printerdriver: not hpijs, but gimp-print-ijs

- OK

- "use" - just to be shure

- Test -> Cups testpage (uppermost entry):
Error message: (freely translated from Norwegian) "a problem appeared
while sending "CUPS testpage" to que "HpNew"

lpr: unable to print file: server-error-service-unavailable"

- OK

- Close system-config-printer

-[root@testpc ~]# /etc/init.d/cups status
 cupsd kjører ikke (cupsd is not running)

-[root@testpc ~]# /etc/init.d/cups start
Starter cups:                                              [  OK  ]

-back into system-config printer

-Try to print a test page again

- no error messages, just the "does it look good" "yes" "no"

- printer starting

- Nice test page printed - albeit *very* slowly compared to what that
printer is up to.

Comment 14 Tim Waugh 2004-10-04 15:29:00 UTC
The 'server-error-service-unavailable' thing should be fixed in
1.1.21-5 -- it's an unrelated bug.

So the gimp-print-ijs driver works: great.  I'll update foomatic to
reflect the fact that gimp-print-ijs should be used in preference to
hpijs for this model.

Comment 15 Kyrre Ness Sjøbæk 2004-10-04 15:33:21 UTC
yeah, sure - it worked, but i have never seen that printer print so
sllllloooooowwwww before. It must have taken somethin like 1½-2
minutes to print that page...

Before we close this - maybe we should toy a little with the default
quality settings? And btw. it looks like the error with hpijs is that
it somhow thinks A4 is 2 m wide...

Comment 16 Tim Waugh 2004-10-04 15:35:55 UTC
Defaults other than 'which driver to use' affect all models that use
that driver.

The original PPD file did look weird though, like the page size was
0x0.  Can you try switching back to hpijs and see if it still gives
the same problem?  If so, please attach 'printconf-tui --Xexport'. 
Thanks.

Comment 17 Kyrre Ness Sjøbæk 2004-10-04 16:41:28 UTC
I can confirm that switching back to driver "hpijs" makes the printer
spit out what looks like the leftmost part of a 2 metres widw, normal
heigth (A4) cups test page.

By my crude meassurement, i would say that there in the borked output
is 94,5 mm from the rigthmost side of the left black border to the C
in the "C Unix printing system" logo at the bottom left - in the
not-so-borked output there is only about 12 mm. Verticaly, it is
perfectly alligned. The output is only streched horisontally.

Did i mention that the hpijs only used ½ minute to produce the
(borked) page? And that is before calibration of print quality etc.

Here is the output you asked for (with the hpijs driver):

[root@testpc ~]# printconf-tui --Xexport
<?xml version="1.0"?>
<adm_context VERSION="0">
  <id NAME="local" SERIAL="1096907398">
    <null/>
    <null/>
    </id>
  <datatree>
    <printconf TYPE="LIST">
      <print_queues TYPE="LIST">
        <HpNew ATOMIC="TRUE" TYPE="LIST">
          <alias_list ANONYMOUS="TRUE" TYPE="LIST">
            </alias_list>
          <queue_description TYPE="STRING" VALUE=""/>
          <queue_type TYPE="STRING" VALUE="LOCAL"/>
          <queue_data TYPE="LIST">
            <local_printer_device TYPE="STRING" VALUE="/dev/lp0"/>
            </queue_data>
          <filter_data TYPE="LIST">
            <print_header_page TYPE="BOOL" VALUE="FALSE"/>
            <flags TYPE="LIST">
              <rerender_Postscript TYPE="BOOL" VALUE="FALSE"/>
              <convert_text_to_Postscript TYPE="BOOL" VALUE="TRUE"/>
              <send_FF TYPE="BOOL" VALUE="FALSE"/>
              <assume_data_is_text TYPE="BOOL" VALUE="FALSE"/>
              <send_EOT TYPE="BOOL" VALUE="FALSE"/>
              </flags>
            <mf_type TYPE="STRING" VALUE="MFOMATIC"/>
            <filter_locale TYPE="STRING" VALUE="C"/>
            <printer_id TYPE="STRING" VALUE="HP-2000C"/>
            <gs_driver TYPE="STRING" VALUE="hpijs"/>
            <foomatic_defaults ANONYMOUS="TRUE" TYPE="LIST">
              <option_default TYPE="LIST">
                <name TYPE="STRING" VALUE="PageSize"/>
                <type TYPE="STRING" VALUE="enum"/>
                <default TYPE="STRING" VALUE="A4"/>
                </option_default>
              </foomatic_defaults>
            </filter_data>
          <filter_type TYPE="STRING" VALUE="MAGICFILTER"/>
          <jobsheets TYPE="LIST">
            <start TYPE="STRING" VALUE="none"/>
            <end TYPE="STRING" VALUE="none"/>
            </jobsheets>
          <margins TYPE="LIST">
            <top TYPE="INT" VALUE="36"/>
            <right TYPE="INT" VALUE="36"/>
            <bottom TYPE="INT" VALUE="36"/>
            <left TYPE="INT" VALUE="36"/>
            </margins>
          <lpoptions TYPE="LIST">
            <cpi TYPE="STRING" VALUE="12"/>
            <lpi TYPE="STRING" VALUE="7"/>
            <page-bottom TYPE="STRING" VALUE="86"/>
            <page-left TYPE="STRING" VALUE="57"/>
            <page-right TYPE="STRING" VALUE="57"/>
            <page-top TYPE="STRING" VALUE="72"/>
            <scaling TYPE="STRING" VALUE="100"/>
            <wrap TYPE="STRING" VALUE="true"/>
            </lpoptions>
          </HpNew>
        </print_queues>
      <sharing_globals TYPE="LIST">
        <browsing TYPE="BOOL" VALUE="TRUE"/>
        </sharing_globals>
      </printconf>
    </datatree>
  </adm_context>
 
[root@testpc ~]#

Comment 18 Tim Waugh 2004-10-04 16:50:54 UTC
How about if you change /etc/cups/ppd/HpNew.ppd so that line 127 reads:

*FoomaticRIPOptionSetting PageSize=A4: " -dDEVICEWIDTHPOINTS=300 -dDEV&&

(i.e. change '595' to '300') and restart cups?

Comment 19 Kyrre Ness Sjøbæk 2004-10-04 17:11:33 UTC
Created attachment 104729 [details]
no, still broken

the page to the left is the new output. It seems *quite* broken.

Comment 20 Kyrre Ness Sjøbæk 2004-10-04 17:15:16 UTC
Created attachment 104730 [details]
the changed ppd file

Comment 21 Tim Waugh 2004-10-11 12:07:11 UTC
Tomorrow foomatic-3.0.2-2 will be available.  Please try that -- it
should default to the gimp-print driver now.

Comment 22 Kyrre Ness Sjøbæk 2004-10-11 18:40:17 UTC
Honestly - that isn't a solution. Yesterday i tried to use the print a
27 page pdf (7 mb) - a report i had written in LyX. With the Gimpprint
driver.

What happened? Well... the memory usage increased exponentially, and 
when all the swap was used up, it started killing processes. I
couldn't even log on to a VT to kill gs - i guess there wasn't enough
memory to start pam... => ended up killing the process by pulling the
plug of the computer. Yes i had little time, yes it was the
testmachine so i couldn't loose data. (don't ask me why it killed wnck
applet and not gs...)

The postcript generated by pdf2ps was almost 300 MB.

As soon as i get hold of the SuSE 9.1 personal cd again (it worked
there), i shall dd the fedora partitions over to my main disk, install
suse, get the ppd's etc, and well talk again.

Yes i shall test the new rpm. But this bug is not fixed by defaulting
to gimp-print which hangs the computer if you try to print something
heavyer than a pure text file. *reopening*

Kyrre, which feels really nasty right now.

Comment 23 Tim Waugh 2004-10-13 13:18:35 UTC
Comment #13 made me think that gimp-print gave correct output, just
slowly.  I had no idea it would cause such bad effects.

Reverting the change.

Comment 24 Tim Waugh 2004-10-13 13:21:23 UTC
foomatic-3.0.2-3 restores the status quo.

Comment 25 Kyrre Ness Sjøbæk 2004-10-13 14:11:38 UTC
ill get suse (where it worked) tomorrow, and grab the ppd from there.
Sure, i can get you ssh as well. Just BE WARNED: i am on an ISDN line.
i also dont expect to get it online before around 20:00 local time
(Oslo/Norway/Europe). You migth contact me by jabber:
kyrsjo or msn: kyrsjo.

Comment 26 Tim Waugh 2004-10-13 14:41:06 UTC
Well I should think you can get it working to some extent using the
CUPS native driver like you did in comment #8 -- just do it from the
http://localhost:631 interface (and not system-config-printer at all).

But ideally we'd like to get hpijs working properly.

Comment 27 Kyrre Ness Sjøbæk 2004-10-13 17:41:40 UTC
Ill go plug my fc2 laptop (think it should be the same - fc2 had the
same damn problem) into the printer, add the printer trough the port
631 interface, and try to fix it.

Okay: Did it. *almost* worked:

Selected Hp New as the driver (you know what i mean) - and it
basically worked.

"imageable area" was a bit different: When using the driver from the
web-interface (it was set to A4 in both cases), which i assume is the
hpijs driver - i get these on the test page:
Imageable area:
Page size:
7.76x11.11in
197.2x282.2mm

Lower-left:
0.25x0.5in
203.5x294.9mm

Upper-Rigth:
8.01x11.61in
203.5x294.9mm

Resolution:
300x300 dpi
11781x11781dpm

Gimp-print an fc3t2 gives:
Page size:
7.99x11.19in
202.9x284.3mm

Lower-Left:
0.14x0.5in
3.5x12.7mm

Upper rigth:
8.13x11.69in
206.4x297.0mm

Resolution:
300x300dpi
11781x11781dpm

Gimp-prints definition fitts better on the paper - but both could very
well be streched 10 mm longer - if the printer can handle it. If not,
gimp-prints definition is better.

Hmm... Maybee this is really a system-config-printer bug? Shall i
attach the nonborked output from the created setup?

BTW the speed of the printer was "okay" now (not perfect). I shall try
to print the first page of the doc which effectively crashed the fc3t2
box under gimp-print.

Comment 28 Kyrre Ness Sjøbæk 2004-10-13 17:56:53 UTC
doh. Didn't fix it completely, it still runs gs a couple of minutes,
before churning wildly away on the disk (from ggv).

Acrobat on win32 was almost as bad - the output was in the most
horrible quality i ever saw. But it was fast...

Comment 29 Kyrre Ness Sjøbæk 2004-10-13 18:08:57 UTC
ahh. took 10-15 minutes of calcs - but its comming now - pretty fast
to.  Think the reason that it took so long is that it seems to bee a
horribly heavy document (took *a while* to render the pdf in lyx...
should i see any difference in terms of
"time-from-clicking-print-to-printer-starts" if i print the ps instead
of the pdf?)

But another thing: the pictures now seem very "badly" rasterized -
they (almost) look like the work of a modernistic painter playing he
is a half-tone printing press (you know what i mean).

Comment 30 Tim Waugh 2004-10-19 19:09:17 UTC
*** Bug 136397 has been marked as a duplicate of this bug. ***

Comment 31 Kyrre Ness Sjøbæk 2004-10-19 20:09:16 UTC
I was just suggesting that *maybe* this is really a
system-config-printer bug

Comment 32 Tim Waugh 2004-10-19 21:39:06 UTC
I understand -- but CUPS uses its own driver.  If neither gimp-print nor hpijs
support this printer properly they should either be fixed (which I hope to be
able to do) or have the 2000C removed from their list of supported models.

Comment 33 Kyrre Ness Sjøbæk 2004-10-20 14:21:33 UTC
I am perfectly able to print to the printer from cups - when i have
set it up through the web interface.

When i set it up through s-c-p, the prints are three times to wide for
the paper. Same is case when it is autodetected from kudzu.

Comment 34 Tim Waugh 2004-10-20 14:28:02 UTC
Yes, I know.

When you set up the printer using the CUPS web interface you are using CUPS' own
printer driver (hptoraster I think).

*This* bug report is that the www.linuxprinting.org recommended driver does
*not* work -- and either the recommended driver should be changed or
(preferably) the recommended driver should be fixed.

Comment 35 Matthew Miller 2006-07-10 20:29:54 UTC
Fedora Core 3 is now maintained by the Fedora Legacy project for security
updates only. If this problem is a security issue, please reopen and
reassign to the Fedora Legacy product. If it is not a security issue and
hasn't been resolved in the current FC5 updates or in the FC6 test
release, reopen and change the version to match.

Thank you!


Comment 36 John Thacker 2006-10-30 14:54:44 UTC
Closing per lack of response to previous request for information.
Note that FC3 and FC4 are supported by Fedora Legacy for security
fixes only.  Please install a still supported version and retest.  If
it still occurs on FC5 or FC6, please reopen and assign to the correct
version.  Otherwise, if this a security issue, please change the
product to Fedora Legacy.  Thanks, and we are sorry that we did not
get to this bug earlier.