1847079 Members
4846 Online
110262 Solutions
New Discussion

Re: error using xpr

 
Marc Ahrendt
Super Advisor

error using xpr

the below command has always worked:
/usr/bin/X11/xwd | /usr/contrib/bin/X11/xpr -rv -device ljet | lp -d ${printer}

now xpr complains with the following error:
/usr/contrib/bin/X11/xpr: 16 bit deep TrueColor bitmap not supported.

what has changed is the following:
1) using HP-UX 11.00 and not 10.20
...i think this is not the issue
2) using NCD NC900 Xterminals instead of the old HP Entria Xterminals
...i think this is what xpr is upset about, the Xserver has changed, and most likely the new color depth/palette etc

can i tweak the xwd/xpr settings to get it to work?
should i use ImageMagick instead? and if so what would the equivalent command line look like? any issues installing it on 11.00?

i tried to tweak the Xserver but it seems to need to be TrueColor with 16bit depth to make my programs look OK on the NC900


hola
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: error using xpr

Its item two.

You do have the required software for that NCD device installed? Right?

There may be a configuration isssue with that software or the font server in 11.00.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Marc Ahrendt
Super Advisor

Re: error using xpr

steve: yes i have the NCBridge software installed correctly (using V4.0.12). i do not think that the issue is with the Xserver software itself but its configuration maybe (i tweaked it as much as i could trying pseudocolor and 8bit depth etc... but only truecolor 16bit allowed the local Citrix client on the NC900 to come up OK without screwing up the colors of other running Xwindows). so i am wondering more about xpr and possibly using it differently, or just using something more up-2-date since xpr binary seems to be ~6 years old on my new L3000 server!
hola
Alex Glennie
Honored Contributor

Re: error using xpr

16 bit visuals were never around when xpr was born, hence your problem.

the following internal defect id JADae28028 details a similar problem and an enhancement request to provide something that does do the job.

If you have an HP support contract I'd contact your local response centre and quote the above id, there might be an unsupported tool based on xwd2sb available still that may help.

something else to try :

xwd2sb ¦ pcltrans ¦ -C lp -d -onb -oraw

as to imagemagick ... it might do the job try converting the image to say 24 bit .... xwd2sb can handle tha
Marc Ahrendt
Super Advisor

Re: error using xpr

Alex: thx for the info ...will contact HP as you stated

also i actually got it to work ...wish i could give myself 10 points here

WAS:xwd | xpr -rv -device ljet | lp -d PRT1

NOW:xwd | xpr -rv -device ps | lp -d PRT1

the fix was strangely changing the device from ljet to ps ...i looked at old forum postings and found a variety of options used with xpr and played with them
hola