一开始 wifi 根本无法使用(什么都没显示)。但按照一些指南操作后,我认为我通过禁用一些硬阻止设置解决了这个问题。
但是现在我可以使用 wifi 半分钟,然后断线几分钟,然后这个循环重复。当连接断开时,图标显示我仍处于连接状态,并且我仍然可以看到可用的网络。但尝试重新连接会失败。我进行了双启动,在 Windows 10 上 wifi 运行正常。
我尝试关闭 IPv6,但由于没有效果,我又重新启用了它。我还尝试了一些显然不适合我的卡的解决方案,所以我恢复了它。
信息:
网卡(运行 lshw -class 网络):
*-network
description: Wireless interface
product: RTL8821AE 802.11ac PCIe Wireless Network Adapter
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:03:00.0
logical name: wlp3s0
version: 00
serial: 60:14:b3:b4:f5:bb
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=rtl8821ae driverversion=4.10.0-42-generic firmware=N/A ip=192.168.38.108 latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:329 ioport:4000(size=256) memory:a4200000-a4203fff
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:04:00.0
logical name: enp4s0
version: 10
serial: 54:e1:ad:9b:4e:af
size: 1Gbit/s
capacity: 1Gbit/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 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168g-3_0.0.1 04/23/13 ip=192.168.38.110 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
resources: irq:321 ioport:3000(size=256) memory:a4104000-a4104fff memory:a4100000-a4103fff:3000(size=256) memory:a4104000-a4104fff memory:a4100000-a4103fff
没有软块或硬块
USB 无线网卡(lsusb):
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 04f2:b57e Chicony Electronics Co., Ltd
Bus 001 Device 002: ID 046d:c051 Logitech, Inc. G3 (MX518) Optical Mouse
Bus 001 Device 004: ID 0bda:0821 Realtek Semiconductor Corp.
Bus 001 Device 006: ID 04e8:6860 Samsung Electronics Co., Ltd Galaxy (MTP)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
PCI 无线网卡 (lscpi)
00:00.0 Host bridge: Intel Corporation Device 5910 (rev 05)
00:01.0 PCI bridge: Intel Corporation Sky Lake PCIe Controller (x16) (rev 05)
00:02.0 VGA compatible controller: Intel Corporation Device 591b (rev 04)
00:14.0 USB controller: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller (rev 31)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-H Thermal subsystem (rev 31)
00:16.0 Communication controller: Intel Corporation Sunrise Point-H CSME HECI #1 (rev 31)
00:17.0 SATA controller: Intel Corporation Sunrise Point-H SATA Controller [AHCI mode] (rev 31)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #2 (rev f1)
00:1c.2 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #3 (rev f1)
00:1c.3 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #4 (rev f1)
00:1d.0 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #9 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-H LPC Controller (rev 31)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-H PMC (rev 31)
00:1f.3 Audio device: Intel Corporation Device a171 (rev 31)
00:1f.4 SMBus: Intel Corporation Sunrise Point-H SMBus (rev 31)
01:00.0 3D controller: NVIDIA Corporation Device 1c8d (rev a1)
02:00.0 SD Host controller: O2 Micro, Inc. Device 8621 (rev 01)
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821AE 802.11ac PCIe Wireless Network Adapter
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10)
05:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd Device a804
答案1
我遇到了同样的问题,后来我才知道这与打开的无线网卡有关Power Management
。每次 Wifi(我的设备连接的)信号功率下降时,设备就会断开与网络的连接。
因此,要关闭电源管理,首先检查的输出iwconfig command
。
$ iwconfig
enp7s0 no wireless extensions.
lo no wireless extensions.
wlp6s0 IEEE 802.11abgn ESSID:"Avni.LoveLace"
Mode:Managed Frequency:2.442 GHz Access Point: C8:D7:79:A1:CE:E4
Bit Rate=72.2 Mb/s Tx-Power=22 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
Link Quality=61/70 Signal level=-49 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:722 Missed beacon:0
看看Power Management:on
,然后输入以下代码将其关闭
$ iwconfig wlp6s0 power off
wlp6s0
无线接口在哪里。
有时有效,有时无效。如果这对您没有帮助,则需要更改电源管理的网络配置。
编辑
powersave
值/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
powersave 的可能值为:
NM_SETTING_WIRELESS_POWERSAVE_DEFAULT (0): use the default value NM_SETTING_WIRELESS_POWERSAVE_IGNORE (1): don't touch existing setting NM_SETTING_WIRELESS_POWERSAVE_DISABLE (2): disable powersave NM_SETTING_WIRELESS_POWERSAVE_ENABLE (3): enable powersave
打开文件并将省电值从 编辑为
2
。这将禁用省电。默认情况下wifi.powersave = 3
只需将其更改为值 2。
wifi.powersave = 2
保存并重新启动系统,您就完成了!
为无线电源管理创建黑名单文件
很好地解释了@sagarchalise 关于该主题的回答
如果无线电源管理出了问题,我认为这些方法之一应该对你有用。如果没有,那么请随意编辑以添加更多内容。