Le 11/09/2019 à 20:27, Brian Potkin a écrit :
> On Wed 11 Sep 2019 at 10:34:12 +0200, Vincent Danjean wrote:
> 
>>   Hi,
> 
> Hello Vincent,
> 
> Thank you for your report.
> 
>>   Since my last upgrade of cups on my laptop, I do not see any options
>> for remote printers.
> 
> Well, you do. But what you get is unexpected. :)
> 
>>                      It affects me both at home (where I can access to
>> the cups server and can change something if need be) and at work (where
>> I do not have any access to the server). Both servers (at home and at
>> work) do not change. On my laptop, it worked with cups 2.2.10 (not sure
>> with 2.2.12). My home server is running cups 2.2.1-8+deb9u4 (stretch)
> 
> The servers are not the problem. The home printer might be, but we will
> explore thet at another time.
>  
>>   At work, the printers are discovered by cups-browsed as they are not
>> on the local network and a 'BrowsePoll print.work.domain:631' line
>> is required. At home, I've a linux server with cups that talk to a
>> local printer through a propriatory driver (Brother DCP-9020CDW printer)
>>   I will talk about the situation at home (where I can access the server).
> 
> The work situation likely requires a separate bug report. So we will put
> it on one side for the present.

Ok, even if for me, it seems very similar.

>> On the server, I see all options provided be the driver:
>> server $ lpoptions -l -p brother
> 
> I set up a print queue with these Brother DCP-9020CDW drivers by using
> 'dpkg -i' with the two packages provided. It was automatically named
> DCP9020CDW. How did you get the queue name to be "brother"?

I manually installed it if I remember correctly (it was a long time
ago). I took the software provided by Brother, but I repackaged it
so that it better respects the FHS. You can find them here :
https://people.debian.org/~vdanjean/debian/pool/main/b/brother-dcp9020cdwlpr/
https://people.debian.org/~vdanjean/debian/pool/main/b/brother-dcp9020cdwcupswrapper/
According to the date, I made this in 2014 and it was working since.

>> PageSize/Media Size: *A4 Letter Legal Executive A5 A6 B5 JISB5 JISB6 EnvDL 
>> EnvC5 Env10 EnvMonarch Br3x5 FanFoldGermanLegal EnvPRC5Rotated Postcard 
>> EnvYou4 EnvChou3 210x270mm 195x270mm 184x260mm 197x273mm
>> BRDuplex/Two-Sided: DuplexTumble *DuplexNoTumble None
>> BRInputSlot/Paper Source: *AutoSelect Tray1 Manual
>> BRResolution/Print Quality: *600dpi 600x2400dpi
>> BRMonoColor/Color / Mono: *Auto FullColor Mono
>> BRMediaType/Media Type: *Plain Thin Thick Thicker BOND Env EnvThick EnvThin 
>> Recycled Label Glossy PostCard
>> BRColorMatching/Color Mode: *Normal Vivid None
>> BRGray/Improve Gray Color: OFF *ON
>> BREnhanceBlkPrt/Enhance Black Printing: *OFF ON
>> BRTonerSaveMode/Toner Save Mode: *OFF ON
>> BRImproveOutput/Improve Print Output: *OFF BRLessPaperCurl BRFixIntensity
>> BRSkipBlank/Skip Blank Page: *OFF ON
>> BRBrightness/Brightness: -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10 -9 -8 
>> -7 -6 -5 -4 -3 -2 -1 *0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
>> BRContrast/Contrast: -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10 -9 -8 -7 -6 
>> -5 -4 -3 -2 -1 *0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
>> BRRed/Red: -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10 -9 -8 -7 -6 -5 -4 -3 
>> -2 -1 *0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
>> BRGreen/Green: -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10 -9 -8 -7 -6 -5 -4 
>> -3 -2 -1 *0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
>> BRBlue/Blue: -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10 -9 -8 -7 -6 -5 -4 
>> -3 -2 -1 *0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
>> BRSaturation/Saturation: -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10 -9 -8 
>> -7 -6 -5 -4 -3 -2 -1 *0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
> 
> I get this too. We agree at this point.
>  
>> It was the same on my laptop before the new versions of cups.
>> But now:
>> laptop $ lpoptions -l -p brother
>> PageSize/Page Size: Custom.WIDTHxHEIGHT 11x14 11x17 13x19 16x20 16x24 2A 4A 
>> 8x10 8x12 A0 A1 A2 A3 *A4 A5 AnsiA AnsiB AnsiC AnsiD AnsiE ArchA ArchB ArchC 
>> ArchD ArchE C0 C1 C2 C3 C4 C5 Env10 EnvC5 EnvDL EnvMonarch Executive ISOB0 
>> ISOB1 ISOB2 ISOB3 ISOB4 ISOB5 JISB0 JISB1 JISB2 JISB3 JISB4 JISB5 Ledger 
>> Legal Letter RA0 RA1 RA2 RA3 RA4 SRA0 SRA1 SRA2 SRA3 SRA4 SuperA SuperB 
>> TabloidExtra Tabloid
>> Resolution/Output Resolution: 150dpi *300dpi 600dpi 1200dpi 2400dpi
> 
> Being "the same" is (I think) part of the issue. It shouldn't have been.
> The server is probed over IPP and CUPS generates a PPD for a discovered
> queue. This is not the same PPD seen from the server. cups-browsed is
> supposed to use the same PPD generator as CUPS (via cups-filters), so
> should produce the same PPD. I also get this disparity when cups version
> 2.2.8-5 is used.

I'm pretty sure that I used the PPD from Brother (and the ones from Canon
at work) and that they were not automaticcaly discovered.

> For the moment, I am inclined to see the issue as concerning cups-filters.

So, if I understand correctly :
- before, it worked correctly (with all options) because I manually installed
  the PPD files on the laptop and cups/cups-browsed do not override them
- now, cups/cups-browsed always (for remote queue) generate a PPD file
  using cups-filters, and the generated PPD is not correct (it misses lots
  of options available in the remote queue)

If this is correct, what should be done ?
Is there a way to test what cups-filter generate ?
Which information is used by cups-filter to generate the PPD ?

>> And nothing more.
>> I cannot choose the DuplexMode, the gray/color, ...
>> These was presented to me in a 'Advanced' tab of the standard cups gtk 
>> dialog (for example with evince)
>>
>> http://localhost:631/printers/ reports:
>> brother      Brother DCP-9020CDW @ server            Brother DCP-9020CDW 
>> CUPS, driverless, cups-filters 1.25.5
>>
>> At work, we have big canon printers, and I cannot choose the staple mode, 
>> ... anymore.
>> It is really blocking for me: I have to log (ssh) to another computer
>> still in stretch to print my PDF :-(
> 
> Possibly a different issue. I am unlikely to treat it here.
> 
>> For info:
>>
>> laptop $ cat /etc/cups/cups-browsed.conf | egrep -v '^(#| *$)' 
>> DebugLogging file
>> BrowseRemoteProtocols dnssd cups
>> BrowseFilter NOT name copieur-[23]
>> BrowsePoll print.work.domain:631
>> LocalQueueNamingRemoteCUPS RemoteName
>> CreateRemoteRawPrinterQueues Yes
>> CreateIPPPrinterQueues All
>> IPPPrinterQueueType PPD
>> AutoClustering Yes
> 
> Thanks. On first sight, none of these options is the cause of your
> issue.
> 
>>   What can I do to get my printer options back (if possible avoiding to 
>> downgrade cups)?
> 
> Probably nothing can be done unless the PPD file generation on the
> client allows it. That does not mean that all is lost. Please provide
> the outputs of 'lpstat -l -e' and 'lpstat -t'.
> 
> What you get with 'avahi-browse -rt _ipp._tcp' might also be useful
> later on. avahi-browse is in the avahi-utils package.

Here are the results from another machine (buster) on the same local net.
If you want the result from the laptop, I can do it later.

$ avahi-browse -rt _ipp._tcp
+ en-lan IPv6 Brother DCP-9020CDW @ kooot-2                 Internet Printer    
 local
+ en-lan IPv4 Brother DCP-9020CDW @ kooot-2                 Internet Printer    
 local
= en-lan IPv6 Brother DCP-9020CDW @ kooot-2                 Internet Printer    
 local
   hostname = [kooot-2.local]
   address = [XXXX:YYYY:ZZZZ:120::1]
   port = [631]
   txt = ["printer-type=0x80104E" "printer-state=3" "Copies=T" "Color=T" 
"TLS=1.2" "UUID=3b294be5-e4ee-30e7-5fd2-a8365fa83bf9" "URF=DM3" 
"pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf"
 "product=(DCP-9020CDW)" "priority=0" "note=Grenoble" 
"adminurl=https://kooot-2.local:631/printers/brother"; "ty=Brother DCP-9020CDW 
CUPS" "rp=printers/brother" "qtotal=1" "txtvers=1"]
= en-lan IPv4 Brother DCP-9020CDW @ kooot-2                 Internet Printer    
 local
   hostname = [kooot-2.local]
   address = [10.77.0.2]
   port = [631]
   txt = ["printer-type=0x80104E" "printer-state=3" "Copies=T" "Color=T" 
"TLS=1.2" "UUID=3b294be5-e4ee-30e7-5fd2-a8365fa83bf9" "URF=DM3" 
"pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf"
 "product=(DCP-9020CDW)" "priority=0" "note=Grenoble" 
"adminurl=https://kooot-2.local:631/printers/brother"; "ty=Brother DCP-9020CDW 
CUPS" "rp=printers/brother" "qtotal=1" "txtvers=1"]

  Many thanks for your help
  Regards,
    Vincent

> Regards,
> 
> Brian.
> 


-- 
Vincent Danjean       GPG key ID 0xD17897FA         vdanj...@debian.org
GPG key fingerprint: 621E 3509 654D D77C 43F5  CA4A F6AE F2AF D178 97FA
Unofficial pkgs: http://moais.imag.fr/membres/vincent.danjean/deb.html
APT repo:  deb http://people.debian.org/~vdanjean/debian unstable main

Reply via email to