我最近买了一台 HP Pavilion 笔记本,并进行了 ubuntu 14.04 lts 的双启动,并注意到首次启动时没有 wifi 网络。我搜索了很多(真的)并做了很多事情(安装了 lwfinger 驱动程序、安装了 hanipouspilot/rtlwifi、在 /etc/modprobe.d/rtl8723be.conf 中设置了许多选项、覆盖了固件文件等),但每次启动 15-20 分钟后 wifi 仍然会掉线。
然后,我满怀希望地升级到 16.04 lts,但问题仍然存在。我尝试了同样的方法以及一些我以前没有见过的方法,但仍然无法让它工作。以下是连接断开时系统日志的一些相关行:
$ tail -f /var/log/syslog
Apr 27 23:56:11 shaka-home kernel: [ 1331.653296] rtlwifi:rtl_watchdog_wq_callback():<0-0> AP off, try to reconnect now
Apr 27 23:56:11 shaka-home kernel: [ 1331.653384] wlo1: Connection to AP xx:xx:xx::2e:35 lost
Apr 27 23:56:18 shaka-home wpa_supplicant[927]: wlo1: CTRL-EVENT-DISCONNECTED bssid=xx:xx:xx:xx:2e:35 reason=4 locally_generated=1<br/>
Apr 27 23:56:18 shaka-home NetworkManager[654]: <warn> [1461812178.2669] sup-iface[0xa7ae10,wlo1]: connection disconnected (reason -4)
Apr 27 23:56:18 shaka-home NetworkManager[654]: <info> [1461812178.2731] device (wlo1): supplicant interface state: completed -> disconnected
Apr 27 23:56:18 shaka-home wpa_supplicant[927]: wlo1: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
Apr 27 23:56:18 shaka-home kernel: [ 1338.919705] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
Apr 27 23:56:18 shaka-home kernel: [ 1338.919706] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
Apr 27 23:56:18 shaka-home kernel: [ 1338.919708] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
Apr 27 23:56:18 shaka-home kernel: [ 1338.919709] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
Apr 27 23:56:18 shaka-home kernel: [ 1338.919710] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
Apr 27 23:56:18 shaka-home kernel: [ 1338.919711] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
Apr 27 23:56:18 shaka-home kernel: [ 1338.919712] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
Apr 27 23:56:18 shaka-home kernel: [ 1338.919713] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
Apr 27 23:56:18 shaka-home kernel: [ 1338.919714] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
Apr 27 23:56:18 shaka-home kernel: [ 1338.932853] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)
Apr 27 23:56:23 shaka-home NetworkManager[654]: <info> [1461812183.1749] device (wlo1): supplicant interface state: disconnected -> scanning
Apr 27 23:56:29 shaka-home kernel: [ 1349.698560] rtl8723be:rtl8723be_hw_init():<0-0> Init MAC failed
Apr 27 23:56:33 shaka-home NetworkManager[654]: <warn> [1461812193.3567] device (wlo1): link timed out.
Apr 27 23:56:33 shaka-home NetworkManager[654]: <info> [1461812193.3568] device (wlo1): state change: activated -> failed (reason 'ssid-not-found') [100 120 53]
Apr 27 23:56:33 shaka-home NetworkManager[654]: <info> [1461812193.3577] manager: NetworkManager state is now CONNECTED_LOCAL
Apr 27 23:56:33 shaka-home NetworkManager[654]: <info> [1461812193.3582] manager: NetworkManager state is now DISCONNECTED
Apr 27 23:56:33 shaka-home NetworkManager[654]: <warn> [1461812193.4518] device (wlo1): Activation: failed for connection 'xxxxxxxxxxxxx'
Apr 27 23:56:33 shaka-home dbus[640]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'
Apr 27 23:56:33 shaka-home NetworkManager[654 <info> [1461812193.4576] device (wlo1): state change: failed -> disconnected (reason 'none') [120 30 0]
Apr 27 23:56:33 shaka-home kernel: [ 1354.100966] IPv6: ADDRCONF(NETDEV_UP): wlo1: link is not ready
Apr 27 23:56:33 shaka-home avahi-daemon[666]: Withdrawing address record for xxxx::xxxx:xxxx:xxxx:xxxx on wlo1.
Apr 27 23:56:33 shaka-home avahi-daemon[666]: Leaving mDNS multicast group on interface wlo1.IPv6 with address xxxx::xxxx:xxxx:xxxx:xxxx.<br/>
Apr 27 23:56:33 shaka-home avahi-daemon[666]: Interface wlo1.IPv6 no longer relevant for mDNS.
Apr 27 23:56:33 shaka-home systemd[1]: Starting Network Manager Script Dispatcher Service...
Apr 27 23:56:33 shaka-home NetworkManager[654]: <info> [1461812193.5081] dhcp4 (wlo1): canceled DHCP transaction, DHCP client pid 1430
Apr 27 23:56:33 shaka-home NetworkManager[654]: <info> [1461812193.5082] dhcp4 (wlo1): state changed bound -> done
Apr 27 23:56:33 shaka-home NetworkManager[654]: <info> [1461812193.5102] dns-mgr: Writing DNS information to /sbin/resolvconf
Apr 27 23:56:33 shaka-home dnsmasq[1666]: setting upstream servers from DBus
Apr 27 23:56:33 shaka-home avahi-daemon[666]: Withdrawing address record for 192.168.0.30 on wlo1.
Apr 27 23:56:33 shaka-home avahi-daemon[666]: Leaving mDNS multicast group on interface wlo1.IPv4 with address xxx.xxx.x.xx.
Apr 27 23:56:33 shaka-home avahi-daemon[666]: Interface wlo1.IPv4 no longer relevant for mDNS.
Apr 27 23:56:33 shaka-home dbus[640]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Apr 27 23:56:33 shaka-home systemd[1]: Started Network Manager Script Dispatcher Service.
Apr 27 23:56:33 shaka-home nm-dispatcher: req:1 'down' [wlo1]: new request (1 scripts)
Apr 27 23:56:33 shaka-home nm-dispatcher: req:1 'down' [wlo1]: start running ordered scripts...
Apr 27 23:56:33 shaka-home kernel: [ 1354.222325] rtl8723be:rtl8723be_hw_init():<0-0> Init MAC failed
Apr 27 23:56:35 shaka-home NetworkManager[654]: <info> [1461812195.4756] device (wlo1): supplicant interface state: scanning -> inactive
Apr 27 23:56:36 shaka-home kernel: [ 1357.045971] rtl8723be:rtl8723be_hw_init():<0-0> Init MAC failed
Apr 27 23:56:38 shaka-home whoopsie[686]: [23:56:38] Cannot reach: https://daisy.ubuntu.com
Apr 27 23:56:59 shaka-home kernel: [ 1380.059272] rtl8723be:rtl8723be_hw_init():<0-0> Init MAC failed
Apr 27 23:57:32 shaka-home kernel: [ 1413.056399] rtl8723be:rtl8723be_hw_init():<0-0> Init MAC failed
/etc/modprobe.d/rtl8723be.conf 内容:
$ cat /etc/modprobe.d/rtl8723be.conf
options rtl8723be ant_sel=2
options rtl8723be debug=1
options rtl8723be disable_watchdog=N
options rtl8723be fwlps=Y
options rtl8723be ips=Y
options rtl8723be msi=Y
options rtl8723be swenc=N
options rtl8723be swlps=N
有趣的是,连接断开后,我可以在 16.04 中看到其他网络,但看不到我的网络,这与 14.04 不同,在断开连接后,直到重新启动才有可用的网络。
抱歉发了这么长的帖子。希望你能帮助我解决这个烦人的问题。
诚挚问候
Max
编辑
我运行了网络诊断,以下是其结果的链接:
http://paste.ubuntu.com/16503095/
再次感谢!Max