Opened 9 years ago

Closed 6 years ago

#7032 closed bug (fixed)

Gutenprint drivers report undersized margins as "printer not responding"

Reported by: myob Owned by: nobody
Priority: normal Milestone: R1
Component: Printing Version: R1/alpha2
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

I've got a HP Photosmart B110a wireless printer with JetDirect, to which Haiku can successfully transfer data using the JetDirect transport addon. However, it supports the elderly PCL3C language and nothing newer so Gutenprint is needed to make it print.

When set up with a standard PCL5 or 6 driver it "prints" (either stalling or gibberish, as expected). When set up with as any printer in Gutenprint, you instantly get "printer not responding" on attempting a job. It works on other architechtures as a Deskjet 1220C

This is being returned from libprint (GraphicsDriver.cpp) but I'm not skilled enough to figure out why this is the case. The printer also allegedly supports IPP but this appears not to be working.

Change History (9)

comment:1 Changed 9 years ago by laplace

Since the PCL5 and PCL6 drivers are also based on libprint, so if JetDirect works there it should work with Gutenprint too. Can you double check, that JetDirect is configured correctly when Gutenprint driver is used?

comment:2 Changed 9 years ago by myob

The configuration required for JetDirect consists of putting the IP address in; thats all, so its identical no matter what driver is used.

comment:3 Changed 9 years ago by laplace

That's quite strange.

Can you post the output from print_server when you try to print using the Gutenprint driver? (quit the print_server with process controller, then in Terminal change into folder /boot/system/servers and run print_server with ./print_server).

comment:4 Changed 9 years ago by myob

It appears this is actually a case of an incorrect error message:

Connected to HP JetDirect printer port at 192.168.1.35:9100
Driver: pcl-1220
PageSize Letter
Resolution 150dpi
InputSlot 
PrintingMode Color
GPDriver nextBand x 7, y 6, width 128, height 19
GPJob imageable area left 18, top 3, right 594, bottom 759
GPJob raw image dimensions left 7, top 6, width 128, height 19
GPJob image dimensions left 0, top 0, width 151, height 26
GPJob image dimensions in 1/72 Inches:
left 0, top 0, width 72, height 12
GPJob Gutenprint Error: Top margin must not be less than 3
Left margin must not be less than 18

GPJob PrintPage: invalid variables

If I increase the margins to an inch all round, we get data sent to the printer.

comment:5 Changed 9 years ago by myob

Summary: Gutenprint (possibly all libprint) drivers 'detect' non-responsive printer on JetDirect transportsGutenprint drivers report undersized margins as "printer not responding"

I've just tested this over a USB connection and its not JetDirect related at all. I didn't realise the printer *had* USB as it was taped over.

There's a seperate problem with JetDirect that I'll report in a new ticket, I'm changing the title here to reflect the actual problem with margins.

comment:6 Changed 9 years ago by laplace

The problem should have been fixed in hrev39734. From the log I can see that you used a version before hrev39733. Can you test with a current build?

comment:7 Changed 8 years ago by humdinger

Owner: changed from laplace to nobody
Status: newassigned

Is this still valid?

comment:8 Changed 6 years ago by cian

Works with an extremely similar printer under A4.1, so I suspect that was the issue

comment:9 Changed 6 years ago by axeld

Resolution: fixed
Status: assignedclosed

Thanks for the update!

Note: See TracTickets for help on using tickets.