HP LaserJet P1006 / P1008 :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
P1006 - printing in 600x600dpi is corrupted
Posted by: thiemel ()
Date: June 19, 2008 07:23PM

Hi,
few minutes ago I installed your driver and tested my newly bouhgt printer :-)

When I print with 1200x600 dpi resolution, everythink is OK
When I print with 600x600 dpi resolution, it seems, there is almost nothing printed - (almost) horizontal lines are printed, but everything else not.
I tried different settings, but 600x600 always "fails".


FOO2ZJS kernel listing (some last lines):
Jun 20 00:08:15 gate1 /etc/hotplug/usb/hpljP1006: foo2zjs: loading HP LaserJet P1006 firmware /usr/share/foo2xqx/firmware/sihpP1006.dl to /dev/usb/lp0 ...
Jun 20 00:08:15 gate1 /etc/hotplug/usb/hpljP1006: foo2zjs: ... download successful.
Jun 20 00:08:26 gate1 foo2xqx-wrapper: foo2xqx-wrapper -r1200x600 -p9 -s7 -m1 -d2 -n1
Jun 20 00:08:27 gate1 foo2xqx-wrapper: gs -sPAPERSIZE=a4 -g9920x7016 -r1200x600 -sDEVICE=pbmraw -dCOLORSCREEN -dMaxBitmap=500000000
Jun 20 00:08:27 gate1 foo2xqx-wrapper: foo2xqx -r1200x600 -g9920x7016 -p9 -m1 -n1 -d2 -s7 -u 176x84 -l 176x84
Jun 20 00:19:22 gate1 foo2xqx-wrapper: foo2xqx-wrapper -r600x600 -p9 -s7 -m1 -d1 -n1
Jun 20 00:19:22 gate1 foo2xqx-wrapper: gs -sPAPERSIZE=a4 -g4960x7016 -r600x600 -sDEVICE=pbmraw -dCOLORSCREEN -dMaxBitmap=500000000
Jun 20 00:19:22 gate1 foo2xqx-wrapper: foo2xqx -r600x600 -g4960x7016 -p9 -m1 -n1 -d1 -s7 -u 88x84 -l 88x84
Jun 20 00:25:18 gate1 foo2xqx-wrapper: foo2xqx-wrapper -r600x600 -p9 -s7 -m1 -d1 -n1
Jun 20 00:25:18 gate1 foo2xqx-wrapper: gs -sPAPERSIZE=a4 -g4960x7016 -r600x600 -sDEVICE=pbmraw -dCOLORSCREEN
Jun 20 00:25:18 gate1 foo2xqx-wrapper: foo2xqx -r600x600 -g4960x7016 -p9 -m1 -n1 -d1 -s7 -u 88x84 -l 88x84
Jun 20 00:25:32 gate1 foo2xqx-wrapper: foo2xqx-wrapper -r1200x600 -p9 -s7 -m1 -d1 -n1
Jun 20 00:25:33 gate1 foo2xqx-wrapper: gs -sPAPERSIZE=a4 -g9920x7016 -r1200x600 -sDEVICE=pbmraw -dCOLORSCREEN
Jun 20 00:25:33 gate1 foo2xqx-wrapper: foo2xqx -r1200x600 -g9920x7016 -p9 -m1 -n1 -d1 -s7 -u 176x84 -l 176x84
Jun 20 00:27:42 gate1 foo2xqx-wrapper: foo2xqx-wrapper -t -r1200x600 -p9 -s7 -m0 -d1 -n1
Jun 20 00:27:43 gate1 foo2xqx-wrapper: gs -sPAPERSIZE=a4 -g9920x7016 -r1200x600 -sDEVICE=pbmraw -dCOLORSCREEN
Jun 20 00:27:43 gate1 foo2xqx-wrapper: foo2xqx -r1200x600 -g9920x7016 -p9 -m0 -n1 -d1 -s7 -u 176x84 -l 176x84 -t
Jun 20 00:27:59 gate1 foo2xqx-wrapper: foo2xqx-wrapper -t -r600x600 -p9 -s7 -m0 -d1 -n1
Jun 20 00:28:00 gate1 foo2xqx-wrapper: gs -sPAPERSIZE=a4 -g4960x7016 -r600x600 -sDEVICE=pbmraw -dCOLORSCREEN
Jun 20 00:28:00 gate1 foo2xqx-wrapper: foo2xqx -r600x600 -g4960x7016 -p9 -m0 -n1 -d1 -s7 -u 88x84 -l 88x84 -t
Jun 20 00:31:21 gate1 foo2xqx-wrapper: foo2xqx-wrapper -r600x600 -p9 -s7 -m0 -d1 -n1
Jun 20 00:31:22 gate1 foo2xqx-wrapper: gs -sPAPERSIZE=a4 -g4960x7016 -r600x600 -sDEVICE=pbmraw -dCOLORSCREEN
Jun 20 00:31:22 gate1 foo2xqx-wrapper: foo2xqx -r600x600 -g4960x7016 -p9 -m0 -n1 -d1 -s7 -u 88x84 -l 88x84
Jun 20 00:48:51 gate1 /etc/hotplug/usb/hpljP1006: foo2zjs: loading HP LaserJet P1006 firmware /usr/share/foo2xqx/firmware/sihpP1006.dl to /dev/usb/lp0 ...
Jun 20 00:48:51 gate1 /etc/hotplug/usb/hpljP1006: foo2zjs: ... download successful.
Jun 20 00:51:24 gate1 foo2xqx-wrapper: foo2xqx-wrapper -r1200x600 -p9 -s7 -m1 -d1 -n1
Jun 20 00:51:27 gate1 foo2xqx-wrapper: gs -sPAPERSIZE=a4 -g9920x7016 -r1200x600 -sDEVICE=pbmraw -dCOLORSCREEN
Jun 20 00:51:27 gate1 foo2xqx-wrapper: foo2xqx -r1200x600 -g9920x7016 -p9 -m1 -n1 -d1 -s7 -u 176x84 -l 176x84

root@gate1:~# date
Fri Jun 20 01:20:42 CEST 2008

root@gate1:~# foo2zjs -V
$Id: foo2zjs.c,v 1.82 2007/12/09 06:57:03 rick Exp $

root@gate1:~# cat /etc/issue.net
Debian GNU/Linux 4.0

root@gate1:~# uname -a
Linux gate1 2.6.18-amd64x2-3800+ #1 SMP Mon May 19 15:19:01 CEST 2008 x86_64 GNU/Linux

root@gate1:~# usb_printerid /dev/usb/lp0
GET_DEVICE_ID string:
MFG:Hewlett-Packard;MDL:HP LaserJet P1006;CMD:HBS,PJL,ACL;CLS:PRINTER;DES:HP LaserJet P1006;FWVER:20080415;

root@gate1:~# lsusb -v
Bus 006 Device 023: ID 03f0:3e17 Hewlett-Packard
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x03f0 Hewlett-Packard
idProduct 0x3e17
bcdDevice 1.00
iManufacturer 1 Hewlett-Packard
iProduct 2 HP LaserJet P1006
iSerial 3 AB0B4LL
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 98mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 7 Printer
bInterfaceSubClass 1 Printer
bInterfaceProtocol 2 Bidirectional
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0001
Self Powered


Thanks for any advice, what can be wrong...

Tomas



Edited 1 time(s). Last edit at 06/19/2008 07:30PM by thiemel.

Options: ReplyQuote
Re: P1006 - printing in 600x600dpi is corrupted
Posted by: rickrich ()
Date: June 19, 2008 07:51PM

Use 1200x600.

Options: ReplyQuote
Re: P1006 - printing in 600x600dpi is corrupted
Posted by: thiemel ()
Date: June 29, 2008 07:35AM

Yes, I'm using 1200x600 right now - I've no other choice.
But I like things to work fine... So I reported this "bug" - you can fix it, when you'll have some "spare time" and good mood to do it ;-)

Options: ReplyQuote
Re: P1006 - printing in 600x600dpi is corrupted
Posted by: djgera ()
Date: August 16, 2008 02:54AM

Same problem here.

1200x600 print OK
600x600 print BAD.

MFG:Hewlett-Packard;MDL:HP LaserJet P1006;CMD:HBS,PJL,ACL;CLS:PRINTER;DES:HP LaserJet P1006;FWVER:20080415;

$Id: foo2xqx-wrapper.in,v 1.27 2008/02/16 15:30:20 rick Exp $
$Id: foo2xqx.c,v 1.18 2007/12/09 06:57:03 rick Exp $
$Id: foo2zjs-pstops.sh,v 1.12 2008/04/30 13:00:01 rick Exp $

Options: ReplyQuote
Re: P1006 - printing in 600x600dpi is corrupted
Posted by: djgera ()
Date: August 16, 2008 05:35AM

Hi,

I test from winxp in a VM to print to a file a pdf file, and next decode it with xqxdecode.

When cat linux-600.prn > /dev/usb/lp0 ; print BAD.
When cat windows-600.prn > /dev/usb/lp0 ; print OK.

When print in 1200x600 in Linux and Windows, outputs files look equal in resolution numbers.

Here is xqxdecode from the foo2xqx: (Linux) 600x600dpi

\033%-12345X@PJL JOB
@PJL SET JAMRECOVERY=OFF
@PJL SET DENSITY=3
@PJL SET ECONOMODE=OFF
@PJL SET RET=MEDIUM
@PJL INFO STATUS
@PJL USTATUS DEVICE = ON
@PJL USTATUS JOB = ON
@PJL USTATUS PAGE = ON
@PJL USTATUS TIMED = 30
@PJL SET JOBATTR="JobAttr4=20080816060717"
\033%-12345
XQX_MAGIC, 0x5851582c (,XQX)
XQX_START_DOC(1), 7 items
        XQXI_0x80000000, 84 (0x54)
        XQXI_0x10000005, 1 (0x1)
        XQXI_0x10000001, 0 (0x0)
        XQXI_DMDUPLEX, 0 (0x0)
        XQXI_0x10000000, 0 (0x0)
        XQXI_0x10000003, 1 (0x1)
        XQXI_END, -559038737 (0xdeadbeef)
XQX_START_PAGE(3), 15 items [Page 1]
        XQXI_0x80000000, 180 (0xb4)
        XQXI_0x20000005, 1 (0x1)
        XQXI_DMDEFAULTSOURCE, 7 (0x7)
        XQXI_DMMEDIATYPE, 1 (0x1)
        XQXI_0x20000007, 1 (0x1)
        XQXI_RESOLUTION_X, 600 (0x258)
        XQXI_RESOLUTION_Y, 600 (0x258)
        XQXI_RASTER_X, 4864 (0x1300)
        XQXI_RASTER_Y, 6848 (0x1ac0)
        XQXI_VIDEO_BPP, 1 (0x1)
        XQXI_VIDEO_X, 4784 (0x12b0)
        XQXI_VIDEO_Y, 6848 (0x1ac0)
        XQXI_ECONOMODE, 0 (0x0)
        XQXI_DMPAPER, 9 (0x9)
        XQXI_END, -559038737 (0xdeadbeef)
XQX_START_PLANE(5), 4 items
        XQXI_0x80000000, 64 (0x40)
        XQXI_0x40000000, 0 (0x0)
        XQXI_BIH(0x40000002)
                DL = 0, D = 0, P = 1, - = 0, XY = 4864 x 6848
                L0 = 128, MX = 16, MY = 0
                Order   = 3  ILEAVE SMID
                Options = 92  LRLTWO TPDON TPBON DPON
                54 stripes, 0 layers, 1 planes

        XQXI_END, -559038737 (0xdeadbeef)
XQX_JBIG(7), 1731 items
XQX_END_PLANE(6), 0 items
XQX_END_PAGE(4), 0 items
XQX_END_DOC(2), 0 items
Total size: 1731 bytes
\033%-12345X@PJL EOJ
\033%-12345X



And here is xqxdecode from .prn file from windows. 600x600dpi

\033%-12345X@PJL JOB
@PJL SET JAMRECOVERY=OFF
@PJL SET DENSITY=3
@PJL SET ECONOMODE=OFF
@PJL SET RET=MEDIUM
@PJL INFO STATUS
@PJL USTATUS DEVICE = ON
@PJL USTATUS JOB = ON
@PJL USTATUS PAGE = ON
@PJL USTATUS TIMED = 30
@PJL SET JOBATTR="JobAttr4=20080816060000"
12345
\033%-12345
XQX_MAGIC, 0x5851582c (,XQX)
XQX_START_DOC(1), 7 items
        XQXI_0x80000000, 84 (0x54)
        XQXI_0x10000005, 1 (0x1)
        XQXI_0x10000001, 0 (0x0)
        XQXI_DMDUPLEX, 0 (0x0)
        XQXI_0x10000000, 0 (0x0)
        XQXI_0x10000003, 1 (0x1)
        XQXI_END, -559038737 (0xdeadbeef)
XQX_START_PAGE(3), 15 items [Page 1]
        XQXI_0x80000000, 180 (0xb4)
        XQXI_0x20000005, 1 (0x1)
        XQXI_DMDEFAULTSOURCE, 7 (0x7)
        XQXI_DMMEDIATYPE, 1 (0x1)
        XQXI_0x20000007, 1 (0x1)
        XQXI_RESOLUTION_X, 600 (0x258)
        XQXI_RESOLUTION_Y, 400 (0x190)
        XQXI_RASTER_X, 9600 (0x2580)
        XQXI_RASTER_Y, 6848 (0x1ac0)
        XQXI_VIDEO_BPP, 2 (0x2)
        XQXI_VIDEO_X, 4784 (0x12b0)
        XQXI_VIDEO_Y, 6848 (0x1ac0)
        XQXI_ECONOMODE, 0 (0x0)
        XQXI_DMPAPER, 9 (0x9)
        XQXI_END, -559038737 (0xdeadbeef)
XQX_START_PLANE(5), 4 items
        XQXI_0x80000000, 64 (0x40)
        XQXI_0x40000000, 0 (0x0)
        XQXI_BIH(0x40000002)
                DL = 0, D = 0, P = 1, - = 0, XY = 9600 x 6848
                L0 = 128, MX = 12, MY = 0
                Order   = 3  ILEAVE SMID
                Options = 92  LRLTWO TPDON TPBON DPON
                54 stripes, 0 layers, 1 planes

        XQXI_END, -559038737 (0xdeadbeef)
XQX_JBIG(7), 2783 items
XQX_END_PLANE(6), 0 items
XQX_END_PAGE(4), 0 items
XQX_END_DOC(2), 0 items
Total size: 2783 bytes
\033%-12345X@PJL EOJ
\033%-12345X



Edited 1 time(s). Last edit at 08/16/2008 05:39AM by djgera.

Options: ReplyQuote
Re: P1006 - printing in 600x600dpi is corrupted
Posted by: rickrich ()
Date: August 16, 2008 06:04AM

Use 1200x600.

Options: ReplyQuote
Re: P1006 - printing in 600x600dpi is corrupted
Posted by: djgera ()
Date: August 17, 2008 07:46PM

(Sorry My english)

Yes, but i have interested, in debugging why don't work with foo2xqx.

I realice some test with varius parameters of foo2xqx. I Will be look at source code.

I called attention, the diference of resolutions and raster, from the output xqx in Windows.

Can be these diferecences the problem?

        XQXI_RESOLUTION_X, 600 (0x258)
        XQXI_RESOLUTION_Y, 600 (0x258)
        XQXI_RASTER_X, 4864 (0x1300)
        XQXI_RASTER_Y, 6848 (0x1ac0)


        XQXI_RESOLUTION_X, 600 (0x258)
        XQXI_RESOLUTION_Y, 400 (0x190)
        XQXI_RASTER_X, 9600 (0x2580)
        XQXI_RASTER_Y, 6848 (0x1ac0)

Thanks in advance.

Options: ReplyQuote
Re: P1006 - printing in 600x600dpi is corrupted
Posted by: rickrich ()
Date: August 17, 2008 08:30PM

I will put 1200x600 as the ONLY option for P1006 etc. There is no difference for 600x600 and 1200x600.

Options: ReplyQuote
Re: P1006 - printing in 600x600dpi is corrupted
Posted by: djgera ()
Date: August 17, 2008 11:05PM

OK.

Yes there is a difference when print graphics:
For example, if your print 1 dregree radial lines in 600x600 all lines are printed OK, but if print with 1200x600 (with foo2xqx), the lines that aproaches to the vertical line are printed with poor quality (angle: 30 grades), the rest is OK.

I configured the printer with hplip, for printing with 600x600.

Thanks.

Options: ReplyQuote
Re: P1006 - printing in 600x600dpi is corrupted
Posted by: rickrich ()
Date: August 17, 2008 11:30PM

Sorry. Works fine here. hplip is not Open Source.

Options: ReplyQuote
Re: P1006 - printing in 600x600dpi is corrupted
Posted by: Foks ()
Date: January 14, 2013 04:36PM

There IS a difference. 600dpi prints twice faster than 1200. It should be easy to fix if the wrong resolution is actual problem.

Options: ReplyQuote
Re: P1006 - printing in 600x600dpi is corrupted
Posted by: Foks ()
Date: January 16, 2013 05:30PM

Sorry, I forgot to say, that I have P1005, not P1006. But the problem is the same. It would be nice to have an ability to print in 600x400 resolution.

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.