Ubuntu – D-Link DWA-131 does not work in Ubuntu 18.04

18.04adapterd-linkdriverswireless

Today bought Wi-Fi USB adapter D-Link DWA-131. It does not worked "out of box". Tried solution from Install DWA-131 WiFi dongle driver under Ubuntu 14.04.4 – does not helped too.

Here is end of dmesg, hope it is significant:

[ 3548.951789] usb 1-5.2: new high-speed USB device number 7 using xhci_hcd
[ 3549.052123] usb 1-5.2: New USB device found, idVendor=2001, idProduct=3319
[ 3549.052133] usb 1-5.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3549.052138] usb 1-5.2: Product: Wireless N Nano USB Adapter
[ 3549.052144] usb 1-5.2: Manufacturer: Realtek
[ 3549.052148] usb 1-5.2: SerialNumber: 00e04c000001
[ 3549.053281] usb 1-5.2: This Realtek USB WiFi dongle (0x2001:0x3319) is untested!
[ 3549.053288] usb 1-5.2: Please report results to Jes.Sorensen@gmail.com
[ 3549.123642] usb 1-5.2: Vendor: Realtek
[ 3549.123646] usb 1-5.2: Product: Wireless N 
[ 3549.123648] usb 1-5.2: Serial: no USB Adap
[ 3549.123651] usb 1-5.2: rtl8192eu_parse_efuse: dumping efuse (0x200 bytes):
[ 3549.123654] usb 1-5.2: 00: 29 81 00 7c 01 40 03 00
...
[ 3549.123784] usb 1-5.2: 1f8: ff ff ff ff ff ff ff ff
[ 3549.123788] usb 1-5.2: RTL8192EU rev B (SMIC) 2T2R, TX queues 3, WiFi=1, BT=0, GPS=0, HI PA=0
[ 3549.123792] usb 1-5.2: RTL8192EU MAC: 18:0f:76:09:dc:de
[ 3549.123795] usb 1-5.2: rtl8xxxu: Loading firmware rtlwifi/rtl8192eu_nic.bin
[ 3549.267433] usb 1-5.2: Firmware revision 19.0 (signature 0x92e1)
[ 3550.737563] rtl8xxxu 1-5.2:1.0 wlx180f7609dcde: renamed from wlan0
[ 3550.793700] IPv6: ADDRCONF(NETDEV_UP): wlx180f7609dcde: link is not ready

Will be very gratefull for any help on this trouble.

UPD: Here is diagnostic output requested by chili555:

$ lsmod | grep rtl
rtl8xxxu              122880  0
rtl8188ee              94208  0
rtl_pci                32768  1 rtl8188ee
rtlwifi                77824  2 rtl_pci,rtl8188ee
mac80211              778240  4 rtl_pci,rtl8188ee,rtlwifi,rtl8xxxu
cfg80211              622592  3 mac80211,8192eu,rtlwifi

$ dmesg | grep wlx
[11931.764451] rtl8xxxu 1-5.2:1.0 wlx180f7609dcde: renamed from wlan0
[11931.966937] IPv6: ADDRCONF(NETDEV_UP): wlx180f7609dcde: link is not ready

$ rfkill list all
0: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: yes
4: phy4: Wireless LAN
        Soft blocked: no
        Hard blocked: no

Best Answer

You have several possibly conflicting drivers loaded. The driver rtl8xxxu should drive the USB well. Let's blacklist all others and see if the USB now works as expected. From the terminal:

sudo -i
echo "blacklist rtl8188ee"  >>  /etc/modprobe.d/blacklist.conf
echo "blacklist 8192eu"  >>  /etc/modprobe.d/blacklist.conf
exit

Reboot and tell us if there is any improvement.