#938989 printer-driver-oki: Duplex option not working with OKI B401dn

#938989#5
Date:
2019-08-29 19:30:02 UTC
From:
To:
Dear Maintainer,

the "Duplex" option of the printer driver seems to be ignored with my OKI B401dn printer, e.g. when printing from Libreoffice or Evince.

Apparently, the option *is* passed to the driver script /usr/lib/cups/filter/rastertookimonochrome.  For testing, I added the line

         exec > /tmp/OKI_OUT 2> /tmp/OKI_ERR

at the very beginning, which dumps the following into /tmp/OKI_ERR:

<snip>
INFO: options = [Duplex=DuplexNoTumble InputSlot=Upper PageSize=A4 job-uuid=urn:uuid:2d08834f-7e7e-37b8-5192-9f4efb9ee1f8 job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1567105220 time-at-processing=1567105220 document-name-supplied=eEg7Gt]
INFO: Unkown option = [Duplex=DuplexNoTumble]
INFO: Unkown option = [InputSlot=Upper]
INFO: Unkown option = [job-uuid=urn:uuid:2d08834f-7e7e-37b8-5192-9f4efb9ee1f8]
INFO: Unkown option = [job-originating-host-name=localhost]
INFO: Unkown option = [date-time-at-creation=]
INFO: Unkown option = [date-time-at-processing=]
INFO: Unkown option = [time-at-creation=1567105220]
INFO: Unkown option = [time-at-processing=1567105220]
INFO: Unkown option = [document-name-supplied=eEg7Gt]
</snip>

On an other (Ubuntu) box, I have a /very/ old Oki PPD (ok400pcl.ppd, Version 1.3, Date 10/15/2008; I don't recall from where I got it) which *does* support Duplex in combination with the (different) rastertookimonochrome script for the aforementioned documents.  However, the printout margins are wrong there, so I would prefer to use the official Debian package.

Any idea how I could fix the issue?

Thanks in advance,
Albrecht.

#938989#10
Date:
2019-09-01 12:22:08 UTC
From:
To:
Hi,

comparing the file OK400PCL.ppd with other ppd's, I noticed an odd extra parameter for Duplex.  Applying the following patch:

<snip>
--- /usr/share/ppd/okidata/OK400PCL.ppd.orig    2019-09-01 13:28:57.087482158 +0200
+++ /usr/share/ppd/okidata/OK400PCL.ppd 2019-09-01 13:29:42.562208160 +0200
@@ -238,17 +238,17 @@
  *DefaultDuplex: None
  *Duplex None/None: "
   <<
- /Duplex false /Tumble false /Policies << /Duplex 2 >>
+ /Duplex false /Tumble false
   >> setpagedevice"
  *End
  *Duplex DuplexNoTumble/Long-Edge Binding: "
   <<
- /Duplex true /Tumble false /Policies << /Duplex 2 >>
+ /Duplex true /Tumble false
   >> setpagedevice"
  *End
  *Duplex DuplexTumble/Short-Edge Binding: "
   <<
- /Duplex true /Tumble true /Policies << /Duplex 2 >>
+ /Duplex true /Tumble true
   >> setpagedevice"
  *End
  *CloseUI: *Duplex
</snip>

seems to be /half/ of the solution:

After re-installing the printer, duplex printing works, but /only/ with long-edge binding.  Selecting short-edge binding also prints duplex, but again with long-edge binding, i.e. the “/Tumble true” setting seems to be ignored.  I rarely use that option, but it should work, too…

Thanks,
Albrecht.

#938989#15
Date:
2022-04-06 19:27:23 UTC
From:
To:
Hi Albrecht,

Thank you for the fix. I've forwarded it upstream, but I'm upstream
and I have little clue if this fix is correct. :-(
I created the upstream repository just for publicly archiving the PPD
files which were hard to find and now the can be useful for other
distributions there, as well.

If I get no feedback I plan merging the change in a few months and
updating the package in Debian.

Cheers,
Balint

#938989#26
Date:
2025-01-13 11:35:45 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
printer-driver-oki, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 938989@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Balint Reczey <balint@balintreczey.hu> (supplier of updated printer-driver-oki package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 13 Jan 2025 11:35:45 +0100
Source: printer-driver-oki
Built-For-Profiles: noudeb
Architecture: source
Version: 1.0.2-1
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Balint Reczey <balint@balintreczey.hu>
Closes: 938989
Changes:
 printer-driver-oki (1.0.2-1) unstable; urgency=medium
 .
   * ACK NMU
   * New upstream release (Closes: #938989)
   * debian/control: Update using cme fix
     - Bump standards and debhelper version
     - Reorder tags
   * Orphaning the package
 .
   [ Jelmer Vernooij ]
   * Migrate repository from alioth to salsa.
Checksums-Sha1:
 a58a4a10dc44dc9324fd01d17237b99f9a750e09 1949 printer-driver-oki_1.0.2-1.dsc
 070e55dd3b97db81f50bfc3e40f88a6c2820d98a 159957 printer-driver-oki_1.0.2.orig.tar.gz
 094d818163279957beba71b8627619d8d17e9c33 2016 printer-driver-oki_1.0.2-1.debian.tar.xz
 54083b2a2bbae74793765f48a060821f71b15def 8612 printer-driver-oki_1.0.2-1_source.buildinfo
Checksums-Sha256:
 5f4e84ac32d944698cf40e0a2a31a660105d07362c9a779f29be787b5025a7c9 1949 printer-driver-oki_1.0.2-1.dsc
 af247dd1cfed1d7417c026d539b41e3e20c5ce3837598feac155f419a980fe66 159957 printer-driver-oki_1.0.2.orig.tar.gz
 1db740d251a90c10960f52373525c327b9c48888df3c2ea8b583e85b7fa08eaa 2016 printer-driver-oki_1.0.2-1.debian.tar.xz
 570f7077ad088b2a5b553129960907709a17f664b1d760d724f793e899d0b767 8612 printer-driver-oki_1.0.2-1_source.buildinfo
Files:
 fb637c60c9e2860fcaa182196dc8a078 1949 text optional printer-driver-oki_1.0.2-1.dsc
 fbafb9fd627679e188490e295f7804c3 159957 text optional printer-driver-oki_1.0.2.orig.tar.gz
 1b3c8881b528751b94e25b89691e772a 2016 text optional printer-driver-oki_1.0.2-1.debian.tar.xz
 457c2ed49ec81088ddfb78bc1db5ee66 8612 text optional printer-driver-oki_1.0.2-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEI/PvTgXX55rLQUfDg6KBkWslS0UFAmeE7egACgkQg6KBkWsl
S0X8Og//ahDW30N6IWcN+NQ93Z16N2PeHtMApPXiChzVX9/Jfsz1wK0IkIr833ch
CuJ5GDMatNdT+FXpK1XJSjpbb2AQEYCqxEDUmfgH6t9vwEtrIKhm0gV3YXpARLd1
6xjYQ4I3E4xaIWw64XN6scUY1CnHPJozV2/HBd7MAWWwJczkwxg3nixd/1JoVTG7
oDGBoYSFpPqMMIvAiJcwSAtYxQVIsS/I5q0SdR5+sO8dvhAfsbDH1ICLkuXKThwO
KGLN2rRwrA6fDkNyP/3n+K36rlNybXWB5NSJJSGMAjZtqlBzL1Gzj6RChddjNPU/
vgir+xg7ChXwISwzgnvlnScBhqHJ8y1OxNrcyyEVQWJQnbNMo7IBGbgiuGiXRqXZ
a04RNsY2Iuf1eAeQ1D0h37CEsxkGHFG+uhP1HM59WrBiLroIZSCTa4JxWD2bEZ4f
3iIS7csgVaVTG8WHjvojvSje08S56phGVL0puHZuT2Kl4upN3SH83Y+C6niSU07Y
QW57QHshlp1g30R2U0H8FeCCUiJyeG9tXuWHAfn41xqnealcc58BZ9abIc9hISAv
+eLHVBU523eaAUIUsw2bf3Rtfcp0UxpD1CzcwSKT6/CdWn7PBZFj+kx1VH5qgHdI
YpEY1iWRLYCvRDl40X+97hu+injvwfx9hpA3k9mE9M1mNjR7jC8=
=6mVP
-----END PGP SIGNATURE-----