You are not logged in.

#1 2012-08-26 10:49:30

Noitulove
Member
From: Padua (Italy)
Registered: 2012-08-26
Posts: 7

Ath9k problem after suspend

Hi everyboy!
First consideration, sorry for my bad english...but google translate and the dictionary helps me to write the answer.
I have one notebook Packard Bell with this wireless lan device:

07:00.0 Network controller: Atheros Communications Inc. AR9485 Wireless Network Adapter (rev 01)

i think the correct kernel drivers are loaded, because the output of the command lspci -k is:

07:00.0 Network controller: Atheros Communications Inc. AR9485 Wireless Network Adapter (rev 01)
        Subsystem: Lite-On Communications Inc Device 6617
        Kernel driver in use: ath9k

and the kernel installed is:

3.4.9-1-ARCH

When i suspend the pc, after wake-up all works well but the wireless connection not work.
Sometimes wireless connection work but she connects and disconnects to infinity.
This is the log of pm-powersave.
I have try this and this solutions, but the problem remains.
I have try to unload the ath9k module, suspend the PC and load the module after wake-up but still not work.
Finally, my DE is KDE 4.9 and the tools for manage the connection is network-manager.
Thanks to all.
Forgive me for the macaronic english!

Pietro Massimo.

Offline

#2 2012-08-26 14:02:26

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

Re: Ath9k problem after suspend

Have a try what happens if you do this manually:

modprobe -rfv ath9k
modprobe -v ath9k nohwcrypt=1

then do a suspend/resume and see if it makes a change.

Offline

#3 2012-08-26 15:29:07

Noitulove
Member
From: Padua (Italy)
Registered: 2012-08-26
Posts: 7

Re: Ath9k problem after suspend

Hi,
i launch:

modprobe -rfv ath9k

before suspend.

After resume  i launched:

modprobe -v ath9k nohwcrypt=1

An the output is:

 [pietro@pietro ~]$ sudo modprobe -v ath9k nohwcrypt=1
Password: 
insmod /usr/lib/modules/3.4.9-1-ARCH/kernel/net/wireless/cfg80211.ko.gz 
insmod /usr/lib/modules/3.4.9-1-ARCH/kernel/net/mac80211/mac80211.ko.gz 
insmod /usr/lib/modules/3.4.9-1-ARCH/kernel/drivers/net/wireless/ath/ath.ko.gz 
insmod /usr/lib/modules/3.4.9-1-ARCH/kernel/drivers/net/wireless/ath/ath9k/ath9k_hw.ko.gz 
insmod /usr/lib/modules/3.4.9-1-ARCH/kernel/drivers/net/wireless/ath/ath9k/ath9k_common.ko.gz 
insmod /usr/lib/modules/3.4.9-1-ARCH/kernel/drivers/net/wireless/ath/ath9k/ath9k.ko.gz nohwcrypt=1

But connection doesn't work.
Kwallet ask me the password where is saved the WPA-PSK many many time.
Thank you!

Last edited by Noitulove (2012-08-26 15:29:29)

Offline

#4 2012-08-26 20:48:46

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

Re: Ath9k problem after suspend

Check the logfile /var/log/everything.log right after you input the kwallet password and it prompts you again.
There should be an error for the "wrong" password in the log. Unclear to me is, if the error comes from wireless (wpa) or kwallet.

Offline

#5 2012-08-27 09:49:57

Noitulove
Member
From: Padua (Italy)
Registered: 2012-08-26
Posts: 7

Re: Ath9k problem after suspend

Hi, i filtered the output of everything.log, but the "wrong" words doesn't appears.
Here some log,

Network log
Ath9k

When resume pc the icon kdeplasma-applets-networkmanagement has a red cross.
Thank for all!

Offline

#6 2012-08-27 11:22:09

Noitulove
Member
From: Padua (Italy)
Registered: 2012-08-26
Posts: 7

Re: Ath9k problem after suspend

Wait a moment!
Yesterday this command not work, but today works very well!

modprobe -rfv ath9k
modprobe -v ath9k nohwcrypt=1

Look here:

[pietro@pietro ~]$ sudo modprobe -rfv ath9k
Password: 
rmmod ath9k
rmmod mac80211
rmmod ath9k_common
rmmod ath9k_hw
rmmod ath
rmmod cfg80211
[pietro@pietro ~]$ sudo modprobe -v ath9k nohwcrypt=1
insmod /usr/lib/modules/3.4.9-1-ARCH/kernel/net/wireless/cfg80211.ko.gz 
insmod /usr/lib/modules/3.4.9-1-ARCH/kernel/net/mac80211/mac80211.ko.gz 
insmod /usr/lib/modules/3.4.9-1-ARCH/kernel/drivers/net/wireless/ath/ath.ko.gz 
insmod /usr/lib/modules/3.4.9-1-ARCH/kernel/drivers/net/wireless/ath/ath9k/ath9k_hw.ko.gz 
insmod /usr/lib/modules/3.4.9-1-ARCH/kernel/drivers/net/wireless/ath/ath9k/ath9k_common.ko.gz 
insmod /usr/lib/modules/3.4.9-1-ARCH/kernel/drivers/net/wireless/ath/ath9k/ath9k.ko.gz nohwcrypt=1

Mysteries!!! big_smile
However now i can create a bash script that execute these commands before and after the suspension?
Thank you Strike0!

Update V1: I explored better, if i launch :

modprobe -rfv ath9k

and can't put the pc in suspension mode, after launch

modprobe -v ath9k nohwcrypt=1

The connection resume well and work fine.

But if launch the command and put the PC in suspension mode, after resume, the wireless connection after launch the second command doesn't work.

Last edited by Noitulove (2012-08-27 11:45:05)

Offline

#7 2012-08-27 17:36:18

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

Re: Ath9k problem after suspend

If it works better with that option, what you should do is somehting like

sudo sh -c "echo 'options ath9k nohwcrypt=1' > /etc/modprobe.d/ath9k.conf"

Also into the pm-supend, as you have tried before.

The error causing it with the resume might be something else also. This error in your log might be relevant

Running hook /usr/lib/pm-utils/power.d/pcie_aspm false:
/usr/lib/pm-utils/power.d/pcie_aspm: line 9: echo: write error: Operation not permitted

You can add a kernel option to force that (search for "pcie_aspm kernel option"), but just an idea maybe you want to look into that.

Offline

Board footer

Powered by FluxBB