[comp.sys.hp] X failing to Redraw

tundra@ux1.cso.uiuc.edu (John Kemp) (03/25/90)

I posted recently asking if anyone had seen their "X"
fail to redraw overlapping windows.  I also noticed that
changes made to the sys.Xdefaults were not taking effect.
After some serious headbanging here is the answer...

Make the files in /usr/lib/X11 OWNED BY BIN!!!!!!!!!!!!!

If they are owned by root, even if the protection is 777
I don't think X will read them at start up.  The results  
of not having these files BIN owned is that your color table
gets completely foobarred and most of the entries end up 
being black .i.e. invisible.

Thanks for all who responded, (though nobody came up with
this answer)

--------  john kemp            (  (  )_  internet - kemp@uiatma.atmos.uiuc.edu
  -----                       (  (   __)   decnet - uiatmb::kemp
   ---    univ of illinois   (_ (   __)    bitnet - {uunet,convex}
   --     dept of atmos sci  .(____).               !uiucuxc!uiatma!kemp
   -      105 s gregory ave    ...          phone - (217) 333-6881
    -     urbana, il 61801    ...             fax - (217) 444-4393

-- 

--------  john kemp            (  (  )_  internet - kemp@uiatma.atmos.uiuc.edu
  -----                       (  (   __)   decnet - uiatmb::kemp
   ---    univ of illinois   (_ (   __)    bitnet - {uunet,convex}

tundra@ux1.cso.uiuc.edu (03/25/90)

Sorry for the multiple postings...but I thought this stuff would 
be of general interest.   All references are to HP's X dist on HP-UX 7.0.

The "rgb.txt" and assoc. rgb files that HP gives you can mess you up!  
Apparently a bunch of clients (including the default xclock and 
xload started by mwm) want you to have nice colors in the first 8 
positions of the colortable.

The first 8 colors or so in that database should be:

                       0 0 0           black
                       255 255 255     white
                       255 0 0         red
                       255 255 0       yellow
                       0 255 0         green
                       0 255 255       cyan
                       0 0 255         blue
                       255 0 255       magenta

You can make the new rb files by removing the old "rgb.pag and rgb.dir"
and saying "rgb < rbg.txt".  We have the following in our inittab and 
it looks like things are working out pretty well. (Not so with the previous
rbg table.)

X0:2:respawn:env PATH=/bin:/usr/bin/X11:/usr/bin xinit /usr/bin/X11/hpterm -L =+
2+2 ttyq0 #Xwindow -- :0 -co /usr/lib/X11/rgb



--------  john kemp            (  (  )_  internet - kemp@uiatma.atmos.uiuc.edu
  -----                       (  (   __)   decnet - uiatmb::kemp
   ---    univ of illinois   (_ (   __)    bitnet - {uunet,convex}
   --     dept of atmos sci  .(____).               !uiucuxc!uiatma!kemp
   -      105 s gregory ave    ...          phone - (217) 333-6881
    -     urbana, il 61801    ...             fax - (217) 444-4393

tundra@ux1.cso.uiuc.edu (03/25/90)

>>> Make the files in /usr/lib/X11 OWNED BY BIN!!!!!!!!!!!!!

That doesn't seem to do the whole trick either.  I have found
a way to force X to read the defaults file from init.
Why it doesn't read it in ANY other case is beyond me.
Here is what I am using now...

X0:2:respawn:env PATH=/bin:/usr/bin/X11:/usr/bin xinit /bin/sh -c "xrdb -nocpp -load /usr/lib/X11/sys.Xdefaults; /usr/bin/X11/hpterm -L =+2+2 ttyq0 #Xwindow"

(I have a feeling that the resource part of HP's default sys.x11start file
is not all there.  There is a section on xrdb but it never seems to happen.
Could be because I run from csh?)

John Kemp
kemp@uiatma.atmos.uiuc.edu