我最近在我的台式计算机上安装了Debian10.6,发现我的以太网网络连接在从睡眠模式中唤醒计算机后出现了问题。具体来说,在从睡眠模式中唤醒计算机后,我没有以太网连接。重新启动计算机后,连接将被还原。我的Linux内核版本是4.19.0-11-AMD 64.有什么办法解决这个奇怪的问题吗?
按照A.B的建议,下面是lspci -k | grep -A3 Ethernet
的输出:
02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8071 PCI-E Gigabit Ethernet Controller (rev 16)
Subsystem: Acer Incorporated [ALI] 88E8071 PCI-E Gigabit Ethernet Controller
Kernel driver in use: sky2
Kernel modules: sky2
03:00.0 FireWire (IEEE 1394): JMicron Technology Corp. IEEE 1394 Host Controller
我不知道这是否有帮助,但我现在还添加了一些与运行dmesg
相关的代码:从睡眠中醒来后:
[ 7544.632643] ata3.00: configured for UDMA/133
[ 7544.935093] IPv6: ADDRCONF(NETDEV_UP): enp2s0: link is not ready
[ 7544.937339] sky2 0000:02:00.0 enp2s0: enabling interface
[ 7544.937528] IPv6: ADDRCONF(NETDEV_UP): enp2s0: link is not ready
[ 7547.437266] do_IRQ: 2.34 No irq handler for vector
重新启动后:
[ 19.698910] IPv6: ADDRCONF(NETDEV_UP): enp2s0: link is not ready
[ 19.701050] sky2 0000:02:00.0 enp2s0: enabling interface
[ 19.701183] IPv6: ADDRCONF(NETDEV_UP): enp2s0: link is not ready
[ 22.187327] sky2 0000:02:00.0 enp2s0: Link is up at 1000 Mbps, full duplex, flow control both
[ 22.187359] IPv6: ADDRCONF(NETDEV_CHANGE): enp2s0: link becomes ready
[ 53.492928] fuse init (API version 7.27)
[ 60.534172] rfkill: input handler disabled
发布于 2020-10-03 09:35:01
事实证明,在我的例子中,问题与dmesg
输出中的以下一行有关:
[ 7547.437266] do_IRQ: 2.34 No irq handler for vector
这个问题在askubuntu上的以下文章中得到了解决:https://askubuntu.com/questions/1029620/ubuntu-18-04-lts-sky2-ethernet-stops-working-after-system-resume-from-suspend#comment1956841_1094045。非常感谢用户A.B向我指出这篇文章!
我做了以下工作来解决这个问题:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash sky2.disable_msi=1"
添加到/etc/default/grub文件中update-grub
。注意:为了能够运行su - root
,我不得不做su
而不是D10
。https://unix.stackexchange.com/questions/612712
复制相似问题