lpr -o sides=one-sided HAS NO EFFECT

Bug #47263 reported by Wayne Schuller
30
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cupsys (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

I have a HP LaserJet 2300 that is capable of duplex printing.

But whenever I print from the command-line it is always duplex.

The ubuntu/cups installed help at: http://localhost:631/help/options.html?QUERY=odd#PAGESET

There they advice the following:
lpr -o sides=one-sided blah.pdf

But this option has no effect. It always gives me duplex when I want one sided.

Please help.

I am using a fairly up to date Ubuntu Dapper (as at May 27th 2006).

But this problem was in Breezy also.

Note: the original reporter indicated the bug was in package 'cups'; however, that package was not published in Ubuntu.

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

What driver do you use, the Postscript (recommended) one?
The HP 2300 probably doesn't support printing option sides=one-sided.

I think this command could do the trick:
$ lpr -o Duplex=None blah.pdf

You can list the options available for you printer with this command:
$ lpoptions -l

Changed in cupsys:
status: Unconfirmed → Needs Info
Revision history for this message
Wayne Schuller (k-wayne) wrote :

thanks for the suggestion of trying:
$ lpr -o Duplex=None blah.pdf

but I had already tried that and it has no effect. You are right, it should work. Is it a bug?!

Yes I am using the recommended postscript driver (part of the reason I bought this model HP was for the postscript feature)

Note that I can control single or duplex using the OOO printer dialog. That works nice.

But I have some scripts where I want to control whether it is single or duplex, and it seems "lpr" doesn't seem to honor the option given...

Here is what my options are:
schuller@homoousion:~$ lpoptions -l
PageSize/Page Size: Letter *A4 11x17 A3 A5 B5 Env10 EnvC5 EnvDL EnvISOB5 EnvMonarch Executive Legal
PageRegion/PageRegion: Letter A4 11x17 A3 A5 B5 Env10 EnvC5 EnvDL EnvISOB5 EnvMonarch Executive Legal
InputSlot/Media Source: *Default Tray1 Tray2 Tray3 Manual
Duplex/Double-Sided Printing: *DuplexNoTumble DuplexTumble None
Resolution/Resolution: *default 150x150dpi 300x300dpi 600x600dpi 1200x600dpi 1200x1200dpi 2400x600dpi 2400x1200dpi 2400x2400dpi
PreFilter/GhostScript pre-filtering: EmbedFonts Level1 Level2 *No

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) wrote :

Check the settings on the CUPS queue for this printer,
could be set to Duplex there.
Is there a front panel on this printer? If so, that is another place
to check.

Either way it sounds like cups or the printer is overriding the lpr command. Also try setting cups to debug mode and looking at the cups log. Print and post the cups log.

http://hplip.sourceforge.net/troubleshooting/printing.html

look at issue 2 for how to set the cups log to debug.

Aaron

Revision history for this message
Gilles Schintgen (shigi) wrote :

I'm having a similar problem with kpdf (in Gentoo, but they're also using a poppler-patched kpdf). Possibly this issue is the result of an xpdf/poppler bug.
See http://bugs.kde.org/show_bug.cgi?id=131296 for more details.

According to http://www.cups.org/doc-1.1/overview.html cups is also using xpdf code to interpret the pdf file. This could explain the similar behaviour in both cases.

Revision history for this message
Timothy Miller (theosib) wrote :

I have encountered a probably related problem. I have a Samsung ML-2152W (and my driver is postscript).

On the printer's panel, I have duplex off. From "System Settings" application (from the main KDE menu), I selected my printer and disabled duplexing.

Yet, any postscript document I printed came out duplex! It was very frustrating.

Then I decided to print from Konqueror. When I clicked "Properties" for the printer, and selected the driver settings, lo and behold, the duplexer setting there was enabled! So, I disabled it and saved the settings.

Now, things print single-sided as I had wanted.

This suggests to me that the KDE control panel for CUPS doesn't work right, but for some reason, other apps are able to affect the setting, and THAT affects other apps and just plain-old feeding postscript files to lp. This is an inconsistency between KDE's control panel and other KDE apps.

Could a moderator push this as possibly a KDE bug?

It occurred to me that this setting could be per-application, but that makes no sense, because many apps, like gimp-print and Firefox, don't know anything about it and have no way to allow you to specify it. Interestingly, however, OpenOffice seems to have a setting that is both independent of other apps AND does not affect other apps. The inconsistency is maddening.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Gilles, Timothy, for any KDE-related issues please open a new bug, as the initial reporter of this bug encountered the problem when using the command line.

Wayne, can you try the original PPD file from HP? Current versions of Ubuntu should select it automatically (remove and recreate your print queue). Or get it from here:

http://openprinting.org/foomatic-db/db/source/PPD/HP/hp_LaserJet_2300.ppd

I have the HP LaserJet 3390 and use the original PPD file and switching to single-sided via the command line works for me.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for cupsys (Ubuntu) because there has been no activity for 60 days.]

Revision history for this message
Hackbert (paul-kremser) wrote :

Its still a Problem

Revision history for this message
Vitaly Lipatov (lav-etersoft) wrote :

Hackbert, please check system wide printer options. If there duplex mode is already enable, lpr options is possible ignored.

Revision history for this message
Hackbert (paul-kremser) wrote :

I checked this multiple times, it is set to no duplex, but it always uses duplex option. I reinstalled driver but no changes ... any ideas?

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Do you have an ~/.lpoptions or ~/.cups/lpoptions file? It can contain personal option settings which override system defaults. Can everyone with the problem also post his PPD file (/etc/cups/ppd/<printer>.ppd) and the error_log output of a job which sjows the problem (see https://wiki.ubuntu.com/DebuggingPrintingProblems for how to do this)?

Revision history for this message
cerno (gue-gebhard) wrote :

Same problem in karmic:

lp -o sides=one-sided post.ps prints in duplex mode.
evince is able to print one-sided.

I found no doplex=true or alike in any configuration file.
lpoptions shows sided=one-side.
Kyocera-..-.ppd has
----------------------------
*RequiresPageRegion All: True
*% Duplex Definitions
*OpenUI *Duplex/Duplexing: PickOne
*OrderDependency: 50 AnySetup *Duplex
*DefaultDuplex: None
-------------------------------
I did sudo aa-complain cupsd without any effect.

Revision history for this message
Romano Giannetti (romano-giannetti) wrote :

I have the same problem. Printing is double sided no matter what I say, tested in evince and in acroread.
error_log with debug on is attached (it's very big, I zipped it). Will attach info with apport shortly.

Revision history for this message
Romano Giannetti (romano-giannetti) wrote : apport-collect data

Architecture: i386
DistroRelease: Ubuntu 9.10
Lpstat:
 device for color-dea: socket://130.206.71.178:9100
 device for Deskjet-6980: hp:/net/Deskjet_6980_series?ip=172.31.68.103
 device for Deskjet_3900: hp:/usb/Deskjet_3900?serial=CN59J1511K048H
 device for Generic-CUPS-PDF-Printer: cups-pdf:/
MachineType: TOSHIBA Satellite U305
Package: cups 1.4.1-5ubuntu2.1
PackageArchitecture: i386
Papersize: a4
PpdFiles:
 /etc/cups/ppd/color-dea.ppd:*NickName: "HP Color LaserJet 3800 Postscript (recommended)"
 Deskjet_3900: HP Deskjet 3940 hpijs, 3.9.8
 Generic-CUPS-PDF-Printer: Generic CUPS-PDF Printer
 Deskjet-6980: HP Deskjet 6980 Series hpijs, 3.9.8
ProcCmdLine: root=UUID=995a9794-b3d4-4066-b9f8-36b84d4525ff ro nosplash log_buf_len=2M
ProcEnviron:
 PATH=(custom, user)
 LANGUAGE=en_GB.UTF-8
 SHELL=/bin/zsh
 LANG=en_GB.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-17.54-generic
Uname: Linux 2.6.31-17-generic i686
UserGroups: adm admin audio cdrom dialout dip fax floppy fuse plugdev sambashare scanner src tape vboxusers video
dmi.bios.date: 06/23/2008
dmi.bios.vendor: TOSHIBA
dmi.bios.version: V3.10
dmi.board.name: Satellite U305
dmi.board.vendor: TOSHIBA
dmi.board.version: Not Applicable
dmi.chassis.type: 10
dmi.chassis.vendor: TOSHIBA
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnTOSHIBA:bvrV3.10:bd06/23/2008:svnTOSHIBA:pnSatelliteU305:pvrPSU34U-00L003:rvnTOSHIBA:rnSatelliteU305:rvrNotApplicable:cvnTOSHIBA:ct10:cvrN/A:
dmi.product.name: Satellite U305
dmi.product.version: PSU34U-00L003
dmi.sys.vendor: TOSHIBA

Revision history for this message
Romano Giannetti (romano-giannetti) wrote : BootDmesg.txt
Revision history for this message
Romano Giannetti (romano-giannetti) wrote : CupsErrorLog.txt
Revision history for this message
Romano Giannetti (romano-giannetti) wrote : CurrentDmesg.txt
Revision history for this message
Romano Giannetti (romano-giannetti) wrote : Dependencies.txt
Revision history for this message
Romano Giannetti (romano-giannetti) wrote : Locale.txt
Revision history for this message
Romano Giannetti (romano-giannetti) wrote : Lspci.txt
Revision history for this message
Romano Giannetti (romano-giannetti) wrote : Lsusb.txt
Revision history for this message
Romano Giannetti (romano-giannetti) wrote : PrintingPackages.txt
Revision history for this message
Romano Giannetti (romano-giannetti) wrote : ProcCpuinfo.txt
Revision history for this message
Romano Giannetti (romano-giannetti) wrote : ProcInterrupts.txt
Revision history for this message
Romano Giannetti (romano-giannetti) wrote : ProcModules.txt
Revision history for this message
Romano Giannetti (romano-giannetti) wrote : UdevDb.txt
Revision history for this message
Romano Giannetti (romano-giannetti) wrote : UdevLog.txt
Revision history for this message
Romano Giannetti (romano-giannetti) wrote : XsessionErrors.txt
tags: added: apport-collected
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.