Hello misc,

I'm currently trying to configure lpd to work with an HP Officejet 4500
printer. 

After some researches and modifications, it works, but there still a
problem : when all jobs are done I have this message that appear
on the console : “ehci_idone: ex=0xXXXXXXXXXXXXXXXX is done!” and,
sometimes, the printer still busy after printing (which forces me to push
on the “cancel” button of the printer).

Can anyone help me about this issue ?

Below, you will find the result of the dmesg and usbdev commands and
the content of my printcap file (the “filter.sh” file is simply a script that
call the foomatic-rip command with the corrects arguments).

Kind regards,


Jérôme FRGACIC

------------------------------------------------------------------------

$ dmesg

OpenBSD 5.5 (GENERIC.MP) #0: Sat May  3 15:28:46 CEST 2014
    [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2130313216 (2031MB)
avail mem = 2065051648 (1969MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xfd950 (22 entries)
bios0: vendor American Megatrends Inc. version "P1.40" date 10/31/2012
bios0: ASRock N68C-GS FX
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG OEMB SRAT AAFT SSDT
acpi0: wakeup devices PS2K(S4) PS2M(S4) UAR1(S4) SMB0(S4) USB0(S4) USB2(S4) 
NMAC(S5) P0P1(S4) HDAC(S4) BR10(S4) BR11(S4) BR12(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) II X2 280 Processor, 3617.04 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,ITSC
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line 
16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative
cpu0: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative
cpu0: AMD erratum 721 detected and fixed
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 200MHz
cpu0: mwait min=64, max=64, C-substates=0.0.0.0.0, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Athlon(tm) II X2 280 Processor, 3616.48 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,ITSC
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line 
16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative
cpu1: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative
cpu1: AMD erratum 721 detected and fixed
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 11, 24 pins
acpimcfg0 at acpi0 addr 0xf0000000, bus 0-127
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (P0P1)
acpiprt2 at acpi0: bus 2 (BR10)
acpiprt3 at acpi0: bus 3 (BR11)
acpiprt4 at acpi0: bus 4 (BR12)
acpicpu0 at acpi0: PSS
acpicpu1 at acpi0: PSS
acpibtn0 at acpi0: PWRB
cpu0: 3617 MHz: speeds: 3600 2900 2200 800 MHz
pci0 at mainbus0 bus 0
"NVIDIA MCP61 Memory" rev 0xa1 at pci0 dev 0 function 0 not configured
pcib0 at pci0 dev 1 function 0 "NVIDIA MCP61 ISA" rev 0xa2
nviic0 at pci0 dev 1 function 1 "NVIDIA MCP61 SMBus" rev 0xa2
iic0 at nviic0
spdmem0 at iic0 addr 0x51: 2GB DDR2 SDRAM non-parity PC2-5300CL5
iic1 at nviic0
"NVIDIA MCP61 Memory" rev 0xa2 at pci0 dev 1 function 2 not configured
ohci0 at pci0 dev 2 function 0 "NVIDIA MCP61 USB" rev 0xa3: apic 2 int 10, 
version 1.0, legacy support
ehci0 at pci0 dev 2 function 1 "NVIDIA MCP61 USB" rev 0xa3: apic 2 int 11
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "NVIDIA EHCI root hub" rev 2.00/1.00 addr 1
ppb0 at pci0 dev 4 function 0 "NVIDIA MCP61" rev 0xa1
pci1 at ppb0 bus 1
azalia0 at pci0 dev 5 function 0 "NVIDIA MCP61 HD Audio" rev 0xa2: apic 2 int 10
azalia0: codecs: VIA/0x4397
audio0 at azalia0
pciide0 at pci0 dev 6 function 0 "NVIDIA MCP61 IDE" rev 0xa2: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <PLEXTOR, CD-R PX-W1210A, 1.05> ATAPI 5/cdrom 
removable
atapiscsi1 at pciide0 channel 0 drive 1
scsibus1 at atapiscsi1: 2 targets
cd1 at scsibus1 targ 0 lun 0: <_NEC, DVD_RW ND-1300A, 1.09> ATAPI 5/cdrom 
removable
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2
cd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
nfe0 at pci0 dev 7 function 0 "NVIDIA MCP61 LAN" rev 0xa2: apic 2 int 10, 
address bc:5f:f4:b7:48:38
rgephy0 at nfe0 phy 3: RTL8169S/8110S PHY, rev. 2
pciide1 at pci0 dev 8 function 0 "NVIDIA MCP61 SATA" rev 0xa2: DMA
pciide1: using apic 2 int 5 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: <WDC WD800JD-08LSA0>
wd0: 16-sector PIO, LBA48, 76324MB, 156312576 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 6
pciide2 at pci0 dev 8 function 1 "NVIDIA MCP61 SATA" rev 0xa2: DMA
pciide2: using apic 2 int 5 for native-PCI interrupt
wd1 at pciide2 channel 0 drive 0: <Hitachi HDS721680PLA380>
wd1: 16-sector PIO, LBA48, 76324MB, 156312576 sectors
wd1(pciide2:0:0): using PIO mode 4, Ultra-DMA mode 5
ppb1 at pci0 dev 9 function 0 "NVIDIA MCP61 PCIE" rev 0xa2
pci2 at ppb1 bus 2
radeondrm0 at pci2 dev 0 function 0 "ATI Radeon HD 6450" rev 0x00
drm0 at radeondrm0
radeondrm0: apic 2 int 10
azalia1 at pci2 dev 0 function 1 "ATI Radeon HD 6400 Audio" rev 0x00: apic 2 
int 10
azalia1: no supported codecs
ppb2 at pci0 dev 11 function 0 "NVIDIA MCP61 PCIE" rev 0xa2
pci3 at ppb2 bus 3
ppb3 at pci0 dev 12 function 0 "NVIDIA MCP61 PCIE" rev 0xa2
pci4 at ppb3 bus 4
pchb0 at pci0 dev 24 function 0 "AMD AMD64 10h HyperTransport" rev 0x00
pchb1 at pci0 dev 24 function 1 "AMD AMD64 10h Address Map" rev 0x00
pchb2 at pci0 dev 24 function 2 "AMD AMD64 10h DRAM Cfg" rev 0x00
km0 at pci0 dev 24 function 3 "AMD AMD64 10h Misc Cfg" rev 0x00
pchb3 at pci0 dev 24 function 4 "AMD AMD64 10h Link Cfg" rev 0x00
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
wbsio0 at isa0 port 0x2e/2: W83627DHG-P rev 0x73
lm1 at wbsio0 port 0x290/8: W83627DHG
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "NVIDIA OHCI root hub" rev 1.00/1.00 addr 1
uhidev0 at uhub1 port 1 configuration 1 interface 0 "Logitech Logitech USB 
Keyboard" rev 1.10/28.00 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
uhidev1 at uhub1 port 1 configuration 1 interface 1 "Logitech Logitech USB 
Keyboard" rev 1.10/28.00 addr 2
uhidev1: iclass 3/0, 2 report ids
uhid0 at uhidev1 reportid 1: input=2, output=0, feature=0
uhid1 at uhidev1 reportid 2: input=1, output=0, feature=0
uhidev2 at uhub1 port 3 configuration 1 interface 0 "Logitech USB-PS/2 Optical 
Mouse" rev 2.00/24.30 addr 3
uhidev2: iclass 3/1
ums0 at uhidev2: 8 buttons, Z dir
wsmouse0 at ums0 mux 0
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on wd0a (a1043bb5e9861761.a) swap on wd0b dump on wd0b
drm: initializing kernel modesetting (CAICOS 0x1002:0x6779 0x1462:0x2125).
radeondrm0: VRAM: 1024M 0x0000000000000000 - 0x000000003FFFFFFF (1024M used)
radeondrm0: GTT: 512M 0x0000000040000000 - 0x000000005FFFFFFF
drm: probing gen 2 caps for device 0x10de:0x03e8 = 1/0
drm: PCIE GART of 512M enabled (table at 0x0000000000040000).
drm: Internal thermal controller with fan control
radeondrm0: 1360x768
wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
wskbd1: connecting to wsdisplay0
wsdisplay0: screen 1-5 added (std, vt100 emulation)
umass0 at uhub0 port 5 configuration 1 interface 0 "Generic Mass Storage 
Device" rev 2.00/1.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus4 at umass0: 2 targets, initiator 0
sd0 at scsibus4 targ 1 lun 0: <Generic, Storage Device, 0.00> SCSI2 0/direct 
removable
sd0: 15193MB, 512 bytes/sector, 31116288 sectors
sd1 at scsibus4 targ 1 lun 1: <Generic, Storage Device, 0.00> SCSI2 0/direct 
removable
sd0 detached
sd1 detached
scsibus4 detached
umass0 detached
ulpt0 at uhub0 port 2 configuration 1 interface 1 "HP Officejet 4500 G510a-f" 
rev 2.00/1.00 addr 2
ulpt0: using bi-directional mode
ugen0 at uhub0 port 2 configuration 1 "HP Officejet 4500 G510a-f" rev 2.00/1.00 
addr 2
ehci_idone: ex=0xffff800000776000 is done!
ehci_idone: ex=0xffff800000776000 is done!

$ usbdev -dv
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), 
NVIDIA(0x10de), rev 1.00
  uhub0
 port 1 powered
 port 2 addr 2: high speed, self powered, config 1, Officejet 4500 
G510a-f(0x4712), HP(0x03f0), rev 1.00, iSerialNumber CN0CEF203G05H2
   ulpt0
   ugen0
 port 3 powered
 port 4 powered
 port 5 powered
 port 6 powered
 port 7 powered
 port 8 powered
 port 9 powered
 port 10 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), 
NVIDIA(0x10de), rev 1.00
  uhub1
 port 1 addr 2: low speed, power 100 mA, config 1, Logitech USB 
Keyboard(0xc316), Logitech(0x046d), rev 28.00
   uhidev0
   uhidev1
 port 2 powered
 port 3 addr 3: low speed, power 98 mA, config 1, USB-PS/2 Optical 
Mouse(0xc040), Logitech(0x046d), rev 24.30
   uhidev2
 port 4 powered
 port 5 powered
 port 6 powered
 port 7 powered
 port 8 powered
 port 9 powered
 port 10 powered

$ cat /etc/printcap
lp|Normal:\
        :lp=/dev/ulpt0:\
        :lf=/var/log/lpd-errs:\
        :sd=/var/spool/output/Normal:\
        :af=Normal:\
        :if=/etc/foomatic/filter.sh:\
        :mx#0:\
        :sh:

lp|DraftGray:\
        :lp=/dev/ulpt0:\
        :lf=/var/log/lpd-errs:\
        :sd=/var/spool/output/DraftGray:\
        :af=Draft.Gray:\
        :if=/etc/foomatic/filter.sh:\
        :mx#0:\
        :sh:

Reply via email to