Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jan 2002 23:58:26 +0100
From:      Julio Merino <juli@merino.net>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Does lpt0 work under FreeBSD?
Message-ID:  <20020104235826.A78631@klamath.local>
In-Reply-To: <200201042038.VAA20815@smtp.hccnet.nl>; from s.siemonsma@hccnet.nl on Fri, Jan 04, 2002 at 09:44:02PM %2B0000
References:  <200201042038.VAA20815@smtp.hccnet.nl>

next in thread | previous in thread | raw e-mail | index | archive | help

--FL5UXtIhxfXey3p5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

CUPS with FreeBSD has some problems as I have noticed. If my printer is
powered off when I boot up (and it is usually off) CUPS does not allow me
to select the parallel driver when adding the printer.

If my printer is on when FreeBSD is powered up, I see that the kernel says
its name (supposedly because plug&pray stuff) and CUPS sees the parallel
port driver perfectly. Well, I still have to "completly" verify this
because I messed my installation some days ago and had to reinstall.

Once you have configured the printer properly from CUPS, it does not=20
matter if it is powered or not when you bootup FreeBSD.

HTH

On Fri, Jan 04, 2002 at 09:44:02PM +0000, Simon Siemonsma wrote:
> Searching through the cups mailing list at http://www.cups.org/newsgroups=
.php=20
> (cups.general newsgroup and searching for FreeBSD) I got the following=20
> information:
> 	"Nonsense, under FreeBSD there are *no* parallel port options.=20
> > Unless you want to print through a serial port CUPS is useless as a pri=
nt=20
> > service."
>=20
> Is this true?
> I can't believe it, but it would explain why I don't get CUPS working and=
 why=20
> I get the error stdout broken in my errorlog.
>=20
> If true can someone tell me what alternatives I have to make my printer=
=20
> working, I don't want to buy a new one, and sure not one for my serial po=
rt.
> When not true can someone tell me what the probem is and how to solve it.
>=20
> I want to make use of CUPS, cupsomatic (as described at linuxprinting.org=
)=20
> and pnm2ppa (to support my HP DeskJet 710c)
>=20
> I use the method as described at linuxprinting.org where I make the follo=
wing=20
> adjustments to the cupsomatic file:
> 	my $enscriptcommand =3D "enscript" << does it may need some parameters>>
> 	my $myecho =3D 'cupsecho'
> 	my $debug=3D1
> 	I removed the # at the line starting with #$ENV{'PATH"}=3D....
>=20
> I installed pnm2ppa from the ports.
>=20
> my ppd line contains the following indentifiing line:
> 	*NickName: "HP DeskJet 710C, Foomatic + pnm2ppa"
>=20
> When installing enscript-a4 from the ports it said that the spooler was s=
et=20
> to lpr. Is this maybe part of the problem? I have no clue how to change i=
t=20
> and to what!
>=20
> Below is the content of the debug file.
> I see the following problems:
> 	Perl is making some problems about locales. Don't what it is, but I don'=
t=20
> expect it to be the problem.
> 	cat: stdout: Broken pipe      this sounds like the serious trouble for m=
e.
>=20
> Further I placed a small script in the /bin file with the name cupsecho t=
o=20
> ensure cupsomatic would use the sh echo, instead of the csh or FreeBSD ec=
ho,=20
> wich support the -e option.
> 	#!/bin/sh
> 	echo *
>=20
>=20
> Simon Siemonsma
>=20
>=20
>=20
> Cupsomatic backend version $Revision: 1.12 $ running... called with=20
> arguments: '8','root','Test Page','1',''=20
> ppd=3D/usr/local/etc/cups/ppd/HP_DeskJet_710C.ppd Default for option=20
> PrinterModel is DJ710C=20
> Default for option pnmFormat is PixMap=20
> Default for option BottomMargin is 150=20
> Default for option TopMargin is 10=20
> Default for option YOffset is 50 Default for option PrintingMode is=20
> ColorNormal=20
> Default for option Blackness is 2=20
> Default for option XOffset is 160=20
> Default for option RightMargin is 10 Default for option=20
> DisableColorCorrection is 0=20
> Default for option Unidirectional is 0=20
> Default for option LeftMargin is 10=20
> Default for option PageSize is Letter=20
> Seaerching job for option settings ...=20
> Found: %%BeginFeature: pnmFormat PixMap Option: pnmFormat=3DPixMap --> Se=
tting=20
> option Found: %%BeginFeature: DisableColorCorrection False Option:=20
> DisableColorCorrection=3DFalse --> Setting option Found: %%BeginFeature:=
=20
> Unidirectional False Option: Unidirectional=3DFalse --> Setting option Fo=
und:=20
> %%BeginFeature: PrintingMode ColorNormal Option: PrintingMode=3DColorNorm=
al -->=20
> Setting option=20
> Found: %%BeginFeature: PageSize Letter Option: PageSize=3DLetter --> Opti=
on=20
> will be set by PostScript interpreter=20
> options: -><Final value for option PrinterModel is DJ710C Final value for=
=20
> option pnmFormat is PixMap Final value for option BottomMargin is 150=20
> Final value for option TopMargin is 10=20
> Final value for option YOffset is 50 Final value for option PrintingMode =
is=20
> ColorNormal=20
> Final value for option Blackness is 2=20
> Final value for option XOffset is 160 Final value for option RightMargin =
is=20
> 10 Final value for option DisableColorCorrection is 0 Final value for opt=
ion=20
> Unidirectional is 0=20
> Final value for option LeftMargin is 10 Final value for option PageSize i=
s=20
> Letter /usr/local/libexec/cups/filter/cupsomatic: prepended:=20
> gs PID pid2=3D788 gs command: gs -sDEVICE=3Dppmraw -q -dNOPAUSE -dSAFER -=
dBATCH=20
> -r600 -sOutputFile=3D- - | pnm2ppa -v 710 -f /etc/pnm2ppa.conf --eco -F=
=20
> /etc/pnm2ppa.gamma_normal -B 2 -t 10 -b 150 -l 10 -r 10 -x 160 -y 50 -i -=
 -o=20
> perl: warning: Setting locale failed. perl: warning: Please check that yo=
ur=20
> locale settings:=20
> LC_ALL =3D (unset),=20
> LANG =3D "en" are supported and installed on your system. perl: warning:=
=20
> Falling back to the standard locale ("C"). foomatic-gswrapper: gs=20
> '-sDEVICE=3Dppmraw' '-dNOPAUSE' '-dSAFER' '-dBATCH' '-r600' '-sOutputFile=
=3D|cat=20
> >&3' '-' 3>&1 1>&2=20
> GNU Ghostscript 6.52 (2001-10-20) Copyright (C) 2001 artofcode LLC, Benic=
ia,=20
> CA. All rights reserved. This software comes with NO WARRANTY: see the fi=
le=20
> COPYING for details. Loading NimbusSanL-Bold font from=20
> /usr/local/share/ghostscript/fonts/n019004l.pfb... 1952656 582877 1642520=
=20
> 352580 0 done. Loading NimbusSanL-Regu font from=20
> /usr/local/share/ghostscript/fonts/n019003l.pfb... 2012944 631528 1642520=
=20
> 353164 0 done. Loading NimbusRomNo9L-Regu font from=20
> /usr/local/share/ghostscript/fonts/n021003l.pfb... 2073232 689521 1642520=
=20
> 353758 0 done. Loading NimbusSanL-BoldItal font from=20
> /usr/local/share/ghostscript/fonts/n019024l.pfb... 2113424 742661 1662616=
=20
> 361507 0 done.=20
> cat: stdout: Broken pipe=20
> Error: /ioerror in --.outputpage-=20
> Operand stack: 416.5 308.0 306.0 748.0 306.0 55.0 51.0 1 true=20
> Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval--=
=20
> --nostringval-- 2 %stopped_push --nostringval-- --nostringval--=20
> --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop=
=20
> .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push=
=20
> --nostringval-- 7 3 %oparray_pop --nostringval-- --nostringval--=20
> --nostringval-- --nostringval-=20
> Dictionary stack: --dict:989/1476(ro)(G)-- --dict:0/20(G)-- --dict:87/200=
(L)-=20
> Current allocation mode is local=20
> Last OS error: 32 GNU Ghostscript 6.52: Unrecoverable error, exit code 1=
=20
> PAGE: 1 1 Couldn't exec foomatic-gswrapper -sDEVICE=3Dppmraw -q -dNOPAUSE=
=20
> -dSAFER -dBATCH -r600 -sOutputFile=3D- - | pnm2ppa -v 710 -f /etc/pnm2ppa=
.conf=20
> --eco -F /etc/pnm2ppa.gamma_normal -B 2 -t 10 -b 150 -l 10 -r 10 -x 160 -=
y 50=20
> -i - -o - at /usr/local/libexec/cups/filter/cupsomatic line 877. tail pro=
cess=20
> done writing data to *main::STDOUT=20
> KID4 finished=20
> Main process finished
>=20
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

--=20
La ignorancia es la felicidad.

Julio Merino (Slink) <juli@merino.net>

--FL5UXtIhxfXey3p5
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE8NjOSzz00ZOPKycwRAowRAJ4spu8u8/Ld2S11yKxmT+cMJZGfXQCdFxE+
vLWrquuMHrBs0JYHOF2ggRE=
=e6ke
-----END PGP SIGNATURE-----

--FL5UXtIhxfXey3p5--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020104235826.A78631>