Howto disable/enable my ipw3945

Questions about WIFI networks and devices
Forum rules
Before you post please read this

Howto disable/enable my ipw3945

Postby Wh1sper on Sat May 26, 2007 11:47 am

I'm in the quest to configure the suspend to disk.
After wakeup all but the wireless driver is working.
if I go manually disable the Netzwerk-Manager-Applet 0.6.4
(unchecking the mark in rightclicking at the applet)
and then reenable the Netzwerk-Manager-Applet (checking the mark in rigthclicking at the applet
the connection works.
So my idea is this to put in the post-suspend process this per commandline.
Is this possible?
Mein Blog fuer Nerten und Linux Strategen http://zockertown.de/s9y/
Wh1sper
Level 2
Level 2
 
Posts: 70
Joined: Sun May 20, 2007 7:38 am
Location: Germany

Linux Mint is funded by ads and donations.
 

Postby scorp123 on Sat May 26, 2007 5:53 pm

I have a similar problem on my OpenSUSE 10.2 laptop (sorry, no Mint there) and I solved it with this script (needs to be executed as root):

Code: Select all
#! /bin/bash
killall wpa_supplicant

/sbin/rmmod ipw3945
/sbin/ipw3945d --kill
/usr/bin/killall ipw3945d
/sbin/rmmod ipw3945
sleep 1

/sbin/modprobe ieee80211
/sbin/modprobe ieee80211_crypt
/sbin/modprobe ieee80211_crypt_tkip
/sbin/modprobe firmware_class
/sbin/modprobe ipw3945
sleep 1
I call this script "wifi_reset.sh" and I'd save it to /usr/bin so it's easy to find. You could create a launch button or icon on your desktop that would execute this script via "sudo" so it is executed as root? e.g. as command for your icon you could use:

for KDE:
kdesu /usr/bin/wifi_reset.sh

For GNOME:
gksu /usr/bin/wifi_reset.sh

or:
sudo /usr/bin/wifi_reset.sh

As I said ... I wrote this script for my OpenSUSE 10.2 .... so I hope it will work for your Mint too ....
User avatar
scorp123
Level 8
Level 8
 
Posts: 2288
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Postby Wh1sper on Sun May 27, 2007 8:27 am

I think, this would work, but the driveres ARE already functionally here, so this would be a little oversized :)
I can live with me solution, which is only a 2 times click. I just finished my little German blogentry about this: https://zockertown.de/s9y/archives/840- ... xMint.html
Mein Blog fuer Nerten und Linux Strategen http://zockertown.de/s9y/
Wh1sper
Level 2
Level 2
 
Posts: 70
Joined: Sun May 20, 2007 7:38 am
Location: Germany

Postby scorp123 on Sun May 27, 2007 9:59 am

Wh1sper wrote:I think, this would work, but the driveres ARE already functionally here, so this would be a little oversized :)
Nope. After suspend/resume the hardware gets stuck. That's why I have to kill the background daemons, the driver modules, and then reload the entire truckload again. It took me a while to figure this out. Now when the WiFi gets stuck all I have to do is to click on my "WiFi Reset" Icon and voila, everything works again. One click .... not two :wink:
User avatar
scorp123
Level 8
Level 8
 
Posts: 2288
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Postby Wh1sper on Sun May 27, 2007 2:26 pm

But My key is tored in a wallet, so I've to enter a password, ...8 keys :)
But I wonder why, this time it works without reconnect.. :roll:
Mein Blog fuer Nerten und Linux Strategen http://zockertown.de/s9y/
Wh1sper
Level 2
Level 2
 
Posts: 70
Joined: Sun May 20, 2007 7:38 am
Location: Germany


Return to Wireless

Who is online

Users browsing this forum: No registered users and 5 guests