Ubuntu 20.04 充电时无互联网 - 双启动 Windows 11 无问题

Ubuntu 20.04 充电时无互联网 - 双启动 Windows 11 无问题

每当我插入充电器时,我就会断开互联网连接。我不会断开 wifi 连接,wifi 信号保持良好。当我插入充电器时,我无法通过它获取任何数据或只有很少的数据。

我在华硕 Zenbook 上安装了双启动的 Windows11 和 Ubuntu20.04 系统。Windows 端没有问题,所以不可能是硬件问题,对吧?

我在这个互联网连接上有大量其他设​​备,从来没有出现任何问题,所以我不认为这是路由器/调制解调器/ISP 的问题(Xfinity 与调制解调器/路由器组合)。

我可以插入以太网电缆,无论是否充电,都不会出现任何问题。

当我拔下充电器时,有时我必须重新启动网络管理器才能重新建立连接(sudo service network-manager restart)。其他时候,我可以直接拔下充电器并立即获取数据。

拔下充电器后,我可以正常 ping google.com:

➜  ~ ping google.com
PING google.com(ord30s31-in-x0e.1e100.net (2607:f8b0:4009:801::200e)) 56 data bytes
64 bytes from ord37s51-in-x0e.1e100.net (2607:f8b0:4009:801::200e): icmp_seq=1 ttl=56 time=12.1 ms
64 bytes from ord37s51-in-x0e.1e100.net (2607:f8b0:4009:801::200e): icmp_seq=2 ttl=56 time=14.9 ms
^C
--- google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 12.058/13.490/14.922/1.432 ms

当我重新插入充电器并尝试ping google.com充电时,它只是挂起,或者有时会有一些数据包通过,但速度非常慢。最终我开始看到,ping: sendmsg: No buffer space available或者有时ping: google.com: Temporary failure in name resolution

当我在拔下电源的情况下尝试 ping 我的 Xfinity 的 DNS 时,一切看起来都很好。

当我在充电时尝试 ping DNS 时:

➜  ~ ping 75.75.75.75
PING 75.75.75.75 (75.75.75.75) 56(84) bytes of data.
64 bytes from 75.75.75.75: icmp_seq=7 ttl=57 time=162 ms
64 bytes from 75.75.75.75: icmp_seq=8 ttl=57 time=15.9 ms
64 bytes from 75.75.75.75: icmp_seq=9 ttl=57 time=14.4 ms
^C
--- 75.75.75.75 ping statistics ---
9 packets transmitted, 3 received, 66.6667% packet loss, time 8133ms
rtt min/avg/max/mdev = 14.417/63.960/161.550/69.009 ms

这是我的 iwconfig:

➜  ~ iwconfig wlo1
wlo1      IEEE 802.11  ESSID:"VirusDownloader"  
          Mode:Managed  Frequency:5.22 GHz  Access Point: E4:BF:FA:8A:94:54   
          Bit Rate=866.7 Mb/s   Tx-Power=22 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          Link Quality=56/70  Signal level=-54 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:3  Invalid misc:186   Missed beacon:0

这是我的 /etc/resolv.conf

➜  ~ cat /etc/resolv.conf
# Generated by NetworkManager
search hsd1.il.comcast.net
nameserver 75.75.75.75
nameserver 75.75.76.76
nameserver 2001:558:feed::1
# NOTE: the libc resolver may not support more than 3 nameservers.
# The nameservers listed below may not be recognized.
nameserver 2001:558:feed::2

我尝试关闭 wlo1 连接的电源管理模式,但没有任何反应。

➜  ~ sudo vim /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
...
[connection]
wifi.powersave = 2
...
➜  ~ sudo service network-manager restart

我尝试在“/etc/resolv.conf”中手动更改我的 DNS,但没有帮助。

我已经尝试了 IPv4、IPv6、DHCP、自动 DHCP 的所有组合、手动设置 DNS 以及 Ubunutu 设置应用程序中的所有其他 wifi 连接设置,但没有任何帮助。

我已在 UEFI 设置中关闭快速启动和安全启动。

这就是真正奇怪的地方:当我连接到手机热点时,无论是否充电,都没有连接问题。此外,我之前用同一台机器使用过不同的互联网,从来没有遇到过任何问题。这就像是我的路由器/调制解调器和电源插入的组合?

任何帮助都将不胜感激。我完全被这个问题难住了。

编辑:我尝试了@Terrance 的建议,在我的路由器上分割 2.4 和 5Ghz 通道,但没有帮助。

编辑:我还注意到,当我插入充电线时,偶尔会出现一些奇怪的现象,它会发出噪音,但电池图标永远不会变为充电图标。这种情况是随机发生的,并非总是如此。似乎对互联网连接没有任何影响。

答案1

好吧,我想我已经搞清楚了。我注意到系统日志中显示,当机器插入电源时,网络适配器不断重新启动。仍然不确定原因。这是提醒我的日志,我每隔一分钟左右就会看到它:

Jul 12 12:07:14 Boris-IV kernel: [ 1173.066815] iwlwifi 0000:00:14.3: Queue 10 is active on fifo 1 and stuck for 10000 ms. SW [201, 101] HW [201, 101] FH TRB=0x0c010a0d8
Jul 12 12:07:14 Boris-IV kernel: [ 1173.066991] iwlwifi 0000:00:14.3: Microcode SW error detected. Restarting 0x0.
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067168] iwlwifi 0000:00:14.3: Start IWL Error Log Dump:
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067174] iwlwifi 0000:00:14.3: Status: 0x00000040, count: 6
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067182] iwlwifi 0000:00:14.3: Loaded firmware version: 46.4d093a30.0 9000-pu-b0-jf-b0-46.ucode
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067188] iwlwifi 0000:00:14.3: 0x00000084 | NMI_INTERRUPT_UNKNOWN       
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067195] iwlwifi 0000:00:14.3: 0x008026F4 | trm_hw_status0
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067201] iwlwifi 0000:00:14.3: 0x00000000 | trm_hw_status1
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067206] iwlwifi 0000:00:14.3: 0x00488876 | branchlink2
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067211] iwlwifi 0000:00:14.3: 0x00478E36 | interruptlink1
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067215] iwlwifi 0000:00:14.3: 0x00478E36 | interruptlink2
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067220] iwlwifi 0000:00:14.3: 0x0001B57A | data1
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067225] iwlwifi 0000:00:14.3: 0x01000000 | data2
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067229] iwlwifi 0000:00:14.3: 0xF0000008 | data3
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067234] iwlwifi 0000:00:14.3: 0x1940AD53 | beacon time
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067239] iwlwifi 0000:00:14.3: 0x03547477 | tsf low
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067243] iwlwifi 0000:00:14.3: 0x00000000 | tsf hi
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067248] iwlwifi 0000:00:14.3: 0x00000000 | time gp1
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067253] iwlwifi 0000:00:14.3: 0x009D6C95 | time gp2
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067257] iwlwifi 0000:00:14.3: 0x00000001 | uCode revision type
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067262] iwlwifi 0000:00:14.3: 0x0000002E | uCode version major
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067266] iwlwifi 0000:00:14.3: 0x4D093A30 | uCode version minor
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067271] iwlwifi 0000:00:14.3: 0x00000312 | hw version
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067275] iwlwifi 0000:00:14.3: 0x00C89008 | board version
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067280] iwlwifi 0000:00:14.3: 0x0AC9001C | hcmd
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067284] iwlwifi 0000:00:14.3: 0x80022002 | isr0
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067289] iwlwifi 0000:00:14.3: 0x00000000 | isr1
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067293] iwlwifi 0000:00:14.3: 0x08001802 | isr2
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067297] iwlwifi 0000:00:14.3: 0x0041F4CC | isr3
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067302] iwlwifi 0000:00:14.3: 0x00000000 | isr4
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067306] iwlwifi 0000:00:14.3: 0x0063019C | last cmd Id
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067310] iwlwifi 0000:00:14.3: 0x0001B57A | wait_event
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067315] iwlwifi 0000:00:14.3: 0x00000080 | l2p_control
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067319] iwlwifi 0000:00:14.3: 0x00002020 | l2p_duration
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067324] iwlwifi 0000:00:14.3: 0x0000003F | l2p_mhvalid
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067328] iwlwifi 0000:00:14.3: 0x00000080 | l2p_addr_match
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067333] iwlwifi 0000:00:14.3: 0x0000000D | lmpm_pmg_sel
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067337] iwlwifi 0000:00:14.3: 0x01102344 | timestamp
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067341] iwlwifi 0000:00:14.3: 0x0000C8BC | flow_handler
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067389] iwlwifi 0000:00:14.3: Start IWL Error Log Dump:
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067393] iwlwifi 0000:00:14.3: Status: 0x00000040, count: 7
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067398] iwlwifi 0000:00:14.3: 0x20000066 | NMI_INTERRUPT_HOST
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067404] iwlwifi 0000:00:14.3: 0x00000000 | umac branchlink1
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067408] iwlwifi 0000:00:14.3: 0xC0088BBE | umac branchlink2
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067413] iwlwifi 0000:00:14.3: 0xC0084458 | umac interruptlink1
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067417] iwlwifi 0000:00:14.3: 0xC0084458 | umac interruptlink2
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067422] iwlwifi 0000:00:14.3: 0x01000000 | umac data1
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067426] iwlwifi 0000:00:14.3: 0xC0084458 | umac data2
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067431] iwlwifi 0000:00:14.3: 0xDEADBEEF | umac data3
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067435] iwlwifi 0000:00:14.3: 0x0000002E | umac major
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067439] iwlwifi 0000:00:14.3: 0x4D093A30 | umac minor
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067444] iwlwifi 0000:00:14.3: 0x009D6C83 | frame pointer
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067448] iwlwifi 0000:00:14.3: 0xC088627C | stack pointer
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067452] iwlwifi 0000:00:14.3: 0x0063019C | last host cmd
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067457] iwlwifi 0000:00:14.3: 0x00000000 | isr status reg
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067486] iwlwifi 0000:00:14.3: IML/ROM dump:
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067490] iwlwifi 0000:00:14.3: 0x00000000 | IML/ROM error/state
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067518] iwlwifi 0000:00:14.3: 0x00000003 | IML/ROM data1
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067534] iwlwifi 0000:00:14.3: Fseq Registers:
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067544] iwlwifi 0000:00:14.3: 0x729BBA5F | FSEQ_ERROR_CODE
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067555] iwlwifi 0000:00:14.3: 0x00000000 | FSEQ_TOP_INIT_VERSION
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067566] iwlwifi 0000:00:14.3: 0xB89CECBB | FSEQ_CNVIO_INIT_VERSION
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067577] iwlwifi 0000:00:14.3: 0x0000A384 | FSEQ_OTP_VERSION
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067588] iwlwifi 0000:00:14.3: 0xE98F54AB | FSEQ_TOP_CONTENT_VERSION
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067599] iwlwifi 0000:00:14.3: 0x31EF7C0F | FSEQ_ALIVE_TOKEN
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067610] iwlwifi 0000:00:14.3: 0x004C48BB | FSEQ_CNVI_ID
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067621] iwlwifi 0000:00:14.3: 0xE5151FF2 | FSEQ_CNVR_ID
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067631] iwlwifi 0000:00:14.3: 0x01000100 | CNVI_AUX_MISC_CHIP
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067644] iwlwifi 0000:00:14.3: 0x01300202 | CNVR_AUX_MISC_CHIP
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067657] iwlwifi 0000:00:14.3: 0x0000485B | CNVR_SCU_SD_REGS_SD_REG_DIG_DCDC_VTRIM
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067701] iwlwifi 0000:00:14.3: 0xA5A5A5A2 | CNVR_SCU_SD_REGS_SD_REG_ACTIVE_VDIG_MIRROR
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067716] iwlwifi 0000:00:14.3: WRT: Collecting data: ini trigger 4 fired (delay=0ms).
Jul 12 12:07:14 Boris-IV kernel: [ 1173.067730] ieee80211 phy0: Hardware restart was requested

我看到我的机器正在使用来自 lshw 的 iwlwifi 驱动程序(最后一行):

sudo lshw -C  network   
  *-network                 
       description: Wireless interface
       product: Cannon Point-LP CNVi [Wireless-AC]
       vendor: Intel Corporation
       physical id: 14.3
       bus info: pci@0000:00:14.3
       logical name: wlo1
       version: 30
       serial: d0:c6:37:4d:66:f6
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=5.13.0-52-generic firmware=46.4d093a30.0 9000-pu-b0-jf-b0- ip=10.0.0.10 latency=0 link=yes multicast=yes wireless=IEEE 802.11

iwlwifi 的设置在 /etc/modprobe.d 中。因此我创建了一个新文件:

sudo vim /etc/modprobe.d/iwl-custom.conf

并添加了我发现的一些选项此主题

options iwlwifi 11n_disable=1 swcrypto=0 bt_coex_active=0 power_save=0
options iwlmvm power_scheme=1 
options iwlwifi d0i3_disable=1 
options iwlwifi uapsd_disable=1 
options iwlwifi lar_disable=1

保存它,重新启动我的机器,然后,电源接通了,我也可以上网了。

相关内容