Pawel Golik wrote:
> Hi,
> I upgraded my sytem (Mandrake 7.2) to use Xfree4.0.2 (I used 4.0.1
> previously) and have problems running Win4Lin (latest version) in fullscreen
> mode. When I run it windowed (win&) everything is OK, but when I try fwin I
> get following messages:
>
> X running on 0
> Trying display 1.
> Authentication failed - cannot start X server.
> Perhaps you do not have console ownership?giving up.
> xinit: Connection refused (errno 111): unable to connect to X server
> xinit: No such process (errno 3): Server error.
>
> I can start other X apps (like Mozilla) from the console prompt just fine.
> Anybody knows a possible solution?
> TIA
> Pawel
>
I ran into a similar problem with fwin when I upgraded to XFree86 4.0.2 (to
get better support for my laptop's display processor). When I ran into the
problem and got no solutions that worked (for me, anyway), I tried a little
cut-and-paste with things that I knew worked and came up with the
following solution.
This borrows heavily from the xinit script functionality in XFree 4.0.2 and
replaces the last few lines in the fwin script with the authorization lines
from the xinit script.
I make no claims that this is THE RIGHT way to go, all I know is that it
works and resolves the "permission denied' failure for my application.
I made a patched copy of fwin in my $HOME/bin directory and ensured
that the search path included that directory first.
The patch is:
----------------
cd /home/ritcheyd/bin/
diff -cw /usr/bin/fwin /home/ritcheyd/bin/fwin
*** /usr/bin/fwin Mon Jan 29 02:09:39 2001
--- /home/ritcheyd/bin/fwin Thu Feb 8 19:05:02 2001
***************
*** 60,71 ****
# Look for a display that X is not running on.
for XX in 0 1 2 3 4 5
do
! ps ax | grep Xwrapper | grep :$XX > /dev/null
[ $? -ne 0 ] && break
echo X running on $XX
done
echo Trying display $XX.
# Now start X and the intial clients specified in $SYS_RC_DIR/$SYS_RC_FILE
! xinit /bin/sh ${SYS_RC_DIR}/${SYS_RC_FILE} $* -- :$XX
!
--- 60,81 ----
# Look for a display that X is not running on.
for XX in 0 1 2 3 4 5
do
! ps awx | grep -E '(Xwrapper|X11R6/bin/X )' | grep :$XX > /dev/null
[ $? -ne 0 ] && break
echo X running on $XX
done
echo Trying display $XX.
# Now start X and the intial clients specified in $SYS_RC_DIR/$SYS_RC_FILE
! display=":${XX}"
! mcookie=`mcookie`
! if [ X"$XAUTHORITY" = X ]; then
! authfile="$HOME/.Xauthority"
! else
! authfile="$XAUTHORITY"
! fi
! serverargs="+bs"
! serverargs="$serverargs -auth $authfile"
! xauth add $display . $mcookie
! xauth add `hostname -f`$display . $mcookie
! xinit /bin/sh ${SYS_RC_DIR}/${SYS_RC_FILE} $* -- :$XX ${serverargs}
-------------------------
Note, the check for an existing X display needed the alternate search string
'X11R6/bin/X', since I did not see XWrapper in the process stack. After making
the change, I have a rock solid startup on my laptop, every time.
Good luck, and hopefully this will inspire someone who REALLY knows what
is happening here to solve the real problem.
Best wishes.
Don Ritchey
[EMAIL PROTECTED]
_______________________________________________
Win4Lin-users mailing list
[EMAIL PROTECTED]
https://lists.netraverse.com/mailman/listinfo/win4lin-users