Brother HL-L2340D printer and lpd?

Polytropon freebsd at
Thu May 7 09:46:51 UTC 2020

On Thu, 7 May 2020 12:10:03 +0700, Victor Sudakov wrote:
> Polytropon wrote:
> > do exist. Here is the printer filter, /opt/libexec/
> > 
> > 	#!/bin/sh
> > 	/usr/bin/printf "\033&k2G" || exit 2
> > 	/usr/local/bin/gs -q -dBATCH -dNOPAUSE -dPARANOIDSAFER -dSAFER \
> > 		-sDEVICE=ljet4d -sPAPERSIZE=a4 -r600x600 \
> > 		-dDuplex=true \
> > 		-sOutputFile=- - && exit 0
> > 	exit 2
> Is -dDuplex=true supposed to enable double-sided printing?

Yes, without it the printer will only feed single pages and
print single-sided. In the printer menu (here: Laserjet 4000
operator panel), duplex capability needs to be selected "ON",
because this seems to override the "duplex request" from the
computer. Maybe you can check duplex in the web configuration
interface of the printer?

If I remember correctly, -dDuplex=true will generate the
correct portions of PCL to have the printer use the duplexer.
It's hard to check what "commands" actually arrive in the PCL
sent to the printer. :-(

> Does not
> work for me somehow, though this printer is capable thereof (does print
> on both sides from Android/Mopria).

So it seems to be configured in the correct way already...

Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

More information about the freebsd-questions mailing list