[email protected] (John D Groenveld) writes:
In article <[email protected]>,
Salvador Mirzo <[email protected]> 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)