From owner-freebsd-questions@FreeBSD.ORG Wed Mar 17 05:34:03 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D91A616A4CE for ; Wed, 17 Mar 2004 05:34:03 -0800 (PST) Received: from galilee.polands.org (CPE-24-29-189-110.new.rr.com [24.29.189.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id E17A843D45 for ; Wed, 17 Mar 2004 05:34:02 -0800 (PST) (envelope-from doug@polands.org) Received: from email.polands.org (samaria.polands.org [172.16.1.17]) by galilee.polands.org (8.12.9/8.12.9) with SMTP id i2HDY055035893; Wed, 17 Mar 2004 07:34:01 -0600 (CST) (envelope-from doug@polands.org) Received: from 69.48.112.134 (SquirrelMail authenticated user djp) by email.polands.org with HTTP; Wed, 17 Mar 2004 07:34:01 -0600 (CST) Message-ID: <53314.69.48.112.134.1079530441.squirrel@email.polands.org> In-Reply-To: <20040316213420.GA88541@kamala.ath.cx> References: <20040315002127.GA2626@kamala.ath.cx> <4055AC6F.3010901@polands.org> <20040316213420.GA88541@kamala.ath.cx> Date: Wed, 17 Mar 2004 07:34:01 -0600 (CST) From: "Doug Poland" To: "Owen Becker" User-Agent: SquirrelMail/1.4.0 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 X-Priority: 3 Importance: Normal cc: questions@freebsd.org Subject: Re: Deskjet 3320 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Mar 2004 13:34:04 -0000 Owen Becker said: > On Mon, Mar 15, 2004 at 07:15:27AM -0600, Doug Poland wrote: >> Owen Becker wrote: >> >Anyone managed to get an HP Deskjet 3320 working under FreeBSD 5.2.1? >> > >> I've got one working in 4.9 using the /usr/ports/print/hpijs port. >> I modified slightly the supplied sample printcap and ifhp scripts. >> >> Note: the key to making this printer work is sending, >> -sDeviceManufacturer="HP" -sDeviceModel="DJ3320" to the gs executable. >> > > Okay, here we go. I installed 4.9, wondering if there have been any usb > regressions. I installed the hpijs port in addition to afpl ghostscript. > I don't know if afpl ghostscript supports the hpijs drivers. You should verify this. I know that ghostscript-gnu-7.07_6 supports hpijs. > I also modified printcap and the iphp scripts. Hooked up the printer and > rebooted. I'm still getting "ulpt0: output error". > Exactly what error messages do you get when you attempt to print? Do you get anything out of the printer? I also see "ulpt0: output error" in my dmesg. It doesn't hinder my ability to print. > Attached is my printcap, dmesg and rc.conf. > Verify that your printcap settings point to valid spool directories in /var/spool. Also, what commands are in your ifhp script? Here's the relevent section of mine... case "${first_line}" in \%\!*) # # PostScript input, so use ghostscript and hpijs # http://hpinkjet.sourceforge.net/printmodedescr.php#DJ9xxVIP # /usr/local/bin/gs -q -dNOPAUSE -dSAFER -r600x600 \ -sDEVICE=ijs -sIjsServer=/usr/local/bin/hpijs -dIjsUseOutputFD \ -sDeviceManufacturer="HP" -sDeviceModel="DJ3320" \ -sIjsParams="Quality:Quality=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=2" \ -sOutputFile=- - && exit 0 ;; *) Also, you can easily test the printer directly by sending it the ghostscript command directly to the /dev/ulpt0 as root. Concentrate on getting ghostscript sending the right strings to the printer then work on printcap and filter part of the equation. Good luck, Doug > > Copyright (c) 1992-2003 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD 4.9-RELEASE #0: Tue Mar 16 21:11:59 EST 2004 > root@monkey.kamalacreations.com:/usr/src/sys/compile/MONKEY > Timecounter "i8254" frequency 1193182 Hz > CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (2792.06-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0xf27 Stepping = 7 > Features=0xbfebfbff > real memory = 528416768 (516032K bytes) > avail memory = 510689280 (498720K bytes) > Preloaded elf kernel "kernel" at 0xc0364000. > Warning: Pentium 4 CPU: PSE disabled > Pentium Pro MTRR support enabled > md0: Malloc disk > Using $PIR table, 7 entries at 0xc00fdee0 > npx0: on motherboard > npx0: INT 16 interface > pcib0: on motherboard > pci0: on pcib0 > agp0: mem > 0xe0100000-0xe017ffff,0xd8000000-0xdfffffff irq 10 at device 2.0 on pci0 > agp0: detected 8060k stolen memory > agp0: aperture size is 128M > uhci0: port 0xd800-0xd81f irq 10 at device > 29.0 on pci0 > usb0: on uhci0 > usb0: USB revision 1.0 > uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub0: 2 ports with 2 removable, self powered > ulpt0: hp deskjet 3320, rev 2.00/1.00, addr 2, iclass 7/1 > ums0: Microsoft Microsoft IntelliMouse\M-. Explorer, rev 1.10/1.07, addr 3, iclass 3/1 > ums0: 5 buttons and Z dir. > uhci1: port 0xd000-0xd01f irq 11 at device > 29.1 on pci0 > usb1: on uhci1 > usb1: USB revision 1.0 > uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub1: 2 ports with 2 removable, self powered > uhci2: port 0xd400-0xd41f irq 3 at device > 29.2 on pci0 > usb2: on uhci2 > usb2: USB revision 1.0 > uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub2: 2 ports with 2 removable, self powered > pcib1: at device 30.0 on pci0 > pci1: on pcib1 > rl0: port 0xc000-0xc0ff mem 0xe0000000-0xe00000ff irq 11 at > device 3.0 on pci1 > rl0: Ethernet address: 00:d0:68:01:bf:88 > miibus0: on rl0 > rlphy0: on miibus0 > rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > isab0: at device 31.0 on pci0 > isa0: on isab0 > atapci0: port 0xf000-0xf00f,0-0x3,0-0x7,0-0x3,0-0x7 irq 0 > at device 31.1 on pci0 > ata0: at 0x1f0 irq 14 on atapci0 > ata1: at 0x170 irq 15 on atapci0 > pci0: (vendor=0x8086, dev=0x24c3) at 31.3 irq 5 > pcm0: port 0xe400-0xe43f,0xe000-0xe0ff mem > 0xe0181000-0xe01810ff,0xe0180000-0xe01801ff irq 5 at device 31.5 on pci0 > pcm0: > orm0: