Bug 2087924 - Color Model options in printer settings are reset to default B&W/Greyscale
Summary: Color Model options in printer settings are reset to default B&W/Greyscale
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: cups
Version: 36
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-18 14:43 UTC by D. Moens
Modified: 2023-03-19 02:04 UTC (History)
5 users (show)

Fixed In Version: cups-2.4.2-10.fc37 cups-2.4.2-10.fc38 cups-2.4.2-10.fc36
Clone Of:
Environment:
Last Closed: 2023-03-09 02:52:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
screencast (456.09 KB, application/x-matroska)
2022-08-18 15:18 UTC, D. Moens
no flags Details

Description D. Moens 2022-05-18 14:43:06 UTC
Description of problem:

With F36, when selecting a color-related option in the "Color Model" selection box, the option is reset to the default ("Black and White", "Greyscale" ...).
This happens with both "gnome-control-center printers" and "/usr/bin/system-config-printer".

This is not an issue with F35.


Version-Release number of selected component (if applicable):

cups-2.4.1-8.fc36.x86_64



How reproducible:

Always


Steps to Reproduce:
1. gnome-control-center printers > add printer
2. autodetect printer driver
3. change [Color Model] option from "Black and White" to "Color"

Actual results:

When revisiting the [Color Model] option, it has been reset to "Black and White" ; test prints are printed in B/W.

Expected results:

[Color Model] selection should be honoured.


Additional info:

1. Testing was performed on both an F35->F36 upgrade and a clean F36 install.

2. This happens with both the "gnome-control-center printers" and "system-config-printer" printer applications.

3. Independent of the the autodetected printer driver, this can be reproduced by applying the "Generic PCL Color Laser - CUPS+Gutenprint v5.3.4 Simplified" driver.

4. One observed difference with a different printerqueue/PPD  which respects the color option settings : 
4a. the autodetected printer driver (Ricoh C5500) and the generic printer driver  (cfr. item 3. above) both specify "Color Model" in the PPD and in the GUI : 
$ lpoptions -p printer-nok -l | egrep "^Color"
ColorModel/Color Mode: CMYK *Gray
4b. the working printer (e.g. Samsung-CLP-365) refers to "ColorMode" in its PPD  and "Color Mode" in the GUI :
$ lpoptions -p printer-ok -l | egrep "^Color"
ColorMode/Color Mode: *Color Monochrome

5. The problem can be mitigated by directly manipulating the CUPS printer configuration file :
5a. "# systemctl stop cups"
5b. "# vi /etc/cups/printers.conf"
5c. change to "Option print-color-mode color"
5d. "# systemctl start cups"
, which results in the expected coloured output.

Comment 1 Zdenek Dohnal 2022-05-19 05:00:13 UTC
Hi Didier,

thank you for reporting the issue and investigation!

It would be great if you followed the steps from https://docs.fedoraproject.org/en-US/quick-docs/how-to-debug-printing-problems/#_cups_generic_issue as well, ideally it would be the best if you tried to print some testing page as well.

IMO it is the same issue as https://bugzilla.redhat.com/show_bug.cgi?id=2087730 , but I would like to confirm it from the logs.

It looks like CUPS set a default option for color printing to gray, which then overrides standardized ColorModel option. 'ColorMode' is not touched, because it is not PPD keyword from the PPD standard, but it's something the vendor came up with and hardwired it into his filters.

Comment 2 Zdenek Dohnal 2022-05-19 05:11:04 UTC
Additionally it would help as well if you tried changing the option via lpoptions without GUI to see whether it is a problem in communication of CUPS and GUI.

Comment 3 D. Moens 2022-05-25 23:26:33 UTC
Apologies for the belated reply : AFK.

Comment 4 Zdenek Dohnal 2022-06-07 12:13:58 UTC
Hi Didier,

there is CUPS 2.4.2 in testing - are you able to reproduce the issue with it? With new version I'm able to print color/b&w as before the issue.

Comment 5 D. Moens 2022-06-08 15:37:52 UTC
Dear Zdenek,

Just tested cups-2.4.2-1.fc36.x86_64 :
no improvement , not even with a clean start, i.e. an empty "/etc/cups/".


Will continue testing as suggested above in c#1 and c#2 (when time permits, unfortunately).

Comment 6 Zdenek Dohnal 2022-08-02 15:01:04 UTC
Hi Didier,

I'm sorry for delay, I've prepared a testing rpms which should fix the issue - https://koji.fedoraproject.org/koji/taskinfo?taskID=90399669

Would you mind testing them?

Comment 7 Kamil Páral 2022-08-09 11:44:53 UTC
(In reply to Zdenek Dohnal from comment #6)
> I'm sorry for delay, I've prepared a testing rpms which should fix the issue
> - https://koji.fedoraproject.org/koji/taskinfo?taskID=90399669

I was also affected by printing only black&white and the RPMs above fixed that for me, I can now print in color.

Comment 8 Kamil Páral 2022-08-09 11:47:50 UTC
Sorry, that comment above was for bug 2087730. For this bug, I tested configuring the default color mode in printer settings and it saves correctly on my IPP printer.

Comment 9 Didier 2022-08-09 12:08:44 UTC
(In reply to Zdenek Dohnal from comment #6)
> Hi Didier,
> 
> I'm sorry for delay, I've prepared a testing rpms which should fix the issue
> - https://koji.fedoraproject.org/koji/taskinfo?taskID=90399669
> 
> Would you mind testing them?

Dear Zdenek,

Apologies for the lack of reply (holidays etc). I will test at the earliest occasion (away from office ; needinfo still active), but the feedback from Kamil already sets hopes high.

Thank you for your effort.

Comment 10 D. Moens 2022-08-18 15:16:20 UTC
Unfortunately, cups-2.4.2-4.fc36.x86_64 does not fix my issue.

Changing the "Color Mode" from [Black and White] to [Color] does not yield coloured output, and the setting is reset to B&W again.
I will add an attachment with a screencast illustrating the issue.

The only way to mitigate the issue is by 'brute-forcing' the setting : 
systemctl stop cups ; sed -i 's/Option print-color-mode monochrome/Option print-color-mode color/g' /etc/cups/printers.conf ; systemctl start cups

After the above commands :
- print output is in colour ;
- the "Color Mode" setting can be changed from [Color] to [Black and White] ;
- once it is in B&W, the setting is locked again, and the brute-force script is again required to print in colour.

Comment 11 D. Moens 2022-08-18 15:18:06 UTC
Created attachment 1906335 [details]
screencast

Screencast, illustrating the issue.
In the bottom right terminal, the output from "journalctl -fel -u cups" is displayed.

Comment 12 Zdenek Dohnal 2022-08-19 04:13:02 UTC
Hi Didier,

(In reply to D. Moens from comment #10)
> Unfortunately, cups-2.4.2-4.fc36.x86_64 does not fix my issue.

that's expected. If you check the rpm changelog by 'rpm -q --changelog cups | less', I don't mention this bug in it and this bug is still opened.

If I intend to fix some bug via new update, I add the bug to the update, so anyone watching the bug can see there is an update which should fix it (which didn't happen here...)

Long story short:

I've found one more case which has to be fixed - https://bugzilla.redhat.com/show_bug.cgi?id=1985917# - working on the fix in the meantime, please stay tuned. Once there is an update with the fix, it will be shown here in the bug by Fedora bot, which will switch the bug to MODIFIED and leave a link to the specific update in Fedora Updates Testing repository, which you can use for installing the update before it lands into stable repository, testing it, leaving a feedback on the update in bodhi.fedoraproject.org and helping moving the update to the stable Fedora repositories :) .

Comment 13 D. Moens 2022-08-19 07:31:29 UTC
Hi Zdenek,

Mu apologies ; it looks I was confused by your request from comment#6 to test 2.4.2-3 which should have fixed the issue (and consequently, I assumed 2.4.2-4 should have included the presumed fix too).

Comment 14 Zdenek Dohnal 2022-08-24 14:26:02 UTC
Hi Didier,

I've finished the newest iteration - here are the testing rpms https://koji.fedoraproject.org/koji/taskinfo?taskID=91210382 

Would you mind testing them and letting me know whether they help?


Thank you in advance!

Comment 15 D. Moens 2022-08-24 16:03:23 UTC
Hi Zdenek,

cups-2.4.2-4.fc36.test.1 resolves the issue.

As an added bonus, ink levels for a specific printer (Ricoh C5500) are now correctly displayed (as illustrated in the screencast, yellow toner was missing).


Thank you for your perseverance !

Comment 16 Fedora Update System 2023-03-03 08:41:01 UTC
FEDORA-2023-b6b1ff44a5 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-b6b1ff44a5

Comment 17 Fedora Update System 2023-03-03 08:56:19 UTC
FEDORA-2023-c5cf4f6be2 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-c5cf4f6be2

Comment 18 Fedora Update System 2023-03-03 09:10:12 UTC
FEDORA-2023-7ceae7b00b has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2023-7ceae7b00b

Comment 19 Fedora Update System 2023-03-04 02:34:39 UTC
FEDORA-2023-b6b1ff44a5 has been pushed to the Fedora 38 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-b6b1ff44a5

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 20 Fedora Update System 2023-03-04 03:09:41 UTC
FEDORA-2023-c5cf4f6be2 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-c5cf4f6be2`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-c5cf4f6be2

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 21 Fedora Update System 2023-03-04 03:20:13 UTC
FEDORA-2023-7ceae7b00b has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-7ceae7b00b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-7ceae7b00b

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 22 Fedora Update System 2023-03-09 02:52:40 UTC
FEDORA-2023-c5cf4f6be2 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 23 Fedora Update System 2023-03-15 00:16:35 UTC
FEDORA-2023-b6b1ff44a5 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 24 Fedora Update System 2023-03-19 02:04:47 UTC
FEDORA-2023-7ceae7b00b has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.