从睡眠状态唤醒后,以太网连接丢失并显示“未连接”

从睡眠状态唤醒后,以太网连接丢失并显示“未连接”

警告:我是新手。我在笔记本电脑上安装了 18.04(与 Windows 10 双启动)。我尝试使用以太网。启动时可以正常工作,但笔记本电脑睡眠并唤醒后,连接丢失,网络设置报告“未连接”,我尝试从终端重新启动网络管理器,但不起作用。(也尝试过关闭 WiFi)我还尝试编辑网络管理器,使 ifupdown managed = true,但这没什么区别。任何帮助都值得赞赏,但请不要假设知识太多!谢谢

以下是 lshw - C 网络的结果

*-network                 
   description: Ethernet interface
   product: RTL810xE PCI Express Fast Ethernet controller
   vendor: Realtek Semiconductor Co., Ltd.
   physical id: 0
   bus info: pci@0000:01:00.0
   logical name: enp1s0
   version: 05
   serial: b8:70:f4:d9:11:52
   capacity: 100Mbit/s
   width: 64 bits
   clock: 33MHz
   capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
   configuration: autonegotiation=on broadcast=yes driver=r8169 firmware=rtl_nic/rtl8105e-1.fw latency=0 link=no multicast=yes port=MII
   resources: iomemory:ffffffff0-fffffffef iomemory:ffffffff0-fffffffef irq:16 ioport:3000(size=256) memory:d0404000-d0404fff memory:d0400000-d0403fff
*-network
   description: Wireless interface
   product: AR9285 Wireless Network Adapter (PCI-Express)
   vendor: Qualcomm Atheros
   physical id: 0
   bus info: pci@0000:06:00.0
   logical name: wlp6s0
   version: 01
   serial: 00:26:5e:58:67:64
   width: 64 bits
   clock: 33MHz
   capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
   configuration: broadcast=yes driver=ath9k driverversion=5.3.0-46-generic firmware=N/A ip=192.168.1.106 latency=0 link=yes multicast=yes wireless=IEEE 802.11
   resources: irq:17 memory:d1500000-d150ffff

kim@kim-Satellite-C660:~$ lspci -nn

00:00.0 Host bridge [0600]: Intel Corporation Core Processor DRAM Controller [8086:0044] (rev 02)
00:02.0 VGA compatible controller [0300]: Intel Corporation Core Processor Integrated Graphics Controller [8086:0046] (rev 02)
00:16.0 Communication controller [0780]: Intel Corporation 5 Series/3400 Series Chipset HECI Controller [8086:3b64] (rev 06)
00:1a.0 USB controller [0c03]: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller [8086:3b3c] (rev 05)
00:1b.0 Audio device [0403]: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio [8086:3b56] (rev 05)
00:1c.0 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 [8086:3b42] (rev 05)
00:1c.1 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 [8086:3b44] (rev 05)
00:1d.0 USB controller [0c03]: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller [8086:3b34] (rev 05)
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev a5)
00:1f.0 ISA bridge [0601]: Intel Corporation HM55 Chipset LPC Interface Controller [8086:3b09] (rev 05)
00:1f.2 SATA controller [0106]: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA AHCI Controller [8086:3b29] (rev 05)
00:1f.3 SMBus [0c05]: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller [8086:3b30] (rev 05)
00:1f.6 Signal processing controller [1180]: Intel Corporation 5 Series/3400 Series Chipset Thermal Subsystem [8086:3b32] (rev 05)
01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller [10ec:8136] (rev ff)
06:00.0 Network controller [0280]: Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) [168c:002b] (rev 01)
ff:00.0 Host bridge [0600]: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers [8086:2c62] (rev 05)
ff:00.1 Host bridge [0600]: Intel Corporation Core Processor QuickPath Architecture System Address Decoder [8086:2d01] (rev 05)
ff:02.0 Host bridge [0600]: Intel Corporation Core Processor QPI Link 0 [8086:2d10] (rev 05)
ff:02.1 Host bridge [0600]: Intel Corporation 1st Generation Core i3/5/7 Processor QPI Physical 0 [8086:2d11] (rev 05)
ff:02.2 Host bridge [0600]: Intel Corporation 1st Generation Core i3/5/7 Processor Reserved [8086:2d12] (rev 05)
ff:02.3 Host bridge [0600]: Intel Corporation 1st Generation Core i3/5/7 Processor Reserved [8086:2d13] (rev 05)


lshw -C network with ethernet definitely not working below:


sudo lshw -C network
[sudo] password for kim: 
  *-generic                 
       description: Ethernet interface
       product: Illegal Vendor ID
       vendor: Illegal Vendor ID
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: enp1s0
       version: ff
       serial: b8:70:f4:d9:11:52
       capacity: 100Mbit/s
       width: 32 bits
       clock: 66MHz
       capabilities: bus_master vga_palette cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 firmware=rtl_nic/rtl8105e-1.fw latency=255 link=no maxlatency=255 mingnt=255 multicast=yes port=MII
       resources: irq:16 ioport:3000(size=256) memory:d0404000-d0404fff memory:d0400000-d0403fff
  *-network
       description: Wireless interface
       product: AR9285 Wireless Network Adapter (PCI-Express)
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:06:00.0
       logical name: wlp6s0
       version: 01
       serial: 00:26:5e:58:67:64
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=ath9k driverversion=5.3.0-46-generic firmware=N/A ip=192.168.1.106 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:17 memory:d1500000-d150ffff

答案1

您可能会遇到多个问题。

您的以太网适配器可能有硬件问题。如果这是台式计算机,我建议将卡重新插入其插槽中。

当我们第一次看到它时,sudo lshw -C network我们看到了这段片段......

*-network                 
   description: Ethernet interface
   product: RTL810xE PCI Express Fast Ethernet controller
   vendor: Realtek Semiconductor Co., Ltd.
   physical id: 0
   bus info: pci@0000:01:00.0
   logical name: enp1s0

但它也显示“link=no”,这表明电缆有问题。您应该使用 cat 5e 或 cat 6 电缆进行千兆位连接。您的计算机肯定比较旧,因为它的最大速度似乎只有 100Mbit/s。链接问题仍然是个问题。

当连接失败时,我们sudo lshw -C network再次查看,并得到了这个片段......

*-generic                 
   description: Ethernet interface
   product: Illegal Vendor ID
   vendor: Illegal Vendor ID
   physical id: 0
   bus info: pci@0000:01:00.0
   logical name: enp1s0

您看出这两个片段之间的区别了吗?

尽管我不能 100% 确定不同的驱动程序是否能够操作您的卡,但如果它不起作用,则可以轻松地逆转这些步骤。

在里面terminal...

sudo apt-get update

sudo apt-get install dkms r8168-dkms

reboot

如果以太网在重启后正常工作,您会注意到sudo lshw -C network驱动程序已从 r8169 更改为 r8168。

如果 r8168 驱动程序未激活,或者以太网根本不工作,您将必须...

sudo apt-get purge r8168-dkms

reboot

更新#1:

考虑将 BIOS 从 1.80 更新到 2.00。可以从以下网址下载https://ie.dynabook.com/support/businesslaptops/(只需使用您的序列号)。

更新 #2:

您的以太网卡或 PCI 总线存在硬件问题。

相关内容