From owner-freebsd-stable Mon Jun 19 19:30: 9 2000 Delivered-To: freebsd-stable@freebsd.org Received: from mike.dhis.org (usr2-d11.stk.cwnet.com [209.21.20.59]) by hub.freebsd.org (Postfix) with ESMTP id EC06F37B7D2; Mon, 19 Jun 2000 19:29:49 -0700 (PDT) (envelope-from mmuir@es.co.nz) Received: from es.co.nz (ogre.lan [192.168.100.1]) by mike.dhis.org (Postfix) with ESMTP id 0BCC99A; Mon, 19 Jun 2000 19:26:43 -0700 (PDT) Message-ID: <394ED72D.E73F8741@es.co.nz> Date: Mon, 19 Jun 2000 19:30:05 -0700 From: Mike Muir Reply-To: mmuir@es.co.nz X-Mailer: Mozilla 4.73 [en] (X11; U; FreeBSD 4.0-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: stable@FreeBSD.ORG, questions@FreeBSD.ORG Subject: Re: ULPT success anyone? References: <394ECEDD.30EC5FEC@es.co.nz> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mike Muir wrote: > > Hi there, > Recently picked up a Brother HL-1240 printer which supports USB and > Parrallel connections, and since i had a USB cable lying around I > thought that I might as well try to get the thing working under freebsd > using ulpt0.. > Well so far no luck, I get kernel panics whenever accessing /dev/ulpt0. > ulpt0 is certainly picked up on boot and verified with usbdevs. When > accessing /dev/ulpt0 in any way, it stirs up a response from the printer > (as if data was coming in, it gets all ready to print, but not data > comes in so it stops.) My printcap is as follows: > > PRINTCAP: > > Brother HL-1240|HL-1240|lp|local line printer:\ > :sh:\ > :lp=/dev/ulpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:\ > :ld=\033%-12345X@PJL\r\n@PJL SET RESOLUTION=600\r\n: > > ( The last line is for 600dpi as per the recommendations on > http://www.picante.com/~gtaylor/pht/show_printer.cgi?recnum=234953 ) > > Additionally, right before the panic: > > Jun 19 17:50:43 ogre /kernel: uhub0: port error, restarting port 2 > Jun 19 17:50:43 ogre /kernel: ulpt0: at uhub0 port 2 (addr 3) > disconnected > Jun 19 17:50:43 ogre /kernel: ulpt0: detached > > Am I missing something? Is there another setting to be considered? > Dmesg follows, and yes i've tried w/o SMP support, same thing. > (Printer works fine in Win2k.) > > Hopefully someone can prevent me from having to spring for a parallel > cable! Just to follow up, usbd seems to be causing the panics.. Without it running, i get some action from the printer (warms up and gets ready to print) followed by this message from apsfilter's test print: Printing test page... -rw------- 1 root wheel 1508497 Jun 19 19:28 /aps_testout.VW8581 eval: cannot create /dev/ulpt0: error 16 What might error 16 be? Seems as though some control is being sent along the wire, but the data just isnt getting there.. any ideas? [ogre] [~] > ls -l /dev/ulpt0 crw------- 1 root wheel 113, 0 Jun 19 19:15 /dev/ulpt0 -mike. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message