Re: Annoying message about X11 Resources on Solaris. [message #52366] |
Tue, 30 January 2007 08:34 |
JJ
Messages: 36 Registered: January 2007
|
Member |
|
|
> Where could these resources possibly be getting set????
Found it!!!
It was in a file that came with the IDL 6.3 distribution:
.../idl_6.3/resource/X11/lib/X11/app-defaults/Idl
contained the following lines
Idl.graphicsWindowWidth: 640
Idl.graphicsWindowHeight: 512
Idl.graphicsWindow14Screen: True
I commented those lines out and the problem was solved. Thanks Allan
for pointing me in the right direction.
ITT please take note.
-Jonathan
|
|
|
Re: Annoying message about X11 Resources on Solaris. [message #52368 is a reply to message #52366] |
Tue, 30 January 2007 08:09  |
JJ
Messages: 36 Registered: January 2007
|
Member |
|
|
JJ wrote:
>
> But what's worse is that the window still comes up as 960x1112.
>
OK, I just figured that out: I hadn't set IDL_GR_X_QSCREEN to 0. Now
I can get all the other user's to behave just like me. So I'm just back
to the original problem of trying to figure out where
idl.graphicsWindowWidth, etc. are being set - which is just an annoyance.
-JJ
|
|
|
Re: Annoying message about X11 Resources on Solaris. [message #52370 is a reply to message #52368] |
Tue, 30 January 2007 07:50  |
JJ
Messages: 36 Registered: January 2007
|
Member |
|
|
>> Where could these resources possibly be getting set????
>>
>
> Thousands of places :).
>
> A strong possibility is that in the dim and distant past a system admin
> set things up to be helpful. It looks like you're getting a warning
> message not because they are set but because they are different what are
> set in your IDL preferences. This could be why you're getting different
> behaviour from other users.
>
> I tracked down a Solaris 8 box (I think it's Solaris 8 anyway: 5.8
> Generic_117000-03 sun4u sparc SUNW,Ultra-5_10) and a system-wide
> possiblity is:
>
> /usr/openwin/lib/Xdefaults
>
Thanks for the suggestions. I think looking for a file that sets these
attributes globally is probably the right track. Unfortunately, If a
sysadmin was just trying to be helpful and did this in the past, it was
probably me.
I was not able to find the culprit in the suggested places.
My ~/.idl/rsi/pref-10-idl_6_3-unix/idl.pref looks the way I think it
should, with values for IDL_GR_X_HEIGHT and IDL_GR_X_WIDTH. After the
complaints, my windows come up the size I expect (900x600).
Strangely, other users seem to get a default window of size 960x1112. I
have no idea where those numbers are coming from. And if they set the
variables:
IDL_GR_X_HEIGHT : 600
IDL_GR_X_WIDTH : 900
in their ~/.idl/rsi/pref-10-idl_6_3-unix/idl.pref,
When they run IDL they will get the previously described error messages
referring to values of 640x512:
% idl.graphicsWindowWidth X11 resource was used by older versions of IDL
to default width of a
graphics window, but is ignored by this version. It is present and
has a value of 640 which
does not agree with the value of the IDL_GR_X_WIDTH preference (900).
Set the IDL_GR_X_WIDTH
preference to 640 if you wish to use this value. Set the
IDL_PREF_OBSOLETE_WARN preference
to False if you wish to disable these warning messages in the future.
% idl.graphicsWindowHeight X11 resource was used by older versions of
IDL to default height of a
graphics window, but is ignored by this version. It is present and
has a value of 512 which
does not agree with the value of the IDL_GR_X_HEIGHT preference
(600). Set the
IDL_GR_X_HEIGHT preference to 512 if you wish to use this value. Set the
IDL_PREF_OBSOLETE_WARN preference to False if you wish to disable
these warning messages in
the future.
But what's worse is that the window still comes up as 960x1112.
????
I'm getting really confused.
-JJ
|
|
|
Re: Annoying message about X11 Resources on Solaris. [message #52383 is a reply to message #52370] |
Mon, 29 January 2007 21:55  |
mchinand
Messages: 66 Registered: September 1996
|
Member |
|
|
In article <epm350$4l7$1@dennis.cc.strath.ac.uk>,
Allan Whiteford <allan-remove-this-@-and-this.phys-dot-strath.ac.uk> wrote:
> JJ wrote:
>>
>> I recently upgraded from IDL 6.2 to 6.3 on a Solaris 8 platform, and now
>> when I open an IDL window the first time, I get the following messages:
>>
>> Where could these resources possibly be getting set????
>>
>
> Thousands of places :).
>
> A strong possibility is that in the dim and distant past a system admin
> set things up to be helpful. It looks like you're getting a warning
> message not because they are set but because they are different what are
> set in your IDL preferences. This could be why you're getting different
> behaviour from other users.
>
> I tracked down a Solaris 8 box (I think it's Solaris 8 anyway: 5.8
> Generic_117000-03 sun4u sparc SUNW,Ultra-5_10) and a system-wide
> possiblity is:
>
> /usr/openwin/lib/Xdefaults
>
Or maybe in the following directory:
/usr/X/lib/app-defaults
--
Michael Chinander, PhD
m-chinander@uchicago.edu
Department of Radiology
University of Chicago
|
|
|
Re: Annoying message about X11 Resources on Solaris. [message #52385 is a reply to message #52383] |
Mon, 29 January 2007 16:29  |
Allan Whiteford
Messages: 117 Registered: June 2006
|
Senior Member |
|
|
JJ wrote:
>
> I recently upgraded from IDL 6.2 to 6.3 on a Solaris 8 platform, and now
> when I open an IDL window the first time, I get the following messages:
>
> % idl.graphicsWindowWidth X11 resource was used by older versions of IDL
> to default width of a graphics
> window, but is ignored by this version. It is present and has a value
> of 640 which does not agree
> with the value of the IDL_GR_X_WIDTH preference (900). Set the
> IDL_GR_X_WIDTH preference to 640 if
> you wish to use this value. Set the IDL_PREF_OBSOLETE_WARN preference
> to False if you wish to
> disable these warning messages in the future.
> % idl.graphicsWindowHeight X11 resource was used by older versions of
> IDL to default height of a
> graphics window, but is ignored by this version. It is present and has
> a value of 512 which does
> not agree with the value of the IDL_GR_X_HEIGHT preference (600). Set
> the IDL_GR_X_HEIGHT
> preference to 512 if you wish to use this value. Set the
> IDL_PREF_OBSOLETE_WARN preference to False
> if you wish to disable these warning messages in the future.
> % idl.graphicsWindow14Screen X11 resource was used by older versions of
> IDL to set graphics windows to
> 1/4 of the screen size, but is ignored by this version. It is present
> and has a value of True which
> does not agree with the value of the IDL_GR_X_QSCREEN preference
> (False). Set the IDL_GR_X_QSCREEN
> preference to True if you wish to use this value. Set the
> IDL_PREF_OBSOLETE_WARN preference to
> False if you wish to disable these warning messages in the future.
>
> Granted, I could set the IDL_PREF_OBSOLETE_WARN preference to False and
> I wouldn't have to see these annoying messages, but darnit, I wan't to
> find out where these preferences are being set and just remove them at
> the source. I don't have a .Xdefaults file, they're not set in my
> .idlde file, and other user's on the same machine don't exhibit this
> problem. I can manage to remove them using an xrdb command, but they're
> back next time I log in.
>
> Where could these resources possibly be getting set????
>
Thousands of places :).
A strong possibility is that in the dim and distant past a system admin
set things up to be helpful. It looks like you're getting a warning
message not because they are set but because they are different what are
set in your IDL preferences. This could be why you're getting different
behaviour from other users.
I tracked down a Solaris 8 box (I think it's Solaris 8 anyway: 5.8
Generic_117000-03 sun4u sparc SUNW,Ultra-5_10) and a system-wide
possiblity is:
/usr/openwin/lib/Xdefaults
however, that was just a likely looking file. I don't know enough about
Solaris to say for sure that the file will be read and it's currently
thousands of miles away so it's somewhat problematic for me to go and
sit in front of it :).
Also note that your defaults are usually set by the machine you're
sitting in front of rather than the machine you're running IDL on (if
they happen to be different). But, of course, xrdb commands in login
files (either your own or put there by system admins) can override or
extend this behaviour.
The location of your .Xdefaults file can be overridden by an environment
variable and I also have a vague recollection of a system where you had
a separate .Xdefaults for for each screen you could sit in front of so
you'd end up with files called something like .Xdefaults-mycomputer:0.1
or something like that. I'm not sure how relevant this is though,
probably not very.
Good luck!
Thanks,
Allan
|
|
|
Re: Annoying message about X11 Resources on Solaris. [message #52387 is a reply to message #52385] |
Mon, 29 January 2007 12:50  |
JD Smith
Messages: 850 Registered: December 1999
|
Senior Member |
|
|
On Mon, 29 Jan 2007 14:55:14 -0500, JJ wrote:
>
> I recently upgraded from IDL 6.2 to 6.3 on a Solaris 8 platform, and now
> when I open an IDL window the first time, I get the following messages:
>
> % idl.graphicsWindowWidth X11 resource was used by older versions of IDL
> to default width of a graphics
> Where could these resources possibly be getting set????
Maybe ~/.idl/rsi/pref-10-idl_6_3-unix/idl.pref?
JD
|
|
|