Deskjet 3320

Doug Poland doug at polands.org
Wed Mar 17 05:34:04 PST 2004


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 at 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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
> 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: <math processor> on motherboard
> npx0: INT 16 interface
> pcib0: <Host to PCI bridge> on motherboard
> pci0: <PCI bus> on pcib0
> agp0: <Intel 82845G (845G GMCH) SVGA controller> mem
> 0xe0100000-0xe017ffff,0xd8000000-0xdfffffff irq 10 at device 2.0 on pci0
> agp0: detected 8060k stolen memory
> agp0: aperture size is 128M
> uhci0: <Intel 82801DB (ICH4) USB controller USB-A> port 0xd800-0xd81f irq 10 at device
> 29.0 on pci0
> usb0: <Intel 82801DB (ICH4) USB controller USB-A> 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: <Intel 82801DB (ICH4) USB controller USB-B> port 0xd000-0xd01f irq 11 at device
> 29.1 on pci0
> usb1: <Intel 82801DB (ICH4) USB controller USB-B> 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: <Intel 82801DB (ICH4) USB controller USB-C> port 0xd400-0xd41f irq 3 at device
> 29.2 on pci0
> usb2: <Intel 82801DB (ICH4) USB controller USB-C> 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: <Intel 82801BA/BAM (ICH2) Hub to PCI bridge> at device 30.0 on pci0
> pci1: <PCI bus> on pcib1
> rl0: <RealTek 8139 10/100BaseTX> port 0xc000-0xc0ff mem 0xe0000000-0xe00000ff irq 11 at
> device 3.0 on pci1
> rl0: Ethernet address: 00:d0:68:01:bf:88
> miibus0: <MII bus> on rl0
> rlphy0: <RealTek internal media interface> on miibus0
> rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> isab0: <PCI to ISA bridge (vendor=8086 device=24c0)> at device 31.0 on pci0
> isa0: <ISA bus> on isab0
> atapci0: <Intel ICH4 ATA100 controller> 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: <unknown card> (vendor=0x8086, dev=0x24c3) at 31.3 irq 5
> pcm0: <Intel ICH4 (82801DB)> port 0xe400-0xe43f,0xe000-0xe0ff mem
> 0xe0181000-0xe01810ff,0xe0180000-0xe01801ff irq 5 at device 31.5 on pci0
> pcm0: <Avance Logic ALC650 AC97 Codec>
> orm0: <Option ROM> at iomem 0xcc000-0xd3fff on isa0
> pmtimer0 on isa0
> atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
> atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
> kbd0 at atkbd0
> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
> sc0: <System console> at flags 0x100 on isa0
> sc0: VGA <16 virtual consoles, flags=0x300>
> ad0: 38166MB <WDC WD400BB-75AUA1> [77545/16/63] at ata0-master UDMA100
> acd0: CD-RW <SONY CD-RW CRX300E> at ata0-slave PIO4
> Mounting root from ufs:/dev/ad0s1a
> ulpt0: output error
>
> -- /etc/printcap
>
> lp:\
> 	:sh:\
> 	:lp=/dev/ulpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:\
> 	:mx#0:if=/usr/local/sbin/ifhp:
>
> -- /etc/rc.conf
>
> # -- sysinstall generated deltas -- # Tue Mar 16 20:52:34 2004
> # Created: Tue Mar 16 20:52:34 2004
> # Enable network daemons for user convenience.
> # Please make all changes to this file, not to /etc/defaults/rc.conf.
> # This file now contains just the overrides from /etc/defaults/rc.conf.
> defaultrouter="192.168.0.1"
> font8x14="NO"
> font8x16="swiss-8x16"
> font8x8="swiss-8x8"
> hostname="monkey.kamalacreations.com"
> ifconfig_rl0="inet 192.168.0.3  netmask 255.255.255.0"
> kern_securelevel_enable="NO"
> keymap="us.pc-ctrl"
> keyrate="fast"
> nfs_reserved_port_only="YES"
> saver="daemon"
> sendmail_enable="YES"
> sshd_enable="YES"
> usbd_enable="YES"
> lpd_enable="YES"		# Run the line printer daemon.
> usbd_enable="YES"	# Run the usbd daemon.
>



More information about the freebsd-questions mailing list