8 Replies Latest reply: Jun 20, 2008 6:36 PM by Matt Broughton
deltatux Level 2 Level 2 (485 points)
Alright, after months of tinkering with CUPS from my experience on Linux, I have figured out how to make my HP Deskjet 722C work with my Mac. I have since created an installer for this solution.

http://computers.kwokinator.com/hpdeskjet722c-osx.html

Hope this helps for those who still has this printer =)!

deltatux

Apple Macbook, Mac OS X (10.4.11), Intel Core 2 Duo 2.16 GHz, 120 GB HDD, 2GB DDR2-667
  • 1. Re: Solution: HP Deskjet 722C & MacOS X
    Matt Broughton Level 5 Level 5 (4,905 points)
    Thanks for posting this. Unfortunately, I don't think just installing the PPD will get the printer working. You also need to install Foomatic-RIP and Ghostscript along with the pnm2ppa filter. The PPD you supply from the OpenPrinting site calls 'pnm2ppa'. This is not a builtin Ghostscript device. It is a Ghostscript filter which must be added seperately. Linux distros almost always come with Foomatic-RIP and Ghostscript, but Mac OS X does not.

    Everything one needs to get the DeskJet 722c to work can be found at _http://www.linux-foundation.org/en/OpenPrinting/MacOSX/pnm2ppa_

    Matt
  • 2. Re: Solution: HP Deskjet 722C & MacOS X
    deltatux Level 2 Level 2 (485 points)
    Matt Broughton wrote:
    Thanks for posting this. Unfortunately, I don't think just installing the PPD will get the printer working. You also need to install Foomatic-RIP and Ghostscript along with the pnm2ppa filter. The PPD you supply from the OpenPrinting site calls 'pnm2ppa'. This is not a builtin Ghostscript device. It is a Ghostscript filter which must be added seperately. Linux distros almost always come with Foomatic-RIP and Ghostscript, but Mac OS X does not.

    Everything one needs to get the DeskJet 722c to work can be found at _http://www.linux-foundation.org/en/OpenPrinting/MacOSX/pnm2ppa_

    Matt


    Unfortunately, that package is only for Macs w/ PPC processor. My script is Universal. Ghostscript and Foomatic are preinstalled on MacOS X Leopard. I haven't had to install anything else before executing that script I wrote.

    EDIT: I have since re-released the package for MacOS X Leopard only since I'm not sure if Tiger works with it with the uncertainty of Ghostscript and Foomatic-RIP. Foomatic is also included just in case users need it. Ghostscript is preinstalled so I don't need to prepackage it.
  • 3. Re: Solution: HP Deskjet 722C & MacOS X
    Matt Broughton Level 5 Level 5 (4,905 points)
    deltatux wrote:
    Unfortunately, that package is only for Macs w/ PPC processor. My script is Universal.


    Which will work just fine with Intel Macs under Rosetta. The user will not have to do anything special. I do realize that your script is Uninversal. All shell scripts are Universal just as PPDs are Uninversal. They are text files that know no architecture.

    Ghostscript and Foomatic are preinstalled on MacOS X Leopard.


    That is news to me. What version of Ghostscript is installed? What installer package on the install disk contains Ghostscript and Foomatic-RIP?

    I haven't had to install anything else before executing that script I wrote.


    The Foomatic command line in the PPD you provide is as follows --
    <pre style="overflow: auto;font-size:small; font-family: Monaco, 'Courier New', Courier, monospace; color: #222; background: #ddd; padding: .3em .8em .3em .8em; font-size: 9px;">*FoomaticRIPCommandLine: "gs -q -dNOPAUSE -dPARANOIDSAFER -dBATCH -r60&&
    0%A%Z -sOutputFile=- - | pnm2ppa%C%B -i - -o -"</pre>

    Where is the Ghostscript filter pnm2ppa installed on your computer and how did it get installed?

    It is great if things are working fine for you. I'm just trying to determine where all the extra parts that are necessary are coming from.
  • 4. Re: Solution: HP Deskjet 722C & MacOS X
    deltatux Level 2 Level 2 (485 points)
    I'm not sure, The Mac Installer disc comes with Gutenprint that is installed automatically, it comes with Foomatic and Ghostscript in the package.

    The package you provided are for older Macs not running Leopard.
  • 5. Re: Solution: HP Deskjet 722C & MacOS X
    Matt Broughton Level 5 Level 5 (4,905 points)
    deltatux wrote:
    I'm not sure, The Mac Installer disc comes with Gutenprint that is installed automatically, it comes with Foomatic and Ghostscript in the package.


    No, the Gutenprint driver package does not contain Foomatic or Ghostscript. The Gutenprint drivers in OS X do not need or use Foomatic or Ghostscript in Leopard. Ghostscript is only needed with the Gutenprint drivers in OS X 10.2.x with certain print jobs.

    The package you provided are for older Macs not running Leopard.


    The package I mentioned works fine on any Mac (PPC or Intel) that is running OS X 10.2.x through the current version of OS X 10.5.x. I have just completed a setting up a printer to print to file using the package I cited on the OpenPrinting site. I am using an Intel Core2Duo mini running OS X 10.5.2. I set the CUPS log level to debug. When I tried printing a job, it completed properly. The CUPS error_log shows--
    <pre style="overflow: auto;font-size:small; font-family: Monaco, 'Courier New', Courier, monospace; color: #222; background: #ddd; padding: .3em .8em .3em .8em; font-size: 9px;">D [24/May/2008:11:29:31 -0500] [Job 198] KID4 finished
    D [24/May/2008:11:29:31 -0500] [Job 198] KID3 exited with status 0
    D [24/May/2008:11:29:31 -0500] [Job 198] KID4 exited with status 0
    D [24/May/2008:11:29:31 -0500] [Job 198] Renderer exit stat: 0
    D [24/May/2008:11:29:31 -0500] [Job 198] KID3 finished
    D [24/May/2008:11:29:31 -0500] [Job 198] Renderer process finished
    D [24/May/2008:11:29:31 -0500] [Job 198]
    D [24/May/2008:11:29:31 -0500] [Job 198] Closing foomatic-rip.
    D [24/May/2008:11:29:31 -0500] PID 574 (/usr/libexec/cups/filter/foomatic-rip) exited with no errors.
    D [24/May/2008:11:29:31 -0500] [Job 198] File 0 is complete.
    </pre>

    If I follow the instructions in your download, the print job fails. The CUPS error_log shows --
    <pre style="overflow: auto;font-size:small; font-family: Monaco, 'Courier New', Courier, monospace; color: #222; background: #ddd; padding: .3em .8em .3em .8em; font-size: 9px;">D [24/May/2008:10:23:12 -0500] [Job 196] sh: pnm2ppa: command not found
    D [24/May/2008:10:23:12 -0500] [Job 196] foomatic-gswrapper: gs '-dNOPAUSE' '-dPARANOIDSAFER' '-dBATCH' '-r600' '-sDEVICE=ppmraw' '-sOutputFile=/dev/fd/3' '-_' 3>&1 1>&2
    D [24/May/2008:10:23:12 -0500] [Job 196] sh: gs: command not found
    D [24/May/2008:10:23:12 -0500] [Job 196] renderer return value: 127
    </pre>

    If I manually add Ghostscript, the software in your download still fails due to lack of the pnm2ppa filter. The CUPS error_log shows --
    <pre style="overflow: auto;font-size:small; font-family: Monaco, 'Courier New', Courier, monospace; color: #222; background: #ddd; padding: .3em .8em .3em .8em; font-size: 9px;">D [24/May/2008:11:24:13 -0500] [Job 197] sh: pnm2ppa: command not found

    . . .

    D [24/May/2008:11:24:14 -0500] [Job 197] Process dying with "The renderer command line returned an unrecognized error code 127.", exit stat: 1
    </pre>

    As I mentioned before, I am glad that you have your printer working. I suspect that you are using the driver from the Windows shared printer as your directions include instructions for adding the printer as a shared Windows printer.

    I do not wish to discourage anyone from providing help to others. In this case, however, either I am reading your instructions completely wrong, or what is contained in your download as currently presented will not enable the DeskJet 722C to work if it is connected directly to a Mac.

    Matt
  • 6. Re: Solution: HP Deskjet 722C & MacOS X
    Matt Broughton Level 5 Level 5 (4,905 points)
    deltatux wrote:
    The package you provided are for older Macs not running Leopard.


    The Mac OS X package for the pnm2ppa driver has now been updated to be a Universal Binary. _http://www.linuxfoundation.org/en/OpenPrinting/MacOSX/pnm2ppa_

    Matt
  • 7. Re: Solution: HP Deskjet 722C & MacOS X
    russgladd Level 1 Level 1 (0 points)
    Is there a driver to install a 722c deskjet for os 10.4?

    I'm not aware / educated on how to use the gplgs-8.61-ub.dmg file.
  • 8. Re: Solution: HP Deskjet 722C & MacOS X
    Matt Broughton Level 5 Level 5 (4,905 points)
    russgladd wrote:
    Is there a driver to install a 722c deskjet for os 10.4?


    You can use the same driver that is used for OS X 10.5.x.

    I'm not aware / educated on how to use the gplgs-8.61-ub.dmg file.


    Go to _http://www.linuxfoundation.org/en/OpenPrinting/MacOSX/pnm2ppa_. Click on the links to download the pnm2ppa-1.12-3-ub.dmg, foomatic-rip-2008-01-30.dmg, and the gplgs-8.61-ub.dmg.

    After you download the files, you need to double click on them. This will "mount" what appears to be another disk on your computer. On these disks there will be installers. You need to double click the installers to actually install the software. I would suggest that you do the Foomatic-RIP (foomatic-rip-2008-01-30.dmg) software first, followed by the Ghostscript (gplgs-8.61-ub.dmg) software, and finally the pnm2ppa (pnm2ppa-1.12-3-ub.dmg) software.

    Once you have run the three installers, you will need to add the printer using Printer Setup Utility. There are basic instructions for how to do this on the OpenPrinting web page. These instructions are also included in the ReadMe for the pnm2ppa driver package.

    Matt