LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Wireless stops working after resuming from suspend to disk/ram (http://www.linuxquestions.org/questions/slackware-14/wireless-stops-working-after-resuming-from-suspend-to-disk-ram-777932/)

piratesmack 12-24-2009 03:23 PM

Wireless stops working after resuming from suspend to disk/ram
 
I just got a netbook and installed Slackware-current on it.
Everything is mostly working, except my wireless after suspending to disk/ram and I have to run this to get it working again:
Code:

/etc/rd.d/rc.inet1 restart
I've tested my ethernet and it works fine after suspend.

Code:

# lspci | grep Network
03:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g (rev 01)

I'm using the Broadcom STA wl driver.

If you need any more information, let me know.

Thanks in advance

ozanbaba 12-24-2009 03:40 PM

hwo do you connect to wlan? if you use wpa_supplicant, restart it,
if it's hidden wlan, complain to Broadcom, they are aware of the problem.

piratesmack 12-24-2009 03:47 PM

No, I'm using WEP (I have some devices that don't support WPA)

Maybe this information will be useful
Code:

#rc.inet1.conf
# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]="yes"
DHCP_HOSTNAME[1]=""
WLAN_ESSID[1]="stevens router"
WLAN_KEY[1]="c795eb18a27fadac877e9f8d7a"


ozanbaba 12-25-2009 05:05 AM

[QUOTE=piratesmack;3803832]No, I'm using WEP (I have some devices that don't support WPA)

let me word it differently as i screwed up last time.


do you use hidden network? like not broadcasting SSID?

affinity 12-25-2009 06:52 AM

You can create a script to automatically bring the interface back up when resuming from sleep. I think this is a general problem for most Linux distros as I have the same problem on my netbook with all the netbook specific distros I've been playing with.

piratesmack 12-25-2009 01:37 PM

[QUOTE=ozanbaba;3804214]
Quote:

Originally Posted by piratesmack (Post 3803832)
No, I'm using WEP (I have some devices that don't support WPA)

let me word it differently as i screwed up last time.


do you use hidden network? like not broadcasting SSID?

You didn't screw up, I did.

Yes, the network is hidden.
I tried temporarily changing it to broadcast, but still had the same problem.


Quote:

Originally Posted by affinity (Post 3804286)
You can create a script to automatically bring the interface back up when resuming from sleep. I think this is a general problem for most Linux distros as I have the same problem on my netbook with all the netbook specific distros I've been playing with.

Thanks, can you explain how to do that?
I've got the script, I just don't know how to make it run on resume.

I'm using KDE, if that matters.

ozanbaba 12-25-2009 02:14 PM

[QUOTE=piratesmack;3804555]
Quote:

Originally Posted by ozanbaba (Post 3804214)

You didn't screw up, I did.

Yes, the network is hidden.
I tried temporarily changing it to broadcast, but still had the same problem.




Thanks, can you explain how to do that?
I've got the script, I just don't know how to make it run on resume.

I'm using KDE, if that matters.

place it in /etc/pm/sleep.d/ however it must have special format or i won't work

Code:

Creating your own hooks

If you want to do something specific to your setup during suspend / hibernate, then you can easily put your own hook into /etc/pm/hooks. The hooks in this directory will be called in alphabetic order during suspend (that's the reason their names all start with 2 digits, to make the ordering explicit) and in the reverse order during resume.

I'm showing a pretty useless demonstration hook here, that will just put some informative lines into your logfile:

#!/bin/bash
case $1 in
    hibernate)
        echo "Hey guy, we are going to suspend to disk!"
        ;;
    suspend)
        echo "Oh, this time we're doing a suspend to RAM. Cool!"
        ;;
    thaw)
        echo "oh, suspend to disk is over, we are resuming..."
        ;;
    resume)
        echo "hey, the suspend to RAM seems to be over..."
        ;;
    *)  echo "somebody is calling me totally wrong."
        ;;
esac

Put this into /etc/pm/sleep.d/66dummy, do a chmod +x /etc/pm/sleep.d/66dummy and it will spew some useless lines during suspend / resume.

Warning: All the hooks run as user root. This means that you need to be careful when creating temporary files, check that the PATH variable is set correctly etc. to avoid security problems.


piratesmack 12-25-2009 02:32 PM

Thank you very much!

ozanbaba 12-25-2009 02:58 PM

Quote:

Originally Posted by piratesmack (Post 3804586)
Thank you very much!

don't forget to define $PATH, this should be enough; PATH=/sbin:/bin:/usr/bin:/usr/sbin

piratesmack 12-25-2009 10:16 PM

Seems to have worked.
Thanks again.


All times are GMT -5. The time now is 07:47 PM.