Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Jan 2002 11:45:46 +0000
From:      Simon Siemonsma <s.siemonsma@hccnet.nl>
To:        Julio Merino <juli@merino.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Does lpt0 work under FreeBSD?
Message-ID:  <200201051040.LAA21435@smtp.hccnet.nl>
In-Reply-To: <20020104235826.A78631@klamath.local>
References:  <200201042038.VAA20815@smtp.hccnet.nl> <20020104235826.A78631@klamath.local>

next in thread | previous in thread | raw e-mail | index | archive | help
Cups gives the following information about my printer:
	Description: 
	Location: Home office
	Printer State: idle, accepting jobs. 
	Device URI: parallel:/dev/lpt0
From here I conclude that the problem is not what you described.
At start up, even with the printer switched of, I get the following:
	Probing for PnP devices on ppbus0
	ppbus: <HEWLETT-PACKARD DESKJET 710C. SCP,VLINK
	LPT0: <Printer> on ppbus0
	lpt0: Interrupt-driven port

Simon Siemonsma

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

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?200201051040.LAA21435>