无线网卡进入睡眠状态

无线网卡进入睡眠状态

我最近在联想 W540 Thinkpad 上安装了 Ubuntu 16.04 LTS,我的无线网络无法进行网络通信。出现问题时的/var/log/syslog输出journalctl -xe如下。

Oct 15 18:41:34 phil-ubuntu whoopsie[2221]: [18:41:34] offline
Oct 15 18:41:34 phil-ubuntu whoopsie[2221]: [18:41:34] online
Oct 15 18:41:55 phil-ubuntu NetworkManager[1320]: <info>  [1508110915.3547] policy: set 'Home Internet Connection' (wlp3s0) as default for IPv6 routing and DNS
Oct 15 18:42:32 phil-ubuntu whoopsie[2221]: [18:42:32] Cannot reach: https://daisy.ubuntu.com
Oct 15 18:42:32 phil-ubuntu whoopsie[2221]: [18:42:32] offline
Oct 15 18:42:53 phil-ubuntu whoopsie[2221]: [18:42:53] Cannot reach: https://daisy.ubuntu.com
Oct 15 18:43:14 phil-ubuntu whoopsie[2221]: [18:43:14] Cannot reach: https://daisy.ubuntu.com
Oct 15 18:43:36 phil-ubuntu whoopsie[2221]: [18:43:36] Cannot reach: https://daisy.ubuntu.com
Oct 15 18:43:57 phil-ubuntu whoopsie[2221]: [18:43:57] Cannot reach: https://daisy.ubuntu.com
Oct 15 18:44:18 phil-ubuntu whoopsie[2221]: [18:44:18] Cannot reach: https://daisy.ubuntu.com
Oct 15 18:44:21 phil-ubuntu wpa_supplicant[1903]: wlp3s0: WPA: Group rekeying completed with c0:56:27:0a:28:10 [GTK=CCMP]
Oct 15 18:44:39 phil-ubuntu whoopsie[2221]: [18:44:39] Cannot reach: https://daisy.ubuntu.com
Oct 15 18:45:00 phil-ubuntu whoopsie[2221]: [18:45:00] Cannot reach: https://daisy.ubuntu.com
Oct 15 18:45:10 phil-ubuntu gnome-keyring-daemon[2792]: asked to register item /org/freedesktop/secrets/collection/login/7, but it's already registered
Oct 15 18:45:10 phil-ubuntu gnome-keyring-daemon[2792]: asked to register item /org/freedesktop/secrets/collection/login/9, but it's already registered
Oct 15 18:45:10 phil-ubuntu gnome-keyring-daemon[2792]: asked to register item /org/freedesktop/secrets/collection/login/7, but it's already registered
Oct 15 18:45:10 phil-ubuntu gnome-keyring-daemon[2792]: asked to register item /org/freedesktop/secrets/collection/login/9, but it's already registered
Oct 15 18:45:11 phil-ubuntu whoopsie[2221]: [18:45:11] online
Oct 15 18:46:40 phil-ubuntu kernel: thinkpad_acpi: EC reports that Thermal Table has changed
Oct 15 18:46:43 phil-ubuntu kernel: thinkpad_acpi: EC reports that Thermal Table has changed
Oct 15 18:47:48 phil-ubuntu gnome-keyring-daemon[2792]: asked to register item /org/freedesktop/secrets/collection/login/10, but it's already registered

出于某种原因,只要我持续 ping 到 Google 或 Bing 之类的东西,甚至是我的网络网关,就不会出现问题whoopsie,并且可以继续按预期使用我的设备。当我关闭 ping 时,网络连接会在大约 30 分钟后断开,情况会有很大变化。

我不确定还要搜索或显示什么信息,所以请告诉我,我会进行编辑。

答案1

根据参考:https://gist.github.com/okapies/de0d08f9e3c8bcb2b76a33b68f62a48c

这可能是内核问题:

尝试重新安装当前的 linux-header

我希望这能解决你的问题。

答案2

无线网卡进入睡眠状态

为了节省电量,许多 wifi 卡会进入睡眠状态以节省电量。在某些情况下,卡不会从睡眠状态唤醒:16.04 LTS wifi 连接问题

总结一下已接受的答案中的解决方案:

  1. 运行以下命令获取 PCI 无线网卡的详细信息sudo lshw -class network

  2. 根据产品线获取您的卡型号信息。例如,正如您在问题描述中看到的, product: RTL8723BE PCIe Wireless Network Adapter我的卡型号是RTL8723BE

    或产品:RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller 所以我的卡的型号是RTL8101/2/6E

  3. 给予许可sudo chmod 755 /etc/pm/config.d/

  4. 打开或创建config并添加SUSPEND_MODULES="rtl8723be"(替换rtl8723be为您自己的型号)

  5. 然后运行 echo "options rtl8723be fwlps=N" | sudo tee /etc/modprobe.d/rtl8723be.conf

  6. 最后重新启动系统。

相关内容