Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wicd loses its mind after suspend to RAM [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
daddio
Tux's lil' helper
Tux's lil' helper


Joined: 11 Oct 2003
Posts: 145
Location: Richland WA

PostPosted: Thu Jan 28, 2010 2:36 am    Post subject: wicd loses its mind after suspend to RAM [SOLVED] Reply with quote

I was recently surprised to find that my laptop magically suspends to RAM now.
It happened with the mandatory upgrade to KDE4, which seems very nice( other than dolphin which crashes frequently)

Wonderful.

But I have discovered one fly in the ointment. When it comes back up, the wifi can't reconnect, and wicd can't even see that there are any wireless networks.

My suspicion is that its b43's fault (Its always been temperamental), but Its hard to know.

My first thought is maybe I should stop wicd, and unload the b43 module prior to suspend, and then bring them both back up after resume.

I suspect there is a script for this, but I don't know where to look for it.


Can anyone tell me where the shutdown scripts would be, or if there is a better option?


Last edited by daddio on Fri Feb 12, 2010 5:44 am; edited 1 time in total
Back to top
View user's profile Send private message
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Sat Jan 30, 2010 3:38 pm    Post subject: Reply with quote

This problem seems to come up with laptops and wicd: after some happening - disconnect or suspend - wicd fails to reconnect, only after reloading the wifi module. At least this was my case.
To do this, put an unload script into /etc/wicd/scripts/preconnect/ and perhaps into postdisconnect/
say:
Code:
#!/bin/sh
modprobe <module> -r
modprobe <module>


This will reset the wifi card and shuts it down on disconnect - some powersaving i hope, when interface is down thought module is loaded.
_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
daddio
Tux's lil' helper
Tux's lil' helper


Joined: 11 Oct 2003
Posts: 145
Location: Richland WA

PostPosted: Fri Feb 12, 2010 5:48 am    Post subject: Reply with quote

That did it!
Thanks.
I just added those lines to the pre- script directory, and my laptop connects automatically.

Emboldened by that little success, I'm on to bigger an d better things,
like automating the click-browse stupidity of the free wifi I use on the train every morning.
wireshark, netcat, and wicd postconnect. yay.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum