hp-algin next button doesn't work at the step "E"

Bug #841084 reported by Thibault Lemaitre
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
HPLIP
In Progress
Undecided
Unassigned

Bug Description

the hp-algin tool can't go to the end on my ubuntu 11.04
it stops at the step asking me the E1 - E11 best alignment : i click on the next button and nothing happens.

the terminal told me what's follow :
thibault@thibault-Latitude-D830:/home/thibault$ hp-align

HP Linux Imaging and Printing System (ver. 3.11.1)
Printer Cartridge Alignment Utility ver. 5.0

Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Traceback (most recent call last):
  File "/usr/share/hplip/ui4/aligndialog.py", line 428, in NextButton_clicked
    self.nextSequence()
  File "/usr/share/hplip/ui4/aligndialog.py", line 458, in nextSequence
    seq(*t)
  File "/usr/share/hplip/ui4/aligndialog.py", line 709, in setXBowValues
    maint.alignType4Phase2(self.dev, self.zca, self.b, self.c, self.d, self.e)
  File "/usr/share/hplip/base/maint.py", line 944, in alignType4Phase2
    dev.printData(ldl.buildSetPrinterAlignmentPacket(k_bidi, hort, vert, cmy_bidi))
  File "/usr/share/hplip/prnt/ldl.py", line 258, in buildSetPrinterAlignmentPacket
    'k_bidi' : k_bidi,
  File "/usr/share/hplip/prnt/ldl.py", line 164, in buildLIDILPacket
    0, 0, operation, 0x0f, *b)
struct.error: ubyte format requires 0 <= number <= 255

Anyone as a solution?

Revision history for this message
Ani Balakrishnan (anib) wrote :

Hi,

Can you please tell the device with which you are trying to do the alignment??

Thanks and Regards
Ani Balakrishnan

Revision history for this message
Thibault Lemaitre (thibault.lemaitre) wrote :

It's a HP deskjet 3420.

Ask me if you need more information : libraries installed, etc.

Revision history for this message
Thibault Lemaitre (thibault.lemaitre) wrote :

I can maybe try with a more recent printer: a HP Photosmart C4480. Is it really useful?

The problem is that I have to use a piece of my old Deskjet to repair my Photosmart and in consequence my Deskjet won't be available for a long time. I would like to finish the Deskjet's cartridges before to do it. Is this try still really useful?

Revision history for this message
Peter (home-jensen) wrote :

Bug also affects : 11:10. Printer psc_1100_series

I downloaded the newest drivers from

http://hplipopensource.com/hplip-web/index.html

The bug still persists.

Output from hp-align.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~#####~~~~~~~~~~~~~~~~~~

hp-align

HP Linux Imaging and Printing System (ver. 3.12.2)
Printer Cartridge Alignment Utility ver. 5.0

Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Using device: hp:/usb/psc_1100_series?serial=MY434G63TYB0

Traceback (most recent call last):
  File "/usr/share/hplip/ui4/aligndialog.py", line 428, in NextButton_clicked
    self.nextSequence()
  File "/usr/share/hplip/ui4/aligndialog.py", line 458, in nextSequence
    seq(*t)
  File "/usr/share/hplip/ui4/aligndialog.py", line 709, in setXBowValues
    maint.alignType4Phase2(self.dev, self.zca, self.b, self.c, self.d, self.e)
  File "/usr/share/hplip/base/maint.py", line 944, in alignType4Phase2
    dev.printData(ldl.buildSetPrinterAlignmentPacket(k_bidi, hort, vert, cmy_bidi))
  File "/usr/share/hplip/prnt/ldl.py", line 258, in buildSetPrinterAlignmentPacket
    'k_bidi' : k_bidi,
  File "/usr/share/hplip/prnt/ldl.py", line 164, in buildLIDILPacket
    0, 0, operation, 0x0f, *b)
struct.error: ubyte format requires 0 <= number <= 255
Traceback (most recent call last):
  File "/usr/share/hplip/ui4/aligndialog.py", line 428, in NextButton_clicked
    self.nextSequence()
  File "/usr/share/hplip/ui4/aligndialog.py", line 458, in nextSequence
    seq(*t)
  File "/usr/share/hplip/ui4/aligndialog.py", line 709, in setXBowValues
    maint.alignType4Phase2(self.dev, self.zca, self.b, self.c, self.d, self.e)
  File "/usr/share/hplip/base/maint.py", line 944, in alignType4Phase2
    dev.printData(ldl.buildSetPrinterAlignmentPacket(k_bidi, hort, vert, cmy_bidi))
  File "/usr/share/hplip/prnt/ldl.py", line 258, in buildSetPrinterAlignmentPacket
    'k_bidi' : k_bidi,
  File "/usr/share/hplip/prnt/ldl.py", line 164, in buildLIDILPacket
    0, 0, operation, 0x0f, *b)
struct.error: ubyte format requires 0 <= number <= 255

Revision history for this message
Peter (home-jensen) wrote :

I added a "print" statement before line 164.

            print "---->",b
            p = struct.pack(fmt, PACKET_FRAME, struct.calcsize(fmt), 0, PACKET_TYPE_COMMAND, command,
                             0, 0, operation, 0x0f, *b)

I got the following output :

----> (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36) # First call to function. At start-up
----> (0, 0, 0, 16, -6, 2, 16, -6, 2, 16, -6, 2, 36) # Second call to function. Negative numbers result in an error.

So the calibration paramaters are negative, and this gives and error.

struct.error: ubyte format requires 0 <= number <= 255

Regards

Peter

Ani Balakrishnan (anib)
Changed in hplip:
status: New → In Progress
Revision history for this message
Thibault Lemaitre (thibault.lemaitre) wrote :

I did a test with a Photosmart c-4400, and hp-align works well. In fact, there was really few steps, because this printer as a scanner and did its alignment oneself. So, there is no step E.

My deskjet 3420 (see comment #2) doesn't work anymore. I can't do more tests.

Revision history for this message
Nicolas Binkowski (argonnate) wrote :

I everyone, i come here because i've the same pb with my HP 3420. i can't align my printer. The last step, next button doesn't work. I try print on Windows and my 3420 let me align her correctly :). printing work fine, so it's not my printer that borken. Someone find a solution??? ( i have Mint 14.1 cinnamon, hplip 3.13.11)

thank :)

Revision history for this message
Nicolas Binkowski (argonnate) wrote :

Please, nobody see this post anymore ? i have really the same pb :

Traceback (most recent call last):
  File "/usr/share/hplip/ui4/aligndialog.py", line 451, in NextButton_clicked
    self.nextSequence()
  File "/usr/share/hplip/ui4/aligndialog.py", line 481, in nextSequence
    seq(*t)
  File "/usr/share/hplip/ui4/aligndialog.py", line 732, in setXBowValues
    maint.alignType4Phase2(self.dev, self.zca, self.b, self.c, self.d, self.e)
  File "/usr/share/hplip/base/maint.py", line 977, in alignType4Phase2
    dev.printData(ldl.buildSetPrinterAlignmentPacket(k_bidi, hort, vert, cmy_bidi))
  File "/usr/share/hplip/prnt/ldl.py", line 258, in buildSetPrinterAlignmentPacket
    'k_bidi' : k_bidi,
  File "/usr/share/hplip/prnt/ldl.py", line 164, in buildLIDILPacket
    0, 0, operation, 0x0f, *b)
struct.error: ubyte format requires 0 <= number <= 255

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.