LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-24-2009, 03:23 PM   #1
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

Rep: Reputation: 142Reputation: 142
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

Last edited by piratesmack; 12-24-2009 at 03:28 PM.
 
Old 12-24-2009, 03:40 PM   #2
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
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.

Last edited by ozanbaba; 12-24-2009 at 03:41 PM. Reason: fix the typo
 
Old 12-24-2009, 03:47 PM   #3
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

Original Poster
Rep: Reputation: 142Reputation: 142
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"
 
Old 12-25-2009, 05:05 AM   #4
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
[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?
 
Old 12-25-2009, 06:52 AM   #5
affinity
Member
 
Registered: Nov 2009
Distribution: Slackware64
Posts: 132

Rep: Reputation: 20
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.
 
1 members found this post helpful.
Old 12-25-2009, 01:37 PM   #6
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

Original Poster
Rep: Reputation: 142Reputation: 142
[QUOTE=ozanbaba;3804214]
Quote:
Originally Posted by piratesmack View Post
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 View Post
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.

Last edited by piratesmack; 12-25-2009 at 01:56 PM.
 
Old 12-25-2009, 02:14 PM   #7
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
[QUOTE=piratesmack;3804555]
Quote:
Originally Posted by ozanbaba View Post

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.
 
1 members found this post helpful.
Old 12-25-2009, 02:32 PM   #8
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

Original Poster
Rep: Reputation: 142Reputation: 142
Thank you very much!
 
Old 12-25-2009, 02:58 PM   #9
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by piratesmack View Post
Thank you very much!
don't forget to define $PATH, this should be enough; PATH=/sbin:/bin:/usr/bin:/usr/sbin
 
1 members found this post helpful.
Old 12-25-2009, 10:16 PM   #10
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

Original Poster
Rep: Reputation: 142Reputation: 142
Seems to have worked.
Thanks again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems after resuming from suspend to ram chessonly Linux - General 1 08-10-2012 07:55 AM
udev/hal issue upon resuming from suspend to ram radu.pop Linux - Software 1 11-14-2009 09:21 PM
[SOLVED] suspend to ram resuming ok with vbe post - what does it mean? kushalkoolwal Linux - Software 2 07-30-2009 11:48 AM
Keyboard Doesn't Work After Resuming from Suspend to Ram beartooth91 Slackware 11 03-05-2009 01:18 PM
how to execute a command automatically after resuming from suspend to RAM? bjharker Linux - General 5 11-24-2008 08:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration