Subject: Re: Query: 3100 graphics-console cursor patch and X11?
To: None <jonathan@DSG.Stanford.EDU>
From: maximum entropy <entropy@zippy.bernstein.com>
List: port-pmax
Date: 11/14/1997 13:37:06
>From: Jonathan Stone <jonathan@DSG.Stanford.EDU>
>[entropy said:]
>>First an unrelated problem:  if I start xfs automatically (xfs=YES
>>/etc/rc.conf), the system freezes when I start X.  If I start xfs
>>manually (xfs &) right before starting X, it works just fine.
>
>Could you please send me some info from right after you boot
>but before starting X:
>
>   * output of  ps -auxww | grep  xfs

root       215 12.0  0.8   112  112 D0  R+   12:37PM    0:00.22 grep xfs 
root       185  0.0  6.4  1004  904 D0- I    12:31PM    0:05.14 xfs 

The only thing that looks vaguely suspicious to me is that xfs's
controlling terminal was revoked.

>   * output of netstat -Aa (look for port 7100)

c047e200 tcp        0      0  *.7100             *.*                LISTEN
c047ed00 stream      0      0 c0481080        0        0        0 /tmp/.font-unix/fs7100

>   * contents of /usr/X11R6/lib/X11/fs/fs-errors

[The file is empty.]

-rw-r--r--  1 root  wheel  0 Nov 14 12:31 /usr/X11R6/lib/X11/fs/fs-errors

Here is my startx (comments and blank lines elided to save space).
remember, this works fine if I "xdm &" then "startx" manually:

userclientrc=$HOME/.xinitrc
userserverrc=$HOME/.xserverrc
sysclientrc=/usr/X11R6/lib/X11/xinit/xinitrc
sysserverrc=/usr/X11R6/lib/X11/xinit/xserverrc
clientargs=""
serverargs=""
if [ -f $userclientrc ]; then
    clientargs=$userclientrc
else if [ -f $sysclientrc ]; then
    clientargs=$sysclientrc
fi
fi
if [ -f $userserverrc ]; then
    serverargs=$userserverrc
else if [ -f $sysserverrc ]; then
    serverargs=$sysserverrc
fi
fi
whoseargs="client"
while [ "x$1" != "x" ]; do
    case "$1" in
	/''*|\.*)	if [ "$whoseargs" = "client" ]; then
		    clientargs="$1"
		else
		    serverargs="$1"
		fi ;;
	--)	whoseargs="server" ;;
	*)	if [ "$whoseargs" = "client" ]; then
		    clientargs="$clientargs $1"
		else
		    serverargs="$serverargs $1"
		fi ;;
    esac
    shift
done
xinit $clientargs -- $serverargs -fp tcp/localhost:7100

I also tried xfs=YES and xdm=YES in rc.conf, commented out console in
ttys, rebooted.  Nothing interesting happens -- the disk grinds a bit
and then it just sort of stops.

Cheers,
entropy

--
entropy -- it's not just a good idea, it's the second law.