From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,d4fdffa0f5eeefc2 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1992-03-16 23:01:37 PST Newsgroups: comp.sys.dec Path: sparky!uunet!elroy.jpl.nasa.gov!ucla-cs!ucla-mic!ucla-physics!mmccarri From: mmccarri@physics.ucla.edu (Mike McCarrick) Subject: Re: XOFF problem with HP printer on DS5000/200 Message-ID: <1992Mar16.220159.23928@physics.ucla.edu> Organization: UCLA Department of Physics References: <1992Mar13.191235.29572@physics.ucla.edu> Date: Mon, 16 Mar 92 22:01:59 GMT In <1992Mar13.191235.29572@physics.ucla.edu> I wrote: >I am trying to attach an HP Laserjet III (w/ Postscript) to my >DS5000/200 running Ultrix 4.0. The printcap entry is included at the >end for your information. >The problem seems to be that the DECstation doesn't respond quickly >enough th XOFF's from the printer. That is, if I eavesdrop on the >serial line, I can see that the printer sends an XOFF, the DS continues >sending, the printer then sends a bunch more XOFF's and then complains >about and I/O Config error (buffer overflowing). The DS does eventually >stop sending data, but only after overflowing the printers input buffer. >Has anyone else seen or solved this problem? Is it a problem with the >HPLJ sendin XOFF too late (when the buffer is too close to full), i.e. >is there another printer that would work correctly? I received a couple of requests to post any solution, so here it is: The needed patch came from Klaus Harbo , which he in turn received from John Voss . The patch is applied to /usr/sys/machine/common/conf.c and goes like this: > > *** /usr/sys/machine/common/conf.c.orig Tue Feb 12 10:46:23 1991 > --- /usr/sys/machine/common/conf.c Tue Feb 12 10:47:53 1991 > *************** > *** 1072,1077 **** > --- 1072,1078 ---- > > #ifdef mips > int cnopen(),cnclose(),cnread(),cnwrite(),cnioctl(),cnselect(); > + int cnstop(); > #endif mips > > #ifdef vax > *************** > *** 1896,1902 **** > #endif vax > #ifdef mips > /* d_ttys will be filled in by cninit */ > ! cnioctl, nulldev, nulldev, 0, > cnselect, nodev, 0, 0}, > #endif mips > {dzopen, dzclose, dzread, dzwrite, /*1*/ > --- 1897,1903 ---- > #endif vax > #ifdef mips > /* d_ttys will be filled in by cninit */ > ! cnioctl, cnstop, nulldev, 0, > cnselect, nodev, 0, 0}, > #endif mips > {dzopen, dzclose, dzread, dzwrite, /*1*/ > After rebuilding the kernel, the printer now works perfectly! Thanks Klaus! Regards, Dr. Mike McCarrick Plasma Physics Lab, UCLA