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
[EMAIL PROTECTED]:/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=0xbfebfbffFPU,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
0xe010-0xe017,0xd800-0xdfff 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 0xe000-0xe0ff 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