![debian 8 丢失 wifi 连接(rtl8821ae wifi 驱动程序)](https://linux22.com/image/98139/debian%208%20%E4%B8%A2%E5%A4%B1%20wifi%20%E8%BF%9E%E6%8E%A5%EF%BC%88rtl8821ae%20wifi%20%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F%EF%BC%89.png)
前几天我刚刚安装了 Debian 8,一开始 wifi 掉线,并且无法在不重新启动的情况下重新连接。然而,在尝试了确保电源管理关闭等选项后,我什至无法在重新启动时连接到 WiFi。
以下帖子非常相似,我将它们作为起点,但由于错误而无法看到解决方案: rtl8821ae 无线网卡驱动
rtl8812ae Debian Jessie 中的 Wifi 连接不稳定
jj@hostname:~$ uname -v
#1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19)
jj@hostname:~$ lspci -vnn | grep Network
03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821AE 802.11ac PCIe Wireless Network Adapter [10ec:8821]
jj@hostname:~$ sudo iwconfig
lo no wireless extensions.
wlan0 IEEE 802.11abgn ESSID:"dd-wrt"
Mode:Managed Frequency:2.412 GHz Access Point: E8:DE:27:F9:85:9E
Bit Rate=1 Mb/s Tx-Power=20 dBm
Retry short limit:7 RTS thr=2347 B Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=70/70 Signal level=-12 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
eth0 no wireless extensions.
我按照说明添加“非自由”组件和 Realtek 固件,但无法安装 linux-headers-generic
Package linux-headers-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'linux-headers-generic' has no installation candidate
我确认司机:
~# modprobe rtl8821ae
不过,我安装了 build-essentials 和 linux-headers-3.16.0-4-amd64 。我安装了 wpa_supplicant,按照指示更新了 .conf 文件,但是:
~$sudo ifup wlan0
Unknown interface wlan0
~$ sudo /etc/init.d/networking restart
[ ok ] Restarting networking (via systemctl): networking.service.
~$ sudo dhclient wlan0
这只会让“wifi”说“正在连接”而从未连接过。
不知道还能做什么。直到昨天我在这台计算机上安装了不同的操作系统,并且没有任何连接问题,其他机器连接到 wifi 也没有任何问题,所以我不认为这是路由器或通道的问题。还:
root@hostname:/home/jj/# iwconfig wlan0 power off
Error for wireless request "Set Power Management"(8B2C) :
SET failed on device wlan0 ; Operation not supported.
万一:
~# journalctl -u NetworkManager
...
<warn> interfaces file /etc/network/interfaces.d/* doesn't exist
...
更新:我的 wifi 连接是通过连接到另一个 wifi 路由器的接入点 wifi 路由器实现的。我认为连接问题与那里的某些设置有关。我重置了 AP wifi 路由器并从头开始,现在可以连接了。我现在遇到的唯一问题是,如果我插入以太网连接,除非重新启动,否则拔出后它不会返回到 WiFi 连接。将寻找解决方案或发布另一个问题。
答案1
用于iw
关闭电源管理:
iw dev wlan0 set power_save off
要查询当前的省电设置,您可以使用:
iw dev wlan0 get power_save