Operating System - HP-UX
1837257 Members
2395 Online
110115 Solutions
New Discussion

dtpad X print server problem

 
SOLVED
Go to solution
jerry1
Super Advisor

dtpad X print server problem

When I set my X display(relectionX) back to my PC and run dtpad. I cannot print. I get the error:

An X print server for p08896 could not be found.

How do you tell dtpad to use/see the printers
on the HP server for use?




10 REPLIES 10
john kingsley
Honored Contributor

Re: dtpad X print server problem

It sounds like your Technical Print Server isn't configured. You can bypass TPS by editing /etc/rc.config.d/desktop and adding the line

DTPRTSVR=LP

For this to work, you will need to make sure you have patch PHSS_26492 or later loaded.


jerry1
Super Advisor

Re: dtpad X print server problem

This patch, PHSS_26492, is for HP-UX 11.11.
I did however find the patches for 11.0 but
it requires a reboot.

john kingsley
Honored Contributor
Solution

Re: dtpad X print server problem

If you don't want to reboot, your other option it to configure the "Technical Print Server". The easiest way to do this is through SAM. For more information about TPS, consult the "Technical Print Service System Administrator's Guide". This manucal can be opened from the CDE->Help?->Help_Manager.

To configure TPS in SAM:

SAM--> Printers & Plotters --> Print Server Configuration

Create --> [Change the display # if you need to. The default will be display 1]
Select [OK]

By default, TPS uses the lpstat to get a list of available printers, but this can be changed. Before you can see any printers, you will need to logout and then back into CDE.

I have found the TPS is very finicky. I don't think very many people use it. Most people reconfigure there system to use LP.
jerry1
Super Advisor

Re: dtpad X print server problem

John, I had already tried sam as you described but when I select "create" I get
the error message:

UNEXPECTED EXIT: process /usr/sbin/tpsconfig -c devsvr2:1 1>/dev/null exited with a non-zero exit status.


In /etc/rc.config.d/tps I have nothing configured for XPRINTSERVERS=
for /etc/rc.config.d/desktop I have
DESKTOP=CDE
DTPRTSVR=LP

I tried setting some values for XPRINTSERVERS=
Like the example in the tps script XPRINTSERVERS="6 C 23 C"
But running /sbin/init.d/tps.rc does nothing.


john kingsley
Honored Contributor

Re: dtpad X print server problem

I don't think you have the config files set correctly.

In /etc/rc.config.d/tps
You should have:
XPRINTSERVERS="# C "

where: # is the X-Display number you defined in SAM. SAM should have also created:
/etc/X11/X#printers
/etc/X11/X#screens
/etc/X11/X#devices
/etx/X11/Xstart

If you don't see these files, go back into SAM, delete your X-print server, and create it again. Be aware when choosing your display number, that if you have SSH loaded with X11 tunnelling enabled, SSH will also be allocating X-Display numbers.

For /etc/rc.config.d/desktop I have:
DESKTOP=CDE
DTPRTSVR=

If you use "DTPRTSVR=LP", mail and dtpad will try printing through the lpspooler instead of TPS. However, this won't work if you don't have the right patch loaded.

What happens when you try to start tps in SAM?

In SAM, I see:

fst3:1 Status=Running Currently Loaded Drivers=XP-Raster

If it still doesnt startup, Check /var/X11/Xserver/logs/* & /var/dt/* for errors.

Make sure TPS is loaded:
swlist -l fileset | grep -i TechPrintServ

You might also need patches. Search the patch database for TPS.

Documentation can also be found in:
/usr/share/doc/TechPrtServ/C/
jerry1
Super Advisor

Re: dtpad X print server problem

For /var/dt/XPserver:1.err

Unable to open the Graphics Resource Manager.
The error occurred during GRM initialization.
The X11 server must be able to communicate with the
Fatal server error:
GRM process.
^[g

Don't know what the control charater is doing
in the file.


For /var/st/dtpdmd.1.log

/usr/dt/bin/dtpdmd: error, cannot open display :1

john kingsley
Honored Contributor

Re: dtpad X print server problem

Maker sure your
/etc/X11/X[TPS-DISPLAY]screens file contains only:
ServerOptions
serverMode XPrint

Is your font server running (xfs)? I think TPS needs it running.

Your error message indicates that there is a problem with grmd. Check out this thread.
http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0xf2934a988422d711abdc0090277a778c%2C00.html&admit=716493758+1090446943635+28353475
jerry1
Super Advisor

Re: dtpad X print server problem

John, none of the info from the link helped.
The font server is running but it's not the
same as on the other HP-UX 11.0 system.
The startup script is different and the
processes look like this:

/usr/bin/X11/xfs -port 7000 -daemon -quiet_if_addrinuse

As compared to the other system:

/usr/bin/X11/xfs -ls 7/3/7000,5
/4/7000 -cf /etc/X11/fs/config



john kingsley
Honored Contributor

Re: dtpad X print server problem

Your problem seems to be related to the grmd process. I've done some checking on my system (11i), and I have grmd running (ppid=1), and everytime I start my TPS,
/var/spool/sockets/grmd is touched.

I don't know what would be preventing this from happening on your system. I need to think about this some more.
jerry1
Super Advisor

Re: dtpad X print server problem

/var/spool/sockets/grmd does get touched.