FS#20330 - [netcfg] net-auto-wireless needs to be restarted after hibernate

Attached to Project: Arch Linux
Opened by Andrej Podzimek (andrej) - Saturday, 31 July 2010, 14:52 GMT
Last edited by Rémy Oudompheng (remyoudompheng) - Saturday, 30 July 2011, 19:02 GMT
Task Type Bug Report
Category Arch Projects
Status Closed
Assigned To Tobias Powalowski (tpowa)
Jan de Groot (JGC)
Thomas Bächler (brain0)
Rémy Oudompheng (remyoudompheng)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

When using the standard vanilla kernel suspend-to-disk (hibernation), the net-auto-wireless feature seems to fail or bail out after resume. The wpa_actiond is not running any more and (presumably) the connection is down.

'/etc/rc.d/net-auto-wireless restart' fixes the problem.

This is a Lenovo ThinkPad W510 laptop with an Intel 6300 Ultimate WiFi adapter (the iwlagn driver).

* package version(s)
2.5.4-1

* config and/or log files etc.
CONNECTION='wireless'
DESCRIPTION='Připojení doma'
INTERFACE='wlan0'
IP='dhcp'
DHCP_OPTIONS='-L'
DNS=('2002:5f52:****:1::1')
ESSID='Net2'
AP='**:**:**:**:**:**'
SECURITY='wpa-configsection'
SCAN='YES'
IWCONFIG="rate auto rts auto frag auto essid ${ESSID} key open ap ${AP}"
WPA_COUNTRY='CZ'
WPA_DRIVER='nl80211'
CONFIGSECTION='
ssid="Net2"
scan_ssid=1
proto=RSN
pairwise=CCMP
group=CCMP
key_mgmt=WPA-EAP
eap=TLS
identity="andrej"
ca_cert="/etc/network.d/auth/ca.crt"
client_cert="/etc/network.d/auth/home3.crt"
private_key="/etc/network.d/auth/home3.key"'
This task depends upon

Closed by  Rémy Oudompheng (remyoudompheng)
Saturday, 30 July 2011, 19:02 GMT
Reason for closing:  Fixed
Comment by Ionut Biru (wonder) - Saturday, 12 February 2011, 13:36 GMT Comment by Byron Clark (byronc) - Monday, 18 April 2011, 19:42 GMT
While that commit does fix the issue, it's not available in any archlinux package. It would be nice to have an updated pm-utils package with that sleep hook.
Comment by Byron Clark (byronc) - Monday, 18 April 2011, 19:57 GMT
Correction, that commit probably fixes the issue, but it doesn't work correctly on my system. I get this error in /var/log/pm-suspend.log:

/usr/lib/network//connections//wireless: line 168: wireless_query: command not found
Comment by Rémy Oudompheng (remyoudompheng) - Monday, 06 June 2011, 06:40 GMT
I don't understand how that hook was introduced, it can't possibly be correct.
Comment by Rémy Oudompheng (remyoudompheng) - Sunday, 19 June 2011, 17:50 GMT
Please check latest netcfg-git code to see if your problem is resolved.
Comment by Byron Clark (byronc) - Wednesday, 22 June 2011, 03:45 GMT
In current netcfg-git:
- 11netcfg doesn't work at all (it tries to use an rc.d script called net-auto).
- pm-utils.handler results in neither net-auto-wired or net-auto-wireless running after a suspend on my machine.

The attached patch (0001-Use-correct-rc.d-scripts.patch) makes 11netcfg work correctly. It does require the following contents in /etc/pm/config.d/netcfg on my machine:
NETCFG_SUSPEND=daemons
Comment by Rémy Oudompheng (remyoudompheng) - Saturday, 30 July 2011, 14:26 GMT
Committed to git.

Loading...