[DeskJet 812C] hp-align not working

Asked by Aaron Albright

I'm using an HP DeskJet 812C connected to the parallel port of a Debian
GNU/Linux machine with cupsys 1.2.1-4, hpijs 2.1.10+0.9, and hplip 0.9.11-2.
All packages are binaries from the Debian repository.

The printer has been successfully installed using the hp:/ backend, and the
device URI in CUPS is hp:/par/DESKJET_810C?device=/dev/parport0. The
built-in test page works, and CUPS can produce its test page -- however, all
printouts are unreadable due to what I presume are cartridge alignment
issues.

If I attempt to run hp-align, I get the following:

 0001 # hp-align

 HP Linux Imaging and Printing System (ver. 0.9.11)
 Printer Cartridge Alignment Utility ver. 2.4

 Copyright (c) 2003-6 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:/par/DESKJET_810C?device=/dev/parport0
  [WARNING]: No status available for device.
 An alignment page will be printed.
 Please load plain paper into the printer. Press <Enter> to continue or
 'q' to quit.
  [ERROR]: Channel write error
 Traceback (most recent call last):
   File "/usr/bin/hp-align", line 304, in ?
     bothPensRequired)
   File "/usr/lib/hplip/base/maint.py", line 59, in AlignType2
     alignType2Phase1(dev)
   File "/usr/lib/hplip/base/maint.py", line 419, in alignType2Phase1
     dev.writeEmbeddedPML(pml.OID_AGENT2_VERTICAL_ALIGNMENT, 0)
   File "/usr/lib/hplip/base/device.py", line 1522, in writeEmbeddedPML
     self.printData(data, direct=True)
   File "/usr/lib/hplip/base/device.py", line 1619, in printData
     self.writePrint(data)
   File "/usr/lib/hplip/base/device.py", line 1465, in writePrint
     return self.__writeChannel(self.openPrint, data)
   File "/usr/lib/hplip/base/device.py", line 1497, in __writeChannel
     raise Error(ERROR_DEVICE_IO_ERROR)
 base.g.Error: ('Device I/O error', 12)
-- Passion is inversely proportional to the amount of real information available. - Benford's Law of Controversy

Question information

Language:
English Edit question
Status:
Expired
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#1

This should be fixed in the next release. However here is a workaround:

su
cd /usr/share/hplip/data/xml
gedit models.xml

Locate this section:

<model name="DESKJET_815C">
    <id></id>
    <icon>DESKJET_840C.png</icon>
    <support type="2"/>
    <case-model>
        <model1>Deskjet 815c</model1>
    </case-model>
    <io support="1" mode="0" control="0" mfp-mode="2" scan-port="0"/>
    <align type="2"/>
    <clean type="1"/>
    <color-cal type="0"/>
    <status type="1" battery-check="0" dynamic-counters="0"/>
    <scan type="0"/>
    <fax type="0"/>
    <pcard type="0"/>
    <copy type="0"/>
    <tech class="DJ8xx" type="2"/>
    <embedded-server type="0"/>
    <panel-check type="0"/>
    <linefeed-cal type="0"/>
    <pq-diag type="0"/>
    <r0>
        <agent1 kind="3" type="1" sku="15 (C6615DN)"/>
        <agent2 kind="3" type="2" sku="23 (C1823D)"/>
    </r0>
</model>

Change:

    <io support="1" mode="0" control="0" mfp-mode="2" scan-port="0"/>

TO:

    <io support="1" mode="1" control="0" mfp-mode="2" scan-port="0"/>

Save, Exit, restart HPLIP (/etc/init.d/hplip restart)

hp-align should work.

We are looking into a long term solution as well.

Let me know if you have any problems.

Aaron

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#2

expired