cups 2 printersetup for one printer
Hi, since years i use 2 (or more) printer setups in cups to use one printer. -> for different "standard" settings lets say its a color printer, but to save money often i like to print black and white. so i define a printer with the a ppd file and same printer adress twice, one with color settings one with settings black and white. so i have not to click and search all the printer settings to set up this 2 main settings. instead if i like to print color, i use the "color printer, or the foto-setting-printer or the black-and-white printer. since years i have used this with different printers "hp" and "qms" was working. since about a year i own a "sharp mx3060" i do not know if cups has changed anything or if its the printer. but it did not work any more. i have 2 stored ppd's inside etc/cups/ppd/... "sharp_mx-306N-sw" (black and white) "sharp_mx-306N" (colorsettings) but after i print something in one or the other, it changed settings for both. not inside the ppd file (it has always the same timestamp and is not changed since setup the printer), but somwhere else. the etc/cups/printers.conf show the "2" printers </Printer> <Printer SHARP_MX-3060N> PrinterId 6 UUID urn:uuid:959c4210-b868-3eea-7a36-b457b2df28a9 AuthInfoRequired none Info SHARP MX-3060NPCL_PS Location oben MakeModel Sharp MX-3060N PS, 1.2 DeviceURI ipp://192.168.0.11/ipp State Idle StateTime 1700126750 ConfigTime 1656701711 Type 8401116 Accepting Yes Shared No JobSheets none none QuotaPeriod 0 PageLimit 0 KLimit 0 OpPolicy default ErrorPolicy stop-printer Attribute marker-colors \#00FFFF,#FF00FF,#FFFF00,#000000 Attribute marker-levels 50,91,27,96,0,53,53,53,87,77,77,77,66,-1 Attribute marker-low-levels 1,1,1,1 Attribute marker-high-levels 100,100,100,100 Attribute marker-names cyan,magenta,yellow,black Attribute marker-types toner,toner,toner,toner Attribute marker-change-time 1700126750 </Printer> <DefaultPrinter SHARP_MX-3060N-sw> PrinterId 7 UUID urn:uuid:2ab5b068-ec17-3277-58a9-b8c1a50cbfa9 AuthInfoRequired none Info SHARP MX-3060NPCL_PS Location oben MakeModel Sharp MX-3060N PS, 1.2 DeviceURI ipp://192.168.0.11/ipp State Idle StateTime 1700201877 ConfigTime 1656710353 Type 8401116 Accepting Yes Shared No JobSheets none none QuotaPeriod 0 PageLimit 0 KLimit 0 OpPolicy default ErrorPolicy stop-printer Attribute marker-colors \#00FFFF,#FF00FF,#FFFF00,#000000 Attribute marker-levels 50,91,27,96,0,53,53,53,87,77,77,77,66,-1 Attribute marker-low-levels 1,1,1,1 Attribute marker-high-levels 100,100,100,100 Attribute marker-names cyan,magenta,yellow,black Attribute marker-types toner,toner,toner,toner Attribute marker-change-time 1700201877 </DefaultPrinter> so the question ist, where is cups storing actual printer settings, (color or bw, duplex or singele page......) (somewhere in the home directroy?) and why did this 2 printerques interfer each other? simoN -- www.becherer.de
Hello, In the Message; Subject : cups 2 printersetup for one printer Message-ID : <0159671b-939f-6d96-96a8-e1893cb7b982@becherer.de> Date & Time: Fri, 17 Nov 2023 09:52:39 +0100 [SB] == Simon Becherer <simon@becherer.de> has written: SB> Hi, SB> since years i use 2 (or more) printer setups in cups SB> to use one printer. -> for different "standard" settings SB> lets say its a color printer, but to save SB> money often i like to print black and white. SB> so i define a printer with the a ppd file and same SB> printer adress twice, one with color settings one with SB> settings black and white. SB> so i have not to click and search all the printer SB> settings to set up this 2 main settings. SB> instead if i like to print color, i use the "color printer, SB> or the foto-setting-printer or the black-and-white printer. SB> since years i have used this with SB> different printers "hp" and "qms" SB> was working. SB> since about a year i own a "sharp mx3060" SB> i do not know if cups has changed anything or SB> if its the printer. SB> but it did not work any more. SB> i have 2 stored ppd's inside etc/cups/ppd/... SB> "sharp_mx-306N-sw" (black and white) SB> "sharp_mx-306N" (colorsettings) SB> but after i print something in one or the other, SB> it changed settings for both. SB> not inside the ppd file (it has always the same timestamp SB> and is not changed since setup the printer), but somwhere else. [...] I'm using HP OfficeJetPro 8730 to print in color and black and white.... Here, I have only one printer setup for one HP OfficeJet Pro 8730. That is, switching between color printing and black-and-white printing is done by switching the Output Mode in the Properties panel that appears when printing. HTH. Best Regards. --- ┏━━┓彡 野宮 賢 mail-to: nomiya @ lake.dti.ne.jp ┃\/彡 ┗━━┛ "Maddox hopes that empowering users to pick their own algorithms will get them to think more about what’s involved in making them. " -- Bluesky's Custom Algorithms Could Be the Future of Social Media --
Am 05.12.23 um 06:47 schrieb Masaru Nomiya:
Hello,
In the Message;
Subject : cups 2 printersetup for one printer Message-ID : <0159671b-939f-6d96-96a8-e1893cb7b982@becherer.de> Date & Time: Fri, 17 Nov 2023 09:52:39 +0100
[SB] == Simon Becherer <simon@becherer.de> has written:
SB> Hi,
SB> since years i use 2 (or more) printer setups in cups SB> to use one printer. -> for different "standard" settings SB> lets say its a color printer, but to save SB> money often i like to print black and white.
SB> so i define a printer with the a ppd file and same SB> printer adress twice, one with color settings one with SB> settings black and white.
SB> so i have not to click and search all the printer SB> settings to set up this 2 main settings. SB> instead if i like to print color, i use the "color printer, SB> or the foto-setting-printer or the black-and-white printer.
SB> since years i have used this with SB> different printers "hp" and "qms" SB> was working.
SB> since about a year i own a "sharp mx3060" SB> i do not know if cups has changed anything or SB> if its the printer. SB> but it did not work any more.
SB> i have 2 stored ppd's inside etc/cups/ppd/... SB> "sharp_mx-306N-sw" (black and white) SB> "sharp_mx-306N" (colorsettings)
SB> but after i print something in one or the other, SB> it changed settings for both. SB> not inside the ppd file (it has always the same timestamp SB> and is not changed since setup the printer), but somwhere else. [...]
I'm using HP OfficeJetPro 8730 to print in color and black and white....
Here, I have only one printer setup for one HP OfficeJet Pro 8730.
That is, switching between color printing and black-and-white printing is done by switching the Output Mode in the Properties panel that appears when printing.
HTH.
Yes that's the normal way, but for my printers i have to scroll way down of all settings and find the "color mode setting" somewhere..... that's not good for daily use. switching between "two" printer(chains) is much more easy. especially if you like to change some other parameters too, like resolution etc. simoN -- www.becherer.de
On 2023-12-05 07:04, Simon Becherer wrote:
Am 05.12.23 um 06:47 schrieb Masaru Nomiya:
maybe your two printers names are way to similar, there is a length limit :-?
Yes that's the normal way, but for my printers i have to scroll way down of all settings and find the "color mode setting" somewhere..... that's not good for daily use. switching between "two" printer(chains) is much more easy. especially if you like to change some other parameters too, like resolution etc.
There may be another way. Change the default setting of the printer using the command line, then print whatever, then change again the default settings. There is the question whether the jobs will accept the defaults or impose their own. The command is lpoptions, I think. Finding the needed option is the problem. You do like this: Laicolasse:~ # lpoptions -l PageSize/Media Size: *Letter Legal Executive FanFoldGermanLegal 4x6 5x8 A4 A5 A6 B5 B6 102x152mm Oficio 195x270mm 184x260mm 7.75x10.75 Postcard DoublePostcardRotated Env10 EnvMonarch EnvISOB5 EnvC5 EnvDL Custom.WIDTHxHEIGHT Collate/Collate: True *False Duplex/Two-Sided: *None DuplexNoTumble DuplexTumble InputSlot/Paper Feed: *Auto Tray1 Tray2 ManualFeed HPOption_Duplexer/Duplex Unit: True *False MediaType/Media Type: *Unspecified Plain HPEcoFFICIENT HPLaserJet90 HPColorLaserMatte105 HPPremiumChoiceMatte120 HPBrochureMatte150 HPCoverMatte200 HPMattePhoto200 HPPremiumPresentationGlossy120 HPBrochureGlossy150 HPTrifoldBrochureGlossy150 HPBrochureGlossy200 Light6074 Intermediate8595 MidWeight96110 Heavy111130 ExtraHeavy131175 HeavyGlossy111130 ExtraHeavyGlossy131175 CardGlossy176220 ColorLaserTransparency Labels Letterhead Envelope HeavyEnvelope Preprinted Prepunched Colored Bond Recycled Rough HeavyRough OpaqueFilm HPPJLColorAsGray/Print Color as Gray: True *False HPRGBEmulation/RGB Color: *DefaultSRGB PhotoSRGB Adobe VividSRGB HPRGBEmulationNone HPEdgeControl/Edge Control: HPEdgeControlOff Light *Normal Max HPGeneralHalftone/Halftone: *Smooth Detail HPTextNeutralGrays/Text Neutral Grays: *Black ProcessBlack HPGraphicsNeutralGrays/Graphics Neutral Grays: *Black ProcessBlack HPPhotoNeutralGrays/Photo Neutral Grays: Black *ProcessBlack Laicolasse:~ # So it could be: lpoptions -o "HPPJLColorAsGray/Print Color as Gray"=true Trial an error would be necessary. Laicolasse:~ # lpoptions -o "HPPJLColorAsGray/Print Color as Gray"=true Laicolasse:~ # lpoptions -l | grep HPPJLColorAsGray/ HPPJLColorAsGray/Print Color as Gray: True *False Laicolasse:~ # lpoptions -o "HPPJLColorAsGray/Print Color as Gray"=false Laicolasse:~ # lpoptions -l | grep HPPJLColorAsGray/ HPPJLColorAsGray/Print Color as Gray: True *False Laicolasse:~ # No... Laicolasse:~ # lpoptions -o HPPJLColorAsGray=true Laicolasse:~ # lpoptions -l | grep HPPJLColorAsGray HPPJLColorAsGray/Print Color as Gray: *True False Laicolasse:~ # lpoptions -o HPPJLColorAsGray=false Laicolasse:~ # lpoptions -l | grep HPPJLColorAsGray HPPJLColorAsGray/Print Color as Gray: True *False Laicolasse:~ # Bingo! -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.5 (Laicolasse))
Am 05.12.23 um 12:28 schrieb Carlos E. R.:
On 2023-12-05 07:04, Simon Becherer wrote:
Am 05.12.23 um 06:47 schrieb Masaru Nomiya:
Hi, i found the problem with help from the cups mailing list. first of all: its not a cups problem. after intensive testing i recognized from the 3 program's i print mostly: evince libreoffice okular, only evnice has this behavior. the other two work fine with the settings inside the ppd file, and/or store the settings i gave them inside the print dialog. evince stores the settings inside: .config/evince/print-settings but it stores only one printer, and all settings from all used printers, so it has no way to remember the settings for a specific printer, if they are similar at more than one printer. here is my work around: make a file: print-settings-empty with this content: [Print Settings] printer=SHARP_MX-3060N-sw [Page Setup] PPDName=A4 DisplayName=A4 Width=210 Height=297 MarginTop=6.3499999999999996 MarginBottom=14.224 MarginLeft=6.3499999999999996 MarginRight=6.3499999999999996 Orientation=portrait before each start of evince delete the original file print-settings and copy this file to print-settings (with a shellscript and or a alias) now the print dialog in evince will stay on my SHARP_MX-3060N-sw (as my standard printer) AND will read the default settings of the printer from .ppd file (also from another printer when i select inside the print dialog another one.) - this of course works only for the first print job after opening evince, after printing, the file is written with the settings and it remembers the color settings (and all other settings) for all printers. but for me its perfect, i normally open only one file and then i close it after printing. of course could be done also a background job who checks and deletes the file automatically every second or so, but for me this its not necessary. hope this helps somebody sometimes ;-)) simoN -- www.becherer.de
participants (3)
-
Carlos E. R.
-
Masaru Nomiya
-
Simon Becherer