Suspend kills wifi

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Clashius

Suspend kills wifi

Post by Clashius »

I am having this issue: (https://bugs.launchpad.net/ubuntu/+sour ... ug/1286552), Wifi does not work after entering suspend mode (closing the laptop). I have tried multiple approaches to the problem:

Adding SUSPEND_MODULES="ath9k" (ath9k = my wireless driver) to /etc/pm/config.d/config

This: https://bugs.launchpad.net/ubuntu/+sour ... omments/92

This: https://bugs.launchpad.net/ubuntu/+sour ... omments/32

This is what I get from the nmcli nm command before and after suspend: http://pastebin.com/raw.php?i=AxB0V6gf.
I am running Linux Mint 17 Cinnamon on a HP 14-b118eo laptop. Does anyone know how to solve this issue? Any help would be greatly appreciated!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
JeremyB
Level 21
Level 21
Posts: 13854
Joined: Fri Feb 21, 2014 8:17 am

Re: Suspend kills wifi

Post by JeremyB »

In terminal

Code: Select all

lspci -nnk | grep -iA2 net
and post results
Clashius

Re: Suspend kills wifi

Post by Clashius »

JeremyB
Level 21
Level 21
Posts: 13854
Joined: Fri Feb 21, 2014 8:17 am

Re: Suspend kills wifi

Post by JeremyB »

What are the results from

Code: Select all

rfkill list
before and after
Clashius

Re: Suspend kills wifi

Post by Clashius »

Here: http://pastebin.com/raw.php?i=HMtJM5Gn

Wireless LAN seems to be "hard blocked", any idea why?
JeremyB
Level 21
Level 21
Posts: 13854
Joined: Fri Feb 21, 2014 8:17 am

Re: Suspend kills wifi

Post by JeremyB »

I found one possible solution from google, after suspend do

Code: Select all

sudo modprobe -r ath9k

Code: Select all

sudo modprobe ath9k nohwcrypt=1
It wouldn't surprise me if it didn't help
Clashius

Re: Suspend kills wifi

Post by Clashius »

It did not work :(

But... There is something that have caught my eye... I have hotkeys on my laptop for audio, brightness and couple of other things including Wifi. The Wifi hotkey (F12) also has a LED which glows white if Wifi is on and red if it is off. When I boot up the computer the light is white and Wifi works but after suspend it is red and Wifi does not work and is "hard blocked" according to the "rfkill list" command. The button itself does nothing, it does not matter if I have recently left suspend mode or not. So I suspect this hotkey might have something to do with the issue... Maybe if I find a way to enable F12 as a hotkey I might be able to enable Wifi after suspend?

Edit: I tried enabling the Wifi hotkey with the guide from user "vanuedra" on this thread: http://ubuntuforums.org/showthread.php? ... st12819607. The wifi hotkeys now works, I can enable and disable wifi with a key combination. But it does not work after suspend. They hotkey simply changes the "soft blocked" value in the rfkill list. The "hard blocked" is still enabled after suspend.
JeremyB
Level 21
Level 21
Posts: 13854
Joined: Fri Feb 21, 2014 8:17 am

Re: Suspend kills wifi

Post by JeremyB »

I wonder if doing a

Code: Select all

sudo modprobe -r ath9k
before suspend and

Code: Select all

sudo modprobe ath9k
after suspend might be a workaround. It might be a good idea to update your kernel using Mint Update Manager, click refresh to update the package list and then click View and Linux Kernels, install 3.13.0-39 or -40 if it is listed
Clashius

Re: Suspend kills wifi

Post by Clashius »

I tried both the commands before and after suspend and updating the kernel. No progress...
JeremyB
Level 21
Level 21
Posts: 13854
Joined: Fri Feb 21, 2014 8:17 am

Re: Suspend kills wifi

Post by JeremyB »

What are the results of

Code: Select all

lsmod | grep wmi
Clashius

Re: Suspend kills wifi

Post by Clashius »

JeremyB
Level 21
Level 21
Posts: 13854
Joined: Fri Feb 21, 2014 8:17 am

Re: Suspend kills wifi

Post by JeremyB »

I wonder if

Code: Select all

sudo modprobe -r hp_wmi

Code: Select all

sudo rfkill unblock all

Code: Select all

sudo modprobe hp_wmi
will clear the hard block after suspend and it is possible that

Code: Select all

sudo modprobe -r hp_wmi
before suspend and

Code: Select all

sudo modprobe hp_wmi
after might work
Clashius

Re: Suspend kills wifi

Post by Clashius »

Nothing... :|
JeremyB
Level 21
Level 21
Posts: 13854
Joined: Fri Feb 21, 2014 8:17 am

Re: Suspend kills wifi

Post by JeremyB »

Show me

Code: Select all

uname -a
I am about out of ideas other than to have you file a bug report but since you have read them, you know the first thing they want is for someone to try the newest upstream kernel
Clashius

Re: Suspend kills wifi

Post by Clashius »

Code: Select all

claes@Sleekbook ~ $ uname -a
Linux Sleekbook 3.13.0-40-generic #69-Ubuntu SMP Thu Nov 13 17:53:56 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
We might not have come to a solution, but I want you to know I really appreciate the help I have gotten from you! Thank you!
Do you know where I can file a bug report?
JeremyB
Level 21
Level 21
Posts: 13854
Joined: Fri Feb 21, 2014 8:17 am

Re: Suspend kills wifi

Post by JeremyB »

Clashius wrote:

Code: Select all

claes@Sleekbook ~ $ uname -a
Linux Sleekbook 3.13.0-40-generic #69-Ubuntu SMP Thu Nov 13 17:53:56 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
We might not have come to a solution, but I want you to know I really appreciate the help I have gotten from you! Thank you!
Do you know where I can file a bug report?
Here is where to file a bug report https://bugs.launchpad.net/linuxmint

If you want to try the latest kernel, download these and install
http://kernel.ubuntu.com/~kernel-ppa/ma ... 35_all.deb
http://kernel.ubuntu.com/~kernel-ppa/ma ... _amd64.deb
http://kernel.ubuntu.com/~kernel-ppa/ma ... _amd64.deb

If things don't go well, you can choose Previous Linux versions from the grub menu at boot, if you do not usually see the grub menu, press shift a boot up and it should come up
I Know Nothing

Re: Suspend kills wifi

Post by I Know Nothing »

Does using the command rmmod instead of the modprobe -r command given above work?

So... sudo rmmod ath9k && sudo modprobe ath9k after suspend.

That's what worked for me. Otherwise maybe using an older kernel may work rather than a newer one because my wifi was fine in Mint 15 and whatever kernel that came with but has had the same problem not coming back up after suspend from Mint 16 on.
JeremyB
Level 21
Level 21
Posts: 13854
Joined: Fri Feb 21, 2014 8:17 am

Re: Suspend kills wifi

Post by JeremyB »

I Know Nothing wrote:Does using the command rmmod instead of the modprobe -r command given above work?

So... sudo rmmod ath9k && sudo modprobe ath9k after suspend.

That's what worked for me. Otherwise maybe using an older kernel may work rather than a newer one because my wifi was fine in Mint 15 and whatever kernel that came with but has had the same problem not coming back up after suspend from Mint 16 on.
Who knows for sure but sudo modprobe -rv {module} will show the exact commands executed and I doubt that rmmod works better
Clashius

Re: Suspend kills wifi

Post by Clashius »

JeremyB wrote:
Clashius wrote:

Code: Select all

claes@Sleekbook ~ $ uname -a
Linux Sleekbook 3.13.0-40-generic #69-Ubuntu SMP Thu Nov 13 17:53:56 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
We might not have come to a solution, but I want you to know I really appreciate the help I have gotten from you! Thank you!
Do you know where I can file a bug report?
Here is where to file a bug report https://bugs.launchpad.net/linuxmint

If you want to try the latest kernel, download these and install
http://kernel.ubuntu.com/~kernel-ppa/ma ... 35_all.deb
http://kernel.ubuntu.com/~kernel-ppa/ma ... _amd64.deb
http://kernel.ubuntu.com/~kernel-ppa/ma ... _amd64.deb

If things don't go well, you can choose Previous Linux versions from the grub menu at boot, if you do not usually see the grub menu, press shift a boot up and it should come up
Okay thanks!
Clashius

Re: Suspend kills wifi

Post by Clashius »

I Know Nothing wrote:Does using the command rmmod instead of the modprobe -r command given above work?

So... sudo rmmod ath9k && sudo modprobe ath9k after suspend.

That's what worked for me. Otherwise maybe using an older kernel may work rather than a newer one because my wifi was fine in Mint 15 and whatever kernel that came with but has had the same problem not coming back up after suspend from Mint 16 on.
Unfortunatly rmmod did not work but I will try a previous kernel!

Edit: Did not work!
Locked

Return to “Networking”