![Ubuntu 14 可以检测到 wifi 但无法连接到互联网](https://linux22.com/image/979707/Ubuntu%2014%20%E5%8F%AF%E4%BB%A5%E6%A3%80%E6%B5%8B%E5%88%B0%20wifi%20%E4%BD%86%E6%97%A0%E6%B3%95%E8%BF%9E%E6%8E%A5%E5%88%B0%E4%BA%92%E8%81%94%E7%BD%91.png)
我刚刚安装了 ubuntu 14,但every now and then
无法连接到互联网,尽管它显示已连接到 wifi。有人知道如何解决这个问题吗?
具体来说,从“挂起”状态恢复后就不能正常工作了,只有重启系统后才能恢复工作。重新启动网络管理器是不起作用的。
[ 124.766933] rtl8723be 0000:02:00.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
[ 124.766935] rtl8723be 0000:02:00.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
[ 124.768786] wlan0: associate with 1c:af:f7:bf:7b:74 (try 1/3)
[ 124.770896] wlan0: RX AssocResp from 1c:af:f7:bf:7b:74 (capab=0x411 status=0 aid=6)
[ 124.771015] wlan0: associated
[ 124.771026] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 124.804933] wlan0: deauthenticating from 1c:af:f7:bf:7b:74 by local choice (reason=2)
[ 124.839042] cfg80211: Calling CRDA to update world regulatory domain
[ 124.839612] wlan0: authenticate with 1c:af:f7:bf:7b:74
[ 124.849728] wlan0: send auth to 1c:af:f7:bf:7b:74 (try 1/3)
[ 124.849825] cfg80211: World regulatory domain updated:
[ 124.849827] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 124.849829] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 124.849830] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 124.849831] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 124.849832] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 124.849833] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 124.855366] wlan0: authenticated
[ 124.855584] rtl8723be 0000:02:00.0 wlan0: disabling HT/VHT due to WEP/TKIP use
[ 124.855591] rtl8723be 0000:02:00.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
[ 124.855594] rtl8723be 0000:02:00.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
[ 124.856860] wlan0: associate with 1c:af:f7:bf:7b:74 (try 1/3)
[ 124.860693] wlan0: RX AssocResp from 1c:af:f7:bf:7b:74 (capab=0x411 status=0 aid=6)
[ 124.860852] wlan0: associated
答案1
您提到这种情况仅在从暂停状态恢复后才会发生,以下解决方案似乎有效:
sudo touch /etc/pm/sleep.d/wakenet.sh
sudo chmod +x /etc/pm/sleep.d/wakenet.sh
sudo gedit /etc/pm/sleep.d/wakenet.sh
插入以下行:
#!/bin/bash
case "$1" in
thaw|resume)
nmcli nm sleep false
pkill -f wpa_supplicant
;;
*)
;;
esac
exit $?