我在桌面上运行 Mint,遇到一个非常烦人的问题:wifi 在几分钟或几个小时后不断关闭,并且永远不会自动恢复。
要恢复网络,我必须手动运行:
sudo service network-manager restart
我连接了其他几个设备,没有任何问题。
我的网络控制器:
lspci | grep Network
02:00.0 Network controller: Qualcomm Atheros AR93xx Wireless Network Adapter (rev 01)
Linux:
uname -a
Linux nunux 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
日志 :
tail -f /var/log/syslog
<incoming wifi permanent shutdown, starting from these lines>
Jan 17 14:27:25 nunux wpa_supplicant[976]: message repeated 5 times: [ wlan0: CTRL-EVENT-SCAN-STARTED ]
Jan 17 14:27:50 nunux wpa_supplicant[976]: wlan0: CTRL-EVENT-DISCONNECTED bssid=16:ae:67:0d:aa:dc reason=4 locally_generated=1
Jan 17 14:27:31 nunux NetworkManager[27991]: message repeated 5 times: [ <warn> nl_recvmsgs() error: (-33) Dump inconsistency detected, interrupted]
Jan 17 14:27:50 nunux NetworkManager[27991]: <warn> Connection disconnected (reason -4)
Jan 17 14:27:50 nunux kernel: [702301.796637] cfg80211: Calling CRDA to update world regulatory domain
Jan 17 14:27:50 nunux NetworkManager[27991]: <info> (wlan0): supplicant interface state: completed -> disconnected
Jan 17 14:27:50 nunux kernel: [702301.802743] cfg80211: World regulatory domain updated:
Jan 17 14:27:50 nunux kernel: [702301.802745] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Jan 17 14:27:50 nunux kernel: [702301.802747] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Jan 17 14:27:50 nunux kernel: [702301.802749] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Jan 17 14:27:50 nunux kernel: [702301.802750] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Jan 17 14:27:50 nunux kernel: [702301.802751] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Jan 17 14:27:50 nunux kernel: [702301.802752] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Jan 17 14:27:50 nunux wpa_supplicant[976]: wlan0: CTRL-EVENT-SCAN-STARTED
Jan 17 14:27:50 nunux NetworkManager[27991]: <info> (wlan0): supplicant interface state: disconnected -> scanning
Jan 17 14:27:52 nunux wpa_supplicant[976]: wlan0: SME: Trying to authenticate with 16:ae:67:0d:aa:dc (SSID='freebox_cyrille' freq=2462 MHz)
Jan 17 14:27:52 nunux kernel: [702303.549641] wlan0: authenticate with 16:ae:67:0d:aa:dc
Jan 17 14:27:52 nunux NetworkManager[27991]: <info> (wlan0): supplicant interface state: scanning -> authenticating
Jan 17 14:27:52 nunux kernel: [702303.564745] wlan0: send auth to 16:ae:67:0d:aa:dc (try 1/3)
Jan 17 14:27:52 nunux kernel: [702303.690627] wlan0: send auth to 16:ae:67:0d:aa:dc (try 2/3)
Jan 17 14:27:52 nunux kernel: [702303.773740] wlan0: send auth to 16:ae:67:0d:aa:dc (try 3/3)
Jan 17 14:27:52 nunux kernel: [702303.892245] wlan0: authentication with 16:ae:67:0d:aa:dc timed out
Jan 17 14:27:52 nunux NetworkManager[27991]: <info> (wlan0): roamed from BSSID 16:AE:67:0D:AA:DC (freebox_cyrille) to (none) ((none))
Jan 17 14:27:52 nunux NetworkManager[27991]: <info> (wlan0): supplicant interface state: authenticating -> disconnected
Jan 17 14:27:53 nunux wpa_supplicant[976]: wlan0: CTRL-EVENT-SCAN-STARTED
Jan 17 14:27:53 nunux NetworkManager[27991]: <info> (wlan0): supplicant interface state: disconnected -> scanning
Jan 17 14:27:54 nunux wpa_supplicant[976]: wlan0: SME: Trying to authenticate with 16:ae:67:0d:aa:dc (SSID='freebox_cyrille' freq=2462 MHz)
Jan 17 14:27:54 nunux kernel: [702306.080545] wlan0: authenticate with 16:ae:67:0d:aa:dc
Jan 17 14:27:54 nunux NetworkManager[27991]: <info> (wlan0): supplicant interface state: scanning -> authenticating
Jan 17 14:27:54 nunux kernel: [702306.095800] wlan0: direct probe to 16:ae:67:0d:aa:dc (try 1/3)
Jan 17 14:27:55 nunux kernel: [702306.299217] wlan0: direct probe to 16:ae:67:0d:aa:dc (try 2/3)
Jan 17 14:27:55 nunux kernel: [702306.503176] wlan0: direct probe to 16:ae:67:0d:aa:dc (try 3/3)
Jan 17 14:27:55 nunux kernel: [702306.707096] wlan0: authentication with 16:ae:67:0d:aa:dc timed out
Jan 17 14:27:55 nunux NetworkManager[27991]: <info> (wlan0): supplicant interface state: authenticating -> disconnected
Jan 17 14:27:56 nunux wpa_supplicant[976]: wlan0: CTRL-EVENT-SCAN-STARTED
Jan 17 14:27:56 nunux NetworkManager[27991]: <info> (wlan0): supplicant interface state: disconnected -> scanning
Jan 17 14:27:58 nunux wpa_supplicant[976]: wlan0: SME: Trying to authenticate with 16:ae:67:0d:aa:dc (SSID='freebox_cyrille' freq=2462 MHz)
Jan 17 14:27:58 nunux kernel: [702309.395341] wlan0: authenticate with 16:ae:67:0d:aa:dc
Jan 17 14:27:58 nunux NetworkManager[27991]: <info> (wlan0): supplicant interface state: scanning -> authenticating
Jan 17 14:27:58 nunux kernel: [702309.410560] wlan0: direct probe to 16:ae:67:0d:aa:dc (try 1/3)
Jan 17 14:27:58 nunux kernel: [702309.614027] wlan0: direct probe to 16:ae:67:0d:aa:dc (try 2/3)
Jan 17 14:27:58 nunux kernel: [702309.817970] wlan0: direct probe to 16:ae:67:0d:aa:dc (try 3/3)
Jan 17 14:27:58 nunux kernel: [702310.021894] wlan0: authentication with 16:ae:67:0d:aa:dc timed out
Jan 17 14:27:58 nunux wpa_supplicant[976]: wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="freebox_cyrille" auth_failures=1 duration=10
Jan 17 14:27:58 nunux NetworkManager[27991]: <info> (wlan0): supplicant interface state: authenticating -> disconnected
Jan 17 14:28:03 nunux wpa_supplicant[976]: wlan0: CTRL-EVENT-SCAN-STARTED
Jan 17 14:28:03 nunux NetworkManager[27991]: <info> (wlan0): supplicant interface state: disconnected -> scanning
Jan 17 14:28:05 nunux NetworkManager[27991]: <warn> (wlan0): link timed out.
Jan 17 14:28:05 nunux NetworkManager[27991]: <info> (wlan0): device state change: activated -> failed (reason 'SSID not found') [100 120 53]
Jan 17 14:28:05 nunux NetworkManager[27991]: <info> NetworkManager state is now DISCONNECTED
Jan 17 14:28:05 nunux NetworkManager[27991]: <warn> Activation (wlan0) failed for connection 'Auto freebox_cyrille'
Jan 17 14:28:05 nunux dbus[586]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
Jan 17 14:28:05 nunux NetworkManager[27991]: <info> (wlan0): device state change: failed -> disconnected (reason 'none') [120 30 0]
Jan 17 14:28:05 nunux NetworkManager[27991]: <info> (wlan0): deactivating device (reason 'none') [0]
Jan 17 14:28:05 nunux dbus[586]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Jan 17 14:28:05 nunux NetworkManager[27991]: <info> (wlan0): canceled DHCP transaction, DHCP client pid 28011
Jan 17 14:28:05 nunux avahi-daemon[694]: Withdrawing address record for fe80::eade:27ff:fe08:a434 on wlan0.
Jan 17 14:28:05 nunux avahi-daemon[694]: Leaving mDNS multicast group on interface wlan0.IPv6 with address fe80::eade:27ff:fe08:a434.
Jan 17 14:28:05 nunux avahi-daemon[694]: Interface wlan0.IPv6 no longer relevant for mDNS.
Jan 17 14:28:05 nunux kernel: [702317.110822] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Jan 17 14:28:05 nunux avahi-daemon[694]: Withdrawing address record for 192.168.0.11 on wlan0.
Jan 17 14:28:05 nunux avahi-daemon[694]: Leaving mDNS multicast group on interface wlan0.IPv4 with address 192.168.0.11.
Jan 17 14:28:05 nunux avahi-daemon[694]: Interface wlan0.IPv4 no longer relevant for mDNS.
Jan 17 14:28:05 nunux NetworkManager[27991]: <warn> DNS: plugin dnsmasq update failed
Jan 17 14:28:05 nunux NetworkManager[27991]: <info> Removing DNS information from /sbin/resolvconf
Jan 17 14:28:05 nunux dnsmasq[28030]: setting upstream servers from DBus
Jan 17 14:28:05 nunux NetworkManager[27991]: <warn> Couldn't disconnect supplicant interface: This interface is not connected.
Jan 17 14:28:07 nunux NetworkManager[27991]: <info> (wlan0): supplicant interface state: scanning -> inactive
请告诉我你知道发生了什么事。这让我发疯了好几个月了。
编辑:我上周买了一台新笔记本电脑(也有 mint 17),现在我的新电脑上也出现了完全相同的问题。好吧,要么我很倒霉,要么mint(或者ubuntu)有严重的网络bug。
答案1
我之前在 Debian 上也遇到过类似的问题。我找到了一些方法来尝试修复它。第一个是禁用所有以太网连接,并确保没有启动脚本启动任何以太网连接。然后在启动时设置 WiFi 以自动连接到您的 WiFi 端点。您可以在启动脚本中尝试此操作:
service network-manager restart ifconfig eth0 down ifconfig wlan0 up
另一种选择是让 dchp 向盒子请求 IP。我发现确保了连接。udhcpc -i device_name
然而,这可能会导致一些奇怪的行为,例如静态路由不成立。我注意到有时我的盒子会更改 IP 地址,即使它位于静态路由上。
该问题也可能是您盒子中的 WiFi 模块与端点(路由器)之间的兼容性问题,或者端点上的安全性由于某种原因自动断开特定连接,即特定请求或行为可能会触发它。
答案2
我遇到了同样的问题。我能提供的最佳答复是获取以太网电缆并直接连接到接入点。然而,这只是一种解决方法。这可能是 Ubuntu 的一个错误,在将 Ubuntu 更新到最新的 14.04 后,这个问题似乎消失了。