You are not logged in.

#1 2011-07-10 16:06:44

beta990
Member
Registered: 2011-07-10
Posts: 207

[SOLVED] ASUS K52Jc - No Wireless resume after suspend/hibernate

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

#2 2011-07-10 16:37:35

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: [SOLVED] ASUS K52Jc - No Wireless resume after suspend/hibernate

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

#3 2011-07-10 16:45:19

beta990
Member
Registered: 2011-07-10
Posts: 207

Re: [SOLVED] ASUS K52Jc - No Wireless resume after suspend/hibernate

Hi lilsirecho,

What do you mean? Do I something wrong?

Thanks.

Offline

#4 2011-07-10 16:52:14

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: [SOLVED] ASUS K52Jc - No Wireless resume after suspend/hibernate

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

#5 2011-07-10 17:08:54

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED] ASUS K52Jc - No Wireless resume after suspend/hibernate

No, rc.conf is not relevant here.

beta990, what application manages your network connection - netcfg, networkmanager, etc?

Offline

#6 2011-07-10 17:23:17

beta990
Member
Registered: 2011-07-10
Posts: 207

Re: [SOLVED] ASUS K52Jc - No Wireless resume after suspend/hibernate

@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

#7 2011-07-10 20:39:19

beta990
Member
Registered: 2011-07-10
Posts: 207

Re: [SOLVED] ASUS K52Jc - No Wireless resume after suspend/hibernate

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. tongue

Is this code legal? (can it run without any problems? Maybe faster?)

Thanks!

Last edited by beta990 (2011-07-10 20:41:49)

Offline

#8 2011-07-13 20:59:15

beta990
Member
Registered: 2011-07-10
Posts: 207

Re: [SOLVED] ASUS K52Jc - No Wireless resume after suspend/hibernate

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

#9 2011-07-17 04:14:24

gacrux
Member
Registered: 2009-05-06
Posts: 3

Re: [SOLVED] ASUS K52Jc - No Wireless resume after suspend/hibernate

@beta990 Thanks smile I'm using you script as well.

I have identical problems to beta990 on a Asus K52J Laptop with Gnome 3.

Offline

#10 2011-09-01 18:48:12

DigitalPioneer
Member
Registered: 2008-08-11
Posts: 11

Re: [SOLVED] ASUS K52Jc - No Wireless resume after suspend/hibernate

I've got this exact problem too. Just put the script in, hoping it works. Thanks. smile

Offline

#11 2011-09-17 15:33:11

Vena
Member
From: Czech Republic
Registered: 2011-04-23
Posts: 14

Re: [SOLVED] ASUS K52Jc - No Wireless resume after suspend/hibernate

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

Board footer

Powered by FluxBB