Bug 426652

Summary: Orientation option is set to 0 and causes error message in Status Message queue for CUPS
Product: [Applications] systemsettings Reporter: silocoder
Component: kcm_printer_managerAssignee: Daniel Nicoletti <dantti12>
Status: RESOLVED WORKSFORME    
Severity: normal CC: actg, kdedev, nicholas.bailey, noeerover, virusmater
Priority: NOR    
Version First Reported In: 5.27.5   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Example when using GTK system-config-printer

Description silocoder 2020-09-17 19:34:30 UTC
Created attachment 131729 [details]
Example when using GTK  system-config-printer

SUMMARY
The print manager has no job options setting and the orientations is set to 0 causing an error message to appear in the printer job queue.

STEPS TO REPRODUCE
1. Install printer using CUPS
2. Start print job 
3. Immediately watch queue message.

OBSERVED RESULT
Prints the job but shows following error message in Status Message
"Bad value (0) for orientation-requested, using 0 degrees"

EXPECTED RESULT
1) Print but do not show above error message.
2) Should have a Job Options setting in print manager to set orientation as well as others.

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 20.04
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
Kernel Version: 5.4.0-47-generic
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-4810MQ CPU @ 2.80GHz
Memory: 15.6 GiB of RAM


ADDITIONAL INFORMATION
I believe the portrait orientation should be set to 3, not 0. Here is CUPS documentation.

https://www.cups.org/doc/options.html   (in /etc/cups/printers.conf)

Setting the Orientation
The -o landscape option will rotate the page 90 degrees to print in landscape orientation:

lp -o landscape filename
lpr -o landscape filename
The -o orientation-requested=N option rotates the page depending on the value of N:

-o orientation-requested=3 - portrait orientation (no rotation)
-o orientation-requested=4 - landscape orientation (90 degrees)
-o orientation-requested=5 - reverse landscape or seascape orientation (270 degrees)
-o orientation-requested=6 - reverse portrait or upside-down orientation (180 degrees)
Comment 1 virusmater 2022-03-04 20:44:43 UTC
Had the same problem with HP LaserJet Enterprise 700 color MFP M775 today.
Had to set orientation to Landscape and back to Portrait. Was printing from Okular.
Comment 2 Gianni 2022-06-04 09:22:26 UTC
Had same problem with Lexmark MC3224DWE

Linux xxx-ThinkBook-15-G2-ITL 5.13.0-46-generic #51-Ubuntu SMP Sat May 21 01:39:51 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Linux version 5.13.0-46-generic (buildd@lcy02-amd64-094) (gcc (Ubuntu 11.2.0-7ubuntu2) 11.2.0, GNU ld (GNU Binutils for Ubuntu) 2.37) #51-Ubuntu SMP Sat May 21 01:39:51 UTC 2022

PRETTY_NAME="Ubuntu 21.10"
NAME="Ubuntu"
VERSION_ID="21.10"
VERSION="21.10 (Impish Indri)"
VERSION_CODENAME=impish
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=impish
Comment 3 Nick 2022-07-31 10:53:15 UTC
Possibly related: I've noticed that on my Debian Stable system (bullseye) any attempt to print double sided from KDE apps to my Canon TS8050 inkjet results in the obverse side being printed, the paper being re-loaded, ejected, then the reverse being printed (upside down as would be expected) on a second sheet loaded from the main tray.

The cups status also shows the "orientation set to 0" error message.

It took me a long time to realise that only KDE apps were affected. My documents are normally LaTeX'd, but one day someone sent me a Word document which Libreoffice printed double sided no problem. A work around is not to use okular, but to use the gnome document viewer, which also prints double-sided fine.
Comment 4 TraceyC 2025-02-12 20:36:26 UTC
I'm not able to reproduce this on git-master

I tested this using Okular to print one page of a PDF. I monitored the printer queue with both the Print Settings UI and the CUPS site opened by Print Manager.
No errors were shown. Printout was correct, on correct side of the paper.
In CUPS - Administration - Set Default Options I can see settings for the printer.

In Print Settings, going to the printer, and then Job Options, I do see the options there I expect, including orientation
HP Color Laserjet Pro mfp M479fdn AIO 

Is anyone who had been affected by this bug able to reproduce it with Plasma 6.2.5 or later?
Comment 5 Bug Janitor Service 2025-02-27 03:47:19 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2025-03-14 03:47:05 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.