Re: Trouble with lpr and Brother wireless printer
On Fri, 5 Aug 2022 00:05:29 -0700 Ryan Freeman wrote: > Did you happen to try CUPS with the brlaser package installed? > I have a Brother HL-L2390DW, and once I found brlaser it just worked. You, sir, are a saint. It works!! I can't believe I didn't manage to find that package (((facepalm))). So I'll amend my report: Brother HL-L2350DW works fine with cups and brlaser Thanks all for the kind help. - Ben
Re: Trouble with lpr and Brother wireless printer
Boy, I went down the rabbit hole on this one. I'll spare the list all the gory details, but for the sake of posterity I figured I'll try to close the loop on this thread. To make a long story short: After failing to get the printer working with just regular lpr, I tried CUPS to no avail. Along the way, however, I discovered a Perl script in a Linux package available on Brother's website that ostensibly could have served as an input filter for lpr (called, somewhat obviously, `lpdfilter`). After a bit of searching, I found a related thread [1] on a FreeBSD list and made some edits to this script, hoping that it would be the trick. Where I hit a wall was with a binary (also included in the package) called `rawtobr3`, that the Perl script expected. It appears to be proprietary Brother stuff and kept throwing an error, probably because it was built for Linux and not BSD. I did find a GitHub repo via a FreeBSD forum thread [2] that seemed to include _some_ version of this program, but it threw another error and the filter did not work. So, to wrap up: I do not recommend the Brother HLL2350DW for your OpenBSD printing needs. I may end up heeding the suggestions to simply buy a printer that speaks PostScript. Recommendations welcome. - Ben [1] https://lists.freebsd.org/pipermail/freebsd-questions/2017-July/277994.html [2] https://forums.freebsd.org/threads/port-for-brother-printer-drivers.78393/
Re: Trouble with lpr and Brother wireless printer
On Tue, 2 Aug 2022 02:09:37 -0400 gwes wrote: > Are you sure that you're feeding the printer a valid postscript file? > If there isn't something like > (TimesRoman) findfont 48 scalefont setfont 200 300 moveto (text) show > showpage > nothing happens. I believe so. The two samples I've tried were generated with man and enscript. I can open them both fine with ghostscript and zathura. - Ben
Re: Trouble with lpr and Brother wireless printer
On Mon, 1 Aug 2022 07:50:19 - (UTC) Stuart Henderson wrote: > On 2022-07-31, John Mettraux wrote: > > Brother MFC-L3770CDW wireless here. > > > > My /etc/printcap goes: > > > > lp:\ > > sd=/var/spool/lpd:lp=:rm=192.168.xxx.xxx:rp=BINARY_P1 > > > > Maybe it will help. > > Also try POSTSCRIPT_P1, my MFC-J4335DW shows that as a possibility > in Network > Network > Service. (I use it with CUPS though, so I can > control quality/duplexing/etc). Thanks for all the helpful suggestions. I took some time to explore the web interface for my printer (a Brother HL-L2350DW, for those following along at home) and discovered the BINARY_P1, POSTSCRIPT_P1, PCL_P1, and TEXT_P1 services available. But thus far, none of them have worked for me -- with or without passing the data through a filter, as suggested earlier in the thread. I did make some changes to my printcap that seemed to take me in the direction of progress, notably to stop passing the printer host to the `rm` option and instead try passing port@host to the `lp` option. (I also added an /etc/hosts entry for ease). I did this after noticing that POSTSCRIPT_P1 and the other services were listed as being available on port 9100. So here's one test case: pstest:\ :lp=9...@brother.sannomo.home:\ :rp=POSTSCRIPT_P1:\ :sd=/var/spool/output/lpd:\ :lf=/var/log/lpd-errs:\ :mx#0: :sh: But no dice. When invoking `lpr filename.ps`, I consistently get a single blank page spit out from the printer and that's it. It's more than, well, nothing ... but it's unfortunately not printing. I also tried just sending a text file to the printer directly with nc(1); it showed "Receiving Data" on the printer LCD, but nothing more. Strangely (maybe?) I had to Ctrl-C out of netcat as doing ... $ nc brother.sannomo.home 9100 < test.txt ... just hung there. FWIW, I do know that the printer _works_, as I can print from machines running other OS'es via the usual ways. I don't seem to be the only one banging my face into a wall with this. I found an old thread on DaemonForums describing an issue with similar symptoms that was, it seems, ultimately unresolved: http://daemonforums.org/showthread.php?t=7253 Something I haven't tried -- thought I don't know if it will make a difference -- is connecting to the printer via WiFi Direct. This doesn't seem to be a connection issue though. I'm on the verge of just trying CUPS, although it seems to be much bemoaned. Thanks again. - Ben
Re: Trouble with lpr and Brother wireless printer
On Sun, 31 Jul 2022 19:10:08 +0900 John Mettraux wrote: > Brother MFC-L3770CDW wireless here. > > My /etc/printcap goes: > > lp:\ > sd=/var/spool/lpd:lp=:rm=192.168.xxx.xxx:rp=BINARY_P1 > > Maybe it will help. Thanks very much John. I wasn't aware of the BINARY_P1 service option, which I found documented in a Brother Network Users Manual[1] after reading your mail, so thank you for suggesting that. However, trying this was unsuccessful for me, so I'm afraid I'm still stuck. - Ben [1] https://www.brother-usa.com/virdata/content/en-us/printers/consumer/networkusersmanual/num_hl_1270n_en_1310.pdf
Trouble with lpr and Brother wireless printer
Hi all, I'm having trouble getting printing to work using lpr(1) and a Brother wireless printer[1] that should support it. This seems to be a perennial topic on the list, but despite trying what I've found in the archives, I'm stumped. Here's my /etc/printcap: lp|brother:\ :rm=192.168.xxx.xxx:\ :rp=brother:\ :sd=/var/spool/output/lpd:\ :lf=/var/log/lpd-errs: (The `xxx`s are, of course, actually digits). But entering `$ lpr filename.ps` does nothing. The printer remains quiet. Nothing shows up in the queue. `lpq` gives this output: Printer Name: brother Jobs: No Jobs in Queue The output of `lpc status` is similarly unremarkable: lp: queuing is enabled printing is enabled no entries printer idle My permissions also seem fine: $ ls -la /var/spool/output total 12 drwxr-xr-x 3 root wheel 512 Jul 30 14:24 . drwxr-xr-x 6 root wheel 512 Apr 11 16:45 .. drwxrwx--- 2 root daemon 512 Jul 30 20:21 lpd Oddly, if I attempt to print something from Firefox, using the system dialog and setting lpr as the printer, the printer wakes up and starts spewing out blank sheets until I manually cancel it using the power button on the printer. So it seems that the issue is not connecting to the printer, but how I am invoking lpr ... maybe? What am I overlooking? - Ben [1] https://www.brother-usa.com/products/hll2350dw