You are not logged in.
Hi there ![]()
I successfully converted from Vista to Archlinux! Everything's working fine (yep, I'm a bit proud as this my second try at linux
) except that after I suspend with powersave my wlan is not working anymore. I've also tried to unload the ath_pci module and restart the network in /etc/powersave/sleep but that doesn't seem to work.
I guess it has something to do with the network deamon because when I try to restart my network manually it says that dhcpcd is already running for ath0... Oh, and also the iwconfig for ath0 seems to be perfectly correct after suspend...
Here's the network part of my rc.conf:
lo="lo 127.0.0.1"
eth0="dhcp"
ath0="dhcp"
wlan_ath0="ath0 essid FeelGood key s:******"
WLAN_INTERFACES=(ath0)
INTERFACES=(lo !eth0 ath0)Any ideas? Help would be appreciated ![]()
Offline
The dhcp error is just because the file in var/lock does get cleaned up.
Actually, that's not the problem. As usual, if you don't receive any network address, there's most likely the setting of the key wrong.
What's needed to be known first: Which kind of encryption do you use? Which key index are you using? Unless you use a WEP key, you need another setup for wireless networking.
Kind regards,
STi
Ability is nothing without opportunity.
Offline
I'm using WEP and wireless is perfectly working until I suspend2ram...
also tried "ifconfig ath0 down" before suspending and restarting it afterwards but still no luck.
Not that I am really in need of Suspend2Ram (as Arch boots really fast) but it's the only thing that's working 100% and I'm a perfectionist ![]()
Offline
Unload the wireless network modules before suspending, and reload them after resuming.
Btw: if you don't need suspend2, why the overhead of a heavier kernel & the extra package?
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
Well, maybe you already know this, but: ath_pci (the madwifi driver) is among blacklisted modules (/etc/hibernate/blacklisted-modules), so it gets unloaded during the suspend process. That screws up whatever wireless connection you might have had before suspending. Now if you have the option LoadModules auto in /etc/hibernate/common.conf, it should get loaded after resuming - but that of course doesn't renew the connection. So that I do is I have a short script that calls /etc/rc.d/network restart, and I run it manually after suspending to renew the connections.
BTW, I have this in /etc/hibernate/common.conf:
UnloadBlacklistedModules yes
LoadModules autoEDIT: Eh, B managed to post before I finished writing this :)
Last edited by bender02 (2007-05-05 14:32:11)
Offline
Oh, I'm sorry...
Think I got confused with the two ways of suspending.
Correct me if I'm wrong, but there are generally two ways of suspending: One method with the different kernel and another one with the powersave deamon, right?
I am using the powersave deamon and thus I don't have /etc/hibernate/ ...
Powersave has a file in /etc/powersave/ called sleep where I can unload modules and services. Already configured it that way, that ath_pci is unloaded and network is restarted.
The funny thing is, iwconfig still shows ath0 and a correct SSID after suspending, however it is deactivated (Bit rate: 0Mb/s). After a "ifconfig ath0 up" the whole iwconfig of ath0 looks just like before suspending, but I still have no access to the internet nor my router.
Again sorry for the confusion with Suspend2 and powersave...
Offline
It's working now... ![]()
Seems it was related to a bug when restarting network! See this topic: http://bbs.archlinux.org/viewtopic.php?id=32094
Offline