Wifi Will Not reconnect after machine wakes (17)

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
esoterik

Wifi Will Not reconnect after machine wakes (17)

Post by esoterik »

I have to reboot and WiFi reconnects. However, after I simply wake my computer, WiFi will not reconnect.

Code: Select all

no@no-GA-78LMT-USB3 ~ $ sudo /usr/lib/linuxmint/mintWifi/mintWifi.py
-------------------------
* I. scanning WIFI PCI devices...
-------------------------
* II. querying ndiswrapper...
-------------------------
* III. querying iwconfig...
eth0      no wireless extensions.

lo        no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:"1234"  Nickname:"rtl_wifi"
          Mode:Managed  Frequency:2.462 GHz  Access Point: 40:16:7E:5B:4E:60   
          Bit Rate:72 Mb/s   Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:****-****-****-****-****-****-****-****   Security mode:open
          Power Management:off
          Link Quality=95/100  Signal level=100/100  Noise level=0/100
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

-------------------------
* IV. querying ifconfig...
eth0      Link encap:Ethernet  HWaddr 74:d4:35:58:c7:d8  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:1235 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1235 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:165526 (165.5 KB)  TX bytes:165526 (165.5 KB)

wlan0     Link encap:Ethernet  HWaddr 68:1c:a2:04:b9:20  
          inet addr:192.168.1.104  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::6a1c:a2ff:fe04:b920/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:111310 errors:0 dropped:17654 overruns:0 frame:0
          TX packets:61114 errors:0 dropped:2 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:155608860 (155.6 MB)  TX bytes:7529115 (7.5 MB)

-------------------------
* V. querying DHCP...
RTNETLINK answers: File exists
-------------------------
* VI. querying nslookup google.com...
Server:		192.168.1.1
Address:	192.168.1.1#53

Non-authoritative answer:
Name:	google.com
Address: 74.125.225.161
Name:	google.com
Address: 74.125.225.166
Name:	google.com
Address: 74.125.225.174
Name:	google.com
Address: 74.125.225.163
Name:	google.com
Address: 74.125.225.167
Name:	google.com
Address: 74.125.225.169
Name:	google.com
Address: 74.125.225.168
Name:	google.com
Address: 74.125.225.162
Name:	google.com
Address: 74.125.225.165
Name:	google.com
Address: 74.125.225.160
Name:	google.com
Address: 74.125.225.164
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
I Know Nothing

Re: Wifi Will Not reconnect after machine wakes (17)

Post by I Know Nothing »

This seems to be a fairly common problem with several suggested fixes dotted around corners of the internet. The one that worked for me was to first find out the name of your wifi driver using the terminal command inxi -n (rt73usb in my case)

Then on resuming from suspend type the terminal commands sudo rmmod rt73usb folllowed by sudo modprobe rt73usb (substituting the rt73usb bit with your own driver)

If that works you can make it restart automatically by creating a shell script in the /etc/pm/sleep.d folder. Open that folder and create a blank file called wifi_wakeup or whatever you like, doesn't seem to matter. Then put in it the following and make the file executable. I don't claim to understand this. It's just something I coppied from the Ubuntu forums.

#!/bin/sh

case "$1" in
suspend|hibernate)
/sbin/rmmod rt73usb
;;
resume|thaw)
/sbin/rmmod rt73usb
/sbin/modprobe rt73usb
;;
esac
exit 0
Locked

Return to “Networking”