Default Double-Sided Printing Not Working in Okular

Hello everyone,

I am having trouble setting up double-sided (duplex) printing as the default option in Okular, and I was hoping someone here could help me out.

What I Have Done So Far:

1.Printer Configuration via CUPS* :

  • I accessed the CUPS web interface at http://localhost:631/ and configured my printer to use duplex printing by default. I set the Duplex option to DuplexNoTumble (long-edge binding) in the PPD file located at /etc/cups/ppd/myprinter.ppd .
  • After saving the changes, I restarted the CUPS service using:

bash

sudo systemctl restart cups

2.System Settings* :

  • I also checked the system settings for printers in both KDE and GNOME environments to ensure that duplex printing is set as the default. In KDE, I went to “System Settings” > “Printers” > selected my printer > “Configure” > “Options” and set duplex printing to “Long Edge (Standard)”.
  • In GNOME, I followed a similar process through “Settings” > “Printers”.

3.Okular Configuration* :

  • I opened Okular and went to “Settings” > “Configure Okular” > “Printing” and ensured that the option “Use Printer Defaults” is selected.
  • I also tried manually editing the Okular configuration file located at ~/.config/okular/okularpartrc to set DuplexMode=LongEdge , but this did not change the default behavior.
  • I even removed the Okular configuration directory and restarted the application to reset settings:

bash

rm -rf ~/.config/okular
okular

However, duplex printing still does not default to the system settings.

4.Additional Checks* :

  • I verified that there are no environment variables or conflicting configurations that might be overriding the settings.
  • I checked for any updates to Okular and ensured I am using the latest version available.

The Issue:

Despite all these steps, Okular still defaults to single-sided printing when I try to print a document. I have to manually select duplex printing every time, which is quite inconvenient.

What I Am Looking For:

  • Suggestions : If anyone has successfully set up duplex printing as the default in Okular, I would appreciate any tips or steps I might have missed.
  • Configuration Files : If there are other configuration files or settings I should be aware of, please let me know.
  • Bug Reports : Has anyone else encountered this issue? If so, is there a known bug report or workaround?

I am using Okular on a Linux system with KDE Plasma, but I have also tried with GNOME and had the same problem. Any help or guidance would be greatly appreciated.

Thank you in advance for your assistance!

Hello,

we had the same problem.

What helped was the good old lpoptions in Konsole/Terminal.

When you enter in Konsole: lpoptions -l

you get a list of avaiable options of the standard printer. The used settings are starred. When you want to change an option, use the lpoptions command again:

For our printer, it was: lpoptions -p PRINTERNAME -o Duplex/Duplex=DuplexNoTumble

Voila!

ps. With the command lpstat -p -d you get a list of your printers and which is the standard printer.

Seems the default setting after installing HPLIP is with disabled duplex. Open HP Device Manager, Printer Settings, General - Double Sided Printing.