You are not logged in.

#1 2012-03-27 11:01:56

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

"Forced network disconnect" - how to steal ideas from Gentoo?

Hello Archers,

About half-hourly, I get disconnected from the house wifi. The wifi is WEP and I connect with wicd. Before you try telling me not to use WEP, that's just preaching to the choir - I've already given the lecture.

To try and fix my disconnection issues, I put wicd into debug mode. When it disconnected again, I ran:

sudo grep -v "i[fw]config eth0\|i[fw]config wlan0" /var/log/wicd/wicd.log

and grepped the time when it happened (21:11); this gave:

2012/03/27 21:11:20 :: Forced disconnect on
2012/03/27 21:11:20 :: /usr/sbin/dhcpcd -k wlan0
2012/03/27 21:11:20 :: /usr/sbin/ip route flush dev wlan0
2012/03/27 21:11:20 :: wpa_cli -i wlan0 terminate
2012/03/27 21:11:20 :: /usr/sbin/dhcpcd -k eth0
2012/03/27 21:11:20 :: /usr/sbin/ip route flush dev eth0
2012/03/27 21:11:21 :: wpa_cli -i eth0 terminate

I googled this "forced disconnect" problem and found this recent Gentoo thread. They claim it's a problem with wicd, the bug has been submitted, and in the meantime, there's a work-around involving "/etc/rc.conf".

The catch here is, they mean a Gentoo /etc/rc.conf, which seems rather different to ours. I tried Googling whether it's possible to directly convert them, but all I came up with seems to say:

  1. You need to know what you're doing, and

  2. It's not obvious.


TL;DR? Okay: how can I get started determining the Archlinux equivalent to putting this in a Gentoo /etc/rc.conf:

rc_dhcpcd_provide="!net"

(Possibly an X-Y problem, sure, I'd be interested to hear any other ideas people have.)

Offline

#2 2012-03-27 11:23:26

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

Re: "Forced network disconnect" - how to steal ideas from Gentoo?

I had a quick read of that thread and the related bug report.

I'm guessing the non-gentoo/Arch equivalent would be adding the same line in /etc/rc.d/wicd.


Burninate!

Offline

#3 2012-03-27 11:28:56

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,501
Website

Re: "Forced network disconnect" - how to steal ideas from Gentoo?

Do you have !network in your daemons array?

It's a bit of a guess, but that is needed for wicd to work properly.  It does make sense as the network daemon does run dhcpcd (or something similar) and does interfere with wicd.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2012-03-27 14:48:49

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: "Forced network disconnect" - how to steal ideas from Gentoo?

Or you could simply use another network manager for the time being. Mind, playing around is much more fun smile


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#5 2012-03-27 18:12:19

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: "Forced network disconnect" - how to steal ideas from Gentoo?

/dev/zero wrote:

Hello Archers,

About half-hourly, I get disconnected from the house wifi. The wifi is WEP and I connect with wicd. Before you try telling me not to use WEP, that's just preaching to the choir - I've already given the lecture.

To try and fix my disconnection issues, I put wicd into debug mode. When it disconnected again, I ran:

sudo grep -v "i[fw]config eth0\|i[fw]config wlan0" /var/log/wicd/wicd.log

and grepped the time when it happened (21:11); this gave:

2012/03/27 21:11:20 :: Forced disconnect on
2012/03/27 21:11:20 :: /usr/sbin/dhcpcd -k wlan0
2012/03/27 21:11:20 :: /usr/sbin/ip route flush dev wlan0
2012/03/27 21:11:20 :: wpa_cli -i wlan0 terminate
2012/03/27 21:11:20 :: /usr/sbin/dhcpcd -k eth0
2012/03/27 21:11:20 :: /usr/sbin/ip route flush dev eth0
2012/03/27 21:11:21 :: wpa_cli -i eth0 terminate

I googled this "forced disconnect" problem and found this recent Gentoo thread. They claim it's a problem with wicd, the bug has been submitted, and in the meantime, there's a work-around involving "/etc/rc.conf".

The catch here is, they mean a Gentoo /etc/rc.conf, which seems rather different to ours. I tried Googling whether it's possible to directly convert them, but all I came up with seems to say:

  1. You need to know what you're doing, and

  2. It's not obvious.


TL;DR? Okay: how can I get started determining the Archlinux equivalent to putting this in a Gentoo /etc/rc.conf:

rc_dhcpcd_provide="!net"

(Possibly an X-Y problem, sure, I'd be interested to hear any other ideas people have.)

Are you sure you got their point? Your wicd starts OK and works fine, while their does not start at all... Besides, if you have a stable connection for a half hour, why do you need fixing dhcpcd?

Having said that, I had similar issues with wicd on a wpa2 enterprise network (after ~15 min -- no internet connection). I suspect this was related to ipv6, but by the moment I realized that, I got already fed up with wicd...

SInce Arch has ipv6 built in now, try completely disabling it via ipv6.disable=1 boot option and see if your problem persists. The suggested ipv6.disable_ipv6=1 apparently makes dhcpcd quite confused.


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#6 2012-03-27 18:47:53

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: "Forced network disconnect" - how to steal ideas from Gentoo?

Trilby wrote:

Do you have !network in your daemons array?

It's a bit of a guess, but that is needed for wicd to work properly.  It does make sense as the network daemon does run dhcpcd (or something similar) and does interfere with wicd.

Well, wouldn't you just know it, but I do have the network daemon included - and I see now it says in the wiki to not run it concurrently with wicd. I should pay more attention to the wiki!

Okay, I will try disabling the network daemon and if my problems evaporate, I will sheepishly mark the problem solved smile.

Thanks for your time and consideration to everyone who has responded so far.

Offline

#7 2012-03-27 18:50:34

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,501
Website

Re: "Forced network disconnect" - how to steal ideas from Gentoo?

/dev/zero wrote:

but I do have the network daemon included ... I should pay more attention to the wiki!

We all have our moments - thats why I always start troubleshooting at the simplest possible mistake.  Just be glad I didn't ask if your computer was plugged in and if your neighborhood had power!


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB