转载地址:https://blog.csdn.net/sc_lilei/article/details/79545524?utm_source=blogxgwz4
装完系统后, $sudo apt-get upgrade
系统版本内核变为:
jxl@lenovo:~$ uname -a
Linux lenovo 4.4.0-138-generic #164~14.04.1-Ubuntu SMP Fri Oct 5 08:56:16 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
jxl@lenovo:~$ lspci |grep Network
03:00.0 Network controller: Qualcomm Atheros Device 0042 (rev 31)
插上网线后,可以上网;但是右上角的wifi 标志提示被硬件blocked;
sudo rfkill list all可以看到状态wlan的hard blocked为yes,注意没有网上说的3: phy00: ideapad_wlan: Wireless LANSoftblocked: noHardblocked: yes1: ideapad_bluetooth: BluetoothSoftblocked: yesHardblocked: yes2: hci0: BluetoothSoftblocked: yesHardblocked: no
试了很多帖子,都不行,最后按照这篇帖子 成功。
https://blog.csdn.net/sc_lilei/article/details/79545524?utm_source=blogxgwz4
1、检查无线网卡类型:lspci |grep Network ,返回Network controller:Qualcomm Atheros Device 0042(rev 31),由此确认是高通的网卡。(若是Broade....字样则是博通,此处暂不涉及。)
2、下载软件包1【backports-4.4.2-1.tar】软件包2【linux-firmware_1.169.3_all.deb】,可通过手机蓝牙共享网络给电脑临时联网,没有蓝牙就只能有线或再找一台电脑。接着打开终端运行以下命令
sudo apt-get install build-essential linux-headers-$(uname -r) gitecho "options ath10k_core skip_otp=y" | sudo tee /etc/modprobe.d/ath10k_core.conftar -zxvf backports-4.4.2-1.tar.gz (进入软件包所在目录操作)cd backport-4.4.2-1sudo make defconfig-wifisudo makesudo make installgit clone https://github.com/kvalo/ath10k-firmware.gitsudo cp -r ath10k-firmware/QCA9377 /lib/firmware/ath10k/sudo cp /lib/firmware/ath10k/QCA9377/hw1.0/WLAN.TF.1.0/firmware-5.bin_WLAN.TF.1.0-00002-QCATFSWPZ-5 /lib/firmware/ath10k/QCA9377/hw1.0/firmware-5.bin (先确认要复制的文件是存在的)sudo dpkg -i linux-firmware_1.169.3_all.deb (进入软件包所在目录操作)sudo reboot
发现还是不OK,然后:
$ rfkill list all0: ideapad_wlan: Wireless LANSoftblocked: noHardblocked: yes1: ideapad_bluetooth: BluetoothSoftblocked: yesHardblocked: yes2: hci0: BluetoothSoftblocked: yesHardblocked: no3: phy0: Wireless LANSoftblocked: noHardblocked: no
发现这时有了 phy0,
因为被联想的模块ideapad_laptop给硬件禁止了,卸载掉该模块之后,WiFi就正常了。sudo modprobe -r ideapad_laptop重启后,仍然有ideapad_laptop,因此需要把它加入到黑名单里即可。在/etc/modprobe.d/新建一个ideapad.conf,该文件内容如下:blacklist ideapad_laptop
再重启,发现右上角的wifi 图标可以正常显示了。
jxl@lenovo:~$ rfkill list all
0: hci0: BluetoothSoft blocked: noHard blocked: no
1: phy0: Wireless LANSoft blocked: noHard blocked: no
jxl@lenovo:~$
这时发现一个有意思的现象,之前装过一个wicd network manager, 发现在这个软件中还是检测不到wifi
安装wicd的命令:
https://www.howtoinstall.co/en/ubuntu/trusty/wicd-gtk(Ubuntu14.04)
Install wicd-gtk
Installing wicd-gtk package on Ubuntu 14.04 (Trusty Tahr) is as easy as running the following command on terminal:sudo apt-get update
sudo apt-get install wicd-gtk
https://www.howtoinstall.co/en/ubuntu/xenial/wicd(Ubuntu16.04)
Install wicd
Installing wicd package on Ubuntu 16.04 (Xenial Xerus) is as easy as running the following command on terminal:sudo apt-get update
sudo apt-get install wicd