Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

After upgrading my main Debian box from squeeze to wheezy recently, I couldn't set the option for my printer's halftoning algorithm any more. It appears that the upgrade of cups that happened during the dist upgrade has dumbed down my printer's ppd file.

How do I get this option back?

share|improve this question
    
Um; Debian Lenny (Debian 5.0) predates Squeeze (Debian 6.0). Wikipedia: Debian: History: 2005-Present or the authoritative source Debian Releases. So just what kind of "upgrade" did you perform? –  Michael Kjörling May 27 '13 at 12:37
    
@MichaelKjörling Sorry, this should have been wheezy, not lenny. I have corrected the mistake. It really was an upgrade, not an "upgrade" ;-) –  zebonaut May 27 '13 at 12:44
add comment

1 Answer

up vote 1 down vote accepted

This is what fixed it:

Open the printer's ppd file /etc/cups/ppd/HP_LaserJet_IIIp.ppd.

Find the part with all the available options like paper size and resolution.

Insert this snippet:

*OpenUI *HalftoningAlgorithm/Halftoning Algorithm: PickOne
*OrderDependency: 1000 PageSetup *HalftoningAlgorithm
*DefaultHalftoningAlgorithm: Standard
*HalftoningAlgorithm Accurate/Accurate: "
      << /UseWTS false >> setuserparams
      <<
        /AccurateScreens true
        /HalftoneType 1
        /HalftoneName (Round Dot Screen)
        /SpotFunction { 180 mul cos exch 180 mul cos add 2 div}
        /Frequency 137
        /Angle 37
      >> sethalftone
    "
*End
*HalftoningAlgorithm Standard/Standard: ""
*HalftoningAlgorithm WTS/Well-Tempered Screening: "
      << /UseWTS true >> setuserparams
      <<
        /AccurateScreens true
        /HalftoneType 1
        /HalftoneName (Round Dot Screen)
        /SpotFunction { 180 mul cos exch 180 mul cos add 2 div}
        /Frequency 137
        /Angle 37
      >> sethalftone
    "
*End
*CloseUI: *HalftoningAlgorithm 

(Source)

... and the menu item for setting the halftoning algorithm will show up again, both in applications and in the cups configuration itself, where the default can be set to "accurate".

Why it was removed from the ppd file in the first place, however, remains a mystery.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.