0

This is the first time that I am using Ubuntu 14.04 alongside Windows 10 on my Lenovo Z51. And here is the first problem I am facing:

My Ethernet connection is not even recognized in Ubuntu. Plus, no option for WiFi is displayed anywhere. But both of them are connected in Windows. That means, I can't connect to internet in Ubuntu and have to restart my PC with Windows everytime I want to do so. I have tried installing wicd in Ubuntu but to no avail. Also, I removed /var/lib/NetworkManager/NetworkManager.state and restarted network-manager, which made no difference. I tried booting Kali Linux, Cyborg-Hawk and Ubuntu 16.04 from USB, and the problem persisted.

Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
Network controller [0280]: Qualcomm Atheros QCA6164 802.11ac
Wireless Network Adapter [168c:0041] (rev 20)
Subsystem: Lenovo Device [17aa:3545]

Following screenshots of my Ubuntu desktop will make you the picture more clear.

**OpenScreenshot1** **OpenScreenshot2**

I went to install backath10k-dkms_2.0_all.deb which gave me an error shown in the following screenshot:

**OpenScreenshot3**

Edit: Ubuntu connects to the network by using a USB Externel WiFi Adapter

Checked-out following:

lsmod | grep ath
dmesg | grep ath

**OpenScreenshot4**

Checking for ath10k_pci

**OpenScreenshot5**

Latest : sudo modprobe ath10k_pci && dmesg | grep ath

**OpenScreenshot6**

  • 3
    Related: This post has described similar issue for [168c:0041] (rev 20) WiFi device. But since your setup is a dual-boot system, it may be a known issue due to the setup. –  Apr 16 '16 at 18:01
  • @clearkimura I appreciate your concern, but I am a beginner in Ubuntu and unable to understand your post. Kindly guide me, in simpler terms, through the solution. – Chirag Mittal Apr 17 '16 at 07:33
  • In simpler terms, your networking devices are likely supported by Ubuntu. But Windows is having control over the networking devices and doesn't allow other system to use it. A simple workaround is to use a different hardware i.e. USB external Wi-Fi adapter instead. Software wise, there is no easy solution for this kind of issue. Other users may have better answer. –  Apr 17 '16 at 09:43
  • @clearkimura This is wrong. Windows can't "control" anything if you boot into Ubuntu. – Pilot6 Apr 17 '16 at 14:53
  • Chirag, is there a reason why you would want to go with a less descriptive title? We are here trying to get more attention to your question at the least and you are not helping us to help you. – jokerdino Apr 17 '16 at 16:43
  • 1
    I believe the needed driver ath10k_pci exists in kernel 4.2.0-xx. Check: lsmod | grep ath. If so, then the issue is firmware. Let's see what the message logs say: dmesg | grep ath Please edit your question to add the result. – chili555 Apr 18 '16 at 14:48
  • @chili555 I have uploaded the resulting messages. Thanks for the concern. – Chirag Mittal Apr 18 '16 at 16:40
  • Please confirm that you have ath10k_pci: modinfo ath10k_pci | grep 0041 It may produce no output at all. If so, we need to know. – chili555 Apr 18 '16 at 19:10
  • This is a known bug for the Qualcomm Atheros QCA6164 chipset. Check this out: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1436940 There is a known solution in that link. – willem.hill Apr 18 '16 at 19:37
  • @chili555 It did produce some output – Chirag Mittal Apr 20 '16 at 07:15
  • I asked for modinfo ath10k_pci | grep 0041 because 0041 is the pci.id of your device. You provided grep ath. In any event, I have learned that your kernel version 4.2.0-35 doesn't include 168c:0041 and will propose an appropriate solution. – chili555 Apr 20 '16 at 13:01
  • @chili555 Sorry for the mistake. modinfo ath10k_pci | grep 0041 did not produce any result. – Chirag Mittal Apr 20 '16 at 16:20
  • The non-working Ethernet adapter is probably a driver issue to. Please make a new question for it, run the network diagnostics and include a link to the result. – David Foerster Apr 20 '16 at 21:03
  • @DavidFoerster I followed the steps and here is the link: http://paste.ubuntu.com/15960787/ – Chirag Mittal Apr 21 '16 at 07:37
  • I repeat: please make a new question for the Ethernet issue. – David Foerster Apr 21 '16 at 11:56

2 Answers2

2

Your pci.id of 168c:0041 is not included in kernel version 4.2.0-xx. Let's install a newer kernel version:

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.4.8-wily/linux-headers-4.4.8-040408-generic_4.4.8-040408.201604200335_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.4.8-wily/linux-headers-4.4.8-040408_4.4.8-040408.201604200335_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.4.8-wily/linux-image-4.4.8-040408-generic_4.4.8-040408.201604200335_amd64.deb
sudo dpkg -i linux*.deb
sudo -i
echo "options ath10k_core skip_otp=y"  >  /etc/modprobe.d/ath10k_core.conf
exit

Reboot. If the correct firmware is installed, the wireless should now be working.

chili555
  • 60,188
  • I got the following error: root@chirag:~# dpkg -i linux.deb
    dpkg: error processing archive linux
    .deb (--install):
    cannot access archive: No such file or directory
    Errors were encountered while processing:
    linux*.deb
    – Chirag Mittal Apr 20 '16 at 16:16
  • Oops! I'm editing the answer now. Sorry for my mis-step. – chili555 Apr 20 '16 at 18:18
  • It worked ! Wireless is now working flawlessly. I have no words to appreciate your efforts. Kindly take a look at ethernet too. – Chirag Mittal Apr 20 '16 at 20:55
  • @chili555: Why not simply sudo apt-get linux-generic-lts-xenial instead of the first 4 lines? Otherwise good answer! +1 – David Foerster Apr 20 '16 at 21:00
  • @DavidFoerster Just another way of doing essentially the same thing. Thanks for the kind words. – chili555 Apr 20 '16 at 21:02
  • If my answer has been helpful, please accept it: http://askubuntu.com/tour Please ask a new question about your ethernet and I will be happy to help. – chili555 Apr 20 '16 at 21:04
  • @chili555: With an Apt based installation one would get automatic updates though as opposed to with the manual path suggested in your answer. – David Foerster Apr 20 '16 at 21:07
  • @chili555 please take a look on my question on the ethernet issue. – Chirag Mittal Apr 23 '16 at 06:05
  • @chili555 after when the wireless started to work, I somehow fixed the ethernet issue too after so much research on internet. But as soon as I updated using the command sudo apt-get update and restarted, the whole thing went back and again there is no wireless and ethernet. – Chirag Mittal Feb 04 '17 at 17:22
  • What does this tell us? sudo modprobe ath10k_pci && dmesg | grep ath? – chili555 Feb 04 '17 at 21:17
  • @chili555 I've pasted the screenshot as the last image in the question with a "Latest" tag. Please take a look. – Chirag Mittal Feb 05 '17 at 13:24
  • It shows a firmware crash. Please try updating it: http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.162_all.deb If you need explicit instructions, I suggest you start a new question and I'll be happy to help. – chili555 Feb 05 '17 at 17:05
0

I bought a Lenovo Z70 three weeks ago, and after installing Ubuntu 14.04, I was not able to use my WiFi. I was able to hard wire into the router, however.

Do I understand that you are not able to hard wire into the router?

I did a lot of research, and tried three different suggestions, and finally was able to get my wifi to work.

I followed the answer to this question. I'll spell out the instructions here, though, to hopefully make them simpler for someone new to Ubuntu (as I am).

A disclaimer: I don't understand everything that is happening under the hood. I only know that this fixed my problem.

  1. I did this to get the ath10k firmware (which I was apparently missing):

    sudo apt-get install git git clone https://github.com/sumdog/ath10k-firmware.git cd ath10k-firmware/ath10k sudo cp -r QCA6174/ /lib/firmware/ath10k

  2. To correct the permissions of the firmware file you downloaded:

    sudo chmod +x /lib/firmware/ath10k/QCA6174/hw2.1/*

  3. To unload and re-load the driver:

    sudo modprobe -r ath10k_pci && sudo modprobe ath10k_pci

  4. Apparently this is to incorporate a module parameter. I'm not sure what that means, but I did this, and my Wifi works now:

    sudo -i echo "options ath10k_core skip_otp=y" > /etc/modprobe.d/ath10k_core.conf exit

  5. Reboot your computer, and check.

I do have the other resources I collected when I was troubleshooting this. I believe this is a problem that our Lenovo Z-series have.

Let me know if this doesn't do anything for you, and I can look at some of the other resources I found.

  • I appreciate your effort, but my Ethernet cable is not recognized in Ubuntu, which leaves me with no internet connection there. – Chirag Mittal Apr 18 '16 at 06:04
  • I downloaded the ath10k firmware from github using windows and then followed all the steps as you directed, but there was no difference. – Chirag Mittal Apr 18 '16 at 07:38