Suspend kills wifi
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Suspend kills wifi
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!
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.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Suspend kills wifi
In terminal and post results
Code: Select all
lspci -nnk | grep -iA2 net
Re: Suspend kills wifi
What are the results from before and after
Code: Select all
rfkill list
Re: Suspend kills wifi
I found one possible solution from google, after suspend do
It wouldn't surprise me if it didn't help
Code: Select all
sudo modprobe -r ath9k
Code: Select all
sudo modprobe ath9k nohwcrypt=1
Re: Suspend kills wifi
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.
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.
Re: Suspend kills wifi
I wonder if doing a before suspend and 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
Code: Select all
sudo modprobe -r ath9k
Code: Select all
sudo modprobe ath9k
Re: Suspend kills wifi
I tried both the commands before and after suspend and updating the kernel. No progress...
Re: Suspend kills wifi
What are the results of
Code: Select all
lsmod | grep wmi
Re: Suspend kills wifi
I wonder if will clear the hard block after suspend and it is possible that before suspend and after might work
Code: Select all
sudo modprobe -r hp_wmi
Code: Select all
sudo rfkill unblock all
Code: Select all
sudo modprobe hp_wmi
Code: Select all
sudo modprobe -r hp_wmi
Code: Select all
sudo modprobe hp_wmi
Re: Suspend kills wifi
Show me
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
Code: Select all
uname -a
Re: Suspend kills wifi
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
Do you know where I can file a bug report?
Re: Suspend kills wifi
Here is where to file a bug report https://bugs.launchpad.net/linuxmintClashius wrote: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!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
Do you know where I can file a bug report?
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
Re: Suspend kills wifi
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.
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.
Re: Suspend kills wifi
Who knows for sure but sudo modprobe -rv {module} will show the exact commands executed and I doubt that rmmod works betterI 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.
Re: Suspend kills wifi
Okay thanks!JeremyB wrote:Here is where to file a bug report https://bugs.launchpad.net/linuxmintClashius wrote: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!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
Do you know where I can file a bug report?
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
Re: Suspend kills wifi
Unfortunatly rmmod did not work but I will try a previous kernel!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.
Edit: Did not work!