Thinkpad keeps disconnecting from wifi, but the wifi icon still shows connected

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
lambro

Thinkpad keeps disconnecting from wifi, but the wifi icon still shows connected

Post by lambro »

Device: Lenovo Thinkpad X1 Carbon (3rd generation) running Linux Mint 18.3, kernel version: 4.13.0-19-generic, driver in use: iwlwifi 7265D

Problem: The wifi keeps disconnecting in my home network, which slightly weaker than the wifi at work. The wifi at work is more stable, still disconnects on occasion. At home however it disconnects repeatedly, every few seconds of connecting sometimes. My android phone however stays connected without problems.

Description: When it disconnects the wifi icon does not change, but the internet stops working in applications and browsing. If I disconnect and reconnect it works again for an amount of time before disconnecting again in this manner.

Attempts: Reading around solutions I've disabled IPv6 in network connections settings. I also turned off power management for wlp4s0. These have had little to no effect and the problem persists.

Running

Code: Select all

lspci -knn | grep Net -A3
gives:

Code: Select all

04:00.0 Network controller [0280]: Intel Corporation Wireless 7265 [8086:095b] (rev 59)
    Subsystem: Intel Corporation Dual Band Wireless-AC 7265 [8086:5210]
    Kernel driver in use: iwlwifi
    Kernel modules: iwlwifi
Running

Code: Select all

wget -N -t 5 -T 10 https://github.com/UbuntuForums/wireless-info/raw/master/wireless-info && chmod +x wireless-info && ./wireless-info
gives:

Code: Select all


########## wireless info START ##########

Report from: 07 Dec 2017 17:08 EST -0500

Booted last: 07 Dec 2017 00:00 EST -0500

Script from: 05 Dec 2017 03:13 UTC +0000

##### release ###########################

Distributor ID:	LinuxMint
Description:	Linux Mint 18.3 Sylvia
Release:	18.3
Codename:	sylvia

##### kernel ############################

Linux 4.13.0-19-generic #22~16.04.1-Ubuntu SMP Mon Dec 4 15:35:18 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Parameters: ro, quiet, splash, vt.handoff=7

##### desktop ###########################

Cinnamon

##### lspci #############################

00:19.0 Ethernet controller [0200]: Intel Corporation Ethernet Connection (3) I218-V [8086:15a3] (rev 03)
	Subsystem: Lenovo Ethernet Connection (3) I218-V [17aa:2227]
	Kernel driver in use: e1000e

04:00.0 Network controller [0280]: Intel Corporation Wireless 7265 [8086:095b] (rev 59)
	Subsystem: Intel Corporation Dual Band Wireless-AC 7265 [8086:5210]
	Kernel driver in use: iwlwifi

##### lsusb #############################

Bus 001 Device 002: ID 8087:8001 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 004: ID 04f2:b45d Chicony Electronics Co., Ltd 
Bus 002 Device 003: ID 8087:0a2a Intel Corp. 
Bus 002 Device 002: ID 138a:0017 Validity Sensors, Inc. Fingerprint Reader
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

##### PCMCIA card info ##################

##### rfkill ############################

0: tpacpi_bluetooth_sw: Bluetooth
	Soft blocked: no
	Hard blocked: no
2: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
4: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no

##### lsmod #############################

iwlmvm                385024  0
mac80211              782336  1 iwlmvm
iwlwifi               249856  1 iwlmvm
cfg80211              614400  3 iwlmvm,iwlwifi,mac80211
wmi_bmof               16384  0
wmi                    24576  1 wmi_bmof

##### interfaces ########################

auto lo
iface lo inet loopback

##### ifconfig ##########################

enp0s25   Link encap:Ethernet  HWaddr <MAC 'enp0s25' [IF1]>  
          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)
          Interrupt:20 Memory:f1100000-f1120000 

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:2107 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2107 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:171954 (171.9 KB)  TX bytes:171954 (171.9 KB)

wlp4s0    Link encap:Ethernet  HWaddr <MAC 'wlp4s0' [IF2]>  
          inet addr:192.168.0.18  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: 2607:fea8:5660:842:a50b:c064:f2da:e409/64 Scope:Global
          inet6 addr: 2607:fea8:5660:842:<IP6 'wlp4s0' [IF2]>/64 Scope:Global
          inet6 addr: fe80::<IP6 'wlp4s0' [IF2]>/64 Scope:Link
          inet6 addr: fd00:6477:7d63:1902:<IP6 'wlp4s0' [IF2]>/64 Scope:Global
          inet6 addr: fd00:6477:7d63:1902:a50b:c064:f2da:e409/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:137351 errors:0 dropped:0 overruns:0 frame:0
          TX packets:62729 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:167071249 (167.0 MB)  TX bytes:41106201 (41.1 MB)

##### iwconfig ##########################

lo        no wireless extensions.

enp0s25   no wireless extensions.

wlp4s0    IEEE 802.11  ESSID:"persepolis"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: <MAC 'persepolis' [AC1]>   
          Bit Rate=240 Mb/s   Tx-Power=22 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=39/70  Signal level=-71 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:90   Missed beacon:0

##### route #############################

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.0.1     0.0.0.0         UG    600    0        0 wlp4s0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 wlp4s0
192.168.0.0     0.0.0.0         255.255.255.0   U     600    0        0 wlp4s0

##### resolv.conf #######################

nameserver 127.0.1.1
search hitronhub.home

##### network managers ##################

Installed:

	NetworkManager

Running:

root       915     1  0 15:33 ?        00:00:01 /usr/sbin/NetworkManager --no-daemon

##### NetworkManager info ###############

GENERAL.DEVICE:                         wlp4s0
GENERAL.TYPE:                           wifi
GENERAL.NM-TYPE:                        NMDeviceWifi
GENERAL.VENDOR:                         Intel Corporation
GENERAL.PRODUCT:                        Wireless 7265 (Dual Band Wireless-AC 7265)
GENERAL.DRIVER:                         iwlwifi
GENERAL.DRIVER-VERSION:                 4.13.0-19-generic
GENERAL.FIRMWARE-VERSION:               29.610311.0
GENERAL.HWADDR:                         <MAC 'wlp4s0' [IF2]>
GENERAL.MTU:                            0
GENERAL.STATE:                          100 (connected)
GENERAL.REASON:                         0 (No reason given)
GENERAL.UDI:                            /sys/devices/pci0000:00/0000:00:1c.1/0000:04:00.0/net/wlp4s0
GENERAL.IP-IFACE:                       wlp4s0
GENERAL.IS-SOFTWARE:                    no
GENERAL.NM-MANAGED:                     yes
GENERAL.AUTOCONNECT:                    yes
GENERAL.FIRMWARE-MISSING:               no
GENERAL.NM-PLUGIN-MISSING:              no
GENERAL.PHYS-PORT-ID:                   --
GENERAL.CONNECTION:                     persepolis
GENERAL.CON-UUID:                       42af38b7-2d6c-444b-958f-c3bfb9256b1c
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/5
GENERAL.METERED:                        no (guessed)
CAPABILITIES.CARRIER-DETECT:            no
CAPABILITIES.SPEED:                     180 Mb/s
CAPABILITIES.IS-SOFTWARE:               no
WIFI-PROPERTIES.WEP:                    yes
WIFI-PROPERTIES.WPA:                    yes
WIFI-PROPERTIES.WPA2:                   yes
WIFI-PROPERTIES.TKIP:                   yes
WIFI-PROPERTIES.CCMP:                   yes
WIFI-PROPERTIES.AP:                     yes
WIFI-PROPERTIES.ADHOC:                  yes
WIFI-PROPERTIES.2GHZ:                   yes
WIFI-PROPERTIES.5GHZ:                   yes
CONNECTIONS.AVAILABLE-CONNECTION-PATHS: /org/freedesktop/NetworkManager/Settings/{0}
CONNECTIONS.AVAILABLE-CONNECTIONS[1]:   42af38b7-2d6c-444b-958f-c3bfb9256b1c | persepolis
IP4.ADDRESS[1]:                         192.168.0.18/24
IP4.GATEWAY:                            192.168.0.1
IP4.ROUTE[1]:                           dst = 169.254.0.0/16, nh = 0.0.0.0, mt = 1000
IP4.DNS[1]:                             8.8.8.8
IP4.DNS[2]:                             8.8.4.4
IP4.DOMAIN[1]:                          hitronhub.home
DHCP4.OPTION[1]:                        requested_routers = 1
DHCP4.OPTION[2]:                        requested_domain_search = 1
DHCP4.OPTION[3]:                        requested_time_offset = 1
DHCP4.OPTION[4]:                        requested_domain_name = 1
DHCP4.OPTION[5]:                        requested_rfc3442_classless_static_routes = 1
DHCP4.OPTION[6]:                        requested_broadcast_address = 1
DHCP4.OPTION[7]:                        host_name = think
DHCP4.OPTION[8]:                        requested_wpad = 1
DHCP4.OPTION[9]:                        requested_netbios_scope = 1
DHCP4.OPTION[10]:                       next_server = 0.0.0.0
DHCP4.OPTION[11]:                       expiry = 1513289232
DHCP4.OPTION[12]:                       requested_interface_mtu = 1
DHCP4.OPTION[13]:                       requested_subnet_mask = 1
DHCP4.OPTION[14]:                       routers = 192.168.0.1
DHCP4.OPTION[15]:                       dhcp_message_type = 5
DHCP4.OPTION[16]:                       ip_address = 192.168.0.18
DHCP4.OPTION[17]:                       requested_static_routes = 1
DHCP4.OPTION[18]:                       domain_name = hitronhub.home
DHCP4.OPTION[19]:                       requested_domain_name_servers = 1
DHCP4.OPTION[20]:                       broadcast_address = 192.168.0.255
DHCP4.OPTION[21]:                       requested_ntp_servers = 1
DHCP4.OPTION[22]:                       requested_netbios_name_servers = 1
DHCP4.OPTION[23]:                       dhcp_lease_time = 604800
DHCP4.OPTION[24]:                       domain_name_servers = 8.8.8.8 8.8.4.4
DHCP4.OPTION[25]:                       requested_ms_classless_static_routes = 1
DHCP4.OPTION[26]:                       subnet_mask = 255.255.255.0
DHCP4.OPTION[27]:                       network_number = 192.168.0.0
DHCP4.OPTION[28]:                       requested_host_name = 1
DHCP4.OPTION[29]:                       dhcp_server_identifier = 192.168.0.1
IP6.ADDRESS[1]:                         2607:fea8:5660:842:<IP6 'wlp4s0' [IF2]>/64
IP6.ADDRESS[2]:                         fd00:6477:7d63:1902:<IP6 'wlp4s0' [IF2]>/64
IP6.ADDRESS[3]:                         2607:fea8:5660:842:a50b:c064:f2da:e409/64
IP6.ADDRESS[4]:                         fd00:6477:7d63:1902:a50b:c064:f2da:e409/64
IP6.ADDRESS[5]:                         fe80::<IP6 'wlp4s0' [IF2]>/64
IP6.GATEWAY:                            fe80::6677:7dff:fe63:1902

GENERAL.DEVICE:                         enp0s25
GENERAL.TYPE:                           ethernet
GENERAL.NM-TYPE:                        NMDeviceEthernet
GENERAL.VENDOR:                         Intel Corporation
GENERAL.PRODUCT:                        Ethernet Connection (3) I218-V
GENERAL.DRIVER:                         e1000e
GENERAL.DRIVER-VERSION:                 3.2.6-k
GENERAL.FIRMWARE-VERSION:               0.2-4
GENERAL.HWADDR:                         <MAC 'enp0s25' [IF1]>
GENERAL.MTU:                            1500
GENERAL.STATE:                          20 (unavailable)
GENERAL.REASON:                         2 (Device is now managed)
GENERAL.UDI:                            /sys/devices/pci0000:00/0000:00:19.0/net/enp0s25
GENERAL.IP-IFACE:                       
GENERAL.IS-SOFTWARE:                    no
GENERAL.NM-MANAGED:                     yes
GENERAL.AUTOCONNECT:                    yes
GENERAL.FIRMWARE-MISSING:               no
GENERAL.NM-PLUGIN-MISSING:              no
GENERAL.PHYS-PORT-ID:                   --
GENERAL.CONNECTION:                     --
GENERAL.CON-UUID:                       --
GENERAL.CON-PATH:                       --
GENERAL.METERED:                        unknown
CAPABILITIES.CARRIER-DETECT:            yes
CAPABILITIES.SPEED:                     unknown
CAPABILITIES.IS-SOFTWARE:               no
WIRED-PROPERTIES.CARRIER:               off
CONNECTIONS.AVAILABLE-CONNECTION-PATHS: 

SSID                    BSSID              MODE   CHAN  FREQ      RATE       SIGNAL  BARS  SECURITY   ACTIVE  * 
persepolis              <MAC 'persepolis' [AC1]>  Infra  1     2412 MHz  54 Mbit/s  47      ▂▄__  WPA1 WPA2  yes     * 
dlink-2794              <MAC 'dlink-2794' [AC6]>  Infra  5     2432 MHz  54 Mbit/s  42      ▂▄__  WPA1 WPA2  no        
BELL434                 <MAC 'BELL434' [AC4]>  Infra  1     2412 MHz  54 Mbit/s  40      ▂▄__  WPA2       no        
persepolis-5G           <MAC 'persepolis-5G' [AC10]>  Infra  161   5805 MHz  54 Mbit/s  34      ▂▄__  WPA1 WPA2  no        
DIRECT-6b-Android_d891  <MAC 'DIRECT-6b-Android_d891' [AC2]>  Infra  1     2412 MHz  54 Mbit/s  29      ▂___  WPA2       no        
Linksys01671            <MAC 'Linksys01671' [AC8]>  Infra  11    2462 MHz  54 Mbit/s  25      ▂___  WPA1 WPA2  no        
dlink-2794-5GHz         <MAC 'dlink-2794-5GHz' [AC9]>  Infra  44    5220 MHz  54 Mbit/s  25      ▂___  WPA1 WPA2  no        
RSS-0E9C10              <MAC 'RSS-0E9C10' [AN8]>  Infra  1     2412 MHz  54 Mbit/s  20      ▂___  WPA1 WPA2  no        
home3                   <MAC 'home3' [AC5]>  Infra  1     2412 MHz  54 Mbit/s  15      ▂___  WPA2       no        
Slav                    <MAC 'Slav' [AN10]>  Infra  1     2412 MHz  54 Mbit/s  15      ▂___  WPA1 WPA2  no        
BELL073                 <MAC 'BELL073' [AN11]>  Infra  1     2412 MHz  54 Mbit/s  14      ▂___  WPA2       no        
NewThermostat_5A6BE1    <MAC 'NewThermostat_5A6BE1' [AC3]>  Infra  6     2437 MHz  54 Mbit/s  12      ▂___  --         no        
--                      <MAC '--' [AN13]>  Infra  149   5745 MHz  54 Mbit/s  12      ▂___  WPA1 WPA2  no        
BELL550                 <MAC 'BELL550' [AC7]>  Infra  6     2437 MHz  54 Mbit/s  5       ____  WPA2       no        

##### NetworkManager.state ##############

[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true

##### NetworkManager.conf ###############

[main]
plugins=ifupdown,keyfile,ofono
dns=dnsmasq

[ifupdown]
managed=false

##### NetworkManager profiles ###########

[[/etc/NetworkManager/system-connections/persepolis]] (600 root)
[connection] id=persepolis | type=wifi | permissions=
[wifi] mac-address=<MAC 'wlp4s0' [IF2]> | mac-address-blacklist= | ssid=persepolis
[ipv4] method=auto
[ipv6] method=ignore

##### Netplan config ####################

##### iw reg get ########################

Region: America/Toronto (based on set time zone)

country 00: DFS-UNSET
	(2402 - 2472 @ 40), (6, 20), (N/A)
	(2457 - 2482 @ 20), (6, 20), (N/A), PASSIVE-SCAN
	(2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN
	(5170 - 5250 @ 80), (6, 20), (N/A), PASSIVE-SCAN
	(5250 - 5330 @ 80), (6, 20), (0 ms), DFS, PASSIVE-SCAN
	(5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
	(5735 - 5835 @ 80), (6, 20), (N/A), PASSIVE-SCAN
	(57240 - 63720 @ 2160), (N/A, 0), (N/A)

##### iwlist channels ###################

lo        no frequency information.

enp0s25   no frequency information.

wlp4s0    32 channels in total; available frequencies :
          Channel 01 : 2.412 GHz
          Channel 02 : 2.417 GHz
          Channel 03 : 2.422 GHz
          Channel 04 : 2.427 GHz
          Channel 05 : 2.432 GHz
          Channel 06 : 2.437 GHz
          Channel 07 : 2.442 GHz
          Channel 08 : 2.447 GHz
          Channel 09 : 2.452 GHz
          Channel 10 : 2.457 GHz
          Channel 11 : 2.462 GHz
          Channel 12 : 2.467 GHz
          Channel 13 : 2.472 GHz
          Channel 36 : 5.18 GHz
          Channel 40 : 5.2 GHz
          Channel 44 : 5.22 GHz
          Channel 48 : 5.24 GHz
          Channel 52 : 5.26 GHz
          Channel 56 : 5.28 GHz
          Channel 60 : 5.3 GHz
          Channel 64 : 5.32 GHz
          Channel 100 : 5.5 GHz
          Channel 104 : 5.52 GHz
          Channel 108 : 5.54 GHz
          Channel 112 : 5.56 GHz
          Channel 116 : 5.58 GHz
          Channel 120 : 5.6 GHz
          Channel 124 : 5.62 GHz
          Channel 128 : 5.64 GHz
          Channel 132 : 5.66 GHz
          Channel 136 : 5.68 GHz
          Channel 140 : 5.7 GHz
          Current Frequency:2.412 GHz (Channel 1)

##### iwlist scan #######################

lo        Interface doesn't support scanning.

enp0s25   Interface doesn't support scanning.

Channel occupancy:

      4   APs on   Frequency:2.412 GHz (Channel 1)
      1   APs on   Frequency:2.432 GHz (Channel 5)
      2   APs on   Frequency:2.437 GHz (Channel 6)
      1   APs on   Frequency:2.462 GHz (Channel 11)
      1   APs on   Frequency:5.22 GHz (Channel 44)
      1   APs on   Frequency:5.805 GHz

wlp4s0    Scan completed :
          Cell 01 - Address: <MAC 'persepolis' [AC1]>
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=45/70  Signal level=-65 dBm  
                    Encryption key:on
                    ESSID:"persepolis"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s
                    Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=0000008cfc6ae623
                    Extra: Last beacon: 704ms ago
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
          Cell 02 - Address: <MAC 'DIRECT-6b-Android_d891' [AC2]>
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=49/70  Signal level=-61 dBm  
                    Encryption key:on
                    ESSID:"DIRECT-6b-Android_d891"
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
                              36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=00000037d495cd1a
                    Extra: Last beacon: 764ms ago
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
          Cell 03 - Address: <MAC 'NewThermostat_5A6BE1' [AC3]>
                    Channel:6
                    Frequency:2.437 GHz (Channel 6)
                    Quality=45/70  Signal level=-65 dBm  
                    Encryption key:off
                    ESSID:"NewThermostat_5A6BE1"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
                              11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=0000000000000000
                    Extra: Last beacon: 444ms ago
          Cell 04 - Address: <MAC 'BELL434' [AC4]>
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=30/70  Signal level=-80 dBm  
                    Encryption key:on
                    ESSID:"BELL434"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=0000000956bd484f
                    Extra: Last beacon: 700ms ago
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
          Cell 05 - Address: <MAC 'home3' [AC5]>
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=20/70  Signal level=-90 dBm  
                    Encryption key:on
                    ESSID:"home3"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=000000640e041853
                    Extra: Last beacon: 828ms ago
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
          Cell 06 - Address: <MAC 'dlink-2794' [AC6]>
                    Channel:5
                    Frequency:2.432 GHz (Channel 5)
                    Quality=40/70  Signal level=-70 dBm  
                    Encryption key:on
                    ESSID:"dlink-2794"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s
                    Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=0000008d01f3b8b5
                    Extra: Last beacon: 636ms ago
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : TKIP CCMP
                        Authentication Suites (1) : PSK
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : TKIP CCMP
                        Authentication Suites (1) : PSK
          Cell 07 - Address: <MAC 'BELL550' [AC7]>
                    Channel:6
                    Frequency:2.437 GHz (Channel 6)
                    Quality=15/70  Signal level=-95 dBm  
                    Encryption key:on
                    ESSID:"BELL550"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=0000008cff57d187
                    Extra: Last beacon: 492ms ago
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
          Cell 08 - Address: <MAC 'Linksys01671' [AC8]>
                    Channel:11
                    Frequency:2.462 GHz (Channel 11)
                    Quality=26/70  Signal level=-84 dBm  
                    Encryption key:on
                    ESSID:"Linksys01671"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=0000000842d58bfb
                    Extra: Last beacon: 256ms ago
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
          Cell 09 - Address: <MAC 'dlink-2794-5GHz' [AC9]>
                    Channel:44
                    Frequency:5.22 GHz (Channel 44)
                    Quality=27/70  Signal level=-83 dBm  
                    Encryption key:on
                    ESSID:"dlink-2794-5GHz"
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
                              36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=0000008d01e3db7f
                    Extra: Last beacon: 128ms ago
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : TKIP CCMP
                        Authentication Suites (1) : PSK
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : TKIP CCMP
                        Authentication Suites (1) : PSK
          Cell 10 - Address: <MAC 'persepolis-5G' [AC10]>
                    Channel:161
                    Frequency:5.805 GHz
                    Quality=31/70  Signal level=-79 dBm  
                    Encryption key:on
                    ESSID:"persepolis-5G"
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
                              36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=0000008cfcfc8210
                    Extra: Last beacon: 96ms ago
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK

##### module infos ######################

[iwlmvm]
filename:       /lib/modules/4.13.0-19-generic/kernel/drivers/net/wireless/intel/iwlwifi/mvm/iwlmvm.ko
license:        GPL
author:         Copyright(c) 2003- 2015 Intel Corporation <linuxwifi@intel.com>
description:    The new Intel(R) wireless AGN driver for Linux
srcversion:     EBD7611E6805E2BDE8304CC
depends:        iwlwifi,mac80211,cfg80211
intree:         Y
name:           iwlmvm
vermagic:       4.13.0-19-generic SMP mod_unload 
parm:           init_dbg:set to true to debug an ASSERT in INIT fw (default: false (bool)
parm:           power_scheme:power management scheme: 1-active, 2-balanced, 3-low power, default: 2 (int)
parm:           tfd_q_hang_detect:TFD queues hang detection (default: true (bool)

[mac80211]
filename:       /lib/modules/4.13.0-19-generic/kernel/net/mac80211/mac80211.ko
license:        GPL
description:    IEEE 802.11 subsystem
srcversion:     B8F500F2EE3AF9C7436BAEE
depends:        cfg80211
intree:         Y
name:           mac80211
vermagic:       4.13.0-19-generic SMP mod_unload 
parm:           minstrel_vht_only:Use only VHT rates when VHT is supported by sta. (bool)
parm:           max_nullfunc_tries:Maximum nullfunc tx tries before disconnecting (reason 4). (int)
parm:           max_probe_tries:Maximum probe tries before disconnecting (reason 4). (int)
parm:           beacon_loss_count:Number of beacon intervals before we decide beacon was lost. (int)
parm:           probe_wait_ms:Maximum time(ms) to wait for probe response before disconnecting (reason 4). (int)
parm:           ieee80211_default_rc_algo:Default rate control algorithm for mac80211 to use (charp)

[iwlwifi]
filename:       /lib/modules/4.13.0-19-generic/kernel/drivers/net/wireless/intel/iwlwifi/iwlwifi.ko
license:        GPL
author:         Copyright(c) 2003- 2015 Intel Corporation <linuxwifi@intel.com>
description:    Intel(R) Wireless WiFi driver for Linux
firmware:       iwlwifi-100-5.ucode
firmware:       iwlwifi-1000-5.ucode
firmware:       iwlwifi-135-6.ucode
firmware:       iwlwifi-105-6.ucode
firmware:       iwlwifi-2030-6.ucode
firmware:       iwlwifi-2000-6.ucode
firmware:       iwlwifi-5150-2.ucode
firmware:       iwlwifi-5000-5.ucode
firmware:       iwlwifi-6000g2b-6.ucode
firmware:       iwlwifi-6000g2a-6.ucode
firmware:       iwlwifi-6050-5.ucode
firmware:       iwlwifi-6000-6.ucode
firmware:       iwlwifi-7265D-29.ucode
firmware:       iwlwifi-7265-17.ucode
firmware:       iwlwifi-3168-29.ucode
firmware:       iwlwifi-3160-17.ucode
firmware:       iwlwifi-7260-17.ucode
firmware:       iwlwifi-8265-33.ucode
firmware:       iwlwifi-8000C-33.ucode
firmware:       iwlwifi-9260-th-b0-jf-b0--33.ucode
firmware:       iwlwifi-9260-th-a0-jf-a0--33.ucode
firmware:       iwlwifi-9000-pu-a0-jf-b0--33.ucode
firmware:       iwlwifi-9000-pu-a0-jf-a0--33.ucode
firmware:       iwlwifi-Qu-a0-jf-b0--33.ucode
firmware:       iwlwifi-Qu-a0-hr-a0--33.ucode
srcversion:     339D7D3BD0DD2A9C7FE616F
depends:        cfg80211
intree:         Y
name:           iwlwifi
vermagic:       4.13.0-19-generic SMP mod_unload 
parm:           swcrypto:using crypto in software (default 0 [hardware]) (int)
parm:           11n_disable:disable 11n functionality, bitmap: 1: full, 2: disable agg TX, 4: disable agg RX, 8 enable agg TX (uint)
parm:           amsdu_size:amsdu size 0: 12K for multi Rx queue devices, 4K for other devices 1:4K 2:8K 3:12K (default 0) (int)
parm:           fw_restart:restart firmware in case of error (default true) (bool)
parm:           antenna_coupling:specify antenna coupling in dB (default: 0 dB) (int)
parm:           nvm_file:NVM file name (charp)
parm:           d0i3_disable:disable d0i3 functionality (default: Y) (bool)
parm:           lar_disable:disable LAR functionality (default: N) (bool)
parm:           uapsd_disable:disable U-APSD functionality bitmap 1: BSS 2: P2P Client (default: 3) (uint)
parm:           bt_coex_active:enable wifi/bt co-exist (default: enable) (bool)
parm:           led_mode:0=system default, 1=On(RF On)/Off(RF Off), 2=blinking, 3=Off (default: 0) (int)
parm:           power_save:enable WiFi power management (default: disable) (bool)
parm:           power_level:default power save level (range from 1 - 5, default: 1) (int)
parm:           fw_monitor:firmware monitor - to debug FW (default: false - needs lots of memory) (bool)
parm:           d0i3_timeout:Timeout to D0i3 entry when idle (ms) (uint)
parm:           disable_11ac:Disable VHT capabilities (default: false) (bool)

[cfg80211]
filename:       /lib/modules/4.13.0-19-generic/kernel/net/wireless/cfg80211.ko
description:    wireless configuration support
license:        GPL
author:         Johannes Berg
srcversion:     A5EDD7467E172A70410EBCD
depends:        
intree:         Y
name:           cfg80211
vermagic:       4.13.0-19-generic SMP mod_unload 
parm:           bss_entries_limit:limit to number of scan BSS entries (per wiphy, default 1000) (int)
parm:           ieee80211_regdom:IEEE 802.11 regulatory domain code (charp)
parm:           cfg80211_disable_40mhz_24ghz:Disable 40MHz support in the 2.4GHz band (bool)

##### module parameters #################

[iwlmvm]
init_dbg: N
power_scheme: 2
tfd_q_hang_detect: Y

[mac80211]
beacon_loss_count: 7
ieee80211_default_rc_algo: minstrel_ht
max_nullfunc_tries: 2
max_probe_tries: 5
minstrel_vht_only: Y
probe_wait_ms: 500

[iwlwifi]
11n_disable: 0
amsdu_size: 0
antenna_coupling: 0
bt_coex_active: Y
d0i3_disable: Y
d0i3_timeout: 1000
disable_11ac: N
fw_monitor: N
fw_restart: Y
lar_disable: N
led_mode: 0
nvm_file: (null)
power_level: 0
power_save: N
swcrypto: 0
uapsd_disable: 3

[cfg80211]
bss_entries_limit: 1000
cfg80211_disable_40mhz_24ghz: N
ieee80211_regdom: 00

##### /etc/modules ######################

##### modprobe options ##################

[/etc/modprobe.d/blacklist-ath_pci.conf]
blacklist ath_pci

[/etc/modprobe.d/blacklist.conf]
blacklist evbug
blacklist usbmouse
blacklist usbkbd
blacklist eepro100
blacklist de4x5
blacklist eth1394
blacklist snd_intel8x0m
blacklist snd_aw2
blacklist i2c_i801
blacklist prism54
blacklist bcm43xx
blacklist garmin_gps
blacklist asus_acpi
blacklist snd_pcsp
blacklist pcspkr
blacklist amd76x_edac

[/etc/modprobe.d/blacklist-rare-network.conf]
alias net-pf-3 off
alias net-pf-6 off
alias net-pf-9 off
alias net-pf-11 off
alias net-pf-12 off
alias net-pf-19 off
alias net-pf-21 off
alias net-pf-36 off

[/etc/modprobe.d/intel-microcode-blacklist.conf]
blacklist microcode

[/etc/modprobe.d/iwlwifi.conf]
remove iwlwifi \
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
&& /sbin/modprobe -r mac80211

[/etc/modprobe.d/mlx4.conf]
softdep mlx4_core post: mlx4_en

##### rc.local ##########################

exit 0

##### pm-utils ##########################

##### udev rules ########################

##### dmesg #############################

[ 1469.632512] Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.8.10-fw-1.10.3.11.e.bseq
[ 1469.733112] e1000e: enp0s25 NIC Link is Down
[ 1469.734126] IPv6: ADDRCONF(NETDEV_UP): wlp4s0: link is not ready (repeated 2 times)
[ 1469.847373] IPv6: ADDRCONF(NETDEV_UP): enp0s25: link is not ready
[ 1469.945459] Bluetooth: hci0: Intel Bluetooth firmware patch completed and activated
[ 1470.033495] IPv6: ADDRCONF(NETDEV_UP): enp0s25: link is not ready
[ 1470.106457] IPv6: ADDRCONF(NETDEV_UP): wlp4s0: link is not ready
[ 1474.495895] wlp4s0: authenticate with <MAC 'persepolis' [AC1]>
[ 1474.501231] wlp4s0: send auth to <MAC 'persepolis' [AC1]> (try 1/3)
[ 1474.516424] wlp4s0: authenticated
[ 1474.521252] wlp4s0: associate with <MAC 'persepolis' [AC1]> (try 1/3)
[ 1474.530154] wlp4s0: RX AssocResp from <MAC 'persepolis' [AC1]> (capab=0x431 status=0 aid=1)
[ 1474.531497] wlp4s0: associated
[ 1474.531561] IPv6: ADDRCONF(NETDEV_CHANGE): wlp4s0: link becomes ready
[ 1494.350620] wlp4s0: deauthenticating from <MAC 'persepolis' [AC1]> by local choice (Reason: 3=DEAUTH_LEAVING)
[ 1494.358488] wlp4s0: failed to remove key (2, <MAC address>) from hardware (-22)
[ 1494.889840] IPv6: ADDRCONF(NETDEV_UP): wlp4s0: link is not ready
[ 1499.278542] wlp4s0: authenticate with <MAC 'persepolis' [AC1]>
[ 1499.284302] wlp4s0: send auth to <MAC 'persepolis' [AC1]> (try 1/3)
[ 1499.300838] wlp4s0: authenticated
[ 1499.304856] wlp4s0: associate with <MAC 'persepolis' [AC1]> (try 1/3)
[ 1499.311279] wlp4s0: RX AssocResp from <MAC 'persepolis' [AC1]> (capab=0x431 status=0 aid=1)
[ 1499.312920] wlp4s0: associated
[ 1499.312976] IPv6: ADDRCONF(NETDEV_CHANGE): wlp4s0: link becomes ready
[ 1534.178360] wlp4s0: deauthenticating from <MAC 'persepolis' [AC1]> by local choice (Reason: 3=DEAUTH_LEAVING)
[ 1534.186814] wlp4s0: failed to remove key (2, <MAC address>) from hardware (-22)
[ 1534.693878] IPv6: ADDRCONF(NETDEV_UP): wlp4s0: link is not ready
[ 1539.121090] wlp4s0: authenticate with <MAC 'persepolis' [AC1]>
[ 1539.126775] wlp4s0: send auth to <MAC 'persepolis' [AC1]> (try 1/3)
[ 1539.139682] wlp4s0: authenticated
[ 1539.140207] wlp4s0: associate with <MAC 'persepolis' [AC1]> (try 1/3)
[ 1539.151626] wlp4s0: RX AssocResp from <MAC 'persepolis' [AC1]> (capab=0x431 status=0 aid=1)
[ 1539.152935] wlp4s0: associated
[ 1539.152981] IPv6: ADDRCONF(NETDEV_CHANGE): wlp4s0: link becomes ready

########## wireless info END ############

Please help :pray:

EDIT: updated wireless-info output. Also, I should mention that I disabled power management using this as reference: section 2.1 of https://sites.google.com/site/easylinux ... eless-card
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.
lambro

Re: Thinkpad keeps disconnecting from wifi, but the wifi icon still shows connected

Post by lambro »

I downgraded my kernal to 4.4.0-103 from 4.10 and it significantly improved the reliability of the connection! However it is still not 'fixed' yet, I noticed some drop outs and very slow speeds later on. The thing is, my android phone is connected to the same network and it has none of these issues, so I don't think it is the network/wifi that is the problem.

Any idea what I should try next?
JeremyB
Level 21
Level 21
Posts: 13771
Joined: Fri Feb 21, 2014 8:17 am

Re: Thinkpad keeps disconnecting from wifi, but the wifi icon still shows connected

Post by JeremyB »

Follow instructions @https://ubuntuforums.org/showthread.php ... st13614520 change router to channel 9
lambro

Re: Thinkpad keeps disconnecting from wifi, but the wifi icon still shows connected

Post by lambro »

JeremyB wrote:Follow instructions @https://ubuntuforums.org/showthread.php ... st13614520 change router to channel 9
Thanks for the suggestion. I gave it a few days to see if it made any significant difference; my wifi connection is still rather dodgy. Regulatory domain doesn't persist on CA (Canada) for some reason, I followed the workaround here https://unix.stackexchange.com/question ... -no-effect but it still doesn't make a difference. Same with changing router channel, it was at 11 before, I set it to 9 - it actually felt it got worse, I changed it back to 11.

Still using kernel 4.4 with Mint 18.3 - this works better for my wifi than 4.10, which would constantly disconnect without any notification.

I'm guessing it has something to do with drivers, but I've never faced a problem like this before, and would really appreciate the expertise.
JeremyB
Level 21
Level 21
Posts: 13771
Joined: Fri Feb 21, 2014 8:17 am

Re: Thinkpad keeps disconnecting from wifi, but the wifi icon still shows connected

Post by JeremyB »

I would try

Code: Select all

echo "options iwlwifi 11n_disable=8" | sudo tee /etc/modprobe.d/iwlopts.conf
Reboot
lambro

Re: Thinkpad keeps disconnecting from wifi, but the wifi icon still shows connected

Post by lambro »

JeremyB wrote:I would try

Code: Select all

echo "options iwlwifi 11n_disable=8" | sudo tee /etc/modprobe.d/iwlopts.conf
Reboot
After a week of trying, I am not sure if it's better, there have been connection drops still. Just now, after turning on my laptop, I was unable to load webpages for about 2 minutes.
User avatar
greerd
Level 6
Level 6
Posts: 1060
Joined: Sat Jul 31, 2010 10:58 am
Location: Nova Scotia, Canada

Re: Thinkpad keeps disconnecting from wifi, but the wifi icon still shows connected

Post by greerd »

Hi lambro,

I noticed in your wireless script output that you're using SSID persepolis which is setup to use TKIP cipher. From what I've read, using this can cause problems on Linux, if you have router access you could try using AES only and see if that helps.

Cheers
lambro

Re: Thinkpad keeps disconnecting from wifi, but the wifi icon still shows connected

Post by lambro »

greerd wrote:Hi lambro,

I noticed in your wireless script output that you're using SSID persepolis which is setup to use TKIP cipher. From what I've read, using this can cause problems on Linux, if you have router access you could try using AES only and see if that helps.

Cheers
Ah I see, I looked for it in the output and I see it as well now. I got a new high powered router recently to see if router was the issue. It isn't, it's still being very finicky. I ran the script again and see that it's also using TKIP cipher. I have admin access but I don't see any options anywhere regarding disabling TKIP. Here's a screenshot of the routers wireless section:
Image
User avatar
greerd
Level 6
Level 6
Posts: 1060
Joined: Sat Jul 31, 2010 10:58 am
Location: Nova Scotia, Canada

Re: Thinkpad keeps disconnecting from wifi, but the wifi icon still shows connected

Post by greerd »

Can the Security mode be set to WPA2 - Personal Only? (I think that WPA uses TKIP and WPA2 uses AES)
lambro

Re: Thinkpad keeps disconnecting from wifi, but the wifi icon still shows connected

Post by lambro »

So I took some time to try a few things, one thing I thought for sure would help was getting rid of all other wifi signals and just running one router - that didn't help either.

Although I noticed one thing that is if the signal is VERY strong, as in I am right beside the router, the connection is truly stable - but this is just not practical.

When my friend was over to my place, I tested her macbook along with mine for internet speed, and she gets literally 8x faster speed than I do!!! I don't even know how that happens... for the first time in my life I was considering leaving linux.

On top of that my laptops monitor keeps freezing out of no where, really disappointed with all that's going on.
jmg

Re: Thinkpad keeps disconnecting from wifi, but the wifi icon still shows connected

Post by jmg »

After trying many things, what solved it for me was this:

linux - How to turn off Wireless power management permanently - Unix & Linux Stack Exchange
https://unix.stackexchange.com/a/315400/271267

Basically:

wifi.powersave = 2

in file:

/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

And reboot. This disables wifi powersave permanently, and my wifi connection is not dropping out anymore.
JeremyB
Level 21
Level 21
Posts: 13771
Joined: Fri Feb 21, 2014 8:17 am

Re: Thinkpad keeps disconnecting from wifi, but the wifi icon still shows connected

Post by JeremyB »

jmg wrote:After trying many things, what solved it for me was this:

linux - How to turn off Wireless power management permanently - Unix & Linux Stack Exchange
https://unix.stackexchange.com/a/315400/271267

Basically:

wifi.powersave = 2

in file:

/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

And reboot. This disables wifi powersave permanently, and my wifi connection is not dropping out anymore.
Or you can just use this command in terminal

Code: Select all

sudo sed -i 's/wifi.powersave = 3/wifi.powersave = 2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
Locked

Return to “Networking”