如何防止Wifi掉线?


30

我有一个System76 Gazelle,gapz8,运行Ubuntu 14.04。我的wifi一直随机消失。我有一个新路由器,所以我不认为这是问题,但是我在公寓楼里,所以信号可能很拥挤。我的计算机仍将wifi注册为已连接,但停止发送和接收数据。我发现断开与wifi的连接并重新连接可以解决此问题,但几分钟之内可能会再次发生。有谁了解这个问题或如何解决?我很乐意提供更多信息,如果这可以澄清问题,请告诉我。

如以下要求,来自“无线脚本”的结果”

##########无线信息开始##########

报告自:2014年9月28日23:17 EDT -0400

上次启动时间:2014年9月28日20:28 EDT -0400

脚本从:2014年9月20日23:04 UTC +0000

##### 发布 ###########################

发行人ID:Ubuntu
说明:Ubuntu 14.04.1 LTS
发行:14.04
代号:trusty

##### 核心 ############################

Linux 3.13.0-36-generic#63-Ubuntu SMP Wed Sep 3 21:30:07 UTC 2014 x86_64 x86_64 x86_64 GNU / Linux

参数:ro,安静,启动,acpi_os_name = Linux,acpi_osi =,vt.handoff = 7

##### 桌面 ###########################

的Ubuntu

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

02:00.0网络控制器[0280]:英特尔公司迅驰Wireless-N 2230 [8086:0887](修订版c4)
    子系统:英特尔公司迅驰Wireless-N 2230 BGN [8086:4062]
    正在使用的内核驱动程序:iwlwifi

03:00.2以太网控制器[0200]:Realtek Semiconductor Co.,Ltd. RTL8111 / 8168/8411 PCI Express千兆以太网控制器[10ec:8168](版本0a)
    子系统:CLEVO / KAPOK计算机设备[1558:2706]
    使用的内核驱动程序:r8169

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

总线002设备003:ID 5986:0401 Acer,Inc 
总线002设备002:ID 8087:0024英特尔公司集成速率匹配中枢
总线002设备001:ID 1d6b:0002 Linux Foundation 2.0根集线器
总线001设备002:ID 8087:0024英特尔公司集成速率匹配中枢
总线001设备001:ID 1d6b:0002 Linux Foundation 2.0根集线器
总线004设备001:ID 1d6b:0003 Linux Foundation 3.0根集线器
总线003设备002:ID 045e:00e1 Microsoft Corp.无线激光鼠标6000接收器
总线003设备001:ID 1d6b:0002 Linux Foundation 2.0根集线器

##### PCMCIA卡信息##################

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

0:phy0:无线局域网
    软阻止:否
    硬阻止:否

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

iwldvm 232285 0 
mac80211 630653 1个iwldvm
iwlwifi 169932 1 iwldvm
cfg80211 484040 3 iwlwifi,mac80211,iwldvm
wmi 19177 0 

#####接口########################

自动搜索
iface lo inet回送

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

eth0 Link encap:以太网HWaddr   
          广播多播MTU:1500公制:1
          RX数据包:0错误:0丢弃:0超限:0帧:0
          TX数据包:0错误:0掉线:0超限:0运营商:0
          碰撞:0 txqueuelen:1000 
          RX字节:0(0.0 B)TX字节:0(0.0 B)

wlan0链接encap:以太网HWaddr   
          inet地址:192.168.1.5广播:192.168.1.255掩码:255.255.255.0
          inet6地址:fe80 :: 626c:66ff:fe30:1786/64范围:链接
          UP广播多播MTU:1500公制:1
          RX数据包:132928错误:0掉落:0超限:0帧:0
          TX数据包:81169错误:0掉落:0超限:0运营商:0
          碰撞:0 txqueuelen:1000 
          接收字节:167705002(167.7 MB)发送字节:10766737(10.7 MB)

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

eth0无无线扩展。

没有无线扩展。

wlan0 IEEE 802.11bgn ESSID:“路由器2:电动Boogaloo”  
          模式:管理频率:2.417 GHz接入点:    
          比特率= 65 Mb / s Tx功率= 16 dBm   
          重试长限:7 RTS thr:off片段thr:off
          电源管理:关闭
          链路质量= 63/70信号电平= -47 dBm  
          接收无效nwid:0接收无效crypt:0接收无效碎片:0
          Tx过多重试:0无效杂项:67丢失信标:0

#####路线#############################

内核IP路由表
目标网关Genmask标志度量标准引用使用Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
192.168.1.0 0.0.0.0 255.255.255.0 U 9 0 0 wlan0

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

域名服务器127.0.1.1

##### nm-tool ###########################

NetworkManager工具

状态:已连接(全局)

-设备:eth0 ---------------------------------------------- -------------------
  类型:有线
  司机:r8169
  状态:不可用
  默认值:否
  硬件地址:        

  能力:
    载波检测:是

  有线属性
    运营商:关闭

-设备:wlan0 [路由器2:电动Boogaloo] ---------------------------------
  类型:802.11 WiFi
  司机:iwlwifi
  状态:已连接
  默认值:是
  硬件地址:        

  能力:
    速度:115 Mb / s

  无线属性
    WEP加密:是
    WPA加密:是
    WPA2加密:是

  无线接入点(* =当前AP)
    露西(Lucille):Infra,,Freq 2427 MHz,速率54 Mb / s,强度75 WPA WPA2
    DG1670A82:红外,``频率2437 MHz,速率54 Mb / s,强度62 WPA2
    Mcchacko-2G:Infra,,Freq 2412 MHz,速率54 Mb / s,强度52 WPA2
    DIRECT-roku-900:Infra,,Freq 2437 MHz,速率54 Mb / s,强度50 WPA2
    B4R87:Infra,,Freq 2437 MHz,速率54 Mb / s,强度44 WPA2
    NETGEAR65:Infra,,Freq 2437 MHz,速率54 Mb / s,强度42 WPA2
    厚脸皮:Infra,,Freq 2462 MHz,速率54 Mb / s,强度27 WPA2
    DG1670A22:红外,``频率2412 MHz,速率54 Mb / s,强度25 WPA2
    *路由器2:电动Boogaloo:Infra,Freq 2417 MHz,速率54 Mb / s,强度77 WPA2
    Wellfords:Infra,,Freq 2412 MHz,速率54 Mb / s,强度57 WPA WPA2
    RubyWillow:红外,“频率2437 MHz”,速率54 Mb / s,强度40 WPA WPA2
    华夫大厦:红外,,频率2412 MHz,速率54 Mb / s,强度27 WPA WPA2
    Linksys e3200:红外,``频率2412 MHz,速率54 Mb / s,强度27 WPA WPA2
    RubyWillow-guest:Infra,,Freq 2437 MHz,速率54 Mb / s,强度45
    TG1672G12:红外,``频率2427 MHz,速率54 Mb / s,强度34 WPA2
    55B2Q:Infra,,Freq 2462 MHz,速率54 Mb / s,强度34 WPA2
    luna:Infra,,Freq 2437 MHz,速率54 Mb / s,强度30 WPA WPA2
    Linksys e3200-guest:Infra,,Freq 2412 MHz,速率54 Mb / s,强度27

  IPv4设置:
    地址:192.168.1.5
    前缀:24(255.255.255.0)
    网关:192.168.1.1

    DNS:192.168.1.1

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

[主要]
NetworkingEnabled = true
WirelessEnabled = true
WWANEnabled = true
WimaxEnabled = true

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

[主要]
plugins = ifupdown,keyfile,ofono
dns = dnsmasq

[ifupdown]
managed = false

##### NetworkManager配置文件###########

[[/ etc / NetworkManager / system-connections / Apple Network 5df1bd]](600根)
[连接] id = Apple Network 5df1bd | 类型= 802-11-无线
[802-11-wireless] ssid = Apple Network 5df1bd | mac-address =
[ipv4] method = auto
[ipv6] method = auto

[[/ etc / NetworkManager / system-connections / 200W102nd3E]](600根)
[连接] id = 200W102nd3E | 类型= 802-11-无线
[802-11-无线] ssid = 200W102nd3E | mac-address =
[ipv4] method = auto
[ipv6] method = auto

[[/ etc / NetworkManager / system-connections / NETGEAR49]](600根)
[连接] id = NETGEAR49 | 类型= 802-11-无线
[802-11-无线] ssid = NETGEAR49 | mac-address =
[ipv4] method = auto
[ipv6] method = auto

[[/ etc / NetworkManager / system-connections / NYU-ROAM3]](600根)
[连接] id = NYU-ROAM3 | 类型= 802-11-无线
[802-11-无线] ssid = NYU-ROAM3 | mac-address =
[ipv6] method = auto
[ipv4] method = auto

[[/ etc / NetworkManager / system-connections /路由器2:Electric Boogaloo]](600根)
[连接] id =路由器2:电动Boogaloo | 类型= 802-11-无线
[802-11-wireless] ssid =路由器2:电动Boogaloo | mac-address =
[ipv4] method = auto
[ipv6] method = auto

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

地区:美国/纽约(基于设置的时区)

国家00:
    (2402-2472 @ 40),(3,20)
    (2457-2482 @ 40),(3、20),被动扫描,无IBSS
    (2474-2494 @ 20),(3、20),NO-OFDM,PASSIVE-SCAN,NO-IBSS
    (5170-5250 @ 40),(3、20),被动扫描,无IBSS
    (5735--5835 @ 40),(3、20),被动扫描,无IBSS

##### iwlist频道###################

eth0没有频率信息。

没有频率信息。

wlan0共13个频道;可用频率:
          频道01:2.412 GHz
          频道02:2.417 GHz
          频道03:2.422 GHz
          频道04:2.427 GHz
          频道05:2.432 GHz
          频道06:2.437 GHz
          频道07:2.442 GHz
          频道08:2.447 GHz
          频道09:2.452 GHz
          频道10:2.457 GHz
          频道11:2.462 GHz
          频道12:2.467 GHz
          频道13:2.472 GHz
          当前频率:2.417 GHz(通道2)

##### iwlist扫描########################

频道占用率:

      2个AP的频率:2.412 GHz(通道1)
      1个AP的频率:2.417 GHz(通道2)
      1个AP的频率:2.427 GHz(通道4)
      7个AP的频率:2.437 GHz(通道6)
      1个AP的频率:2.457 GHz(信道10)
      1个AP的频率:2.462 GHz(通道11)

eth0接口不支持扫描。

lo接口不支持扫描。

wlan0扫描完成:
          单元格01-地址: 
                    频道2
                    频率:2.417 GHz(频道2)
                    质量= 60/70信号电平= -50 dBm  
                    加密密钥:开
                    ESSID:“路由器2:电动Boogaloo”
                    比特率:1 Mb / s;2 Mb / s;5.5 Mb /秒;11 Mb / s;6 Mb /秒
                              9 Mb / s;12 Mb / s;18 Mb /秒
                    比特率:24 Mb / s;36 Mb / s;48 Mb / s;54 Mb /秒
                    模式:大师
                    附加:tsf = 0000000226ee9d93
                    额外:最后一个信标:44毫秒前
                    IE:IEEE 802.11i / WPA2版本1
                        组密码:CCMP
                        成对密码(1):CCMP
                        认证套件(1):PSK
          单元格02-地址: 
                    通道数:1
                    频率:2.412 GHz(通道1)
                    质量= 44/70信号电平= -66 dBm  
                    加密密钥:开
                    ESSID:“ Mcchacko-2G”
                    比特率:1 Mb / s;2 Mb / s;5.5 Mb /秒;11 Mb / s;9 Mb /秒
                              18 Mb / s;36 Mb / s;54 Mb /秒
                    比特率:6 Mb / s;12 Mb / s;24 Mb / s;48 Mb /秒
                    模式:大师
                    额外:tsf = 00000051d26350a2
                    额外:最后一个信标:44毫秒前
                    IE:IEEE 802.11i / WPA2版本1
                        组密码:CCMP
                        成对密码(1):CCMP
                        认证套件(1):PSK
          单元格03-地址: 
                    通道数:1
                    频率:2.412 GHz(通道1)
                    质量= 48/70信号电平= -62 dBm  
                    加密密钥:开
                    ESSID:“ Wellfords”
                    比特率:1 Mb / s;2 Mb / s;5.5 Mb /秒;11 Mb / s;18 Mb /秒
                              24 Mb / s;36 Mb / s;54 Mb /秒
                    比特率:6 Mb / s;9 Mb / s;12 Mb / s;48 Mb /秒
                    模式:大师
                    额外:tsf = 00000000bfdb08ba
                    额外:最后一个信标:44毫秒前
                    IE:IEEE 802.11i / WPA2版本1
                        群组密码:TKIP
                        成对密码(2):CCMP TKIP
                        认证套件(1):PSK
                    IE:WPA版本1
                        群组密码:TKIP
                        成对密码(2):CCMP TKIP
                        认证套件(1):PSK
          单元格04-地址: 
                    频道:4
                    频率:2.427 GHz(频道4)
                    质量= 58/70信号电平= -52 dBm  
                    加密密钥:开
                    ESSID:“露西尔”
                    比特率:1 Mb / s;2 Mb / s;5.5 Mb /秒;11 Mb / s;6 Mb /秒
                              9 Mb / s;12 Mb / s;18 Mb /秒
                    比特率:24 Mb / s;36 Mb / s;48 Mb / s;54 Mb /秒
                    模式:大师
                    额外:tsf = 0000001d3ad33a1d
                    额外:最后一个信标:44毫秒前
                    IE:IEEE 802.11i / WPA2版本1
                        群组密码:TKIP
                        成对密码(2):CCMP TKIP
                        认证套件(1):PSK
                    IE:WPA版本1
                        群组密码:TKIP
                        成对密码(2):CCMP TKIP
                        认证套件(1):PSK
          单元格05-地址: 
                    频道6
                    频率:2.437 GHz(通道6)
                    质量= 44/70信号电平= -66 dBm  
                    加密密钥:开
                    ESSID:“ RubyWillow”
                    比特率:1 Mb / s;2 Mb / s;5.5 Mb /秒;11 Mb / s;18 Mb /秒
                              24 Mb / s;36 Mb / s;54 Mb /秒
                    比特率:6 Mb / s;9 Mb / s;12 Mb / s;48 Mb /秒
                    模式:大师
                    额外:tsf = 000000d59bbc1370
                    额外:最后一个信标:44毫秒前
                    IE:IEEE 802.11i / WPA2版本1
                        群组密码:TKIP
                        成对密码(2):CCMP TKIP
                        认证套件(1):PSK
                    IE:WPA版本1
                        群组密码:TKIP
                        成对密码(2):CCMP TKIP
                        认证套件(1):PSK
          单元格06-地址: 
                    频道6
                    频率:2.437 GHz(通道6)
                    质量= 50/70信号电平= -60 dBm  
                    加密密钥:开
                    ESSID:“ NETGEAR65”
                    比特率:1 Mb / s;2 Mb / s;5.5 Mb /秒;11 Mb / s;6 Mb /秒
                              9 Mb / s;12 Mb / s;18 Mb /秒
                    比特率:24 Mb / s;36 Mb / s;48 Mb / s;54 Mb /秒
                    模式:大师
                    额外:tsf = 000002fda7d406be
                    额外:最后一个信标:44毫秒前
                    IE:IEEE 802.11i / WPA2版本1
                        组密码:CCMP
                        成对密码(1):CCMP
                        认证套件(1):PSK
          单元格07-地址: 
                    频道6
                    频率:2.437 GHz(通道6)
                    质量= 32/70信号电平= -78 dBm  
                    加密密钥:开
                    ESSID:“ luna”
                    比特率:1 Mb / s;2 Mb / s;5.5 Mb /秒;11 Mb / s;6 Mb /秒
                              9 Mb / s;12 Mb / s;18 Mb /秒
                    比特率:24 Mb / s;36 Mb / s;48 Mb / s;54 Mb /秒
                    模式:大师
                    附加:tsf = 0000000007386e99
                    额外:最后一个信标:692ms之前
                    IE:IEEE 802.11i / WPA2版本1
                        群组密码:TKIP
                        成对密码(2):CCMP TKIP
                        认证套件(1):PSK
                    IE:WPA版本1
                        群组密码:TKIP
                        成对密码(2):CCMP TKIP
                        认证套件(1):PSK
          单元格08-地址: 
                    频道6
                    频率:2.437 GHz(通道6)
                    质量= 53/70信号电平= -57 dBm  
                    加密密钥:开
                    ESSID:“ DG1670A82”
                    比特率:1 Mb / s;2 Mb / s;5.5 Mb /秒;11 Mb / s;9 Mb /秒
                              18 Mb / s;36 Mb / s;54 Mb /秒
                    比特率:6 Mb / s;12 Mb / s;24 Mb / s;48 Mb /秒
                    模式:大师
                    额外:tsf = 000002913cbce2ae
                    额外:最后一个信标:44毫秒前
                    IE:IEEE 802.11i / WPA2版本1
                        组密码:CCMP
                        成对密码(1):CCMP
                        认证套件(1):PSK
          单元格09-地址: 
                    频道6
                    频率:2.437 GHz(通道6)
                    质量= 41/70信号电平= -69 dBm  
                    加密密钥:开
                    ESSID:“ DIRECT-roku-900”
                    比特率:6 Mb / s;9 Mb / s;12 Mb / s;18 Mb / s;24 Mb /秒
                              36 Mb / s;48 Mb / s;54 Mb /秒
                    模式:大师
                    额外:tsf = 000001bb4835fa76
                    额外:最后一个信标:44毫秒前
                    IE:IEEE 802.11i / WPA2版本1
                        组密码:CCMP
                        成对密码(1):CCMP
                        认证套件(1):PSK
          单元格10-地址: 
                    频道6
                    频率:2.437 GHz(通道6)
                    质量= 44/70信号电平= -66 dBm  
                    加密密钥:关闭
                    ESSID:“ RubyWillow-guest”
                    比特率:1 Mb / s;2 Mb / s;5.5 Mb /秒;11 Mb / s;18 Mb /秒
                              24 Mb / s;36 Mb / s;54 Mb /秒
                    比特率:6 Mb / s;9 Mb / s;12 Mb / s;48 Mb /秒
                    模式:大师
                    额外:tsf = 000000d59bbc2e70
                    额外:最后一个信标:44毫秒前
          单元格11-地址: 
                    频道6
                    频率:2.437 GHz(通道6)
                    质量= 36/70信号电平= -74 dBm  
                    加密密钥:开
                    ESSID:“ B4R87”
                    比特率:1 Mb / s;2 Mb / s;5.5 Mb /秒;11 Mb / s;6 Mb /秒
                              9 Mb / s;12 Mb / s;18 Mb /秒
                    比特率:24 Mb / s;36 Mb / s;48 Mb / s;54 Mb /秒
                    模式:大师
                    额外:tsf = 00000077da1f65f7
                    额外:最后一个信标:44毫秒前
                    IE:IEEE 802.11i / WPA2版本1
                        组密码:CCMP
                        成对密码(1):CCMP
                        认证套件(1):PSK
          单元格12-地址: 
                    频道:10
                    频率:2.457 GHz(频道10)
                    质量= 24/70信号电平= -86 dBm  
                    加密密钥:开
                    ESSID:“信任但验证2”
                    比特率:1 Mb / s;2 Mb / s;5.5 Mb /秒;11 Mb / s;6 Mb /秒
                              9 Mb / s;12 Mb / s;18 Mb /秒
                    比特率:24 Mb / s;36 Mb / s;48 Mb / s;54 Mb /秒
                    模式:大师
                    额外:tsf = 0000002b08ecdcda
                    额外:最后一个信标:480毫秒前
                    IE:IEEE 802.11i / WPA2版本1
                        组密码:CCMP
                        成对密码(1):CCMP
                        认证套件(1):PSK
          单元格13-地址: 
                    频道:11
                    频率:2.462 GHz(频道11)
                    质量= 30/70信号电平= -80 dBm  
                    加密密钥:开
                    ESSID:“厚脸皮”
                    比特率:1 Mb / s;2 Mb / s;5.5 Mb /秒;11 Mb / s;6 Mb /秒
                              9 Mb / s;12 Mb / s;18 Mb /秒
                    比特率:24 Mb / s;36 Mb / s;48 Mb / s;54 Mb /秒
                    模式:大师
                    额外:tsf = 000001c711ca046e
                    额外:最后一个信标:44毫秒前
                    IE:IEEE 802.11i / WPA2版本1
                        组密码:CCMP
                        成对密码(1):CCMP
                        认证套件(1):PSK

#####模块信息#######################

[iwldvm]
文件名:/lib/modules/3.13.0-36-generic/kernel/drivers/net/wireless/iwlwifi/dvm/iwldvm.ko
执照:GPL
作者:版权所有(c)2003-2013英特尔公司 
版本:树内:
描述:适用于Linux的英特尔(R)无线WiFi链接AGN驱动程序
srcversion:CC4D1BA11C1EF73A6ABDE53
取决于:iwlwifi,mac80211,cfg80211
入口:Y
vermagic:3.13.0-36通用SMP mod_unload modversions 
签名者:Magrathea:冰川签名密钥
sig_key:38:F3:B6:C6:3A:85:AF:FD:FB:BE:0E:53:33:9D:F8:E0:C6:B6:C9:D5
sig_hashalgo:sha512

[mac80211]
文件名:/lib/modules/3.13.0-36-generic/kernel/net/mac80211/mac80211.ko
执照:GPL
说明:IEEE 802.11子系统
srcversion:B822641624778B987844F6F
取决于:cfg80211
入口:Y
vermagic:3.13.0-36通用SMP mod_unload modversions 
签名者:Magrathea:冰川签名密钥
sig_key:38:F3:B6:C6:3A:85:AF:FD:FB:BE:0E:53:33:9D:F8:E0:C6:B6:C9:D5
sig_hashalgo:sha512
参数:max_nullfunc_tries:断开连接前尝试的最大nullfunc tx(原因4)。(int)
参数:max_probe_tries:在断开连接之前尝试最大探测次数(原因4)。(int)
参数:beacon_loss_count:我们确定丢失信标之前的信标间隔数。(int)
参数:probe_wait_ms:断开连接之前等待探针响应的最长时间(原因4)。(int)
参数:ieee80211_default_rc_algo:mac80211使用的默认速率控制算法(charp)

[iwlwifi]
文件名:/lib/modules/3.13.0-36-generic/kernel/drivers/net/wireless/iwlwifi/iwlwifi.ko
执照:GPL
作者:版权所有(c)2003-2013英特尔公司 
版本:树内:
描述:适用于Linux的Intel(R)无线WiFi驱动程序
固件:iwlwifi-100-5.ucode
固件:iwlwifi-1000-5.ucode
固件:iwlwifi-135-6.ucode
固件:iwlwifi-105-6.ucode
固件:iwlwifi-2030-6.ucode
固件:iwlwifi-2000-6.ucode
固件:iwlwifi-5150-2.ucode
固件:iwlwifi-5000-5.ucode
固件:iwlwifi-6000g2b-6.ucode
固件:iwlwifi-6000g2a-5.ucode
firmware:       iwlwifi-6050-5.ucode
firmware:       iwlwifi-6000-4.ucode
firmware:       iwlwifi-7265-7.ucode
firmware:       iwlwifi-3160-7.ucode
firmware:       iwlwifi-7260-7.ucode
srcversion:     C2D0F3DFCA289585C100E36
depends:        cfg80211
intree:         Y
vermagic:       3.13.0-36-generic SMP mod_unload modversions 
signer:         Magrathea: Glacier signing key
sig_key:        38:F3:B6:C6:3A:85:AF:FD:FB:BE:0E:53:33:9D:F8:E0:C6:B6:C9:D5
sig_hashalgo:   sha512
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_8K:enable 8K amsdu size (default 0) (int)
parm:           fw_restart:restart firmware in case of error (default true) (bool)
parm:           antenna_coupling:specify antenna coupling in dB (defualt: 0 dB) (int)
parm:           wd_disable:Disable stuck queue watchdog timer 0=system default, 1=disable, 2=enable (default: 0) (int)
parm:           nvm_file:NVM file name (charp)
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)

[cfg80211]
filename:       /lib/modules/3.13.0-36-generic/kernel/net/wireless/cfg80211.ko
description:    wireless configuration support
license:        GPL
author:         Johannes Berg
srcversion:     C2478077E22138832B71659
depends:        
intree:         Y
vermagic:       3.13.0-36-generic SMP mod_unload modversions 
signer:         Magrathea: Glacier signing key
sig_key:        38:F3:B6:C6:3A:85:AF:FD:FB:BE:0E:53:33:9D:F8:E0:C6:B6:C9:D5
sig_hashalgo:   sha512
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 #################

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

[iwlwifi]
11n_disable: 0
amsdu_size_8K: 0
antenna_coupling: 0
bt_coex_active: Y
fw_restart: Y
led_mode: 0
nvm_file: (null)
power_level: 0
power_save: N
swcrypto: 0
wd_disable: 1

[cfg80211]
cfg80211_disable_40mhz_24ghz: N
ieee80211_regdom: 00

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

lp
rtc

##### 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/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 ##########################

[/etc/pm/power.d/wireless] (755 root)
/sbin/iwconfig wlan0 power off

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

[/etc/udev/rules.d/70-persistent-net.rules]
# PCI device 0x10ec:0x8168 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x0887 (iwlwifi)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"

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

[ 6007.775779] iwlwifi 0000:02:00.0: RF_KILL bit toggled to enable radio.
[ 6011.128079] iwlwifi 0000:02:00.0: L1 Enabled; Disabling L0S
[ 6011.136901] iwlwifi 0000:02:00.0: Radio type=0x2-0x0-0x0
[ 6011.203681] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 6012.329356] wlan0: authenticate with 
[ 6012.334173] wlan0: send auth to  (try 1/3)
[ 6012.336306] wlan0: authenticated
[ 6012.336744] wlan0: associate with  (try 1/3)
[ 6012.341336] wlan0: RX AssocResp from  (capab=0x431 status=0 aid=3)
[ 6012.364839] wlan0: associated
[ 6012.364893] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 6012.384107] wlan0: deauthenticating from  by local choice (reason=2)
[ 6012.408121] wlan0: authenticate with 
[ 6012.412092] wlan0: send auth to  (try 1/3)
[ 6012.414214] wlan0: authenticated
[ 6012.416765] wlan0: associate with  (try 1/3)
[ 6012.421359] wlan0: RX AssocResp from  (capab=0x431 status=0 aid=3)
[ 6012.443977] wlan0: associated

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

This does sound like a network/router issue.
Kaz Wolfe

Have you looked at the log files in /var/log? Try grep NetworkManager /var/log/syslog*, and spend some time trying to understand the messages before reposting. Also, read the "Related" problems along the right side of this screen.
waltinator

1
Please run the script that is in the accepted answer in the link below so we may see the information needed to help diagnose the issue. <askubuntu.com/questions/425155/…>
Wild Man

@Whaaaaaat I've recently replaced both the router and the cable box. Anything beyond that belongs to Time Warner Cable. Even if it is TWC's fault, there must be something I can do to make my laptop more resilient to these interruptions, make it better at reconnecting. If I disconnect and reconnect, the wifi works again, so why can't my laptop do that itself?
bigcat42

1
I have this same symptom on a dual boot with windows 8 and finally upgraded to windows 10 and that system doesn't have any issues with the router. Neither does any other machine on the same wifi. Just when I'm in ubuntu.
Jason Kleban

Answers:


25

Run the following commands, one line at a time in the terminal (CTRL+ALT+T):

echo "options iwlwifi 11n_disable=1" | sudo tee /etc/modprobe.d/iwlwifi.conf
sudo modprobe -rfv iwldvm
sudo modprobe -rfv iwlwifi
sudo modprobe -v iwlwifi

What does this do? The 11n_disable option disables 802.11n features. Adding it to /etc/modprobe.d/iwlwifi.conf makes the change persist after reboots (because it will be part of the module config). The modprobe -rfv commands are removing the kernel modules iwldvm and iwlwifi, and finally the last line modprobe -v is adding iwlwifi back in.

To know what those kernel modules are/do, you can run modinfo <module name> | grep description, which will tell you the following:

iwlwifi is an Intel(R) Wireless WiFi driver for Linux (generic Intel drivers)

iwldvm is Intel(R) Wireless WiFi Link AGN driver for Linux (more specific drivers)


Other suggestions

Now, check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, You may have better luck with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz. I also have better luck with a fixed channel, either 1, 6 or 11, rather than automatic channel selection. After making these changes, you may need to reboot the router.


11
I would appreciate some references before I go blindly modifying system configurations.
ThorSummoner

7
@ThorSummoner you have a good point there. I've just edited the answer to explain what each line does
Enrico

1
my wifi only randomly drops out when connect using wpa2 enterprise, if I'm using wpa2 personal it's just fine, any suggestion?
Ahmad Muzakki

1
I got an error saying that iwlwifi.conf is in use. Although simply skipping the last three steps seemed to fix my problem anyway.
Abe Petrillo

How to undo the changes in the post?
mahmood

16

Change the wireless setting of IPv6. I tried it with my laptop, which has been continually dropping the connection, and so far, all day long, I have not had a single dropout! It seems to be working. In Ubuntu, in the top right, click on the wireless network icon that shows connectivity. In the dropdown menu, at the bottom, select "edit connections" and then highlight your wireless connection name. Choose edit, then select the IPv6 tab (to the right of the IPv4 tab) and change the setting from "automatic" to "ignore". Save and exit. Reboot your PC. That took care of my problem, and hopefully will yours, too.


1
This also worked for me with Ubuntu 16.04
David Bosschaert

1
Can someone explain to me why this works?
YellowPillow

5

Edit the wireless settings, set the IPv6 method to "ignore".

This may be a very simple solution to this problem. My 12.04 wireless connection dropped out every few minutes when connected over Comcast and sometimes also in hotels. This happened consistently on different Comcast wireless setups. On many other wireless setups, it was solid (in my workplace, at Starbucks, for example).

经过许多复杂的修复工作后,我终于迷失了上面的解决方案:没有辍学了。


通过cipricus编辑以添加图像(在KDE Plasma 5.8界面中):

enter image description here

enter image description here

enter image description here


1
在12.04中,单击右上方工具栏中的网络图标。选择“编辑连接”,然后转到无线。选择有问题的连接,然后向右按下“编辑”按钮。然后转到IPv6设置,然后在“方法”下选择“忽略”。点击保存。问题解决了。
Dana Yoerger

2
好多了!:-) 您现在可以编辑答案并放在此处而不是此处的评论,然后删除您的评论吗?(我的原始评论已删除) ;-)
Fabby 2015年

1
我在Linux Mint上没有“忽略选项”。是否可以在其他地方使用此选项?
卡尔·阿德勒

@abimelex,您可以尝试编辑/ etc / NetworkManager / system-connections /中的配置文件
pomsky

2
Ubuntu 17.10没有GUI“忽略”选项。它确实具有“禁用”选项;检查/etc/NetworkManager/system-connections/*我可以确认这可以转化为相同的method=ignore。不幸的是,这并没有为我解决问题。
josephwb

1

我在以下位置找到了一篇很好的文章:http : //itsfoss.com/speed-up-slow-wifi-connection-ubuntu/

我尝试了第1步到第4步,但最后还是第5步(安装WICD)对我有用。

我将在此处引用该部分,因为这是我在此处的先前答案中未曾看到的解决方案:

解决方案5:默认的网络管理器和WICD兼容性 “在某些情况下,无线连接缓慢或不一致也是由于Ubuntu自己的默认网络管理器引起的。我不确定是什么原因造成的,但是我已经在Ubuntu论坛中看到有人谈论此问题。问题,尤其是在Ubuntu 12.04中。您可以从Ubuntu软件中心或从终端安装Wicd,这是一个替代的更好的网络管理器。有关如何使用Wicd的详细信息,请阅读我用来查找无线网络SSID的其他文章。在Ubuntu中。

需要说明的是,安装WICD后,我的WIFI断开的频率降低了(大约每20分钟一次),但是最大的区别是我以前不得不先禁用WIFI,然后重新启用WIFI以重新建立互联网连接。现在有了WICD,它可以在几秒钟内自动(几乎透明地)重新连接。


0

您好如果您是双启动或使用PC,请首先确保您的以太网没有关闭连接以节省功率,这可能不是解决方案,但距离它又近了一步。有2个需要关闭。右键单击“属性” /“电源管理” /“取消允许计算机关闭此设备以节省电源”,然后单击“控制面板/设备管理器/网络适配器”,因为Windows95始终被默认选中,通常当它从崩溃中恢复时,它是再次打勾,需要将其关闭。希望能帮助到你


这是对基于Linux的问题的基于Windows的答案。
flith

-1

我快速又肮脏的骇客

我的wifi适配器(Realtek RTL8188CUS)只是对Ubuntu感到生气,没有真正的解决方案起作用,因此我每5秒ping我的路由器一次:

ping 192.168.0.1 -i 5

...并且连接保持不变。


这让我很感兴趣。我认为这可能会提示一些根本原因,因此在尝试其他方法之前先尝试了一下。但是,我想说的是结论性的/无助的:当我离开一个小时返回时,Ping已开始给予ping: sendmsg: Network is unreachable
鼠尾草

如果您的问题是硬件进入某种睡眠模式或低功耗状态(强制其保持活动状态),则此方法将起作用。如果硬件本身或驱动程序有问题,这将无济于事。这就像在有线连接上对路由器执行ping操作,并期望有人断开网络电缆的连接对路由器有帮助。我建议这是特定于RTL8188驱动程序的一些节能设置。
flith
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.