Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: D-Link DWA-171 AC600 wifi dongle not detected at all in Ubuntu 20.04

  1. #1
    Join Date
    Sep 2018
    Beans
    15

    D-Link DWA-171 AC600 wifi dongle not detected at all in Ubuntu 20.04

    Hello,
    I am trying to get D-Link DWA-171 AC600 wifi dongle to work in Ubuntu 20.04. The dongle works fine when I dual-boot into windows. So the issue has to be related to drivers.

    I tried many options: like here : https://github.com/whitebatman2/rtl8821CU

    and here: https://github.com/abperiasamy/rtl8812AU_8821AU_linux

    But the dongle simple does not get detected by the OS.

    Here is the result of lsusb:
    Code:
    Bus 001 Device 007: ID 0bda:c811 Realtek Semiconductor Corp. 802.11ac NIC
    Here is the result of lsmod | grep rtl
    Code:
    rtl8812au    1347584  0
    cfg80211     704512   2  rtl8812au,8821cu
    Note that before I installed the drivers from the above mentioned two github links,
    Code:
    lsmod | grep rtl
    returned blank.

    Any help is appreciated.
    Thanks,
    Surya
    Last edited by surya.durgaputra; May 17th, 2021 at 10:08 PM.

  2. #2
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    25,630
    Distro
    Ubuntu Development Release

    Re: D-Link DWA-171 AC600 wifi dongle not detected at all in Ubuntu 20.04

    Please run and post:

    Code:
    sudo dkms status
    modinfo rtl8812au | grep C811
    modinfo 8821cu | grep C811
    Thanks.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D., Sc.D.

  3. #3
    Join Date
    Sep 2018
    Beans
    15

    Re: D-Link DWA-171 AC600 wifi dongle not detected at all in Ubuntu 20.04

    Hello chili555,
    Many thanks for replying.

    Here is what I get when I ran the commands:

    Code:
    helios@helios:~
    (i)$ sudo dkms status
    [sudo] password for helios: 
    rtl8192eu, 1.0, 5.4.0-72-generic, x86_64: installed
    rtl8192eu, 1.0, 5.4.0-73-generic, x86_64: installed
    rtl8812au, 4.3.14, 5.4.0-73-generic, x86_64: installed (WARNING! Diff between built and installed module!)
    rtl8821CU, 5.2.5.3, 5.4.0-73-generic, x86_64: built
    rtl8821CU, 5.4.1, 5.4.0-73-generic, x86_64: installed (WARNING! Diff between built and installed module!)
    Code:
    helios@helios:~
    (i)$ modinfo rtl8812au | grep C811
    i.e. the above command returned blank

    Code:
    helios@helios:~
    (i)$ modinfo 8821cu | grep C811
    alias:          usb:v0BDApC811d*dc*dsc*dp*icFFiscFFipFFin*

    Best Regards,
    Surya

  4. #4
    Join Date
    Feb 2020
    Beans
    103

    Re: D-Link DWA-171 AC600 wifi dongle not detected at all in Ubuntu 20.04

    Surya,

    Not meaning to step on chili555's toes because he know his stuff but please allow me to put my 2 cents into the mix.

    sudo is a weapon of mass destruction. I say this with respect so please don't take it the wrong way. Please don't just start installing out-of-kernel drivers until you find one that works. There are several experts here that can put you on a driver that will work. Ask before, not after.

    Before I give you hints about how to clean up the mess, here is a link with information about wifi adapters that "just work" and do not require you to hunt down, compile, pray and seek help:

    https://github.com/morrownr/USB-WiFi

    Okay, to your system. You have several wifi drivers installed. Two of them are for an adapter with a 8811cu chipset and the drivers are different versions, neither of which I recognize but the version numbers indicate the drivers are dated. This is not good.

    How 'bout we look at cleaning this up a bit. The best way to uninstall a driver is to follow the uninstall instructions for the driver you installed... if there are good uninstall instructions. If there are no good uninstall instructions, I suggest using dkms to clean one driver at a time followed by destroying the folder that was created to download the driver. Let's start with the following driver:

    rtl8821CU, 5.4.1, 5.4.0-73-generic, x86_64

    To uninstall it with dkms:

    Code:
    sudo dkms remove -m rtl8821CU -v 5.4.1 --all

    You can repeat the removal line for the other drivers but change the name and version as appropriate and you can check progress with:

    Code:
    dkms status

    Once you have cleaned things up, go here:

    https://github.com/morrownr/8821cu

    That driver is very well documented. The installation process is tested hundreds of times per week. It is a popular site. And the driver is the latest version available with numerous updates.

    Good luck.
    Last edited by morrownr; May 18th, 2021 at 05:50 AM.

  5. #5
    Join Date
    Sep 2018
    Beans
    15

    Re: D-Link DWA-171 AC600 wifi dongle not detected at all in Ubuntu 20.04

    Hello morrownr,
    Thanks for your help. The link describing the WiFi dongle support among vendors and recommendations are spot on. My previous dongle was TP-link, works on Windows.. does not work on Linux. I had to create a thread here and chilli555 helped me out to get it working properly. This time I got D-Link and am ruing my purchase decision. If I had known about the **** poor Linux support among D-Link, I would have never bought it. Anyways, lesson learned. Many thanks for sending me the link with Wifi dongles with good Linux support.

    Coming back to cleanup and installation of driver you recommended, I did it. Managed to get rid of the previous drivers (thankfully they had good uninstall steps). After uninstallation and cleanup of my bad drivers (and before installing the new driver), I did
    Code:
    helios@helios:~
    (i)$ sudo dkms status
    [sudo] password for helios: 
    rtl8192eu, 1.0, 5.4.0-72-generic, x86_64: installed
    rtl8192eu, 1.0, 5.4.0-73-generic, x86_64: installed
    So, the earlier bad drivers were truly gone.

    Then I followed the install steps in the link sent by you: https://github.com/morrownr/8821cu
    after successful installation, I did this:
    Code:
    helios@helios:~
    (i)$ sudo dkms status
    [sudo] password for helios: 
    rtl8192eu, 1.0, 5.4.0-72-generic, x86_64: installed
    rtl8192eu, 1.0, 5.4.0-73-generic, x86_64: installed
    rtl8821cu, 5.8.1.7, 5.4.0-73-generic, x86_64: installed
    helios@helios:~
    (i)$ lsusb
    Bus 001 Device 006: ID 0bda:c811 Realtek Semiconductor Corp. 802.11ac NIC
    helios@helios:~
    (i)$ lsmod | grep rtl
    helios@helios:~
    (i)$
    Looks like the new driver got installed fine. But the dongle still does not show up as wifi.
    It is still not installed as wifi and I do not see the wifi icon at top right in the ubuntu's system status bar.
    Please advice what to do next.

    Best Regards,
    Surya
    Last edited by surya.durgaputra; May 18th, 2021 at 02:17 PM.

  6. #6
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    25,630
    Distro
    Ubuntu Development Release

    Re: D-Link DWA-171 AC600 wifi dongle not detected at all in Ubuntu 20.04

    It is still not installed as wifi and I do not see the wifi icon at top right in the ubuntu's system status bar.
    Please advice what to do next.
    Let's check the log:

    Code:
    sudo dmesg | grep -i -e 8821 -e rtl
    rfkill list all
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D., Sc.D.

  7. #7
    Join Date
    Sep 2018
    Beans
    15

    Re: D-Link DWA-171 AC600 wifi dongle not detected at all in Ubuntu 20.04

    Hello chili555,
    Thanks for your reply. Here is what I got when I ran the commands:
    Code:
    helios@helios:~
    (i)$ sudo dmesg | grep -i -e 8821 -e rtl
    [sudo] password for helios: 
    [    0.732556] r8169 0000:02:00.0 eth0: RTL8168h/8111h, 2c:4d:54:50:8d:3c, XID 541, IRQ 132
    [   24.138821] videodev: Linux video capture interface: v2.00
    [   24.885908] 8821cu: loading out-of-tree module taints kernel.
    [   24.886535] 8821cu: module verification failed: signature and/or required key missing - tainting kernel
    [   25.027466] usbcore: registered new interface driver rtl8821cu
    [   25.167366] rtl8821cu 1-12:1.0 wlxbc0f9af583ad: renamed from wlan0
    helios@helios:~
    (i)$ rfkill list all
    0: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
    helios@helios:~
    (i)$
    Best Regards,
    Surya
    Last edited by surya.durgaputra; May 18th, 2021 at 05:00 PM.

  8. #8
    Join Date
    Aug 2011
    Location
    Berlin, Germany
    Beans
    7,929
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: D-Link DWA-171 AC600 wifi dongle not detected at all in Ubuntu 20.04

    SecureBoot is disabled?

  9. #9
    Join Date
    Feb 2020
    Beans
    103

    Re: D-Link DWA-171 AC600 wifi dongle not detected at all in Ubuntu 20.04

    Surya,

    Have you tried removing the adapter and putting it in another usb port? That is a usb2 adapter so give preference to a usb2 port.

    It is a multi-state adapter but it appears usb_modeswitch is doing its job.

    What do you get with the following?

    Code:
    iw dev
    Oh, on a different subject. I think we need a laugh. My main box:

    $ dkms status
    rtl8812au, 5.9.3.2, 5.4.0-72-generic, x86_64: installed
    rtl8814au, 5.8.5.1, 5.4.0-72-generic, x86_64: installed
    rtl8814au, 5.8.5.1, 5.4.0-73-generic, x86_64: installed
    rtl8821au, 5.8.2.3, 5.4.0-72-generic, x86_64: installed
    rtl8821au, 5.8.2.3, 5.4.0-73-generic, x86_64: installed
    rtl8821cu, 5.8.1.7, 5.4.0-72-generic, x86_64: installed
    rtl88x2bu, 5.8.7.4, 5.4.0-72-generic, x86_64: installed
    rtl88x2bu, 5.8.7.4, 5.4.0-73-generic, x86_64: installed

    The really funny part is the adapter in use right now doesn't even use any of those drivers as it is based on a mt7612u chipset and the driver is in the kernel so it doesn't show up in dkms. That may look like a mess but it isn't so it is okay to for us to get a good laugh out of it.

  10. #10
    Join Date
    Sep 2018
    Beans
    15

    Re: D-Link DWA-171 AC600 wifi dongle not detected at all in Ubuntu 20.04

    Hello Praseodym,
    Thank you for your reply.
    I tried this:

    Code:
    helios@helios:~
    (i)$ sudo mokutil --sb-state
    [sudo] password for helios: 
    SecureBoot disabled
    helios@helios:~
    (i)$
    Looks like Secure Boot is disabled.

    Best Regards,
    Surya

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •