You are not logged in.

#1 2012-08-04 16:44:46

nemp
Member
Registered: 2009-01-30
Posts: 17

openbox hangs with networkmanager daemon running

With networkmanager in my deamons list in rc.conf, after I login and type in startx, openbox starts but hangs and doesn't execute autostart script.
But when I remove networkmanager from daemons list (or stop it before startx) then openbox starts normally. After it's up, I can start networkmanager and nm-applet with no problems.
I have my user in network, networkmanager, wheel and dbus groups.
I did a clean a install few days ago.

This is my ~/.xinitrc:

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

numlockx &
exec ck-launch-session dbus-launch openbox-session

My autostart script:

[taoroute@taoroute ~]$ cat .config/openbox/autostart 
(sleep 1 && xcompmgr) &
nitrogen --restore &
conky -c /home/taoroute/.conky/conkyrc1 &
(sleep 1 && conky -c /home/taoroute/.conky/conkyrc2) &
setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,rs,ba
echo 4 | sudo tee /sys/class/backlight/acpi_video0/brightness
tint2 &
clipit &
volti &

Offline

#2 2012-08-05 13:12:24

nemp
Member
Registered: 2009-01-30
Posts: 17

Re: openbox hangs with networkmanager daemon running

Anyone? hmm
I don't see any connection between networkmanager running and openbox autostart script... This really bugs me, I don't won't to reinstall configured system...

Offline

#3 2012-08-05 14:03:07

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: openbox hangs with networkmanager daemon running

Two things to try:

1. Openbox with an alternative network connection program (wicd or netcfg for example)
2. Some other WM with network manager

Also you do have dbus before networkmanager in your daemons list, right?

Offline

#4 2012-08-05 14:20:56

nemp
Member
Registered: 2009-01-30
Posts: 17

Re: openbox hangs with networkmanager daemon running

anonymous_user wrote:

Also you do have dbus before networkmanager in your daemons list, right?

Yes, sorry I forgot to mention that.

DAEMONS=(syslog-ng dbus networkmanager @crond @acpid @laptop-mode @alsa)

I don't really like wicd and openbox suits me well, so that kind of change is not comfortable for me at this moment. Also it would be running away from the problem...
I have a feeling this is policykit/polkit permission problem...

Offline

#5 2012-08-05 14:27:40

altbdoor
Member
From: KL, Malaysia
Registered: 2012-04-25
Posts: 128

Re: openbox hangs with networkmanager daemon running

nemp wrote:

But when I remove networkmanager from daemons list (or stop it before startx) then openbox starts normally. After it's up, I can start networkmanager and nm-applet with no problems.

What I'm suggesting will be a work around, rather than a proper fix.

How about starting networkmanager service from the openbox autostart instead?
Then move on to load nm-applet and such.

Offline

#6 2012-08-05 15:18:24

nemp
Member
Registered: 2009-01-30
Posts: 17

Re: openbox hangs with networkmanager daemon running

altbdoor wrote:
nemp wrote:

But when I remove networkmanager from daemons list (or stop it before startx) then openbox starts normally. After it's up, I can start networkmanager and nm-applet with no problems.

What I'm suggesting will be a work around, rather than a proper fix.

How about starting networkmanager service from the openbox autostart instead?
Then move on to load nm-applet and such.

I just tried what you said:

/etc/sudoers

%wheel ALL=(ALL) ALL, NOPASSWD: /etc/rc.d/networkmanager

~/.config/openbox/autostart

...
sudo /etc/rc.d/networkmanager start &
(sleep 3 && nm-applet --sm-disable) &
...

The results are the same. hmm
I also tried without nm-applet and it actually did get started, once. But no more than once...

Last edited by nemp (2012-08-05 15:22:57)

Offline

#7 2012-08-05 15:20:27

nemp
Member
Registered: 2009-01-30
Posts: 17

Re: openbox hangs with networkmanager daemon running

I can see there is a new install image available. Were there any bugs in the previous one? I did a clean install using first release with install scripts.

Last edited by nemp (2012-08-05 15:21:46)

Offline

Board footer

Powered by FluxBB