View previous topic :: View next topic |
Author |
Message |
gordin Guru
Joined: 11 Oct 2002 Posts: 300 Location: Germany/WI
|
Posted: Wed Jan 19, 2005 3:19 am Post subject: startx doesn't work but Xorg & kdeinit & startkde do |
|
|
Hi folks,
I tried to install xorg-x11-6.8.1.901 (in fact it was automaticly installed by a emerge -u world using the ~ppc flag) on my iBook2.
After reboot x was not starting any longer...
I updated my kernel and recompiled x.org but still no success
No errors in Xorg.0.log or /var/log/messages or dmesg
It took me very long to figure out that there was nothing wrong with the kernel (actually fbdev was sort of working with xorg-x11-6.8.1-902, but that's not what I want, startx did not work at this point, but I thought it was because of the unstable package) and switched back to xorg-x11-6.7.0-r3
now, startx just produces the "normal" output then a quick flicker on the screen and then back in console a "waiting for X server to shut down" as if everything is alright
I tried "Xorg" and the X-Server was up. A "kdeinit & startkde" starts kde just fine. Everything is working, even dri and glx.
So this couldn't be xorg.conf related or neither a x.org problem but some bug in startx?
I can live with the situation because I hardly reboot the iBook and everything is working fine, but this _is_ strange
/usr/X11R6/bin/startx (i didn't modifed it):
Code: | #!/bin/sh
# $Xorg: startx.cpp,v 1.3 2000/08/17 19:54:29 cpqbld Exp $
#
# This is just a sample implementation of a slightly less primitive
# interface than xinit. It looks for user .xinitrc and .xserverrc
# files, then system xinitrc and xserverrc files, else lets xinit choose
# its default. The system xinitrc should probably do things like check
# for .Xresources files and merge them in, startup up a window manager,
# and pop a clock and serveral xterms.
#
# Site administrators are STRONGLY urged to write nicer versions.
#
# $XFree86: xc/programs/xinit/startx.cpp,v 3.16tsi Exp $
userclientrc=$HOME/.xinitrc
userserverrc=$HOME/.xserverrc
sysclientrc=/etc/X11/xinit/xinitrc
sysserverrc=/etc/X11/xinit/xserverrc
defaultclientargs=""
defaultserverargs="-nolisten tcp -br"
clientargs=""
serverargs=""
if [ -f $userclientrc ]; then
defaultclientargs=$userclientrc
elif [ -f $sysclientrc ]; then
defaultclientargs=$sysclientrc
fi
if [ -f $userserverrc ]; then
defaultserverargs=$userserverrc
elif [ -f $sysserverrc ]; then
defaultserverargs=$sysserverrc
fi
whoseargs="client"
while [ x"$1" != x ]; do
case "$1" in
/''*|\.*) if [ "$whoseargs" = "client" ]; then
if [ "x$clientargs" = x ]; then
clientargs="$1"
else
clientargs="$clientargs $1"
fi
else
if [ "x$serverargs" = x ]; then
serverargs="$1"
else
serverargs="$serverargs $1"
fi
fi ;;
--) whoseargs="server" ;;
*) if [ "$whoseargs" = "client" ]; then
if [ "x$clientargs" = x ]; then
clientargs="$defaultclientargs $1"
else
clientargs="$clientargs $1"
fi
else
case "$1" in
:[0-9]*) display="$1"; serverargs="$serverargs $1";;
*) serverargs="$serverargs $1" ;;
esac
fi ;;
esac
shift
done
if [ x"$clientargs" = x ]; then
clientargs="$defaultclientargs"
fi
if [ x"$serverargs" = x ]; then
serverargs="$defaultserverargs"
fi
if [ x"$XAUTHORITY" = x ]; then
XAUTHORITY=$HOME/.Xauthority
export XAUTHORITY
fi
removelist=
# set up default Xauth info for this machine
case `uname` in
Linux*)
if [ -z "`hostname --version 2>&1 | grep GNU`" ]; then
hostname=`hostname -f`
else
hostname=`hostname`
fi
;;
*)
hostname=`hostname`
;;
esac
authdisplay=${display:-:0}
mcookie=`mcookie`
for displayname in $authdisplay $hostname$authdisplay; do
if ! xauth list "$displayname" | grep "$displayname " >/dev/null 2>&1; then
xauth -q << EOF
add $displayname . $mcookie
EOF
removelist="$displayname $removelist"
fi
done
cleanup() {
[ -n "$PID" ] && kill $PID > /dev/null 2>&1
if [ x"$removelist" != x ]; then
xauth remove $removelist
fi
if command -v deallocvt > /dev/null 2>&1; then
deallocvt
fi
}
trap cleanup 0
xinit $clientargs -- $serverargs -deferglyphs 16 &
PID=$!
wait $PID
unset PID |
Initially XSESSION in /etc/rc.conf was kde-3.3.2 but I changed that to Xsession because I thought it might be a kde problem.
mfg
Gordin |
|
Back to top |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Wed Jan 19, 2005 4:04 am Post subject: |
|
|
starts needs $HOME/.xinitrc. What does yours point it? _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
Back to top |
|
|
gordin Guru
Joined: 11 Oct 2002 Posts: 300 Location: Germany/WI
|
Posted: Wed Jan 19, 2005 4:39 am Post subject: |
|
|
Code: | export XPSERVERLIST="`/bin/sh /usr/sbin/xprint get_xpserverlist`" |
/usr/sbin/xprint does not seem to exist...
this could be the reason why there is nothing happening at all
I looked through my backups and found out that a couple of days ago the file was not there
So I deleted it and startx is working again
Thanks a lot |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|