[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#627542: foo2zjs: Duplex printing option gone



tag 627542 + patch
thanks

On Wed, 2011-05-25 at 11:38 +0200, Didier Raboud wrote:
> Hunting your bug is not easy as upstream doesn't have a public VCS (so we have 
> to work on big patches and make wild guesses). Furthermore, Debian has seen no 
> version between 20090908 and 20110210, so we don't have much data.
> 
> But… I tried a simple patch (attached), that only re-introduces the Duplex 
> option in the PPD. a package built with this package is available there: 
> 
> http://azrael.raboud.homelinux.org/~didier/Debian/packages/foo2zjs/627542/foo2zjs_20110210dfsg-2+OdyX0~627542~attempt0_amd64.deb
> 
> Could you try it and report back if it does work as expected ?

I have now (finally!) tried that patch and it does work. Thanks very
much for working out how to re-enable the option.

FYI, I had to modify the printer's PPD to get CUPS to recognise the new
option, even though the update mechanism appeared to be triggered:

        # dpkg -i foo2zjs_20110811dfsg*.deb
        (Reading database ... 223472 files and directories currently installed.)
        Preparing to replace foo2zjs 20110811dfsg-1 (using foo2zjs_20110811dfsg-1sam1_amd64.deb) ...
        Unpacking replacement foo2zjs ...
        Setting up foo2zjs (20110811dfsg-1sam1) ...
        Processing triggers for man-db ...
        Processing triggers for cups ...
        Reloading systemd
        Starting cups (via systemctl): cups.service.
        Updating PPD files for foo2zjs ...
        PPD for printer laser updated
        Processing triggers for gnome-menus ...
        Processing triggers for desktop-file-utils ...

When I did so I found that there were two entries in the list of PPDs
for my printer. Digging into this a little further:

        $ /usr/lib/cups/driver/foo2zjs list | grep CLP-300
        "foo2zjs:0/ppd/foo2zjs/Samsung-CLP-300.ppd" en "Samsung" "Samsung CLP-300 Foomatic/foo2qpdl (recommended)" "DRV:Dfoo2qpdl,R1,M0,TF;"
        "foo2zjs:1/ppd/foo2zjs/Samsung-CLP-300.ppd" en "Samsung" "Samsung CLP-300 Foomatic/foo2qpdl (recommended)" "MFG:Samsung;MDL:CLP-300;"
        
        $ diff -u <(/usr/lib/cups/driver/foo2zjs cat foo2zjs:0/ppd/foo2zjs/Samsung-CLP-300.ppd) <(/usr/lib/cups/driver/foo2zjs cat foo2zjs:1/ppd/foo2zjs/Samsung-CLP-300.ppd); echo $?
        0

i.e., both are identical.

> Note that from the upstream changelog, the Duplex option has been removed from 
> some CLP printers in favour of a tool to simulate it (gnome-manual-duplex):
> 
> 2010-06-15
>       * foo2qpdl foomatic-db and PPD files: fix Duplex for clp-6100, clp-610,
>         clp-620. Manual Duplex is no longer supported. Use Gnome-Manual-Duplex
>         instead.
> 
>         Please delete and recreate the Samsung CLP-6?? printers.
> 
> So it might be possible that your bug is actually a desired evolution from 
> upstream.

Ugh, I was afraid of this. Upstream seems to make some... weird
decisions. But for now your patch works.

On Wed, 2011-05-25 at 22:51 +0200, Till Kamppeter wrote:
> Sam, does your printer have a duplex unit? Or was the duplex option in 
> the PPD files only for activating a manual duplex function?

My printer's the Samsung CLP-300 which does not have a duplex unit. So
the option just pauses printing until I put the paper back in and press
the printer's Stop button.

> In the latter case the manual duplex function in the driver was replaced 
> by a GUI tool (gnome-manual-duplex) which helps the user to get through 
> the steps and to turn over the printer pages correctly.
> 
> gnome-manual-duplex is not packaged yet. It needs to be investigated how 
> well it works, whether it supports only local printing or also printing 
> through the network, does not have any security issues, ... and if all 
> is OK it should be packaged.
>
> Re-introducing manual duplex by a patch to the PPD file perhaps will not 
> work as the code for manual duplex can be removed from the driver.

For now the code has not been removed, but I'm going to check out
gnome-manual-duplex in case it is removed some day.

-- 
Sam Morris <https://robots.org.uk/>
3412 EA18 1277 354B 991B  C869 B219 7FDB 5EA0 1078

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: