I have a printer (Samsung M2022W) which doesn't support duplex printing.

However, I would like to manually print on both sides (that is to say, print even pages, then insert these pages again on the printer and launch the odd pages). The problem is that I don't have a "manual duplex" option on my Debian system. And there is not even a "odd/even pages only" option.

How can I simply print manually on both sides on *unix?



$ lp -o page-set=odd filename
# ... manually flip pages ...
$ lp -o page-set=even filename

from the docs here.

  • Thanks. But I was more looking for a graphical solution (adding a option "manual duplex"). – ppr Aug 20 '14 at 15:18
  • Make the command "lpr ..." and it work here (Fedora 24). – vonbrand Nov 6 '16 at 17:56

I know it's a little late for an answer for the OP, but anyone finding this might want to check out my duplexpr project on sourceforge. It not only emulates duplex printing for non-duplex printers, but also allows you to print more than one print job at a time in a batch so that you only have to remove and reinsert the pages once for the whole batch.

Duplexpr supports both command line and gui interfaces. It's is written in bash with a number of reusable functions so it's relatively easy to modify. I've been using it daily for over a decade with several different printers and am continuing to develop it.

If you just want to print duplex once in awhile or need to access all the fancy features which your printer supports, then also check out xpp. It will do almost anything your printer can do, but you have to tell it what you want each time which can get a little old if you use it a lot.


There's a package called gnome-manual-duplex. It works for many printers out of the box. For others it may require manual setting.

  • Worked well for me lubuntu 18.04 with deskjet 2130. But it took some printing to get used to it. – ptetteh227 Jun 22 '18 at 23:41

If you are using HP-Lazerjet 1020, you can use these commands:

lp -o page-set=odd filename

after printer print the odd numbered pages, pull the papers and place them to tray exactly how it is (without turning or rotating). Then run the second command to print the even numbered pages:

lp -o page-set=even -o orientation-requested=6 -o outputorder=reverse filename

Now printing should be finished

Note: -o orientation-requested=6 turns the pages 180 degrees and -o outputorder=reverse prints pages by reverse order tested on HP-Lazerjet 1020


EDIT: This only worked for one job - had to turn the printer off then on again before the procedure worked for a new job. Your mileage may vary.

DISCLAIMER: I can't vouch for the safety of this procedure.

The might be a bit late but still relevant. I just tried this on a whim and it worked.

I lifted the toner cover lid and then placed it back - this was while the printer was waiting for the equivalent of a continue button push on windows (red LED blinking). Printer resumed the job to complete the duplex.

I had some print quality issues with HPLIP and so settled on the Foomatic driver instead (Foomatic/foo2xqx) - it provides the options I needed to support extra dark printing.

Ubuntu 16.05/x64 / Printer: HP LaserJet P1005
Driver: Foomatic/foo2xqx

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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