Subject: Re: Printing through ulpt
To: Paulo Alexandre Pinto Pires <p@ppires.org>
From: Lennart Augustsson <lennart@augustsson.net>
List: current-users
Date: 09/24/2002 16:42:28
Yes, this seems to be a problem many people experience.
Unfortunately, I cannot reproduce it on either of my two printers.
I guess I have to get another one. :(

    -- Lennart



Paulo Alexandre Pinto Pires wrote:

>Hello, folks.
>
>I am trying to use an Epson Stylus C60 with NetBSD, using its
>USB connection, but I could not get it to work at all.  Apparently,
>nothing ever goes to the printer (it doesn flash its activity LED). even
>though ktrace shows successful write()s and top shows that a "cat  file
>  
>
>>/dev/ulpt0" is often at ulptwr state, and runs fine until the entire
>>    
>>
>file is output (to where?).  If a turn the printer off and on, the
>kernel thread successfully detects such disconnection/connection
>conditions, and dettach/attach the port.
>
>The printer works with the parallel port with NetBSD, and has no
>problems with USB under Win2k.  USB under NetBSD, however, fails with
>both ulpt0 and ulpn0, with the same symptom of nothing happening with
>the printer.
>
>Has anyone experienced anything similar?
>
>I am sending attached dmesg output.  I hope it brings lights up
>something.
>
>--
>        Pappires
>
>... Qui habet aurem audiat quid Spiritus dicat ecclesiis.
>
>
>  
>
>------------------------------------------------------------------------
>
>NetBSD 1.6F (MATEUS-20020810) #4: Mon Sep 23 21:35:22 BRT 2002
>    pappires@mateus.ppires.org:/usr/src/sys/arch/i386/compile/MATEUS-20020810
>cpu0: Intel Pentium II/Celeron (Deschutes) (686-class), 334.11 MHz
>cpu0: I-cache 16 KB 32b/line 4-way, D-cache 16 KB 32b/line 2-way
>cpu0: L2 cache 512 KB 32b/line 4-way
>cpu0: features 183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
>cpu0: features 183f9ff<PGE,MCA,CMOV,FGPAT,PSE36,MMX>
>cpu0: features 183f9ff<FXSR>
>total memory = 255 MB
>avail memory = 234 MB
>using 3297 buffers containing 13188 KB of memory
>BIOS32 rev. 0 found at 0xf0520
>mainbus0 (root)
>pnpbios0 at mainbus0: nodes 14, max len 114
>lpt0 at pnpbios0 index 0 (PNP0400)
>lpt0: io 378-37f 778-77f, irq 7
>com0 at pnpbios0 index 2 (PNP0501)
>com0: io 3f8-3ff, irq 4
>com0: ns16550a, working fifo
>com1 at pnpbios0 index 3 (PNP0501)
>com1: io 2f8-2ff, irq 3
>com1: ns16550a, working fifo
>pci0 at mainbus0 bus 0: configuration mode 1
>pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
>pchb0 at pci0 dev 0 function 0
>pchb0: vendor 0x8086 product 0x7190 (rev. 0x02)
>agp0 at pchb0: aperture at 0xe4000000, size 0x4000000
>ppb0 at pci0 dev 1 function 0: vendor 0x8086 product 0x7191 (rev. 0x02)
>pci1 at ppb0 bus 1
>pci1: i/o space, memory space enabled
>vga0 at pci1 dev 0 function 0: vendor 0x1002 product 0x5159 (rev. 0x00)
>wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation)
>wsmux1: connecting to wsdisplay0
>wsdisplay0: screen 1-7 added (80x25, vt100 emulation)
>pcib0 at pci0 dev 4 function 0
>pcib0: vendor 0x8086 product 0x7110 (rev. 0x02)
>pciide0 at pci0 dev 4 function 1: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
>pciide0: bus-master DMA support present
>pciide0: primary channel wired to compatibility mode
>wd0 at pciide0 channel 0 drive 0: <ST360021A>
>wd0: drive supports 16-sector PIO transfers, LBA addressing
>wd0: 57241 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 117231408 sectors
>wd0: 32-bit data port
>wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
>pciide0: primary channel interrupting at irq 14
>wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
>pciide0: secondary channel wired to compatibility mode
>atapibus0 at pciide0 channel 1: 2 targets
>cd0 at atapibus0 drive 0: <ATAPI CDROM, CXD3030  <OPTOMEDIA, 1.21> type 5 cdrom removable
>cd0: 32-bit data port
>cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
>pciide0: secondary channel interrupting at irq 15
>cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
>uhci0 at pci0 dev 4 function 2: vendor 0x8086 product 0x7112 (rev. 0x01)
>uhci0: interrupting at irq 12
>usb0 at uhci0: USB revision 1.0
>uhub0 at usb0
>uhub0: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
>uhub0: 2 ports with 2 removable, self powered
>vendor 0x8086 product 0x7113 (miscellaneous bridge, revision 0x02) at pci0 dev 4 function 3 not configured
>ne0 at pci0 dev 10 function 0: RealTek 8029 Ethernet
>ne0: Ethernet address 00:00:21:61:8c:7e
>ne0: 10base2, 10baseT, 10baseT-FDX, auto, default [0x00 0x30] auto
>ne0: interrupting at irq 10
>ahc0 at pci0 dev 12 function 0
>ahc0: interrupting at irq 11
>ahc0: aic7880 Wide Channel A, SCSI Id=7, 16/255 SCBs
>scsibus0 at ahc0: 16 targets, 8 luns per target
>isa0 at pcib0
>pckbc0 at isa0 port 0x60-0x64
>pckbd0 at pckbc0 (kbd slot)
>pckbc0: using irq 1 for kbd slot
>wskbd0 at pckbd0: console keyboard, using wsdisplay0
>lm0 at isa0 port 0x290-0x297: W83781D
>pcppi0 at isa0 port 0x61
>midi0 at pcppi0: PC speaker
>spkr0 at pcppi0
>sysbeep0 at pcppi0
>isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
>npx0 at isa0 port 0xf0-0xff: using exception 16
>fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
>fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
>isapnp0: read port 0x203
>sb0 at isapnp0 port 0x220/16,0x330/2,0x388/4 irq 5 drq 1,5
>sb0: Creative SB32 PnP Audio: dsp v4.16
>audio0 at sb0: full duplex, mmap, independent
>mpu0 at sb0
>midi1 at mpu0: SB MPU-401 MIDI UART
>opl0 at sb0: model OPL3
>midi2 at opl0: SB Yamaha OPL3
>isapnp0: <Creative SB32 PnP, CTL7002, , Game> port 0x200/8 not configured
>isapnp0: <Creative SB32 PnP, CTL0021, , WaveTable> port 0x620/4 not configured
>apm0 at mainbus0: Power Management spec V1.2
>biomask fb45 netmask ff45 ttymask ffc7
>scsibus0: waiting 2 seconds for devices to settle...
>sd0 at scsibus0 target 5 lun 0: <IOMEGA, ZIP 100, D.09> SCSI2 0/direct removable
>sd0: drive offline
>sd0: async, 8-bit transfers
>ulpt0 at uhub0 port 1 configuration 1 interface 0
>ulpt0: EPSON USB Printer, rev 1.10/1.00, addr 2, iclass 7/1
>ulpt0: using bi-directional mode
>uhidev0 at uhub0 port 2 configuration 1 interface 0
>uhidev0: Microsoft Microsoft IntelliMouseM-. Explorer, rev 1.10/1.21, addr 3, iclass 3/1
>ums0 at uhidev0: 5 buttons and Z dir.
>wsmouse0 at ums0 mux 0
>boot device: wd0
>root on wd0a dumps on wd0b
>root file system type: ffs
>ulpt0: at uhub0 port 1 (addr 2) disconnected
>ulpt0 detached
>ulpt0 at uhub0 port 1 configuration 1 interface 0
>ulpt0: EPSON USB Printer, rev 1.10/1.00, addr 2, iclass 7/1
>ulpt0: using bi-directional mode
>cd0: no disk label
>Accounting started
>ulpt0: at uhub0 port 1 (addr 2) disconnected
>ulpt0 detached
>lpt0: out of paper
>lpt0: out of paper
>lpt0: out of paper
>set{u,g}id pid 514 (netstat) was invoked by uid 1001 ppid 513 (netscape) with fd 0 closed
>ulpt0 at uhub0 port 1 configuration 1 interface 0
>ulpt0: EPSON USB Printer, rev 1.10/1.00, addr 2, iclass 7/1
>ulpt0: using bi-directional mode
>  
>