No wireless network after resume from suspend

Bug #56960 reported by Tero Karvinen
2
Affects Status Importance Assigned to Milestone
wifi-radar (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: wifi-radar

Wifi-radar fails to restore network when computer resumes from suspend-to-ram (S3). If wifi-radar is configured, user can restore the network with
$ sudo wifi-radar -d
or
$ sudo /etc/init.d/wifi-radar restart
Annoyingly, this requires typing your password again for sudo.

Bypass:
/etc/acpi/resume.d/63-wifi-radar.sh
#!/bin/sh
# Find any WLAN station to connect to. Requires a configured wifi-radar.
# (c) 2006 Tero Karvinen http://www.iki.fi/karvinen GPL
# Restart wifi-radar service if it set to run on this runlevel
# Todo: use actual run level number instead of hardcoded 5
# Todo: notice rcN.d script even if the number after S is different.
if [ -x "/etc/rc5.d/S20wifi-radar" ]; then
        /etc/init.d/wifi-radar restart
        # touch /tmp/wasrun-resume-d-63-wifi-radar-sh
fi

Revision history for this message
Ante Karamatić (ivoks) wrote : Re: [Bug 56960] No wireless network after resume from suspend

On Sun, 20 Aug 2006 06:18:06 -0000
Tero Karvinen <email address hidden> wrote:

> Wifi-radar fails to restore network when computer resumes from

While suspending, Ubuntu removes wifi driver from kernel. That results in
wifi-radar being unusable on wake up. This is handeld
trough /etc/default/acpi-support. There is a line:

STOP_SERVICES="mysql "

replace it with:

STOP_SERVICES="mysql wifi-radar"

Report results. Thanks.

Revision history for this message
Tero Karvinen (karvinen+launchpad) wrote :

It works using STOP_SERVICES="mysql wifi-radar", thanks.

I guess this fix is hard to add to wifi-radar package, as /etc/default/acpi-support is from a different package. Maybe this STOP_SERVICES bugfix could be done on all machines, even those that don't have wifi-radar installed, because adding non-existant services to STOP_SERVICES does not seem to cause any problems.

Revision history for this message
Ante Karamatić (ivoks) wrote :

I'll talk to Matthew about that.

Changed in wifi-radar:
status: Unconfirmed → Rejected
Revision history for this message
Tero Karvinen (karvinen+launchpad) wrote :

Status was changed to rejected, even though change comment is about trying to fix the issue. There is a bug, there is a bypass, there are no unanswered questions. Changing back to unconfirmed.

Changed in wifi-radar:
status: Rejected → Unconfirmed
Ante Karamatić (ivoks)
Changed in wifi-radar:
status: Unconfirmed → Confirmed
Revision history for this message
Ante Karamatić (ivoks) wrote :

Could you test this (sleep doesn't work on my laptop :/)? Save it as /etc/acpi/resume.d/63-wifi-radar.sh and chmod it to be exec. This is based on your script, but with style other scripts are done :):

#!/bin/sh

if [ -x /etc/init.d/wifi-radar ]; then
        /etc/init.d/wifi-radar start
fi

Thank you.

Changed in wifi-radar:
importance: Undecided → Medium
status: Confirmed → In Progress
Ante Karamatić (ivoks)
Changed in wifi-radar:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.