[cups] cups 2 printersetup for one (hardware) printer

Simon Becherer simon at becherer.de
Tue Mar 5 11:19:34 PST 2024


Hi doug,

Am 05.03.24 um 08:16 schrieb Douglas Kosovic:
> Hi Simon,
> 
> 
> 
> 
> 
>> thanks for the hint, and the links, even i do not think its that problem,
> 
>> i have the problem when i set the printer to color mode, both printers
> 
>> are set to color mode, and if i set to grey, both printers are set to
> 
>> gray, and if i set to "auto" both printers are set to "auto"
> 
>> but for sure updating is not a bad idea, i will do when having some spare time.
> 
> 
> 
> Where and how are you setting the color mode?
> 
oh, good point!

inside the application's print dialog:
evince
libreoffice
okular,

i have done:

lpadmin -p SHARP_MX-3060N -o print-color-mode-default=color
lpadmin -p SHARP_MX-3060N-sw -o print-color-mode-default=monochrome

i see, okular and libreoffice respect the settings,
printing black-white with the  ..-sw
printer-que
and color with the other.

but evince did not respect it, so it seems that it's a problem
from evince.
if i set one que to color, the other is also color.

i tested without the lpadmin commands, at another system, same,
so there is no different.

finally, you point me to the correct question/result.

its a problem not from cups its a problem from evince,
in its .confg/evince/print-settings file there are all
settings but only the last active cue is in.
if i delete the file and start evince new, select
the bw printer it prints bw. closing evince, deleting
the file again, start select the color printer it
prints color.
it seems, it could only remember the settings and the
printer, and if i chose another printer, the settings
will still be from the last printer and not read again
the new default of new printer.

so ist seems for me not a bug, mor a feature.

thanks for helping me.

simoN






 >


> 
> 
> The issue I had was that I couldn't get the color setting to stick on the color queues between the CUPS server and a CUPS client.
> 
> 
> 
>> do you know in what file the settings are stored (and overwrite the default
> 
>> settings in the .ppd-file)?
> 
> 
> 
> 
> 
> The order of precedence for selecting color is described in the issues link I posted for the post CUPS 2.4.2 fix :
> 
> • if no options are sent from application, cupsd uses the PPD default - in case there's no PPD default, use print-color-mode-default.
> 
> • if there is a color related option from application, prefer it over PPD and print-color-mode in cups.
> 
> • PPD and print-color-mode color settings are in synch - if you change one setting, the other will be updated to the new value as well.
> 
> 
> 
> 
> 
> If you issue the following :
> 
>    lpadmin -p SHARP_MX-3060N -o print-color-mode-default=color
> 
>    lpadmin -p SHARP_MX-3060N-sw -o print-color-mode-default=monochrome
> 
> 
> 
> You will have the following two lines in /etc/cups/printers.conf :
> 
>    Option print-color-mode color
> 
>    Option print-color-mode monochrome
> 
> 
> 
> 
> 
> I also double checked *DefaultColorModel was what it should have been in the PPDs for the color & B&W print queues.
> 
> 
> 
> *DefaultColorModel: RGB
> 
> 
> 
> *DefaultColorModel: Gray
> 
> 
> 
> 
> 
> 
> 
> Cheers,
> Doug
> 
> 
> _______________________________________________
> cups mailing list
> cups at cups.org
> https://lists.cups.org/mailman/listinfo/cups

-- 

www.becherer.de




More information about the cups mailing list