您好,我对 Linux Mint 18.1 系统上的 wifi 感到恼火:
lspci
输出:
00:00.0 Host bridge: Intel Corporation Broadwell-U Host Bridge -OPI (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Broadwell-U Integrated Graphics (rev 09)
00:03.0 Audio device: Intel Corporation Broadwell-U Audio Controller (rev 09)
00:14.0 USB controller: Intel Corporation Wildcat Point-LP USB xHCI Controller (rev 03)
00:16.0 Communication controller: Intel Corporation Wildcat Point-LP MEI Controller #1 (rev 03)
00:1b.0 Audio device: Intel Corporation Wildcat Point-LP High Definition Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #1 (rev e3)
00:1c.2 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #3 (rev e3)
00:1c.3 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #4 (rev e3)
00:1c.4 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #5 (rev e3)
00:1d.0 USB controller: Intel Corporation Wildcat Point-LP USB EHCI Controller (rev 03)
00:1f.0 ISA bridge: Intel Corporation Wildcat Point-LP LPC Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation Wildcat Point-LP SATA Controller [AHCI Mode] (rev 03)
00:1f.3 SMBus: Intel Corporation Wildcat Point-LP SMBus Controller (rev 03)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
03:00.0 Network controller: Qualcomm Atheros Device 0042 (rev 30)
04:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 940M] (rev a2)
执行命令lspci -nn | grep Atheros is:
gh0st@gh0st-Aspire ~ $ lspci -nn | grep Atheros 03:00.0 Network controller [0280]: Qualcomm Atheros Device [168c:0042] (rev 30)
我已经遵循了我发现的一些帮助和提示,因此我执行了以下操作:
exec sudo -i
apt-get update
apt-get install build-essential linux-headers-$(uname -r) git
echo "options ath10k_core skip_otp=y" | tee /etc/modprobe.d/ath10k_core.conf
wget https://www.kernel.org/pub/linux/kernel/projects/backports/2015/11/20/backports-20151120.tar.gz
tar zxvf backports-20151120.tar.gz
cd backports-20151120
make defconfig-wifi
make
make install
git clone https://github.com/kvalo/ath10k-firmware.git
cp -r ath10k-firmware/QCA9377 /lib/firmware/ath10k/
cp /lib/firmware/ath10k/QCA9377/hw1.0/firmware-5.bin_WLAN.TF.1.0-00267-1 /lib/firmware/ath10k/QCA9377/hw1.0/firmware-5.bin
reboot
但问题仍然存在:
它在几分钟内工作得很好,然后在 10-20m 内停止工作。或者当我重新启动并断开连接并再次连接时,它会再次工作几分钟。
答案1
让我们卸载不必要的更改
cd backports-20151120
sudo make uninstall
cd /lib/firmware/ath10k/QCA9377/hw1.0
sudo mv firmware-5.bin firmware-5.bin.bak
sudo mv board.bin board.bin.bak
sudo mv board-2.bin board-2.bin.bak
然后我们将重新安装 linux-firmware 包,因为它可能比 github 上的文件新
sudo apt-get install --reinstall linux-firmware
这些设备在启用电源管理的情况下不能很好地工作,最近对网络管理器的更改默认启用电源管理,我们可以通过以下方式更改它:
sudo sed -i 's/wifi.powersave = 3/wifi.powersave = 2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
重启
您还应该检查iwlist scan | egrep -i 'ssid|cipher'
如果您的连接使用 TKIP 作为加密,则可能会导致问题,并且您需要在无线接入点上更改加密设置