From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653641821681.tru64-unix-managers.marc@archive.invalid> From: Peyton Bland Date: Mon, 08 Oct 2001 15:30:22 +0000 To: tru64-unix-managers Subject: SUMMARY: passing arguments to Xdec X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653641821681 Hi, Here is an overdue summary: ============ original message... In an effort to troubleshoot a problem we are having with X services on an XP1000 running 5.0A, I am trying to pass command line arguments to Xdec. Our Xservers file (which is a sym link to Xservers.con) contains a line that refers to /usr/bin/X11/X which is a sym link to Xdec . The man page for Xdec (as well as its in-line help) indicates that there are a number of command line parameters that can be specified; I am interested in setting -ld, -ls, and -lf . Where can these be added? I notice that Linux allows them to be set in its Xservers file following the full path specification /usr/X11R6/bin/X . But I'm not sure that it operates that way in Tru64: I added these parameters in our Xservers file, but I couldn't see them with the ps command (only the -auth parameter was shown) -- plus our problem still remained (which I admit isn't conclusive for the argument passing problem...). ============ the respondents... "Thank you" to the following for their replies: Paul Henderson (2 replies) "Thomas M. Payerle" Peter.Stern@weizmann.ac.il Thanks to each of you for taking time to reply. ============= the answer(s)... Two people suggested putting the command line args in /usr/lib/X11/Xserver.conf in the "arg < >" block. Sounds like it should work, but it didn't -- at least not on my system. Paul Henderson suggested editing the Xserver file; see below. This worked -- but only on our 5.1 system (a DS-20E) -- not our 5.0A system which unfortunately is the one on which I was doing my original experimenting! Looks like Xdec in 5.0A doesn't allow args to be added via Xserver...??? Anyway, all is well now; I just have to upgrade the 5.0A system to 5.1. And with the addition of the ls, ld, & lf args to Xdec, we have no more X server errors (on the 5.1 system)! By the way, our X server problem was that we were running out of resources when running a particular application. We never had this problem on our 4.0F system (even without adding the ls, ld & lf args); it started with 5.0A. Now it looks like we will be OK in 5.1 as long as we add add these args to Xdec. ============== Paul's message... 1) copy /usr/dt/config/Xconfig to /etc/dt/config 2) copy /usr/dt/config/Xservers to /etc/dt/config 3) rm /etc/dt/config/Xservers.con 3) modify /etc/dt/config/Xserver's last line to include your command line arguments: :0 Local local@console /usr/bin/X11/X :0 -screen 1600 -dpi 75 -terminate -ld 0 -ls 0 -lf 0 Then, you will need to not only kill the current Xserver, but the dtlogin processes. If you can sustain a reboot, that is the easiest way. If not, you will need to go to /sbin/rc3.d and execute: # ./S95xlogin -restart The reasons are: 1) the Xserver doesn't restart on a CDE session exit unless the -terminate flag is specified 2) the CDE session manager also won't exit, even on a Xserver termination. It is a daemon and just hangs around waiting to restart its session with its current configuration. So your changes never made it to the daemon, and it restarted X the way it remembered to. Now, with this all done, a 'tail(1)' of /etc/dt/config/Xservers is: fetch# tail /etc/dt/config/Xservers # login as root. # ############################################################################ :0 Local local@console /usr/bin/X11/X :0 -screen 1600 -dpi 75 -terminate -ld 0 -ls 0 -lf 0 and a 'ps(1)' looks like this: fetch# ps auxw | grep X root 597 0.1 1.0 10.7M 4.9M ?? S 08:27:50 0:07.98 /usr/bin/X11/X :0 -screen 1600 -dpi 75 -terminate -ld 0 -ls 0 -lf 0 -auth /var/dt/authdir/authfiles/A:0-aaaifa ...Also, do NOT edit /usr/lib/X11/Xserver.conf. This file will be overwritten, and you'll do an OS upgrade only to find your application no longer works! Then you'll blame us ;-)!