从挂起/休眠状态恢复后,Debian 测试无法连接互联网

从挂起/休眠状态恢复后,Debian 测试无法连接互联网

我正在 Dell Inspiron 5567 和 Intel Wireless 3165(驱动程序 iwlwifi)上运行内核 4.14 的 Debian 测试。

我的网络管理器出现问题:从挂起/休眠状态恢复后,我可以连接到无线网络,但没有互联网。我可以通过蓝牙网络共享进行连接(这实际上就是我现在的连接方式);重新启动后一切正常。以下是可能相关的 dmesg 信息:

[  127.961205] PM: hibernation exit
[  128.093977] bluetooth hci0: firmware: direct-loading firmware intel/ibt-hw-37.8.10-fw-1.10.3.11.e.bseq
[  128.093982] Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.8.10-fw-1.10.3.11.e.bseq
[  128.236229] IPv6: ADDRCONF(NETDEV_UP): enp2s0: link is not ready
[  128.412174] Bluetooth: hci0: Intel Bluetooth firmware patch completed and activated
[  128.421404] r8169 0000:02:00.0 enp2s0: link down
[  128.421484] IPv6: ADDRCONF(NETDEV_UP): enp2s0: link is not ready
[  128.422207] IPv6: ADDRCONF(NETDEV_UP): wlp1s0: link is not ready
[  128.541945] IPv6: ADDRCONF(NETDEV_UP): wlp1s0: link is not ready
[  128.616265] IPv6: ADDRCONF(NETDEV_UP): wlp1s0: link is not ready
[  132.319776] wlp1s0: authenticate with f4:c6:13:22:a8:e0
[  132.324793] wlp1s0: send auth to f4:c6:13:22:a8:e0 (try 1/3)
[  132.330364] wlp1s0: authenticated
[  132.332430] wlp1s0: associate with f4:c6:13:22:a8:e0 (try 1/3)
[  132.340239] wlp1s0: RX AssocResp from f4:c6:13:22:a8:e0 (capab=0x411 status=0 aid=5)
[  132.357641] wlp1s0: associated
[  132.357695] IPv6: ADDRCONF(NETDEV_CHANGE): wlp1s0: link becomes ready
[  158.140921] wlp1s0: deauthenticating from f4:c6:13:22:a8:e0 by local choice (Reason: 3=DEAUTH_LEAVING)
[  158.150788] wlp1s0: failed to remove key (1, ff:ff:ff:ff:ff:ff) from hardware (-22)
[  158.158151] IPv6: ADDRCONF(NETDEV_UP): wlp1s0: link is not ready
[  158.174255] IPv6: ADDRCONF(NETDEV_UP): wlp1s0: link is not ready
[  160.106531] wlp1s0: authenticate with f4:c6:13:22:a8:e0
[  160.114505] wlp1s0: send auth to f4:c6:13:22:a8:e0 (try 1/3)
[  160.118406] wlp1s0: authenticated
[  160.120421] wlp1s0: associate with f4:c6:13:22:a8:e0 (try 1/3)
[  160.128040] wlp1s0: RX AssocResp from f4:c6:13:22:a8:e0 (capab=0x411 status=0 aid=5)
[  160.132544] wlp1s0: associated
[  160.132615] IPv6: ADDRCONF(NETDEV_CHANGE): wlp1s0: link becomes ready

我不禁注意到两行:

[  128.421404] r8169 0000:02:00.0 enp2s0: link down

[  158.150788] wlp1s0: failed to remove key (1, ff:ff:ff:ff:ff:ff) from hardware (-22)

我用谷歌搜索了它们,但没有出现任何与此相关的内容(显然,它们与经常断开wifi连接有关,这不是我的情况)。

我尝试了列出的解决方案这里但它们都不起作用;以机智:

  1. 通过 systemctl 重新启动网络管理器。

  2. 删除并加载 iwlmvm,然后通过 systemctl 重新启动 nm。

有任何想法吗?谢谢!

编辑:我忘了提到我尝试用 wicd 替换 nm,但删除了后者,因为蓝牙无法正常工作;但是我在某个时候清除了 nm,所以可能配置文件丢失了。

答案1

在内核 4.16.0-2-amd64 和 Realtek r8169 的 Debian stable 上也有同样的问题

r8169 0000:02:00.0 enp2s0: 链路断开

您可以尝试在挂起之前和之后删除并重新加载内核驱动程序。创建文件 /lib/systemd/系统睡眠/重置网络

#!/bin/sh
if [ "${1}" == "pre" ]; then
  # Do the thing you want before suspend here, e.g.:
  rmmod r8169
elif [ "${1}" == "post" ]; then
  # Do the thing you want after resume here, e.g.:
  modprobe r8169
fi

不要忘记使其可执行 chmod 755 /lib/systemd/系统睡眠/重置网络

在某些情况下,路径可能是 /user/lib/systemd/system-sleep/

您也可以添加其他模块!

相关内容