ACPI resume network doesn't look at /etc/network/interfaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pm-utils (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: acpi-support
After a resume the scripts from /etc/acpi/resume.d are run. In my case however my wireless network is not restarted. I have noticed that it doesn't ifup my interface and it doesn't start wpa_supplicant.
How to reproduce:
1. Suspend system
2. Resume system
Symptoms:
ifconfig wlan0 shows that the interface is down.
ps -ef | grep wpa shows no wpa_supplicant processes running.
How to fix manually:
Restart wpa_supplicant as per the /etc/network/
wpa_supplicant -i wlan0 -Dwext -c/etc/
Implemented workaround:
I have edited /etc/acpi/
#!/bin/sh
# Find the currently running network interfaces...
INTERFACES=
# Bring up the interfaces (this should probably be left up to some policy
# manager, but at the moment we just bring back whatever we ifdowned)
for x in $INTERFACES; do
ifup $x &
ifup wlan0
wpa_supplicant -i wlan0 -Dwext -c/etc/
done
This has fixed the problem for me, but obviously this only works for me.
Hardware and software setup:
HP nc6000 laptop with Broadcom 121g USB WIFI device running Edgy.
vendor: 'SpeedTouch 121g Wireless USB Adapter'
ethernet device <MAC> using NDIS driver bt4501g, 06B9:0121.F.conf
encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK; AES/CCMP with WPA, WPA2, WPA2PSK
I use ndiswrapper with the Windows drivers and the wpa_supplicant to connect to a WPA AP.
cat /etc/network/
auto wlan0
iface wlan0 inet dhcp
wpa-driver wext
wpa-conf /etc/wpa_
pre-up wpa_supplicant -i wlan0 -Dwext -c/etc/
post-down killall -q wpa_supplicant
Suggested fix:
The acpi scripts for activating the network should look at the /etc/network/
Are you using network manager ? Because if yes, your bug may be a duplicate of the bug #40125.