You are not logged in.
Hello,
I have a issue with my wireless AR9285 adapter on the new kernel. (Linux K52Jc 2.6.39-ARCH #1 SMP PREEMPT Sat Jul 9 14:57:41 CEST 2011 x86_64 Intel(R) Core(TM) i3 CPU M 350 @ 2.27GHz GenuineIntel GNU/Linux
Everything works fine, until the laptop suspends. After resume, the wireless driver is not active anymore.
To get it working again I need to do the following:
modprobe -r ath9k
modprobe ath9k
I have already compile and installed the latest compat-linux drivers.
Also tried the AUR package.
I'm now trying to insert it onto the sleep scripts, but this doesnt work, still need to manual run the commands above to get it working again.
/etc/pm/sleep.d/57ath9k
#!/bin/sh
case "$1" in
hibernate|suspend)
rmmod ath9k
;;
thaw|resume)
modprobe ath9k
;;
*) exit $NA
;;
esac
ASUS K52Jc
Arch Linux x64
Gnome 3
Could someone please help me? I realy need it!
Thanks!
Last edited by beta990 (2012-08-25 13:40:37)
Offline
Perhaps rc.conf pacnew has some new requirement?
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
Hi lilsirecho,
What do you mean? Do I something wrong?
Thanks.
Offline
Perhaps you could read the examples given in /etc/rc.conf.pacnew which define how to setup networking in the various modes available. This is a change in archlinux network setups.
If you haven't entered /etc/rc.conf.pacnew, you probably should do so.
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
No, rc.conf is not relevant here.
beta990, what application manages your network connection - netcfg, networkmanager, etc?
Offline
@Forum Fellow: networkmanager, this also the one I configured in rc.conf to startup.
I have read something about netcfg, but this is more for static wireless networks. (?)
I just always want to connect to other wireless networks, like my around my work area.
@lilsirecho: /etc/rc.conf.pacnew: No such file or directory
Could it be a kernel issue?
On the 2.6.38 kernel I sometime had this problem, not always.
Last edited by beta990 (2011-07-10 17:29:38)
Offline
Solved by creating a custom script inside /etc/pm/sleep.d with the name ath.sh.
chmod +x
#!/bin/bash
resume_wifi()
{
rc.d stop networkmanager
rc.d stop network
modprobe -r -f ath9k
modprobe ath9k
rc.d start network
rc.d start networkmanager
}
case $1 in
resume|thaw)
resume_wifi
;;
*) exit $NA
;;
esac
Still hope that it can solve without hacking.
Is this code legal? (can it run without any problems? Maybe faster?)
Thanks!
Last edited by beta990 (2011-07-10 20:41:49)
Offline
This is the version I use now, other is buggy, hope this helps everyone with an ASUS laptop and use suspend:
#!/bin/sh
case "$1" in
hibernate|suspend)
nmcli nm sleep true
rmmod ath9k
;;
thaw|resume)
modprobe ath9k
nmcli nm sleep false
;;
*) exit $NA
;;
esac
Last edited by beta990 (2011-07-13 20:59:31)
Offline
@beta990 Thanks I'm using you script as well.
I have identical problems to beta990 on a Asus K52J Laptop with Gnome 3.
Offline
I've got this exact problem too. Just put the script in, hoping it works. Thanks.
Offline
Hey, I had the same issue, fixed it thanks to your script.
However, strange is that if you suspend the computer by issuing the pm-suspend command (without the script) instead of using the gnome-power-manager, there is no problem whatsoever.
Offline