• unsuccessfully install of printer brother hl-l2360dw

    From Salvador Mirzo@21:1/5 to All on Thu Dec 26 15:47:06 2024
    I've been trying to install a Brother HL-L2360DW. I managed to install
    it at /etc/printcap and use it just fine with lpd. I installed as:

    lp:Brother HL-L2360DW:\
    :lp=9100@BRWB052162167A6:\
    :if=/usr/local/libexec/lf2crlf:\
    :sh:sd=/var/spool/output/brother:\
    :lf=/var/log/lpd-errs:

    The name BRWB052162167A6 is the hostname of the printer:

    # ping BRWB052162167A6
    PING BRWB052162167A6 (192.168.15.16): 56 data bytes
    64 bytes from 192.168.15.16: icmp_seq=0 ttl=255 time=3.197 ms
    64 bytes from 192.168.15.16: icmp_seq=1 ttl=255 time=2.978 ms
    ^C
    --- BRWB052162167A6 ping statistics ---
    2 packets transmitted, 2 packets received, 0.0% packet loss
    round-trip min/avg/max/stddev = 2.978/3.087/3.197/0.110 ms

    This way I can print ASCII documents. Even UTF-8 text documents won't
    print out correctly. Apparently the printer is not a PostScript
    printer, so we can't send PostScript to it. When I tried, I got
    PostScript code out on paper. So I figured /etc/printcap wouldn't
    suffice. I then tried CUPS.

    The experience with CUPS was nice, but again I had to set the printer's
    driver to a raw thing and then I was able to get ASCII plain text out.
    So I convinced myself that I needed a driver really. Looking at the
    spec of the printer (URL and PDF below), I see it has PCL emulation. So
    I tried CUPS' generic PCL driver. Testing, I got a print out saying

    --8<-------------------------------------------------------->8---
    %!
    userdict dup(\004)cvn{}put (\004\004)cvn{}put

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  • From bp@www.zefox.net@21:1/5 to Salvador Mirzo on Thu Dec 26 20:39:16 2024
    Salvador Mirzo <smirzo@example.com> wrote:
    I've been trying to install a Brother HL-L2360DW. I managed to install
    it at /etc/printcap and use it just fine with lpd. I installed as:

    lp:Brother HL-L2360DW:\
    :lp=9100@BRWB052162167A6:\
    :if=/usr/local/libexec/lf2crlf:\
    :sh:sd=/var/spool/output/brother:\
    :lf=/var/log/lpd-errs:

    The name BRWB052162167A6 is the hostname of the printer:

    # ping BRWB052162167A6
    PING BRWB052162167A6 (192.168.15.16): 56 data bytes
    64 bytes from 192.168.15.16: icmp_seq=0 ttl=255 time=3.197 ms
    64 bytes from 192.168.15.16: icmp_seq=1 ttl=255 time=2.978 ms
    ^C
    --- BRWB052162167A6 ping statistics ---
    2 packets transmitted, 2 packets received, 0.0% packet loss
    round-trip min/avg/max/stddev = 2.978/3.087/3.197/0.110 ms

    This way I can print ASCII documents. Even UTF-8 text documents won't
    print out correctly. Apparently the printer is not a PostScript
    printer, so we can't send PostScript to it. When I tried, I got
    PostScript code out on paper. So I figured /etc/printcap wouldn't
    suffice. I then tried CUPS.

    The experience with CUPS was nice, but again I had to set the printer's driver to a raw thing and then I was able to get ASCII plain text out.
    So I convinced myself that I needed a driver really. Looking at the
    spec of the printer (URL and PDF below), I see it has PCL emulation. So
    I tried CUPS' generic PCL driver. Testing, I got a print out saying

    --8<-------------------------------------------------------->8---
    %!
    userdict dup(\004)cvn{}put (\004\004)cvn{}put

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    %%%% If you can read this, you are using the wrong driver for your printer. %%
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    --8<-------------------------------------------------------->8---

    So then I convinced myself that I really need some kind of Brother
    driver. Then I found drivers at

    https://support.brother.com/g/b/downloadlist.aspx?c=us_ot&lang=en&prod=hll2360dw_us&os=128

    But these are not for FreeBSD, so the hopes were not high. Looking at
    the debian packages, I see some Perl scripts and a file with extension
    PPD. I tried both

    CUPSwrapper printer driver (deb package)
    Generic CUPSwrapper printer driver (deb package)

    Adding the PPD file which I found in data.tar.gz inside the debian
    package, I end up getting the error of a missing file in

    /usr/local/libexec/cups/filter

    The missing file appears to be a Perl script, which I also found in the debian package, so I added the file to this directory, with permissions
    0755 (as all others in the directory). I changed the Perl path in the
    script from /usr/bin/perl to /usr/local/bin/perl to match the Perl I
    have installed. Once again, I get

    --8<-------------------------------------------------------->8---
    %!
    userdict dup(\004)cvn{}put (\004\004)cvn{}put

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    %%%% If you can read this, you are using the wrong driver for your printer. %%
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    --8<-------------------------------------------------------->8---

    when I ask for a printer self test from the CUPS web interface.

    Is there any hope of using a Brother HL-L2360DW with FreeBSD? My father
    has a laptop running Windows 10 or 11. Perhaps I could somehow connect
    the printer to his computer and then use CUPS to connect my FreeBSD to
    his new shared printer? Any ideas? Thanks very much.

    (*) Specs

    The specifications for the printer can be found at

    https://www.brother-usa.com/products/hll2360dw#specification

    There's a PDF at

    https://www.brother-usa.com/-/media/brother/product-catalog-media/documents/2020/04/28/14/44/hll2360dw_brochure_compact-laser-printer.pdf

    No direct help, but IIRC part of the cups install process should have
    forced you to specify what kind of printer you have. If that didn't
    happen, I'd suggest de-installing all the print-related ports or
    packages and simply starting over. Cups relies on Ghostscript, I
    think, and ghostscript is responsible for generating the correct
    printer control langauge. A web search for ghostscript and the
    printer model might reveal something useful.

    I've not tried to configure a printer on FreeBSD for a long time,
    so don't take anything I say very seriously.

    hth,

    bob prohaska

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John D Groenveld@21:1/5 to bp@www.zefox.net on Fri Dec 27 00:01:37 2024
    In article <vkketk$34iqu$1@dont-email.me>, <bp@www.zefox.net> wrote:
    Salvador Mirzo <smirzo@example.com> wrote:
    I've been trying to install a Brother HL-L2360DW. I managed to install

    <URL:https://openprinting.github.io/printers/>

    The name BRWB052162167A6 is the hostname of the printer:
    https://www.brother-usa.com/-/media/brother/product-catalog-media/documents/2020/04/28/14/44/hll2360dw_brochure_compact-laser-printer.pdf

    No direct help, but IIRC part of the cups install process should have
    forced you to specify what kind of printer you have. If that didn't
    happen, I'd suggest de-installing all the print-related ports or
    packages and simply starting over. Cups relies on Ghostscript, I
    think, and ghostscript is responsible for generating the correct
    printer control langauge. A web search for ghostscript and the
    printer model might reveal something useful.

    I've not tried to configure a printer on FreeBSD for a long time,
    so don't take anything I say very seriously.

    Possibly significantly easier than you remember, modulo bugs with
    Brother's firmware and FreeBSD's CUPS: <URL:https://man.freebsd.org/cgi/man.cgi?query=lpadmin&apropos=0&sektion=0&manpath=FreeBSD+14.2-RELEASE+and+Ports&arch=default&format=html>

    # lpadmin -x BRWB052162167A6
    # lpadmin -p BRWB052162167A6 -E -v ipp://BRWB052162167A6/ipp/print -m everywhere

    John
    groenveld@acm.org

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Salvador Mirzo@21:1/5 to John D Groenveld on Fri Dec 27 10:14:28 2024
    groenveld@acm.org (John D Groenveld) writes:

    In article <vkketk$34iqu$1@dont-email.me>, <bp@www.zefox.net> wrote:
    Salvador Mirzo <smirzo@example.com> wrote:
    I've been trying to install a Brother HL-L2360DW. I managed to install

    <URL:https://openprinting.github.io/printers/>

    Nice! Thanks!

    The name BRWB052162167A6 is the hostname of the printer:
    https://www.brother-usa.com/-/media/brother/product-catalog-media/documents/2020/04/28/14/44/hll2360dw_brochure_compact-laser-printer.pdf

    No direct help, but IIRC part of the cups install process should have >>forced you to specify what kind of printer you have. If that didn't
    happen, I'd suggest de-installing all the print-related ports or
    packages and simply starting over. Cups relies on Ghostscript, I
    think, and ghostscript is responsible for generating the correct
    printer control langauge. A web search for ghostscript and the
    printer model might reveal something useful.

    I've not tried to configure a printer on FreeBSD for a long time,
    so don't take anything I say very seriously.

    Possibly significantly easier than you remember, modulo bugs with
    Brother's firmware and FreeBSD's CUPS: <URL:https://man.freebsd.org/cgi/man.cgi?query=lpadmin&apropos=0&sektion=0&manpath=FreeBSD+14.2-RELEASE+and+Ports&arch=default&format=html>

    # lpadmin -x BRWB052162167A6
    # lpadmin -p BRWB052162167A6 -E -v ipp://BRWB052162167A6/ipp/print -m everywhere

    This installed the printer just fine in CUPS. However, when I try to
    print something with it, it seems CUPS won't even send the job to the
    printer and annonates an error message in /var/log/cups/access_log:

    --8<-------------------------------------------------------->8---
    localhost - - [27/Dec/2024:09:31:48 -0300] "POST
    /printers/BRWB052162167A6 HTTP/1.1" 200 20810 Print-Job client-error-document-format-not-supported --8<-------------------------------------------------------->8---

    This is due to I trying to print a text file from firefox. When I try
    to print the same file using CUPS's lpr, I get:

    --8<-------------------------------------------------------->8---
    $ lpr -PBRWB052162167A6 sample.txt
    lpr: Unsupported document-format "text/plain". --8<-------------------------------------------------------->8---

    And the access_log says:

    --8<-------------------------------------------------------->8---
    localhost - - [27/Dec/2024:09:41:14 -0300] "POST
    /printers/BRWB052162167A6 HTTP/1.1" 200 334 Create-Job successful-ok

    localhost - - [27/Dec/2024:09:41:14 -0300] "POST
    /printers/BRWB052162167A6 HTTP/1.1" 200 1773 Send-Document client-error-document-format-not-supported

    localhost - - [27/Dec/2024:09:41:14 -0300] "POST /jobs/ HTTP/1.1" 200
    174 Cancel-Job successful-ok --8<-------------------------------------------------------->8---

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Matthias Meyser@21:1/5 to All on Fri Dec 27 15:55:28 2024
    Am 26.12.2024 um 19:47 schrieb Salvador Mirzo:
    I've been trying to install a Brother HL-L2360DW. I managed to install
    it at /etc/printcap and use it just fine with lpd. I installed as:

    lp:Brother HL-L2360DW:\
    :lp=9100@BRWB052162167A6:\
    :if=/usr/local/libexec/lf2crlf:\
    :sh:sd=/var/spool/output/brother:\
    :lf=/var/log/lpd-errs:

    The name BRWB052162167A6 is the hostname of the printer:

    # ping BRWB052162167A6
    PING BRWB052162167A6 (192.168.15.16): 56 data bytes
    64 bytes from 192.168.15.16: icmp_seq=0 ttl=255 time=3.197 ms
    64 bytes from 192.168.15.16: icmp_seq=1 ttl=255 time=2.978 ms
    ^C
    --- BRWB052162167A6 ping statistics ---
    2 packets transmitted, 2 packets received, 0.0% packet loss
    round-trip min/avg/max/stddev = 2.978/3.087/3.197/0.110 ms

    This way I can print ASCII documents. Even UTF-8 text documents won't
    print out correctly. Apparently the printer is not a PostScript
    printer, so we can't send PostScript to it. When I tried, I got
    PostScript code out on paper. So I figured /etc/printcap wouldn't
    suffice. I then tried CUPS.

    This ist a PCL Printer.

    see https://docs.freebsd.org/de/books/handbook/printing/#printing-lpd-filters-ps2pcl


    With best regards
    Matthias

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Matthias Meyser@21:1/5 to All on Fri Dec 27 15:57:39 2024
    Am 27.12.2024 um 15:55 schrieb Matthias Meyser:
    This ist a PCL Printer.

    see https://docs.freebsd.org/de/books/handbook/printing/#printing-lpd-filters-ps2pcl


    in english :)

    https://docs.freebsd.org/en/books/handbook/printing/#printing-lpd-filters-ps2pcl

    With best regards
    Matthias

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Salvador Mirzo@21:1/5 to Matthias Meyser on Fri Dec 27 16:44:51 2024
    Matthias Meyser <Meyser@xenet.de> writes:

    Am 27.12.2024 um 15:55 schrieb Matthias Meyser:
    This ist a PCL Printer.
    see
    https://docs.freebsd.org/de/books/handbook/printing/#printing-lpd-filters-ps2pcl


    in english :)

    https://docs.freebsd.org/en/books/handbook/printing/#printing-lpd-filters-ps2pcl

    Thank you so much. That allows me to use lpd and it's working. The
    handbook test was successful and I just asked Firefox to print a text
    document using /usr/bin/lpr (using my /etc/printcap entry). It worked!

    I would still like to understand what's going on with CUPS, so I will
    continue the troubleshooting but I'm very happy that I can print just
    fine with lpd.

    The printcap entry so far:

    --8<-------------------------------------------------------->8--- lp|remote|brother|Brother HL-L2360DW:\
    :lp=9100@BRWB052162167A6:\
    :if=/usr/local/libexec/ps2pcl:\
    :sh:sd=/var/spool/output/brother:\
    :lf=/var/log/lpd-errs: --8<-------------------------------------------------------->8---

    The filter:

    --8<-------------------------------------------------------->8---
    #!/bin/sh
    /usr/local/bin/gs -dSAFER -dNOPAUSE -dBATCH -q -sDEVICE=pcl3 -sOutputFile=- - --8<-------------------------------------------------------->8---

    I believe the driver pcl3 works better than the ljet4 given in the
    handbook as per a couple of experiments here. I probably should try
    other drivers to see if there's any difference.

    One program also metioned by the handbook is enscript. It converts text
    files to PostScript, so I can print text files. But my text files are
    usually UTF-8 and it seems enscript doesn't support UTF-8 as far as the
    manual says. So what I am now doing is using iconv to convert to latin1
    before invoking enscript. If you'd like to share how you do it, I'd
    appreciate hearing about.

    # iconv -f UTF-8 -t LATIN1 sample.txt | enscript -X latin1 -Premote
    [ 1 page * 1 copy ] sent to remote

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Matthias Meyser@21:1/5 to All on Fri Dec 27 22:52:52 2024
    Am 27.12.2024 um 20:44 schrieb Salvador Mirzo:
    One program also metioned by the handbook is enscript. It converts text files to PostScript, so I can print text files. But my text files are usually UTF-8 and it seems enscript doesn't support UTF-8 as far as the manual says. So what I am now doing is using iconv to convert to latin1 before invoking enscript. If you'd like to share how you do it, I'd appreciate hearing about.

    you could replace enscript by paps (ports collection) for that.

    With best regards
    Matthias

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John D Groenveld@21:1/5 to Salvador Mirzo on Tue Dec 31 15:41:35 2024
    In article <867c7lfetn.fsf@example.com>,
    Salvador Mirzo <smirzo@example.com> wrote:
    This installed the printer just fine in CUPS. However, when I try to
    print something with it, it seems CUPS won't even send the job to the
    printer and annonates an error message in /var/log/cups/access_log:

    --8<-------------------------------------------------------->8---
    localhost - - [27/Dec/2024:09:31:48 -0300] "POST
    /printers/BRWB052162167A6 HTTP/1.1" 200 20810 Print-Job >client-error-document-format-not-supported >--8<-------------------------------------------------------->8---

    Looks to me like a bug in FreeBSD's CUPS port.
    Rebuild CUPS with ipptool(1) on.
    $ ipptool -tv ipp://BRWB052162167A6/ipp/print get-printer-attributes.test

    Assuming Get-Printer-Attributes passes, what is document-format-supported?
    John
    groenveld@acm.org

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Salvador Mirzo@21:1/5 to John D Groenveld on Tue Dec 31 23:20:35 2024
    groenveld@acm.org (John D Groenveld) writes:

    In article <867c7lfetn.fsf@example.com>,
    Salvador Mirzo <smirzo@example.com> wrote:
    This installed the printer just fine in CUPS. However, when I try to
    print something with it, it seems CUPS won't even send the job to the >>printer and annonates an error message in /var/log/cups/access_log:

    --8<-------------------------------------------------------->8---
    localhost - - [27/Dec/2024:09:31:48 -0300] "POST
    /printers/BRWB052162167A6 HTTP/1.1" 200 20810 Print-Job >>client-error-document-format-not-supported >>--8<-------------------------------------------------------->8---

    Looks to me like a bug in FreeBSD's CUPS port.
    Rebuild CUPS with ipptool(1) on.
    $ ipptool -tv ipp://BRWB052162167A6/ipp/print get-printer-attributes.test

    Hi, John! I was missing the package cups-filters-1.28.17_6. After I
    installed it, that error vanished and I've been able to print with CUPS
    just fine, minus an issue with two-sided print outs (they're all coming
    out with the flip long edge option, no matter what I choose).

    Assuming Get-Printer-Attributes passes, what is document-format-supported?

    I have not installed CUPS from the Ports Collection. I pkg-installed
    it. To try the ipptool, I think I'd need to compile it and reset up everything. Maybe I will. Maybe I should be using IPP, but it's not
    clear what I'd be gaining exactly.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Salvador Mirzo@21:1/5 to Salvador Mirzo on Tue Dec 31 23:21:13 2024
    Salvador Mirzo <smirzo@example.com> writes:

    Matthias Meyser <Meyser@xenet.de> writes:

    Am 27.12.2024 um 15:55 schrieb Matthias Meyser:
    This ist a PCL Printer.
    see
    https://docs.freebsd.org/de/books/handbook/printing/#printing-lpd-filters-ps2pcl


    in english :)

    https://docs.freebsd.org/en/books/handbook/printing/#printing-lpd-filters-ps2pcl

    Thank you so much. That allows me to use lpd and it's working. The
    handbook test was successful and I just asked Firefox to print a text document using /usr/bin/lpr (using my /etc/printcap entry). It worked!

    I would still like to understand what's going on with CUPS, so I will continue the troubleshooting but I'm very happy that I can print just
    fine with lpd.

    I found the FreeBSD package called print/brlaser. It gives a driver to
    CUPS that matches the printer Brother HL-L2360DW exactly. Now I can
    print with CUPS as well. But there's still one thing that I cannot do
    that is to print on two sides of the paper using the flip on long edge
    option. I'm printing on both sides just fine, but no matter what I do
    it always comes out with flip on short edge. I wonder if anyone knows
    anything I could do. My desire nearly 100% of the times is to print
    two-sided with flip-on-long-edge, so if I could somehow set the printer
    to always do this, that'd be right nearly 100%.

    I found a file at

    /usr/local/etc/cups/ppd/Brother_HL-L2360D_series.ppd

    that has the content below. I don't know how to change this file, but
    perhaps it could be of some hope. (I'm also showing my CUPS
    configuration below, but I suppose it's not relevant.)

    --8<-------------------------------------------------------->8---
    *PPD-Adobe: "4.3"
    *%%%% PPD file for HL-L2360D series with CUPS.
    *%%%% Created by the CUPS PPD Compiler CUPS v2.4.11.
    *FormatVersion: "4.3"
    *FileVersion: "6"
    *LanguageVersion: English
    *LanguageEncoding: ISOLatin1
    *PCFileName: "brl2360d.ppd"
    *Product: "(HL-L2360D series)"
    *Manufacturer: "Brother"
    *ModelName: "Brother HL-L2360D series"
    *ShortNickName: "Brother HL-L2360D series"
    *NickName: "Brother HL-L2360D series, using brlaser v6"
    *PSVersion: "(3010.000) 0"
    *LanguageLevel: "3"
    *ColorDevice: False
    *DefaultColorSpace: Gray
    *FileSystem: False
    *Throughput: "1"
    *LandscapeOrientation: Plus90
    *TTRasterizer: Type42
    *% Driver-defined attributes...
    *1284DeviceID: "MFG:Brother;CMD:PJL,PCL,PCLXL,URF;MDL:HL-L2360D series;CLS:PRINTER;CID:Brother Laser Type1;URF:W8,CP1,IS4-1,MT1-3-4-5-8,OB10,PQ4,RS300-600,V1.3,DM1;"
    *cupsBackSide: "Rotated"
    *cupsVersion: 2.4
    *cupsModelNumber: 0
    *cupsManualCopies: False
    *cupsFilter: "application/vnd.cups-raster 33 rastertobrlaser"
    *cupsLanguages: "en"
    *OpenUI *PageSize/Media Size: PickOne
    *OrderDependency: 10 AnySetup *PageSize
    *DefaultPageSize: A4
    *PageSize A4/A4: "<</PageSize[595 842]/ImagingBBox null>>setpagedevice" *PageSize A5/A5: "<</PageSize[420 595]/ImagingBBox null>>setpagedevice" *PageSize A6/A6: "<</PageSize[297 420]/ImagingBBox null>>setpagedevice" *PageSize B5/JIS B5: "<</PageSize[516 729]/ImagingBBox null>>setpagedevice" *PageSize B6/JIS B6: "<</PageSize[363 516]/ImagingBBox null>>setpagedevice" *PageSize EnvC5/Envelope C5: "<</PageSize[459 649]/ImagingBBox null>>setpagedevice"
    *PageSize EnvMonarch/Envelope Monarch: "<</PageSize[279 540]/ImagingBBox null>>setpagedevice"
    *PageSize EnvDL/Envelope DL: "<</PageSize[312 624]/ImagingBBox null>>setpagedevice"
    *PageSize Executive/Executive: "<</PageSize[522 756]/ImagingBBox null>>setpagedevice"
    *PageSize Legal/US Legal: "<</PageSize[612 1008]/ImagingBBox null>>setpagedevice"
    *PageSize Letter/US Letter: "<</PageSize[612 792]/ImagingBBox null>>setpagedevice"
    *CloseUI: *PageSize
    *OpenUI *PageRegion/Media Size: PickOne
    *OrderDependency: 10 AnySetup *PageRegion
    *DefaultPageRegion: A4
    *PageRegion A4/A4: "<</PageSize[595 842]/ImagingBBox null>>setpagedevice" *PageRegion A5/A5: "<</PageSize[420 595]/ImagingBBox null>>setpagedevice" *PageRegion A6/A6: "<</PageSize[297 420]/ImagingBBox null>>setpagedevice" *PageRegion B5/JIS B5: "<</PageSize[516 729]/ImagingBBox null>>setpagedevice" *PageRegion B6/JIS B6: "<</PageSize[363 516]/ImagingBBox null>>setpagedevice" *PageRegion EnvC5/Envelope C5: "<</PageSize[459 649]/ImagingBBox null>>setpagedevice"
    *PageRegion EnvMonarch/Envelope Monarch: "<</PageSize[279 540]/ImagingBBox null>>setpagedevice"
    *PageRegion EnvDL/Envelope DL: "<</PageSize[312 624]/ImagingBBox null>>setpagedevice"
    *PageRegion Executive/Executive: "<</PageSize[522 756]/ImagingBBox null>>setpagedevice"
    *PageRegion Legal/US Legal: "<</PageSize[612 1008]/ImagingBBox null>>setpagedevice"
    *PageRegion Letter/US Letter: "<</PageSize[612 792]/ImagingBBox null>>setpagedevice"
    *CloseUI: *PageRegion
    *DefaultImageableArea: A4
    *ImageableArea A4/A4: "8 8 587 826"
    *ImageableArea A5/A5: "8 8 412 579"
    *ImageableArea A6/A6: "8 8 289 404"
    *ImageableArea B5/JIS B5: "8 8 508 713"
    *ImageableArea B6/JIS B6: "8 8 355 500"
    *ImageableArea EnvC5/Envelope C5: "8 8 451 633"
    *ImageableArea EnvMonarch/Envelope Monarch: "8 8 271 524"
    *ImageableArea EnvDL/Envelope DL: "8 8 304 608"
    *ImageableArea Executive/Executive: "8 8 514 740"
    *ImageableArea Legal/US Legal: "8 8 604 992"
    *ImageableArea Letter/US Letter: "8 8 604 776"
    *DefaultPaperDimension: A4
    *PaperDimension A4/A4: "595 842"
    *PaperDimension A5/A5: "420 595"
    *PaperDimension A6/A6: "297 420"
    *PaperDimension B5/JIS B5: "516 729"
    *PaperDimension B6/JIS B6: "363 516"
    *PaperDimension EnvC5/Envelope C5: "459 649"
    *PaperDimension EnvMonarch/Envelope Monarch: "279 540"
    *PaperDimension EnvDL/Envelope DL: "312 624"
    *PaperDimension Executive/Executive: "522 756"
    *PaperDimension Legal/US Legal: "612 1008"
    *PaperDimension Letter/US Letter: "612 792"
    *OpenUI *Resolution/Resolution: PickOne
    *OrderDependency: 10 AnySetup *Resolution
    *DefaultResolution: 600dpi
    *Resolution 600dpi/600 DPI: "<</HWResolution[600 600]/cupsBitsPerColor 1/cupsRowCount 0/cupsRowFeed 0/cupsRowStep 0/cupsColorSpace 3>>setpagedevice"
    *Resolution 1200dpi/1200HQ: "<</HWResolution[1200 1200]/cupsBitsPerColor 1/cupsRowCount 0/cupsRowFeed 0/cupsRowStep 0/cupsColorSpace 3>>setpagedevice"
    *CloseUI: *Resolution
    *OpenUI *InputSlot/Media Source: PickOne
    *OrderDependency: 10 AnySetup *InputSlot
    *DefaultInputSlot: Auto
    *InputSlot Auto/Auto-select: "<</MediaPosition 0>>setpagedevice"
    *InputSlot Tray1/Tray 1: "<</MediaPosition 1>>setpagedevice"
    *InputSlot Tray2/Tray 2: "<</MediaPosition 2>>setpagedevice"
    *InputSlot Tray3/Tray 3: "<</MediaPosition 3>>setpagedevice"
    *InputSlot MPTray/MP Tray: "<</MediaPosition 4>>setpagedevice"
    *InputSlot Manual/Manual: "<</MediaPosition 5>>setpagedevice"
    *CloseUI: *InputSlot
    *OpenUI *MediaType/Media Type: PickOne
    *OrderDependency: 10 AnySetup *MediaType
    *DefaultMediaType: PLAIN
    *MediaType PLAIN/Plain paper: "<</MediaType(PLAIN)/cupsMediaType 0>>setpagedevice"
    *MediaType THIN/Thin paper: "<</MediaType(THIN)/cupsMediaType 1>>setpagedevice" *MediaType THICK/Thick paper: "<</MediaType(THICK)/cupsMediaType 2>>setpagedevice"
    *MediaType THICKER/Thicker paper: "<</MediaType(THICKER)/cupsMediaType 3>>setpagedevice"
    *MediaType BOND/Bond paper: "<</MediaType(BOND)/cupsMediaType 4>>setpagedevice" *MediaType TRANS/Transparencies: "<</MediaType(TRANS)/cupsMediaType 5>>setpagedevice"
    *MediaType ENV/Envelopes: "<</MediaType(ENV)/cupsMediaType 6>>setpagedevice" *MediaType ENV-THICK/Thick envelopes: "<</MediaType(ENV-THICK)/cupsMediaType 7>>setpagedevice"
    *MediaType ENV-THIN/Thin envelopes: "<</MediaType(ENV-THIN)/cupsMediaType 8>>setpagedevice"
    *CloseUI: *MediaType
    *OpenUI *brlaserEconomode/Toner save mode: Boolean
    *OrderDependency: 10 AnySetup *brlaserEconomode
    *DefaultbrlaserEconomode: False
    *brlaserEconomode False/Off: "<</cupsInteger10 0>>setpagedevice" *brlaserEconomode True/On: "<</cupsInteger10 1>>setpagedevice"
    *CloseUI: *brlaserEconomode
    *OpenUI *Duplex/2-Sided Printing: PickOne
    *OrderDependency: 10 AnySetup *Duplex
    *DefaultDuplex: None
    *Duplex None/Off (1-Sided): "<</Duplex false>>setpagedevice"
    *Duplex DuplexNoTumble/Long-Edge (Portrait): "<</Duplex true/Tumble false>>setpagedevice"
    *Duplex DuplexTumble/Short-Edge (Landscape): "<</Duplex true/Tumble true>>setpagedevice"
    *CloseUI: *Duplex
    *DefaultFont: Courier
    *Font AvantGarde-Book: Standard "(1.05)" Standard ROM
    *Font AvantGarde-BookOblique: Standard "(1.05)" Standard ROM
    *Font AvantGarde-Demi: Standard "(1.05)" Standard ROM
    *Font AvantGarde-DemiOblique: Standard "(1.05)" Standard ROM
    *Font Bookman-Demi: Standard "(1.05)" Standard ROM
    *Font Bookman-DemiItalic: Standard "(1.05)" Standard ROM
    *Font Bookman-Light: Standard "(1.05)" Standard ROM
    *Font Bookman-LightItalic: Standard "(1.05)" Standard ROM
    *Font Courier: Standard "(1.05)" Standard ROM
    *Font Courier-Bold: Standard "(1.05)" Standard ROM
    *Font Courier-BoldOblique: Standard "(1.05)" Standard ROM
    *Font Courier-Oblique: Standard "(1.05)" Standard ROM
    *Font Helvetica: Standard "(1.05)" Standard ROM
    *Font Helvetica-Bold: Standard "(1.05)" Standard ROM
    *Font Helvetica-BoldOblique: Standard "(1.05)" Standard ROM
    *Font Helvetica-Narrow: Standard "(1.05)" Standard ROM
    *Font Helvetica-Narrow-Bold: Standard "(1.05)" Standard ROM
    *Font Helvetica-Narrow-BoldOblique: Standard "(1.05)" Standard ROM
    *Font Helvetica-Narrow-Oblique: Standard "(1.05)" Standard ROM
    *Font Helvetica-Oblique: Standard "(1.05)" Standard ROM
    *Font NewCenturySchlbk-Bold: Standard "(1.05)" Standard ROM
    *Font NewCenturySchlbk-BoldItalic: Standard "(1.05)" Standard ROM
    *Font NewCenturySchlbk-Italic: Standard "(1.05)" Standard ROM
    *Font NewCenturySchlbk-Roman: Standard "(1.05)" Standard ROM
    *Font Palatino-Bold: Standard "(1.05)" Standard ROM
    *Font Palatino-BoldItalic: Standard "(1.05)" Standard ROM
    *Font Palatino-Italic: Standard "(1.05)" Standard ROM
    *Font Palatino-Roman: Standard "(1.05)" Standard ROM
    *Font Symbol: Special "(001.005)" Special ROM
    *Font Times-Bold: Standard "(1.05)" Standard ROM
    *Font Times-BoldItalic: Standard "(1.05)" Standard ROM
    *Font Times-Italic: Standard "(1.05)" Standard ROM
    *Font Times-Roman: Standard "(1.05)" Standard ROM
    *Font ZapfChancery-MediumItalic: Standard "(1.05)" Standard ROM
    *Font ZapfDingbats: Special "(001.005)" Special ROM
    *% End of brl2360d.ppd, 08482 bytes. --8<-------------------------------------------------------->8---

    (*) CUPS Configuration File, likely irrelevant

    LogLevel debug
    PageLogFormat
    MaxLogSize 1m
    ErrorPolicy stop-printer
    Port 631
    Listen /var/run/cups/cups.sock
    Browsing On
    BrowseLocalProtocols dnssd
    DefaultAuthType Basic
    WebInterface Yes
    <Location />
    Order allow,deny
    Allow all
    </Location>
    <Location /admin>
    AuthType Default
    Require user @SYSTEM
    Order allow,deny
    Allow all
    </Location>
    <Location /admin/conf>
    AuthType Default
    Require user @SYSTEM
    Order allow,deny
    Allow all
    </Location>
    <Location /admin/log>
    AuthType Default
    Require user @SYSTEM
    Order allow,deny
    Allow all
    </Location>
    <Policy default>
    JobPrivateAccess default
    JobPrivateValues default
    SubscriptionPrivateAccess default
    SubscriptionPrivateValues default
    <Limit Create-Job Print-Job Print-URI Validate-Job>
    Order deny,allow
    </Limit>
    <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs
    Close-Job CUPS-Move-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>
    <Limit CUPS-Get-Document>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>
    <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    </Limit>
    <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After
    Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    </Limit>
    <Limit CUPS-Authenticate-Job>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>
    <Limit All>
    Order deny,allow
    </Limit>
    </Policy>
    <Policy authenticated>
    JobPrivateAccess default
    JobPrivateValues default
    SubscriptionPrivateAccess default
    SubscriptionPrivateValues default
    <Limit Create-Job Print-Job Print-URI Validate-Job>
    AuthType Default
    Order deny,allow
    </Limit>
    <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs
    Close-Job CUPS-Move-Job CUPS-Get-Document>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>
    <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    </Limit>
    <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After
    Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    </Limit>
    <Limit Cancel-Job CUPS-Authenticate-Job>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>
    <Limit All>
    Order deny,allow
    </Limit>
    </Policy>
    <Policy kerberos>
    JobPrivateAccess default
    JobPrivateValues default
    SubscriptionPrivateAccess default
    SubscriptionPrivateValues default
    <Limit Create-Job Print-Job Print-URI Validate-Job>
    AuthType Negotiate
    Order deny,allow
    </Limit>
    <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs
    Close-Job CUPS-Move-Job CUPS-Get-Document>
    AuthType Negotiate
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>
    <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    </Limit>
    <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After
    Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    </Limit>
    <Limit Cancel-Job CUPS-Authenticate-Job>
    AuthType Negotiate
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>
    <Limit All>
    Order deny,allow
    </Limit>
    </Policy>
    BrowseWebIF Yes

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Winston@21:1/5 to Salvador Mirzo on Tue Dec 31 22:17:09 2024
    Salvador Mirzo <smirzo@example.com> writes:
    But there's still one thing that I cannot do
    that is to print on two sides of the paper using the flip on long edge option. I'm printing on both sides just fine, but no matter what I do
    it always comes out with flip on short edge. I wonder if anyone knows anything I could do. My desire nearly 100% of the times is to print two-sided with flip-on-long-edge, so if I could somehow set the printer
    to always do this, that'd be right nearly 100%.

    I'm mostly a spectator to this thread with no actual knowledge about the
    issue, but in perusing your previous article, these stood out:

    *cupsBackSide: "Rotated"

    *OpenUI *Duplex/2-Sided Printing: PickOne
    *OrderDependency: 10 AnySetup *Duplex
    *DefaultDuplex: None
    *Duplex None/Off (1-Sided): "<</Duplex false>>setpagedevice"
    *Duplex DuplexNoTumble/Long-Edge (Portrait): "<</Duplex true/Tumble false>>setpagedevice"
    *Duplex DuplexTumble/Short-Edge (Landscape): "<</Duplex true/Tumble true>>setpagedevice"
    *CloseUI: *Duplex

    Some full-duplex printers print on both sides of the page, same paper
    edge "up" for both sides (i.e., like pages in a book), when simply sent consecutive pages of text as if they were individual pages.
    -WBE

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John D Groenveld@21:1/5 to Salvador Mirzo on Wed Jan 1 16:16:34 2025
    In article <865xmz46mk.fsf@antartida.xyz>,
    Salvador Mirzo <smirzo@example.com> wrote:
    Hi, John! I was missing the package cups-filters-1.28.17_6. After I >installed it, that error vanished and I've been able to print with CUPS
    just fine, minus an issue with two-sided print outs (they're all coming
    out with the flip long edge option, no matter what I choose).

    I'm fairly certain your printer should not require the CUPS filters and
    you should be able to spew PostScript and PDF directly:
    $ nc BRWB052162167A6 9100 < example.pdf

    I have not installed CUPS from the Ports Collection. I pkg-installed
    it. To try the ipptool, I think I'd need to compile it and reset up >everything. Maybe I will. Maybe I should be using IPP, but it's not
    clear what I'd be gaining exactly.

    The promise of modern CUPS and modern printers, is to automagically
    interrogate the printers capabilities and controls without loads of dependencies to create and spew vendor specific print control languages.

    I'm curious what ipptool(1) returns for your Brother printer so if you
    have bandwidth to download ports and rebuild print/cups package with
    ipptool enabled, I would like to see where things have gone sideways.

    The handbook walks you thru fetching the ports tree and configuring
    and building port package: <URL:https://docs.freebsd.org/en/books/handbook/ports/#ports-using>
    John
    groenveld@acm.org

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Salvador Mirzo@21:1/5 to John D Groenveld on Fri Jan 3 21:07:34 2025
    groenveld@acm.org (John D Groenveld) writes:

    In article <865xmz46mk.fsf@antartida.xyz>,
    Salvador Mirzo <smirzo@example.com> wrote:
    Hi, John! I was missing the package cups-filters-1.28.17_6. After I >>installed it, that error vanished and I've been able to print with CUPS >>just fine, minus an issue with two-sided print outs (they're all coming
    out with the flip long edge option, no matter what I choose).

    I'm fairly certain your printer should not require the CUPS filters and
    you should be able to spew PostScript and PDF directly:
    $ nc BRWB052162167A6 9100 < example.pdf

    I tried this today and I got the same result. It prints the PDF content
    as text. First line was something like %PDF.

    But hang on---I must explain that my lab has been destroyed. I was
    running FreeBSD and getting to know the system. It turns out FreeBSD
    doesn't suspend to disk yet, so I gave OpenBSD a try and I lost my
    ability to boot into FreeBSD. The test above I did today was actually
    on OpenBSD.

    Since you're curious, I can try to dual boot and continue our tests.
    I'll reinstall FreeBSD if necessary. My experience so far with respect
    to the printer is that all the behavior I saw in FreeBSD is present here
    in OpenBSD too. But I'll let you guide the investigation. If we should
    get back to FreeBSD, I will.

    By the way, right now the printer is installed with the lpadmin command
    line that you recommended first. CUPS sees the printer. When I try to
    print a couple of pages from a PDF opened in Firefox, I see the printer available in the printing dialog. However, the printer doesn't do
    anything. I see no errors. Both CUPS logs---access_log and error_log---display no entry relative to this attempt at print.

    (I did remove in CUPS the printer that was there before.)

    This situation is also the same thing I saw in FreeBSD when I first
    tried to use IPP.

    By the way, here's the output of that command you suggested in a
    previous follow-up. (Some very long lines will be included.) From the
    output, I found the URL http://BRWB052162167A6/net/net/airprint.html and there's a lot of detailed information about the printer there.

    Looks to me like a bug in FreeBSD's CUPS port.
    Rebuild CUPS with ipptool(1) on.
    $ ipptool -tv ipp://BRWB052162167A6/ipp/print get-printer-attributes.test

    Assuming Get-Printer-Attributes passes, what is document-format-supported?

    # ipptool -tv ipp://BRWB052162167A6/ipp/print get-printer-attributes.test "/usr/local/share/cups/ipptool/get-printer-attributes.test":
    Get-Printer-Attributes:
    attributes-charset (charset) = utf-8
    attributes-natural-language (naturalLanguage) = en
    printer-uri (uri) = ipp://BRWB052162167A6:631/ipp/print
    requested-attributes (1setOf keyword) = all,media-col-database
    Get printer attributes using get-printer-attributes [PASS]
    RECEIVED: 20968 bytes in response
    status-code = successful-ok (successful-ok)
    attributes-charset (charset) = utf-8
    attributes-natural-language (naturalLanguage) = en
    copies-default (integer) = 1
    finishings-default (enum) = none
    media-default (keyword) = iso_a4_210x297mm
    media-col-default (collection) = {media-type=stationery media-size={x-dimension=21000 y-dimension=29700} media-bottom-margin=432 media-left-margin=432 media-right-margin=432 media-top-margin=432 media-source=auto media-source-properties={media-
    source-feed-direction=short-edge-first media-source-feed-orientation=3}}
    orientation-requested-default (enum) = portrait
    output-bin-default (keyword) = face-down
    output-mode-default (keyword) = monochrome
    print-quality-default (enum) = normal
    printer-resolution-default (resolution) = 600dpi
    sides-default (keyword) = two-sided-long-edge
    print-color-mode-default (keyword) = monochrome
    print-content-optimize-default (keyword) = auto
    print-scaling-default (keyword) = auto
    copies-supported (rangeOfInteger) = 1-99
    finishings-supported (enum) = none
    media-supported (1setOf keyword) = iso_a4_210x297mm,na_letter_8.5x11in,na_legal_8.5x14in,na_executive_7.25x10.5in,iso_a5_148x210mm,iso_a6_105x148mm,iso_b5_176x250mm,na_number-10_4.125x9.5in,iso_dl_110x220mm,iso_c5_162x229mm,na_monarch_3.875x7.5in,
    na_index-3x5_3x5in,na_foolscap_8.5x13in,custom_min_76.2x127mm,custom_max_215.9x355.6mm
    media-col-supported (1setOf keyword) = media-type,media-size,media-top-margin,media-left-margin,media-right-margin,media-bottom-margin,media-source
    orientation-requested-supported (1setOf enum) = portrait,landscape
    output-bin-supported (keyword) = face-down
    output-mode-supported (1setOf keyword) = monochrome,auto
    print-quality-supported (enum) = normal
    printer-resolution-supported (1setOf resolution) = 600dpi,2400x600dpi,300dpi
    sides-supported (1setOf keyword) = one-sided,two-sided-long-edge,two-sided-short-edge
    print-color-mode-supported (1setOf keyword) = monochrome,auto
    print-content-optimize-supported (keyword) = auto
    print-scaling-supported (1setOf keyword) = auto,auto-fit,fill,fit,none
    generated-natural-language-supported (1setOf naturalLanguage) = en,fr,de,it,es,sv,da,no,nl,fi,pt,tr,pl,ru,cs,hu,bg,ro,sk,pt,hr,sl
    printer-uri-supported (uri) = ipp://BRWB052162167A6/ipp/print
    uri-security-supported (keyword) = none
    uri-authentication-supported (keyword) = none
    printer-name (nameWithoutLanguage) = BRWB052162167A6
    printer-location (textWithoutLanguage) =
    printer-info (textWithoutLanguage) = Brother HL-L2360D series
    printer-make-and-model (textWithoutLanguage) = Brother HL-L2360D series
    printer-state (enum) = idle
    printer-state-reasons (1setOf keyword) = opc-life-over-warning,toner-low-warning
    ipp-versions-supported (1setOf keyword) = 1.0,1.1,2.0
    operations-supported (1setOf enum) = Print-Job,Validate-Job,Create-Job,Send-Document,Cancel-Job,Get-Job-Attributes,Get-Jobs,Get-Printer-Attributes,Identify-Printer
    multiple-document-jobs-supported (boolean) = false
    multiple-operation-time-out (integer) = 150
    natural-language-configured (naturalLanguage) = en
    charset-configured (charset) = utf-8
    charset-supported (charset) = utf-8
    document-format-supported (1setOf mimeMediaType) = application/octet-stream,image/urf,image/pwg-raster
    document-format-default (mimeMediaType) = application/octet-stream
    printer-is-accepting-jobs (boolean) = true
    queued-job-count (integer) = 0
    pdl-override-supported (keyword) = attempted
    printer-up-time (integer) = 175
    compression-supported (keyword) = none
    color-supported (boolean) = false
    job-creation-attributes-supported (1setOf keyword) = copies,finishings,ipp-attribute-fidelity,job-name,media,media-col,orientation-requested,output-bin,output-mode,print-quality,printer-resolution,requesting-user-name,sides,print-color-mode
    landscape-orientation-requested-preferred (enum) = 5
    marker-colors (nameWithoutLanguage) = #000000
    marker-high-levels (integer) = 100
    marker-levels (integer) = 10
    marker-low-levels (integer) = 10
    marker-names (nameWithoutLanguage) = BK
    marker-types (keyword) = toner
    media-bottom-margin-supported (integer) = 432
    media-left-margin-supported (integer) = 432
    media-right-margin-supported (integer) = 432
    media-source-supported (1setOf keyword) = auto,manual,tray-1
    media-top-margin-supported (integer) = 432
    media-type-supported (1setOf keyword) = stationery,stationery-lightweight,stationery-heavyweight,stationery-cover,envelope,envelope-heavyweight,envelope-lightweight,stationery-recycled,labels,stationery-bond
    media-size-supported (1setOf collection) = {x-dimension=21000 y-dimension=29700},{x-dimension=21590 y-dimension=27940},{x-dimension=21590 y-dimension=35560},{x-dimension=18415 y-dimension=26670},{x-dimension=14800 y-dimension=21000},{x-dimension=
    10500 y-dimension=14800},{x-dimension=17600 y-dimension=25000},{x-dimension=10477 y-dimension=24130},{x-dimension=11000 y-dimension=22000},{x-dimension=16200 y-dimension=22900},{x-dimension=9842 y-dimension=19050},{x-dimension=7620 y-dimension=12700},{x-
    dimension=21590 y-dimension=33020},{x-dimension=7620-21590 y-dimension=12700-35560}
    pages-per-minute (integer) = 30
    pdf-versions-supported (keyword) = none
    printer-device-id (textWithoutLanguage) = MFG:Brother;CMD:PJL,PCL,PCLXL,URF;MDL:HL-L2360D series;CLS:PRINTER;CID:Brother Laser Type1;URF:W8,CP1,IS4-1,MT1-3-4-5-8,OB10,PQ4,RS300-600,V1.3,DM1;
    printer-icons (1setOf uri) = http://BRWB052162167A6/ipp/printer-icons-128.png,http://BRWB052162167A6/ipp/printer-icons-512.png
    printer-more-info (uri) = http://BRWB052162167A6/net/net/airprint.html
    printer-uuid (uri) = urn:uuid:e3248000-80ce-11db-8000-3c2af43f4d7c
    urf-supported (1setOf keyword) = W8,CP1,IS4-1,MT1-3-4-5-8,OB10,PQ4,RS300-600,V1.3,DM1
    job-impressions-supported (rangeOfInteger) = 1-999
    printer-geo-location (unknown) = unknown
    printer-dns-sd-name (nameWithoutLanguage) = Brother HL-L2360D series
    printer-supply-info-uri (uri) = http://BRWB052162167A6/general/status.html
    media-ready (keyword) = iso_a4_210x297mm
    media-col-ready (collection) = {media-size={x-dimension=21000 y-dimension=29700} media-bottom-margin=432 media-left-margin=432 media-right-margin=432 media-top-margin=432 media-source=tray-1 media-source-properties={media-source-feed-direction=
    short-edge-first media-source-feed-orientation=3}}
    printer-kind (1setOf keyword) = document,envelope,label
    identify-actions-default (keyword) = flash
    identify-actions-supported (keyword) = flash
    ipp-features-supported (1setOf keyword) = airprint-1.3,wfds-print-1.0
    pwg-raster-document-resolution-supported (resolution) = 600dpi
    pwg-raster-document-sheet-back (keyword) = rotated
    pwg-raster-document-type-supported (1setOf keyword) = srgb_8,sgray_8
    media-col-database (1setOf collection) = {media-type=stationery media-size={x-dimension=21000 y-dimension=29700} media-bottom-margin=432 media-left-margin=432 media-right-margin=432 media-top-margin=432 media-source=tray-1 media-source-properties=
    {media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=stationery media-size={x-dimension=21590 y-dimension=27940} media-bottom-margin=432 media-left-margin=432 media-right-margin=432 media-top-margin=432 media-source=
    tray-1 media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=stationery media-size={x-dimension=21590 y-dimension=35560} media-bottom-margin=432 media-left-margin=432 media-right-margin=432
    media-top-margin=432 media-source=tray-1 media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=stationery media-size={x-dimension=18415 y-dimension=26670} media-bottom-margin=432 media-left-
    margin=432 media-right-margin=432 media-top-margin=432 media-source=tray-1 media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=stationery media-size={x-dimension=14800 y-dimension=21000}
    media-bottom-margin=432 media-left-margin=432 media-right-margin=432 media-top-margin=432 media-source=tray-1 media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=stationery media-size={x-
    dimension=10500 y-dimension=14800} media-bottom-margin=432 media-left-margin=432 media-right-margin=432 media-top-margin=432 media-source=tray-1 media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{
    media-type=stationery media-size={x-dimension=7620 y-dimension=12700} media-bottom-margin=432 media-left-margin=432 media-right-margin=432 media-top-margin=432 media-source=tray-1 media-source-properties={media-source-feed-direction=short-edge-first
    media-source-feed-orientation=3}},{media-type=stationery media-size={x-dimension=21590 y-dimension=33020} media-bottom-margin=432 media-left-margin=432 media-right-margin=432 media-top-margin=432 media-source=tray-1 media-source-properties={media-source-
    feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=stationery-recycled media-size={x-dimension=21000 y-dimension=29700} media-bottom-margin=432 media-left-margin=432 media-right-margin=432 media-top-margin=432 media-source=tray-
    1 media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=stationery-recycled media-size={x-dimension=21590 y-dimension=27940} media-bottom-margin=432 media-left-margin=432 media-right-margin=
    432 media-top-margin=432 media-source=tray-1 media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=stationery-recycled media-size={x-dimension=21590 y-dimension=35560} media-bottom-margin=432
    media-left-margin=432 media-right-margin=432 media-top-margin=432 media-source=tray-1 media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=stationery-recycled media-size={x-dimension=18415 y-
    dimension=26670} media-bottom-margin=432 media-left-margin=432 media-right-margin=432 media-top-margin=432 media-source=tray-1 media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=stationery-
    recycled media-size={x-dimension=14800 y-dimension=21000} media-bottom-margin=432 media-left-margin=432 media-right-margin=432 media-top-margin=432 media-source=tray-1 media-source-properties={media-source-feed-direction=short-edge-first media-source-
    feed-orientation=3}},{media-type=stationery-recycled media-size={x-dimension=10500 y-dimension=14800} media-bottom-margin=432 media-left-margin=432 media-right-margin=432 media-top-margin=432 media-source=tray-1 media-source-properties={media-source-feed-
    direction=short-edge-first media-source-feed-orientation=3}},{media-type=stationery-recycled media-size={x-dimension=7620 y-dimension=12700} media-bottom-margin=432 media-left-margin=432 media-right-margin=432 media-top-margin=432 media-source=tray-1
    media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=stationery-recycled media-size={x-dimension=21590 y-dimension=33020} media-bottom-margin=432 media-left-margin=432 media-right-margin=432
    media-top-margin=432 media-source=tray-1 media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=labels media-size={x-dimension=21000 y-dimension=29700} media-bottom-margin=432 media-left-margin=
    432 media-right-margin=432 media-top-margin=432 media-source=tray-1 media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=labels media-size={x-dimension=21590 y-dimension=27940} media-bottom-
    margin=432 media-left-margin=432 media-right-margin=432 media-top-margin=432 media-source=tray-1 media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=labels media-size={x-dimension=21590 y-
    dimension=35560} media-bottom-margin=432 media-left-margin=432 media-right-margin=432 media-top-margin=432 media-source=tray-1 media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=labels
    media-size={x-dimension=18415 y-dimension=26670} media-bottom-margin=432 media-left-margin=432 media-right-margin=432 media-top-margin=432 media-source=tray-1 media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-
    orientation=3}},{media-type=labels media-size={x-dimension=14800 y-dimension=21000} media-bottom-margin=432 media-left-margin=432 media-right-margin=432 media-top-margin=432 media-source=tray-1 media-source-properties={media-source-feed-direction=short-
    edge-first media-source-feed-orientation=3}},{media-type=labels media-size={x-dimension=10500 y-dimension=14800} media-bottom-margin=432 media-left-margin=432 media-right-margin=432 media-top-margin=432 media-source=tray-1 media-source-properties={media-
    source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=labels media-size={x-dimension=7620 y-dimension=12700} media-bottom-margin=432 media-left-margin=432 media-right-margin=432 media-top-margin=432 media-source=tray-1
    media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=labels media-size={x-dimension=21590 y-dimension=33020} media-bottom-margin=432 media-left-margin=432 media-right-margin=432 media-top-
    margin=432 media-source=tray-1 media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-size={x-dimension=21000 y-dimension=29700} media-bottom-margin=432 media-left-margin=432 media-right-margin=432
    media-top-margin=432 media-source=manual media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-size={x-dimension=21590 y-dimension=27940} media-bottom-margin=432 media-left-margin=432 media-right-
    margin=432 media-top-margin=432 media-source=manual media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-size={x-dimension=21590 y-dimension=35560} media-bottom-margin=432 media-left-margin=432
    media-right-margin=432 media-top-margin=432 media-source=manual media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-size={x-dimension=18415 y-dimension=26670} media-bottom-margin=432 media-left-
    margin=432 media-right-margin=432 media-top-margin=432 media-source=manual media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-size={x-dimension=14800 y-dimension=21000} media-bottom-margin=432
    media-left-margin=432 media-right-margin=432 media-top-margin=432 media-source=manual media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-size={x-dimension=10500 y-dimension=14800} media-bottom-
    margin=432 media-left-margin=432 media-right-margin=432 media-top-margin=432 media-source=manual media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-size={x-dimension=17600 y-dimension=25000}
    media-bottom-margin=432 media-left-margin=432 media-right-margin=432 media-top-margin=432 media-source=manual media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-size={x-dimension=10477 y-
    dimension=24130} media-bottom-margin=432 media-left-margin=432 media-right-margin=432 media-top-margin=432 media-source=manual media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-size={x-
    dimension=11000 y-dimension=22000} media-bottom-margin=432 media-left-margin=432 media-right-margin=432 media-top-margin=432 media-source=manual media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{
    media-size={x-dimension=16200 y-dimension=22900} media-bottom-margin=432 media-left-margin=432 media-right-margin=432 media-top-margin=432 media-source=manual media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-
    orientation=3}},{media-size={x-dimension=9842 y-dimension=19050} media-bottom-margin=432 media-left-margin=432 media-right-margin=432 media-top-margin=432 media-source=manual media-source-properties={media-source-feed-direction=short-edge-first media-
    source-feed-orientation=3}},{media-size={x-dimension=7620 y-dimension=12700} media-bottom-margin=432 media-left-margin=432 media-right-margin=432 media-top-margin=432 media-source=manual media-source-properties={media-source-feed-direction=short-edge-
    first media-source-feed-orientation=3}},{media-size={x-dimension=21590 y-dimension=33020} media-bottom-margin=432 media-left-margin=432 media-right-margin=432 media-top-margin=432 media-source=manual media-source-properties={media-source-feed-direction=
    short-edge-first media-source-feed-orientation=3}}

    I have not installed CUPS from the Ports Collection. I pkg-installed
    it. To try the ipptool, I think I'd need to compile it and reset up >>everything. Maybe I will. Maybe I should be using IPP, but it's not
    clear what I'd be gaining exactly.

    The promise of modern CUPS and modern printers, is to automagically interrogate the printers capabilities and controls without loads of dependencies to create and spew vendor specific print control languages.

    I'm curious what ipptool(1) returns for your Brother printer so if you
    have bandwidth to download ports and rebuild print/cups package with
    ipptool enabled, I would like to see where things have gone sideways.

    The handbook walks you thru fetching the ports tree and configuring
    and building port package: <URL:https://docs.freebsd.org/en/books/handbook/ports/#ports-using>

    Thanks! I explained above that I destroyed the FreeBSD-lab. It turns
    out here on OpenBSD ipptool(1) is available. Let me know anything else
    you'd like to look at. Thanks!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Salvador Mirzo@21:1/5 to Winston on Fri Jan 3 21:16:17 2025
    Winston <wbe@UBEBLOCK.psr.com.invalid> writes:

    Salvador Mirzo <smirzo@example.com> writes:
    But there's still one thing that I cannot do
    that is to print on two sides of the paper using the flip on long edge
    option. I'm printing on both sides just fine, but no matter what I do
    it always comes out with flip on short edge. I wonder if anyone knows
    anything I could do. My desire nearly 100% of the times is to print
    two-sided with flip-on-long-edge, so if I could somehow set the printer
    to always do this, that'd be right nearly 100%.

    I'm mostly a spectator to this thread with no actual knowledge about the issue, but in perusing your previous article, these stood out:

    *cupsBackSide: "Rotated"

    *OpenUI *Duplex/2-Sided Printing: PickOne
    *OrderDependency: 10 AnySetup *Duplex
    *DefaultDuplex: None
    *Duplex None/Off (1-Sided): "<</Duplex false>>setpagedevice"
    *Duplex DuplexNoTumble/Long-Edge (Portrait): "<</Duplex true/Tumble false>>setpagedevice"
    *Duplex DuplexTumble/Short-Edge (Landscape): "<</Duplex true/Tumble true>>setpagedevice"
    *CloseUI: *Duplex

    I don't really know what these lines are saying. It looks to me like a key-value table, but that's an assumption I'm making. I have no idea
    what values are available---I have no made sense of this syntax.

    Some full-duplex printers print on both sides of the page, same paper
    edge "up" for both sides (i.e., like pages in a book), when simply sent consecutive pages of text as if they were individual pages.

    Over here so far this printer is printing two-side-short-edge on any two
    pages I send to the printer. (Except for the printer settings I just
    printed out after learning about the web interface of the printer---a
    URL that appeared in the ipptool(1) that John Groenveld mentioned. It
    did print 3 pages of settings and it was two-sided-long-edge.) Either I
    tell it to do one-sided or it does long-edge. So even if I had the
    patience to always print two and two pages---if I understood you
    correctly---, I don't think I'd get the same effect.

    I've been living with two-sided-short-edge; it's not the end of the
    world. I print mostly to read away from my desk. Once upon a time I
    printed my master's and doctorate dissertation, but I have no other dissertation planned to be printed any time soon.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Salvador Mirzo@21:1/5 to John D Groenveld on Sat Jan 25 12:39:14 2025
    groenveld@acm.org (John D Groenveld) writes:

    In article <865xmz46mk.fsf@antartida.xyz>,
    Salvador Mirzo <smirzo@example.com> wrote:
    Hi, John! I was missing the package cups-filters-1.28.17_6. After I >>installed it, that error vanished and I've been able to print with CUPS >>just fine, minus an issue with two-sided print outs (they're all coming
    out with the flip long edge option, no matter what I choose).

    I'm fairly certain your printer should not require the CUPS filters and
    you should be able to spew PostScript and PDF directly:
    $ nc BRWB052162167A6 9100 < example.pdf

    I could never make this work, but I believe you're right. Looking at my printer settings (which I printed out using the printer's menu) I
    see... On page 3/3, in network configuration, I see:

    <Active services> BRN3C2AF43F4D7C
    BINARY_P1
    TEXT_P1
    POSTSCRIPT_P1
    PCL_P1
    BRN3C2AF43F4D7C_AT

    I've seen in the CUPS administration that a URL mentions BINARY_P1, so
    it seems that CUPS was using this BINARY_P1 service. Perhaps if I were
    to change it to POSTSCRIPT_P1, it would then accept PostScript from the network.

    But my experience with CUPS was not very good because I could never
    print two-sided-long-edge. It always printed two-sided-short-edge (or one-sided). Since I was able to make it always print
    two-sided-long-edge by not using CUPS at all, I gave up on CUPS.

    I have not installed CUPS from the Ports Collection. I pkg-installed
    it. To try the ipptool, I think I'd need to compile it and reset up >>everything. Maybe I will. Maybe I should be using IPP, but it's not
    clear what I'd be gaining exactly.

    The promise of modern CUPS and modern printers, is to automagically interrogate the printers capabilities and controls without loads of dependencies to create and spew vendor specific print control languages.

    I'm curious what ipptool(1) returns for your Brother printer so if you
    have bandwidth to download ports and rebuild print/cups package with
    ipptool enabled, I would like to see where things have gone sideways.

    The handbook walks you thru fetching the ports tree and configuring
    and building port package: <URL:https://docs.freebsd.org/en/books/handbook/ports/#ports-using>

    You already know I switched to OpenBSD in the process of debugging this.
    FWIW, I was able to set up the printer to use IPP. I was able to print
    with it, but with the same two-sided-short-edge behavior as using the
    LPD:// URL in CUPS.

    All in all, CUPS worked, but it turns out my life has been better with
    just using /etc/printcap and lpr.

    I wanted to thank you for the help!

    If I find anything new, I'll post again.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John D Groenveld@21:1/5 to smirzo@example.com on Sun Jan 26 01:06:17 2025
    In article <87wmei6gyl.fsf@example.com>,
    Salvador Mirzo <smirzo@example.com> wrote:
    I could never make this work, but I believe you're right. Looking at my >printer settings (which I printed out using the printer's menu) I
    see... On page 3/3, in network configuration, I see:

    <Active services> BRN3C2AF43F4D7C
    BINARY_P1
    TEXT_P1
    POSTSCRIPT_P1
    PCL_P1
    BRN3C2AF43F4D7C_AT

    I've seen in the CUPS administration that a URL mentions BINARY_P1, so
    it seems that CUPS was using this BINARY_P1 service. Perhaps if I were
    to change it to POSTSCRIPT_P1, it would then accept PostScript from the >network.

    Spew a little PostScript to it.
    ISTR ghostscript includes some samples or you can use enscript, a2ps
    and friends to generate some.

    But my experience with CUPS was not very good because I could never
    print two-sided-long-edge. It always printed two-sided-short-edge (or >one-sided). Since I was able to make it always print
    two-sided-long-edge by not using CUPS at all, I gave up on CUPS.

    OpenBSD's ipptool(1) claims your printer supports short and long edge.
    Try with cups-lpr(1)
    <URL:https://openprinting.github.io/cups/doc/man-lpr.html>
    | -o sides=two-sided-long-edge
    | Prints on both sides of the paper for portrait output.
    | -o sides=two-sided-short-edge
    | Prints on both sides of the paper for landscape output.


    You already know I switched to OpenBSD in the process of debugging this. >FWIW, I was able to set up the printer to use IPP. I was able to print
    with it, but with the same two-sided-short-edge behavior as using the
    LPD:// URL in CUPS.

    All in all, CUPS worked, but it turns out my life has been better with
    just using /etc/printcap and lpr.

    I wanted to thank you for the help!

    If I find anything new, I'll post again.

    If you get OpenBSD's cups to work, that will point to a bug in FreeBSD's.

    BTW my WAG is OpenBSD's vmm supports FreeBSD guests if you want test
    FreeBSD without dual booting: <URL:https://www.openbsd.org/faq/faq16.html#StartVm>

    John
    groenveld@acm.org

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Salvador Mirzo@21:1/5 to John D Groenveld on Wed Feb 12 10:57:35 2025
    groenveld@acm.org (John D Groenveld) writes:

    In article <87wmei6gyl.fsf@example.com>,
    Salvador Mirzo <smirzo@example.com> wrote:
    I could never make this work, but I believe you're right. Looking at my >>printer settings (which I printed out using the printer's menu) I
    see... On page 3/3, in network configuration, I see:

    <Active services> BRN3C2AF43F4D7C
    BINARY_P1
    TEXT_P1
    POSTSCRIPT_P1
    PCL_P1
    BRN3C2AF43F4D7C_AT

    I've seen in the CUPS administration that a URL mentions BINARY_P1, so
    it seems that CUPS was using this BINARY_P1 service. Perhaps if I were
    to change it to POSTSCRIPT_P1, it would then accept PostScript from the >>network.

    Spew a little PostScript to it.
    ISTR ghostscript includes some samples or you can use enscript, a2ps
    and friends to generate some.

    CUPS and the printer were installed from scratch using the IPP
    ``driver'' as you instructed me in this thread. I used a2ps to
    transform a text file into a PS one. I sent the document to the printer directly on port 9100 and I got out the PostScript code in plain text.

    Then I changed the printer's CUPS configuration to use the LPD protocol
    and I manually set the queue to POSTSCRIPT_P1, having chosen (as the
    driver) the Brother HL-L2360D series from the list installed by the
    /brsaler/ OpenBSD package. Then I used CUPS's lpr to send the document
    and I got out a nice looking PostScript document made by a2ps. This
    proves this printer indeed talks PostScript as you said.

    Then I went to try two-sided-long-edge. I began by trying to print with programs such as evince (a GTK PDF viewer), qpdfview (a QT PDF viewer)
    and Firefox (another GTK program) and I explicitly asked for two-sided-long-edge always getting two-sided-short-edge. I tried to ask
    for one-sided and I got a one-sided print out. In other words, things
    behave almost as one would expect; the only problem being that two-sided-long-edge always behaves like two-sided-short-edge.

    I then tried CUPS's lpr on the command line---below.

    But my experience with CUPS was not very good because I could never
    print two-sided-long-edge. It always printed two-sided-short-edge (or >>one-sided). Since I was able to make it always print
    two-sided-long-edge by not using CUPS at all, I gave up on CUPS.

    OpenBSD's ipptool(1) claims your printer supports short and long edge.
    Try with cups-lpr(1) <URL:https://openprinting.github.io/cups/doc/man-lpr.html>
    | -o sides=two-sided-long-edge
    | Prints on both sides of the paper for portrait output.
    | -o sides=two-sided-short-edge
    | Prints on both sides of the paper for landscape output.

    I used CUPS's lpr to print a two-page PostScript document in both
    options. They both came out two-sided-short-edge (that is, landscape).
    I said:

    $ /usr/local/bin/lpr -P BRWB052162167A6 -o sides=two-sided-long-edge manual.ps $ /usr/local/bin/lpr -P BRWB052162167A6 -o sides=two-sided-short-edge manual.ps

    I got two A4 papers out, both printed the same way,
    two-sided-short-edge. Finally, I said

    $ /usr/local/bin/lpr -P BRWB052162167A6 -o sides=one-sided manual.ps

    and two A4 papers out, one sided as expected.

    I wonder if there's a mistake or something that can be done in the PPD
    file of the printer. On OpenBSD, the PPD file is installed at

    /etc/cups/ppd/BRWB052162167A6.ppd

    Here are lines 119--125:

    *OpenUI *Duplex/2-Sided Printing: PickOne
    *OrderDependency: 10 AnySetup *Duplex
    *DefaultDuplex: None
    *Duplex None/Off (1-Sided): "<</Duplex false>>setpagedevice"
    *Duplex DuplexNoTumble/Long-Edge (Portrait): "<</Duplex true/Tumble false>>setpagedevice"
    *Duplex DuplexTumble/Short-Edge (Landscape): "<</Duplex true/Tumble true>>setpagedevice"
    *CloseUI: *Duplex

    It looks right, but I wish I knew more about this file. For instance,
    if I could somehow set it to always do two-sided-long-edge, I'd be
    nearly 100% happy.

    My imagination says that these values in quotes are PostScript code. I
    then changed the one that says /Tumble true/ to /Tumble false/. Like
    this:

    *Duplex DuplexNoTumble/Long-Edge (Portrait): "<</Duplex true/Tumble false>>setpagedevice"
    *Duplex DuplexTumble/Short-Edge (Landscape): "<</Duplex true/Tumble false>>setpagedevice"

    I restarted cupsd and said:

    $ /usr/local/bin/lpr -P BRWB052162167A6 -o sides=one-sided manual.ps
    $ /usr/local/bin/lpr -P BRWB052162167A6 -o sides=two-sided-long-edge manual.ps $ /usr/local/bin/lpr -P BRWB052162167A6 -o sides=two-sided-short-edge manual.ps

    The first came out one-sided, as expected; the next two came out two-sided-short-edge. Lol---my hack didn't work.

    By the way, I also tried landscape with two-sided-short-edge (using
    Firefox). It comes out right: landscape two-sided-short-edge.

    I'm out of ideas for now. But I still think there's a way to solve this because the printer is able to do PostScript; it can do two-sided
    including both long and short edge. My intuition says that what's going
    on is simply a mistake somewhere. I was very hopeful with my hack
    above, but it made no difference.

    Perhaps what I'm going to try next is to study a little bit of
    PostScript to be able to write a document myself that's very simple and
    that it instructs the printer directly to see if I can get
    two-sided-long-edge. My feeling is that these options in the PPD file
    are used to know what PostScript code to include in the document. Since
    I don't see the code that the printer actually gets in the end, that's a
    margin for confusion.

    You already know I switched to OpenBSD in the process of debugging this. >>FWIW, I was able to set up the printer to use IPP. I was able to print >>with it, but with the same two-sided-short-edge behavior as using the >>LPD:// URL in CUPS.

    All in all, CUPS worked, but it turns out my life has been better with
    just using /etc/printcap and lpr.

    I wanted to thank you for the help!

    If I find anything new, I'll post again.

    If you get OpenBSD's cups to work, that will point to a bug in FreeBSD's.

    At this point I don't think FreeBSD is at fault.

    BTW my WAG is OpenBSD's vmm supports FreeBSD guests if you want test
    FreeBSD without dual booting: <URL:https://www.openbsd.org/faq/faq16.html#StartVm>

    Not for testing CUPS at the moment, since OpenBSD is behaving exactly as FreeBSD did. (For everything else, I have a headless FreeBSD server,
    but no printer attached to it.)

    Thanks very much for the help!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John D Groenveld@21:1/5 to smirzo@example.com on Wed Feb 12 21:01:26 2025
    In article <877c5vxo34.fsf@example.com>,
    Salvador Mirzo <smirzo@example.com> wrote:
    I'm out of ideas for now. But I still think there's a way to solve this >because the printer is able to do PostScript; it can do two-sided
    including both long and short edge. My intuition says that what's going
    on is simply a mistake somewhere. I was very hopeful with my hack
    above, but it made no difference.

    Have you tried Brother's newest firmware? <URL:https://support.brother.com/g/b/downloadlist.aspx?c=us&lang=en&prod=hll2360dw_us&os=10068>

    two-sided-long-edge. My feeling is that these options in the PPD file
    are used to know what PostScript code to include in the document. Since
    I don't see the code that the printer actually gets in the end, that's a >margin for confusion.

    You can configure CUPS to spew to a file URI and then inspect
    the output and spew it to the printer via nc(1).
    See FileDevice:
    <URL:https://www.cups.org/doc/man-cups-files.conf.html>

    John
    groenveld@acm.org

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)