You are not logged in.

#1 2013-03-25 08:07:23

rasoran
Member
Registered: 2013-03-25
Posts: 29

[SOLVED] xinitrc hangs

If delete my .xinitrc then the default setup (xterm, xlock, twm) pops up and works fine. But using any .xinitrc, even just simply copying over /etc/skel/.xinitrc and adding in

exec xterm

or copying over the default /etc/X11/xinit/xinitrc just makes the screen hang.

The odd part is that even though the screen only shows a blinking cursor on the top left. I can still see my mouse moving and from clicking around i can tell that its actually still using the default setup (/etc/X11/xinit/xinitrc) but theres no input to the screen.

Last edited by rasoran (2013-03-25 15:30:41)

Offline

#2 2013-03-25 09:08:00

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: [SOLVED] xinitrc hangs

exec isn't needed there just; xterm &

Offline

#3 2013-03-25 09:33:19

rasoran
Member
Registered: 2013-03-25
Posts: 29

Re: [SOLVED] xinitrc hangs

ok so trying that i get the same weird blank screen and cursor.

BUT.

this time when i navigate (with mouse) to the top left corner and press ctrl+d to exit, I actually went to the xterm!
So what is this mysterious intermediate black screen?

Offline

#4 2013-03-25 09:35:20

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: [SOLVED] xinitrc hangs

Can you post the complete .xinitrc?

Offline

#5 2013-03-25 09:42:19

rasoran
Member
Registered: 2013-03-25
Posts: 29

Re: [SOLVED] xinitrc hangs

cat .xinitrc

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
xterm

Offline

#6 2013-03-25 10:28:43

digirium
Member
Registered: 2012-11-15
Posts: 51

Re: [SOLVED] xinitrc hangs

Try:

twm &
exec xterm

Edit: Your .xinitrc is only missing a window manager (twm is a window manager) smile

Last edited by digirium (2013-03-25 10:30:27)

Offline

#7 2013-03-25 10:50:03

nifty
Member
Registered: 2013-03-25
Posts: 4

Re: [SOLVED] xinitrc hangs

The last entry in ~/.xinitrc should be the window manager. You can run an xterm-only-session by just putting the command xterm into an blank file. If you want to start also an windowmanager, you have to put commands into the background with "&" before running the windowmanager (without "&"!) or they musst terminate immediately, e. g. xsetroot for setting root-window-color.

Sorry for bad english.

Last edited by nifty (2013-03-25 10:53:39)

Offline

#8 2013-03-25 15:30:22

rasoran
Member
Registered: 2013-03-25
Posts: 29

Re: [SOLVED] xinitrc hangs

hm! it seems that it does indeed work. so my actual problem was with xmonad, not with xorg. thanks.

Offline

Board footer

Powered by FluxBB