You are not logged in.

#1 2012-04-19 19:16:17

mhfj
Member
From: Wiesbaden
Registered: 2012-04-19
Posts: 8

Openbox can't create new windows few seconds after startup [solved]

Hello everybody,

I am encountering the following problem:

I use openbox as my display manager. After startup i can open new windows just usual. About 5 seconds after openbox has started, I can't open new windows anymore. When I switch to tty1 I see the following message: INVALID MIT-MAGIC-COOKIE: can't open display.

my .xinitrc contains nothing but exec openbox-sessions

the openbox autostart file looks like this:

tint2 &
conky &
fbsetbg -c images/arch_linux_1440x900.png &

I tried to use other Window Managers like fluxbox and Gnome3, no problems there.

thanks for your help!

Last edited by mhfj (2012-04-22 11:31:19)

Offline

#2 2012-04-20 04:14:21

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

Re: Openbox can't create new windows few seconds after startup [solved]

What login manager do you use? Do you have dbus and consolekit running for the session? For example, latest slim 1.3.3 takes care of consolekit and dbus for your session, older does not. You can try ; exec dbus-launch ck-launch-session openbox-session in your .xinitrc.

Offline

#3 2012-04-20 04:29:02

mhfj
Member
From: Wiesbaden
Registered: 2012-04-19
Posts: 8

Re: Openbox can't create new windows few seconds after startup [solved]

i don't use a login manager, only startx.

i used to have my .xinitrc look like you described, but to find out, what the problem is, so i took them out ouf th .xinitrc.

Offline

#4 2012-04-20 05:10:58

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: Openbox can't create new windows few seconds after startup [solved]

And you get this issue when just logging in locally as a normal user (not using ssh X11 forwarding, logging in as root or whatever)?

What does your Xorg.log say?


Burninate!

Offline

#5 2012-04-20 15:58:15

mhfj
Member
From: Wiesbaden
Registered: 2012-04-19
Posts: 8

Re: Openbox can't create new windows few seconds after startup [solved]

yes, i log in as a normal user on a local machine.

I found out, this might be network-manager related. Right when network-manager connects to my wireless network at home I can't open new windows from inside openbox. Killing X and doing a fresh startx "solves" this problem.

My Xorg.log: http://pastebin.com/g4y01ZaC

I am not shure how a connection to a wlan could disconnect openbox from X.

Last edited by mhfj (2012-04-20 16:07:03)

Offline

#6 2012-04-20 16:17:25

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: Openbox can't create new windows few seconds after startup [solved]

Now that's an interesting turn of events indeed. Would you mind posting the content of the config files located in /etc/NetworkManager?

Last edited by Gcool (2012-04-20 16:24:10)


Burninate!

Offline

#7 2012-04-20 16:57:32

mhfj
Member
From: Wiesbaden
Registered: 2012-04-19
Posts: 8

Re: Openbox can't create new windows few seconds after startup [solved]

this is the configuration file for the network i connect to. I didn't create them by hand, nm-applet did his for me.

[connection]
id=****
uuid=****
type=802-11-wireless

[802-11-wireless]
ssid=****
mode=infrastructure
mac-address=***
security=802-11-wireless-security

[802-11-wireless-security]
key-mgmt=wpa-psk
psk=******

[ipv4]
method=auto

[ipv6]
method=auto

the NetworkManager.conf:

[main]
plugins=keyfile

so... nothing strange here, i think.

I found out this only happens wehn i connect to a wireless network.

Offline

#8 2012-04-20 17:58:24

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: Openbox can't create new windows few seconds after startup [solved]

This is a bit of a hunch/guess; but could you check if your /etc/hosts file differs in any way prior to and after networkmanager connects?

If you see any changes in your localhost entry, try removing the "host_name" entry from the "A list of options to request from the DHCP server" in /etc/dhcpd.conf and see if that makes any difference.

Last edited by Gcool (2012-04-20 18:02:53)


Burninate!

Offline

#9 2012-04-20 22:13:21

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: Openbox can't create new windows few seconds after startup [solved]

Yes, possibly nm changes the hostname after connecting, and then the .Xsession auth cookie (which has the hostname in it) doesn't work any more, since the name doesn't match.

Offline

#10 2012-04-22 11:30:42

mhfj
Member
From: Wiesbaden
Registered: 2012-04-19
Posts: 8

Re: Openbox can't create new windows few seconds after startup [solved]

Yes, you were right, that did it. Thanks a lot for the help everybody!

Offline

Board footer

Powered by FluxBB