[comp.sys.hp] Dumping X-Window Screens

mdb@mva.cs.liv.ac.uk (07/02/90)

I am trying to collect a series of screen dumps to illustrate the
use of X-Windows on the HP 300 series of workstations.

I have been using xwd to produce screen dumps after a short delay to
set the screen up as I wish:

sleep 5; xwd -root -out temp

which works fine for applications, but I cannot get any dumps of
such items as window manager menus and the screen display as you
move or resize windows.  All that happens is that the dump waits until the
mouse button is released and so there is no menu being displayed.

I have tried running the window manager and the dump programs on
different workstations, but the same thing happens.


I am running hpux 6.5 on HP 318 workstations.  The same thing happens with 
both HP's version of X11R2 and the HP version of X11R4 compiled off the
MIT release tapes

Has anyone any ideas as to how I can get the dumps I want? 

Thanks,

Martin Beer,
Dept. of Computer Science,
University of Liverpool.

mdb@uk.ac.liv.cs.mva

kk@hpl-opus.HP.COM (Konstantinos Konstantinides) (07/03/90)

I had that problem also. Here is a solution that worked for me.

On workstation A, set up your windows.
Run xwininfo to get the window ID (or name) of the window you want to dump.
Set up all windows (and mouse)  as you want them.

On terminal B, login to your system.
               Run xwd with the -id (or -name) option.
Then you don't need the mouse to select it.

K. Konstantinides
kk@hpkronos.hpl.hp.com

stroyan@hpfcso.HP.COM (Mike Stroyan) (07/04/90)

>sleep 5; xwd -root -out temp
 
>...   works fine for applications, but I cannot get any dumps of
>such items as window manager menus and the screen display as you
>move or resize windows.  All that happens is that the dump waits until the
>mouse button is released and so there is no menu being displayed.

>Has anyone any ideas as to how I can get the dumps I want? 

>Martin Beer

It sounds like your window manager has grabbed the X server, so xwd
can't do anything until the window manager lets go.  You may be able to
get a good graphics dump by using Starbase to gopen the X server's
display device file and calling the bitmap_print(3G) function.  Be sure
to do the gopen without an INIT flag so it doesn't clear the screen.

Mike Stroyan, stroyan@hpstryn

hon@aeshq.UUCP (hon) (07/06/90)

  Since we're on the topic of screen dumps.  Is there anyway of getting a screen dump using GKS?  I'm currently
working on a program that uses on GKS and would prefer not to open Starbase just to do a screen dump. If anyone has
had prevous luck with this, let me know. 

Hon