View Full Version : [SOLVED] No wireless connections after sleep/suspend
SkyJP
June 16th, 2012, 01:32 PM
Recently, I've setup a dual boot with Ubuntu 12.04 and everything seems to be going fine.
The networking works perfectly, until I access sleep mode/suspend. After that, when I logon, the wireless connection is lost. I attempted to connect via 'connecting to a hidden wireless network' and entered the password, but it takes a long time to connect and eventually prompts me for the password again without acquiring connection.
After I reboot, however, WiFi works again.
Network controller: Intel Corporation Centrino Wireless-N 130
If you tell me how to fix it with commands, if you don't mind, please tell me what the commands do as I'm new to Ubuntu =\
chili555
June 16th, 2012, 02:32 PM
This technique sometimes, but not always works. We are going to add a file that tells the system that we have a module (a.k.a. driver) that we want to explicitly unload on suspend and reload on resume. The driver we'll unload and reload is your wireless driver iwlwifi. Let's use the text editor gedit to write a file. Since it's a location owned by root, we'll need to temporarily gain administrative privileges with sudo:
sudo gedit /etc/pm/config.d/configAdd one line:
SUSPEND_MODULES="iwlwifi"Proofread carefully, save and close gedit. Reboot.
How does it work now?
SkyJP
June 16th, 2012, 02:38 PM
Thank you, so far it has worked perfectly ;)
chili555
June 16th, 2012, 03:48 PM
Please use thread tools at the top to mark Solved so the searchers can find it.
Note to searchers: your wireless driver may not be iwlwifi. Please check and ask if in doubt.
ping-wu
June 20th, 2012, 07:21 AM
This technique sometimes, but not always works. We are going to add a file that tells the system that we have a module (a.k.a. driver) that we want to explicitly unload on suspend and reload on resume. The driver we'll unload and reload is your wireless driver iwlwifi. Let's use the text editor gedit to write a file. Since it's a location owned by root, we'll need to temporarily gain administrative privileges with sudo:
sudo gedit /etc/pm/config.d/configAdd one line:
SUSPEND_MODULES="iwlwifi"Proofread carefully, save and close gedit. Reboot.
How does it work now?
Followed your procedure. Now my 12.04 won't suspend?
chili555
June 20th, 2012, 01:17 PM
Followed your procedure. Now my 12.04 won't suspend?I've never heard that complaint before. Please check that your driver is actually correct if not iwlwifi and also that no typing errors were made.
watgrad
June 22nd, 2012, 12:55 AM
Thanks for this - I was having the same problem on my macbookpro8,1
This solved it.
My driver was "b43" for any other mac users looking for a solution to the suspend problem.
(Linux mint 13 - ubuntu 12.04 derivative)
chrismatinez81
June 23rd, 2012, 01:15 PM
i have BCM4312 802.11b/g LP-PHY installed as my driver what do i put SUSPEND_MODULES="" "" i tried SUSPEND_MODULES=BCM4312 and BCM4312 802.11b/g LP-PHY but they both dont work can you help me please
chili555
June 23rd, 2012, 02:02 PM
i have BCM4312 802.11b/g LP-PHY installed as my driver what do i put SUSPEND_MODULES="" "" i tried SUSPEND_MODULES=BCM4312 and BCM4312 802.11b/g LP-PHY but they both dont work can you help me pleaseI am sure that those are not the name of your driver. Please run:
sudo lshw -C networkThis will take a few moments; please be patient. Look for your wireless device and see what is says at driver=. Then amend the file to include the exact name of the driver in quotes. It might be this, but check and confirm:
SUSPEND_MODULES="b43"
As a very famous man once said, "Trust but verify."
chrismatinez81
June 25th, 2012, 10:08 AM
I am sure that those are not the name of your driver. Please run:
sudo lshw -C networkThis will take a few moments; please be patient. Look for your wireless device and see what is says at driver=. Then amend the file to include the exact name of the driver in quotes. It might be this, but check and confirm:
SUSPEND_MODULES="b43"
As a very famous man once said, "Trust but verify."
thats my driver but its still not working. i have another question im on mint 13 cinnamon when i change my power setting for my screen i set it to never turn off but it still does. i have looked online but cant find anything please let me know if you know how to fix this problem
thanks
chili555
June 25th, 2012, 12:54 PM
I'm sorry, I know of no other techniques. As I said above, the one I do know sometimes but not always works.
You might post in General Help and reference suspend in the thread title. http://ubuntuforums.org/forumdisplay.php?f=331
fgmart
September 23rd, 2012, 07:11 PM
This solution totally worked for me -- Ubuntu 12.04 on a Lenovo ideapad u460. Super! Thanks!
-- adding SUSPEND_MODULES="iwlwifi" to /etc/pm/config.d/config
Fred
MikeFlint
November 21st, 2012, 05:42 PM
I'd just like to add a "me too" on the "it works!" front.
On 12.04 - suspend working with WiFi fine until kernel upgrade to Kernel Linux 3.2.0-33-generic-pae, then only coming back to life if I reset the router or re-booted.
Adding the kill/restart code for iwlwifi and so far, all good.
Possibly kernel ... at same time I upgraded to Cinnamon 1.6.7 but don't think that can be relevant. Using WICD, not NM.
****EDIT****
Have removed this patch in 14.04 (remember to remove all your patches between upgrades or you might break fixes that have been made!)
Suspend issues with WiFi no longer occur.
forums4me
December 11th, 2012, 12:43 PM
This is still sot working as far as I am concerned.
Configuration:
Ubuntu 12.04.1 LTS x64
Samsung 700Z3C
This (http://www.techytalk.info/ubuntu-fix-network-stopped-working-after-resume-from-sleep/) -- which seems to be the same -- seem to have temporarily worked but that's it.
alanchevelleboy
August 27th, 2013, 07:36 AM
This technique sometimes, but not always works. We are going to add a file that tells the system that we have a module (a.k.a. driver) that we want to explicitly unload on suspend and reload on resume. The driver we'll unload and reload is your wireless driver iwlwifi. Let's use the text editor gedit to write a file. Since it's a location owned by root, we'll need to temporarily gain administrative privileges with sudo:
sudo gedit /etc/pm/config.d/configAdd one line:
SUSPEND_MODULES="iwlwifi"Proofread carefully, save and close gedit. Reboot.
How does it work now?
Thanks I had this same problem with my custom built PC. now I need to find one for lubuntu 12.04 live cd then I can use the laptop without restarting after a suspend
Sarab_Jeet_Singh
October 23rd, 2013, 10:08 PM
Hi. My symptoms are similar. When I go into sleep or suspend mode (OR restart), I always have to delete the most recent network connection and re-add it in the manage connections window. The problem is not life or death by any means, I can still carry on with my web activities, just a hassle. Additionally, I really like the suspend/sleep/hibernate feature and use it often, so it is unusually troublesome.
When I followed the procedure in this thread I wasn't sure if I did the gedit part correctly. What threw me off, was that there were no contents to the file that opens. So that the one line we are supposed to enter:
SUSPEND_MODULES="wl0"
is all that shows up in the editor.
Anyway, I tried the procedure and it didn't work. In fact I am about to try it again and I'll report back. (UPDATE: no change)
Any help would be nice.
Thanks and god bless you
chili555
October 24th, 2013, 10:12 PM
SUSPEND_MODULES="wl0"I think it should be, instead:
SUSPEND_MODULES="wl"Please change it and let us have your report.
minos.masterchief
November 20th, 2013, 03:32 PM
I am sure that those are not the name of your driver. Please run:
sudo lshw -C networkThis will take a few moments; please be patient. Look for your wireless device and see what is says at driver=. Then amend the file to include the exact name of the driver in quotes. It might be this, but check and confirm:
SUSPEND_MODULES="b43"
As a very famous man once said, "Trust but verify."
Thanks, this worked perfectly for me.
bpevrancken
May 10th, 2014, 07:28 PM
The above solutions did not help me (ubuntu 14.04). However, when I unmarked IPV6 settings (from automatic to ignore) I immediately got wireless connection after resuming from sleep mode.
HDTimeshifter
May 12th, 2014, 03:56 AM
My wired connection is disabled after resuming from sleep in Ubuntu 14.04 LTS and trying to select Enable Networking from the pulldown menu at the upper right doesn't enable it - I have to reboot. I tried changing IPV6 from automatic to ignore as bpevrancken did above and that didn't work. Is there a wired driver I can specify to unload and reload in my config file?
chili555
May 12th, 2014, 12:56 PM
My wired connection is disabled after resuming from sleep in Ubuntu 14.04 LTS and trying to select Enable Networking from the pulldown menu at the upper right doesn't enable it - I have to reboot. I tried changing IPV6 from automatic to ignore as bpevrancken did above and that didn't work. Is there a wired driver I can specify to unload and reload in my config file?We can certainly try. Please run:
sudo lshw -C networkWhat does it say for your ethernet device under 'driver='? Just use the same technique as above.
If in doubt, post the result here and we'll be happy to help.
Here is a sample from my machine:
*-network
description: Ethernet interface
product: 82577LM Gigabit Network Connection
vendor: Intel Corporation
physical id: 19
bus info: pci@0000:00:19.0
logical name: eth0
version: 06
serial: xx:de:f1:3e:b2:xx
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=2.3.2-k firmware=0.12-1 latency=0 link=no multicast=yes port=twisted pairSo my file would read:
SUSPEND_MODULES="e1000e"We will be very interested in your result.
HDTimeshifter
May 12th, 2014, 01:43 PM
*-network
description: Ethernet interface
product: AR8121/AR8113/AR8114 Gigabit or Fast Ethernet
vendor: Qualcomm Atheros
physical id: 0
bus info: pci@0000:02:00.0
logical name: eth0
version: b0
serial: 00:23:54:00:bf:86
size: 100Mbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=ATL1E driverversion=1.0.0.7-NAPI duplex=full firmware=L1e ip=192.168.1.100 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
resources: irq:17 memory:fe9c0000-fe9fffff ioport:dc00(size=128)
The below didn't work:
SUSPEND_MODULES="ATL1E"
chili555
May 12th, 2014, 02:00 PM
The below didn't work:
SUSPEND_MODULES="ATL1E"Once in a while and I have no idea why, the name of the driver listed is not the name of the driver!! Please try:
SUSPEND_MODULES="atl1e"And, yes, case, caps, etc. are crucial in Linux.
Of course, then we have the issue that the technique may not work at all in this case and that, further, the issue is somewhere other than the driver dropping on suspend.
HDTimeshifter
May 13th, 2014, 08:50 AM
Lower case didn't work either. Actually I tried manually suspending, then waking it up almost immediately afterward and the LAN wasn't dropped. But then I suspended it and came back a few hours later and the networking is disabled again.
On another note, is your PC fanless? I was thinking of replacing my 2 HDDs (dual boot Ubuntu & Windows 7) with two 240 GB SSDs if I could turn off all or all but one 12 cm fan, but people tell me SSDs still generate almost as much heat. My CPU is a quad-core Q6600, which isn't the most heat efficient either.
chili555
May 13th, 2014, 02:32 PM
Actually I tried manually suspending, then waking it up almost immediately afterward and the LAN wasn't dropped. But then I suspended it and came back a few hours later and the networking is disabled again.It probably isn't an issue of the driver dropping then. Check after it doesn't come back up:
lsmod | grep atlIf atl1e is listed, then the issue isn't the driver. Since yours is an ethernet issue and not wireless, the subject of this thread, I suggest you start a new thread and PM me the link.
As for my NUC, it does have a very quiet fan. To my old ears, it is silent. To my sound level meter, which, I admit, only registers down to 50 dB, it is silent. When I walk across the carpeted floor holding the meter, my footsteps register higher than 50 dB!
NUCs are often used as HTPCs where the sound level is critical.
ubuntone2
June 18th, 2014, 06:04 AM
Thanks Chilli,
SUSPEND_MODULES="iwlwifi"
Solved my issue with wifi not reconnecting after resuming from suspend in lubuntu 14.04 with an Intel 3945abg chipset.
Cheers,
Tony
chili555
June 18th, 2014, 03:17 PM
Thanks Chilli,
SUSPEND_MODULES="iwlwifi"
Solved my issue with wifi not reconnecting after resuming from suspend in lubuntu 14.04 with an Intel 3945abg chipset.
Cheers,
TonyI believe for the 3945, it ought to be:
SUSPEND_MODULES="iwl3945"
None_OYerbiz
August 1st, 2014, 08:45 AM
Just another thank you, Chili555 - your solution seems to have fixed my problem as well (tested twice just now and worked immediately both times). I found and tried several variations on a theme (putting a script with various commands in /etc/pm/sleep.d/ to execute upon wake - look here (http://askubuntu.com/questions/452826/wireless-networking-not-working-after-resume-in-ubuntu-14-04) for an example), but none of them worked.
Adding my relevant details for others who may be searching to find:
Using a Rosewill RNX-N180UBE USB WiFi adapter, it identifies itself as a Realtek RTL8191SU, but XUbuntu is using the r8712u driver (have to see if there's a proper driver for this out there somewhere because my connection dies occasionally), thus the proper line for this device would be:
SUSPEND_MODULES="r8712u"
HDTimeshifter
August 1st, 2014, 09:31 PM
It probably isn't an issue of the driver dropping then. Check after it doesn't come back up:
lsmod | grep atlIf atl1e is listed, then the issue isn't the driver. Since yours is an ethernet issue and not wireless, the subject of this thread, I suggest you start a new thread and PM me the link.
My problem solved and also works for wireless router that I replaced my wired router with: http://ubuntuforums.org/showthread.php?t=2223566
shammydog
August 29th, 2014, 03:09 AM
SUSPEND_MODULES="iwlwifi" fix did not work for me. shrodi's #8 post here (http://ubuntuforums.org/showthread.php?t=2218043&p=13110510#post13110510) did!
bikergeek2
May 15th, 2015, 04:10 PM
Sorry to bump an elderly thread but this problem reared its head after upgrading my Toshiba Satellite C655 laptop to Xubuntu Vivid.
SUSPEND_MODULES="rtl8192ce" didn't work for me, am still trying to find a solution. Disabling and re-enabling networking works, so perhaps this is not a wireless driver problem but a problem with DHCP.
ETA: looks like I'm experiencing this bug: https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/1439771
chili555
May 15th, 2015, 04:40 PM
Does it help to do:
sudo service network-manager restartDid you register with Launchpad and add your comments to the bug?
gilles-falquet-z
May 15th, 2015, 09:49 PM
Works well for me too (Ubuntu 10.04 on an old iMac 7,1). Thanks
spotfist
June 4th, 2015, 10:56 PM
Hey sorry for the bump but not sure if i need to start a new thread for this, i am having very similar issues as reported by the OP but none of the solutions work including the other solutions i tried from other sites.
I am running on a lenovo thinkpad with drivers "iwl3945" so have added this to the config file
SUSPEND_MODULES="iwl3945"
to /etc/pm/config.d/config but this doesn't fix the issue.
lsmod grep iwl
shows
iwl3945 63619 0
iwlegaccy 88016 1
so i assume that its not a driver issue
running
nmcli nm
shows that the STATE is disconnected
i have the nm-applet running so i can try and reconnect using that which changes the STATE to connecting but it will only connect randomly. sometimes after a reboot but not every-time. Once connected it is fine until i suspend the laptop again, then back to square one.
any ideas or outputs anyone needs to see just let me know, cheers
spotfist
June 6th, 2015, 07:22 PM
For anyone with similar wireless problems who are unable to resolve or run out of things to try like I did. I decided to re-install Lubuntu.
From a fresh install I updated straight away before installing my apps, I think this is potentially what caused the problems. I now have the laptop to hibernate instead of sleep, works much better now!
jeanj
July 20th, 2015, 08:47 PM
I found that `sudo killall wpa_supplicant` helps, as reported in this thread:
http://ubuntuforums.org/showthread.php?t=2230072 (edit: this didn't help on a subsequent occasion).
This was not an issue for me in 12.04 ... sad to encounter it in 15.04 ...
kyrachris
November 1st, 2015, 05:08 PM
BTW, this solution works after upgrading to 15.10, but you need to mark the file as executable:
sudo chmod +x /etc/pm/config.d/config
Update: It works, but it appears to fail on occasion. Still need to chmod it.
reduxpl
August 1st, 2016, 06:17 PM
sudo gedit /etc/pm/config.d/configAdd one line:
SUSPEND_MODULES="iwlwifi"Proofread carefully, save and close gedit. Reboot.
How does it work now?
This exact solution worked for my Dell Latitude E5410. Thank you!
celyse
May 21st, 2017, 09:47 PM
Does it help to do:
sudo service network-manager restartDid you register with Launchpad and add your comments to the bug?
Really sorry to be bumping such an old thread, but I'm having this issue as well. I'm running Lubuntu 17.04 on an old Toshiba Satellite (and I'm very new to it!). The code I'm quoting works, but I'd like a more permanent solution so I don't have to type this every time I open my laptop back up. The first solution posted didn't work for me as it looks like /etc/pm/config.d/config doesn't exist on my computer. Has there been a change in the latest version where I might be able to try that solution with a different file?
jeremy31
May 21st, 2017, 09:50 PM
See if disabling wifi power management helps
sudo sed -i 's/3/2/' /etc/NetworkManager/conf.d/*
celyse
May 21st, 2017, 10:43 PM
See if disabling wifi power management helps
sudo sed -i 's/3/2/' /etc/NetworkManager/conf.d/*
Looks like that worked, thank you!
Powered by vBulletin® Version 4.2.2 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.