Operating System - HP-UX
1834060 Members
2757 Online
110063 Solutions
New Discussion

Re: problems installing serial printer

 
hakan toktas
Occasional Contributor

problems installing serial printer

Hi all,

I have one working LaserjetIIIp printer and I want to install this on serial interface of my 382 wstation with hp-ux 9.0 as local printer. I use sam and assign the driver "laserjet" present in my kernel(not sure whether this is the right one!). I see the printer enabled, idle but as soon as I send a print job, the printer is "disabled". I suspect some problems from driver or baud rate, but I do not have much experience about modifying serial port parameters in my workstation, and I do not know what the default values are.

I will be more than happy if you can give me some tips about how to install such printer on my machine. (I can supply more details if you need..)

Thanks in advance
Engin.
i m a test engineer and unix makes me sick!!
4 REPLIES 4
KapilRaj
Honored Contributor

Re: problems installing serial printer

I have added many Dotmatrix printers on serial not laser jet .But i hope the procedure should be the same.

Add the printer using lpadmin command . I assume the device file for this serial interface will be something like /dev/tty01

confirm the entry in /etc/inittab for this special device file . it should be set off (not respawn).

Now try enable printer name & fire a print job & enjoy .

If u still face problems , please some back with more data & i will work on it

kaps ...............
Nothing is impossible
Printaporn_1
Esteemed Contributor

Re: problems installing serial printer

Hi Engin,
try copy /var/spool/lp/model/laserjet to
/var/spool/lp/interface/

(make backup first)
HTH
enjoy any little thing in my life
hakan toktas
Occasional Contributor

Re: problems installing serial printer

hi both,

i tried both copying /usr/spool/lp/models/laserjet as /usr/spool/lp/interface/lpt1. But my problem still persists.

below attached is my /etc/inittab file. Further comments gratefully appreciated.

Is there any way that I can test my hardware (serial or parallel)?

Engin.
i m a test engineer and unix makes me sick!!
Frank Slootweg
Honored Contributor

Re: problems installing serial printer

Your /etc/inittab contains

lp ::off:nohup sleep 999999999
which ("off") does not do anything. BUT, LEAVE it as it is, because LP spooler managed printers should not be initialized by inittab.

Check /usr/spool/lp/interface/. There should be *three* stty commands in there (just search for the word "stty"). Set the baud rate in those commands to the right baud rate.

If that works, copy /usr/spool/lp/interface/ to /usr/spool/lp/model/my_laserjet, so that if you have to re-install the printer, you can just specify my_laserjet as the model script. (Do NOT modify the original laserjet model script, only a copy of it.)

If this does not help, then give the "lpstat -t" output, the relevant part of the log file (see the lpsched(1M) manual page for the right filename), etc..