You are not logged in.

#1 2011-09-29 21:18:47

Bhran
Member
From: Santiago, Chile
Registered: 2011-09-29
Posts: 52
Website

No Wireless after suspend with ath5k

I have a Toshiba A215 running Arch, I use Gnome 3.0 and Network Manager for my setup, my wireless card is an AR5007EG and I'm running the Ath5k driver, Kernel 3. I'm having a weird issue with wireless after I suspend my laptop. When it wakes up, TTY1 prints "ath5k phy0: gain calibration timeout", thirdteen times, with every wireless frequency and I can't get back online. I searched Google and the wiki but no solution is good enough : (
To restore the connection I have to make a cold boot (taking out AC and the battery, wait for a while and then start the system back again). If a moderator thinks this should be in Networking, please move the topic. I need your help sad

Last edited by Bhran (2011-11-14 16:14:26)

Offline

#2 2011-09-29 21:51:09

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: No Wireless after suspend with ath5k

I use this in /etc/pm/config.d/modules

SUSPEND_MODULES="ath5k"

Offline

#3 2011-09-29 22:53:22

Bhran
Member
From: Santiago, Chile
Registered: 2011-09-29
Posts: 52
Website

Re: No Wireless after suspend with ath5k

Gusar wrote:

I use this in /etc/pm/config.d/modules

SUSPEND_MODULES="ath5k"

It's working so far! thanks! Although I had to restart for the configuration to work, is that normal?

Offline

#4 2011-09-30 05:00:55

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: No Wireless after suspend with ath5k

I don't think it is unusual.  I have the exact same laptop that had the exact same problem.  The fix you implemented is the right one.  You shouldn't have anymore problems.  Go ahead and mark this thread solved if it works for you.


I laugh, yet the joke is on me

Offline

#5 2011-11-14 16:10:54

Bhran
Member
From: Santiago, Chile
Registered: 2011-09-29
Posts: 52
Website

Re: No Wireless after suspend with ath5k

the sad clown wrote:

I don't think it is unusual.  I have the exact same laptop that had the exact same problem.  The fix you implemented is the right one.  You shouldn't have anymore problems.  Go ahead and mark this thread solved if it works for you.

I don't think it was solved... It worked but from sometime ago, the second time I wake up it shows the same problem, is there a way to know if pm-suspend is getting the configuration? is there any other steps to take? Another solution? Should I reinstall pm-utils?

Last edited by Bhran (2011-11-14 16:14:00)

Offline

#6 2011-11-19 16:35:42

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,429

Re: No Wireless after suspend with ath5k

Check if you have upower installed. You should have in a normal gnome installation.
You can check whats happening during suspend/resume also in var/log/pm-suspend.log

Offline

#7 2011-11-21 01:50:48

Bhran
Member
From: Santiago, Chile
Registered: 2011-09-29
Posts: 52
Website

Re: No Wireless after suspend with ath5k

Strike0 wrote:

Check if you have upower installed. You should have in a normal gnome installation.
You can check whats happening during suspend/resume also in var/log/pm-suspend.log

pm-suspend.log doesn't say anything out of the ordinary, but pm-powersave.log prints

Running hook /usr/lib/pm-utils/power.d/wireless false:
Turning powersave for wlan0 off...Error for wireless request "Set Power Management" (8B2C) :
    SET failed on device wlan0 ; Operation not supported.
Failed.

Is this normal?

Offline

#8 2011-11-21 20:26:38

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,429

Re: No Wireless after suspend with ath5k

Yes, that means the driver does not support power saving yet (http://wireless.kernel.org/en/users/Dri … s_on_ath5k). But that should not be related to your suspend issue, I would say.

One suggestion:

check again with lspci which network, if you have any other drivers loaded for wireless (attention to these in particular: https://wiki.archlinux.org/index.php/Wi … tup#ath5k)

One question:
Please recheck the suspend logfiles. If you write there is nothing special in there .. it means your suspend and resume lines show "success"? 
Please also grep the pm-suspend logfiles for the ath5k driver and post results of that.

Last edited by Strike0 (2011-11-21 20:28:29)

Offline

#9 2011-11-25 01:24:23

Bhran
Member
From: Santiago, Chile
Registered: 2011-09-29
Posts: 52
Website

Re: No Wireless after suspend with ath5k

Strike0 wrote:

check again with lspci which network, if you have any other drivers loaded for wireless

lspci says:

14:00.0 Ethernet controller: Atheros Communications Inc. AR242x / AR542x Wireless Network Adapter (PCI-Express) (rev 01)

and lsmod | grep ath

[oni@jarvis ~]$ lsmod | grep ath
ath5k                 138900  0 
ath                    14770  1 ath5k
mac80211              221931  1 ath5k
cfg80211              165636  3 ath5k,ath,mac80211
[oni@jarvis ~]$ lsmod | grep wlan
Strike0 wrote:

One question:
Please recheck the suspend logfiles. If you write there is nothing special in there .. it means your suspend and resume lines show "success"? 
Please also grep the pm-suspend logfiles for the ath5k driver and post results of that.

Here it is:

ath5k                 138900  0 
ath                    14770  1 ath5k
mac80211              221931  1 ath5k
cfg80211              165636  3 ath5k,ath,mac80211
Unloading kernel module ath5k...Done.

Many times... no errors : (

Any clues?

Offline

#10 2011-11-25 20:24:20

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,429

Re: No Wireless after suspend with ath5k

Thank you for the posts, but I don't get clues from them really.
Next I would put the ath as well into the suspend_modules

Then try suspend / resume, if that changes anything. If not, you can also try stopping networkmanager manually before the suspend as next step.

Offline

#11 2011-11-26 22:26:40

Bhran
Member
From: Santiago, Chile
Registered: 2011-09-29
Posts: 52
Website

Re: No Wireless after suspend with ath5k

Strike0 wrote:

Thank you for the posts, but I don't get clues from them really.
Next I would put the ath as well into the suspend_modules

Then try suspend / resume, if that changes anything. If not, you can also try stopping networkmanager manually before the suspend as next step.

Thanks for all your help, Strike0. I bring updates on the case. I added ath in the suspend list, but it didn't help. However, I stopped networkmanager before suspending and started it after I resumed, then Network prompt me for the admin password, I checked if dmesg was saying something about ath5k and there was no messages, so I typed the password, then it prompt me the wlan password, which is was already there, and then it connected, I'll make further testing but I think we've got a lead yikes what's up with so many passwords?

Update: tried it again, it didn't asked for password this time, could it be a Networkmanager thing? How do I automatize this process?

Last edited by Bhran (2011-11-26 22:30:00)

Offline

#12 2011-11-27 00:08:45

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,429

Re: No Wireless after suspend with ath5k

Ok, interesting. I assume your arch is up-to-date.
The passwords are since you don't want desktop users to mess up network configuration.
Test it again until you are sure it helps you.
If stopping / starting networkmanager manually solves your issue, you can indeed automate it with a pm-utils mechanism called hook:
https://wiki.archlinux.org/index.php/Pm … _own_hooks

An example for networkmanager you find in this post:
https://bbs.archlinux.org/viewtopic.php … 0#p1017310

You should be able to use that script (don't forget follow the instructions to set permissions to it as described).

Offline

#13 2011-11-27 01:28:39

Bhran
Member
From: Santiago, Chile
Registered: 2011-09-29
Posts: 52
Website

Re: No Wireless after suspend with ath5k

Strike0,

It kind of did the trick, but it's still a little touchy. When I tried it the first time, after resuming, ath5k started flooding my dmesg with phy0 messages, but I then sleep it a second time and it worked flawlessly after resuming, so I'm not sure of its behavior yet, needs more testing xD

Offline

#14 2011-11-27 14:10:40

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: No Wireless after suspend with ath5k

Bhran wrote:
Gusar wrote:

I use this in /etc/pm/config.d/modules

SUSPEND_MODULES="ath5k"

It's working so far! thanks! Although I had to restart for the configuration to work, is that normal?

I have:

SUSPEND_MODULES="ath5k ath mac80211 cfg80211"

and my card is the same as yours and at least hibernating works fine, don't use suspend that much.

> lspci | grep Atheros
06:00.0 Ethernet controller: Atheros Communications Inc. AR242x / AR542x Wireless Network Adapter (PCI-Express) (rev 01)

R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#15 2011-12-01 00:29:45

tomaszc
Member
Registered: 2010-09-11
Posts: 19

Re: No Wireless after suspend with ath5k

I had the same problem but on a wired network (r8169), helped me a solution as described on the page:
https://bugs.archlinux.org/task/22957
As for uninstalling one of the packages pm-utils or laptop-mode-tools, I removed the latter and now operates a network after waking.
Try it, maybe the problem here lies not with loading module wlan card.

Offline

#16 2011-12-28 23:53:41

Hyugga
Member
From: Santiago, Chile
Registered: 2010-03-26
Posts: 335

Re: No Wireless after suspend with ath5k

R00KIE wrote:
Bhran wrote:
Gusar wrote:

I use this in /etc/pm/config.d/modules

SUSPEND_MODULES="ath5k"

It's working so far! thanks! Although I had to restart for the configuration to work, is that normal?

I have:

SUSPEND_MODULES="ath5k ath mac80211 cfg80211"

and my card is the same as yours and at least hibernating works fine, don't use suspend that much.

> lspci | grep Atheros
06:00.0 Ethernet controller: Atheros Communications Inc. AR242x / AR542x Wireless Network Adapter (PCI-Express) (rev 01)

I did all of that, sometimes works and sometimes don't. In my case, i think it doesn't work when the suspension time is long (more than an hour).
I use wicd with wicd-kde up to date.
Question: why not put all the modules that are loaded in that array?

I hope we can solve this.

PD: @Bhran saludos compatriota!

Last edited by Hyugga (2011-12-29 00:00:36)

Offline

#17 2011-12-29 14:52:31

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: No Wireless after suspend with ath5k

Hyugga wrote:

Question: why not put all the modules that are loaded in that array?

Because that array is intended only for modules/hardware that doesn't play well with suspend/hibernate. On top of that I guess some modules cannot be removed and might make the process fail.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#18 2012-01-24 06:42:44

Bhran
Member
From: Santiago, Chile
Registered: 2011-09-29
Posts: 52
Website

Re: No Wireless after suspend with ath5k

R00KIE wrote:
Bhran wrote:
Gusar wrote:

I use this in /etc/pm/config.d/modules

SUSPEND_MODULES="ath5k"

It's working so far! thanks! Although I had to restart for the configuration to work, is that normal?

I have:

SUSPEND_MODULES="ath5k ath mac80211 cfg80211"

and my card is the same as yours and at least hibernating works fine, don't use suspend that much.

> lspci | grep Atheros
06:00.0 Ethernet controller: Atheros Communications Inc. AR242x / AR542x Wireless Network Adapter (PCI-Express) (rev 01)

I have the same, same configuration, plus the networkmanager hook for pm-suspend and it's still failing me, maybe both methods can't be used at the same time? it is possible that deactivating the modules AND turning off networkmanager at the same time is the problem?

Offline

#19 2012-01-24 18:35:20

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,429

Re: No Wireless after suspend with ath5k

Bhran wrote:

I have the same, same configuration, plus the networkmanager hook for pm-suspend and it's still failing me, maybe both methods can't be used at the same time? it is possible that deactivating the modules AND turning off networkmanager at the same time is the problem?

Actually it is unlikely Networkmanager is causing the problems actually in my view. I told you to try it, because it seemed to help in some cases (also here). However, that was last autumn and all things (incl.networkmanager) have progressed.
To your question: No, doing both (unloading module and stopping networkmanager) for suspend will not be a problem really. The only things that happens is that everything regarding network connections is  "reset"  on suspend.

If it does not work for Hyugga, it is more likely to be another cause (so trying to unload other modules can be a way to test it out, yes .. but its tedious to so so). But it really is a matter of your exact hardware and your two notebooks are not the same model I guess..

Offline

Board footer

Powered by FluxBB