LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-23-2016, 06:32 AM   #1
itsron
LQ Newbie
 
Registered: May 2016
Posts: 3

Rep: Reputation: Disabled
Question How to make Dlink DWA-123 wifi adapter work flawlessly in Ubuntu 16.04


I want the DWA-123 to automatically connect to network on boot. I always have to re-plug the device to get it working. Otherwise network manager shows it as disconnected, and doesn't detect any wifi networks. Often, the device will not work even after re-plugging, with /var/log/syslog showing the log:

Code:
May 22 05:41:03 4736Z kernel: [  587.937062] usb 2-1: USB disconnect, device number 2
    May 22 05:41:03 4736Z NetworkManager[737]: <info>  [1463875863.0442] device (wlxacf1df1582ef): state change: disconnected -> unmanaged (reason 'removed') [30 10 36]
    May 22 05:41:03 4736Z NetworkManager[737]: <error> [1463875863.0444] platform-linux: do-change-link[3]: failure changing link: failure 19 (No such device)
    May 22 05:41:03 4736Z NetworkManager[737]: <error> [1463875863.0446] platform-linux: do-change-link[3]: failure changing link: failure 19 (No such device)
    May 22 05:41:03 4736Z NetworkManager[737]: <error> [1463875863.0458] platform-linux: do-change-link[3]: failure changing link: failure 19 (No such device)
    May 22 05:41:03 4736Z NetworkManager[737]: <warn>  [1463875863.0458] device (wlxacf1df1582ef): failed to disable userspace IPv6LL address handling
    May 22 05:41:03 4736Z NetworkManager[737]: <info>  [1463875863.0632] radio killswitch /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/ieee80211/phy0/rfkill0 disappeared
    May 22 05:41:03 4736Z systemd[1]: Starting Load/Save RF Kill Switch Status...
    May 22 05:41:03 4736Z systemd[1]: Started Load/Save RF Kill Switch Status.
    May 22 05:41:03 4736Z wpa_supplicant[881]: nl80211: deinit ifname=wlxacf1df1582ef disabled_11b_rates=0
    May 22 05:41:03 4736Z NetworkManager[737]: <info>  [1463875863.1574] devices removed (path: /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/net/wlxacf1df1582ef, iface: wlxacf1df1582ef)
    May 22 05:41:06 4736Z gnome-session[1459]: (gnome-software:1649): Gs-WARNING **: failed to get updates: no results to show
    May 22 05:41:32 4736Z kernel: [  616.952079] usb 2-1: new high-speed USB device number 4 using ehci-pci
    May 22 05:41:32 4736Z kernel: [  617.099415] usb 2-1: New USB device found, idVendor=2001, idProduct=3c1d
    May 22 05:41:32 4736Z kernel: [  617.099420] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    May 22 05:41:32 4736Z kernel: [  617.099423] usb 2-1: Product: 11n Adapter
    May 22 05:41:32 4736Z kernel: [  617.099426] usb 2-1: Manufacturer: Ralink
    May 22 05:41:32 4736Z kernel: [  617.099428] usb 2-1: SerialNumber: 1.0
    May 22 05:41:32 4736Z kernel: [  617.212093] usb 2-1: reset high-speed USB device number 4 using ehci-pci
    May 22 05:41:32 4736Z kernel: [  617.353175] ieee80211 phy2: rt2x00_set_rt: Info - RT chipset 5390, rev 0503 detected
    May 22 05:41:32 4736Z kernel: [  617.383804] ieee80211 phy2: rt2x00_set_rf: Info - RF chipset 5370 detected
    May 22 05:41:32 4736Z NetworkManager[737]: <info>  [1463875892.4568] (wlan0): using nl80211 for WiFi device control
    May 22 05:41:32 4736Z kernel: [  617.384344] ieee80211 phy2: Selected rate control algorithm 'minstrel_ht'
    May 22 05:41:32 4736Z NetworkManager[737]: <info>  [1463875892.4570] device (wlan0): driver supports Access Point (AP) mode
    May 22 05:41:32 4736Z NetworkManager[737]: <info>  [1463875892.4597] manager: (wlan0): new 802.11 WiFi device (/org/freedesktop/NetworkManager/Devices/4)
    May 22 05:41:32 4736Z systemd[1]: Starting Load/Save RF Kill Switch Status...
    May 22 05:41:32 4736Z mtp-probe: checking bus 2, device 4: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1"
    May 22 05:41:32 4736Z mtp-probe: bus: 2, device: 4 was not an MTP device
    May 22 05:41:33 4736Z kernel: [  618.614531] rt2800usb 2-1:1.0 wlxacf1df1582ef: renamed from wlan0
    May 22 05:41:33 4736Z NetworkManager[737]: <info>  [1463875893.6940] rfkill4: found WiFi radio killswitch (at /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/ieee80211/phy2/rfkill4) (driver rt2800usb)
    May 22 05:41:33 4736Z systemd[1]: Started Load/Save RF Kill Switch Status.
    May 22 05:41:33 4736Z NetworkManager[737]: <info>  [1463875893.6999] device (wlan0): interface index 5 renamed iface from 'wlan0' to 'wlxacf1df1582ef'
    May 22 05:41:33 4736Z NetworkManager[737]: <info>  [1463875893.7403] devices added (path: /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/net/wlxacf1df1582ef, iface: wlxacf1df1582ef)
    May 22 05:41:33 4736Z NetworkManager[737]: <info>  [1463875893.7404] device added (path: /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/net/wlxacf1df1582ef, iface: wlxacf1df1582ef): no ifupdown configuration found.
    May 22 05:41:33 4736Z NetworkManager[737]: <info>  [1463875893.7409] device (wlxacf1df1582ef): state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
    May 22 05:41:33 4736Z kernel: [  618.670175] IPv6: ADDRCONF(NETDEV_UP): wlxacf1df1582ef: link is not ready
    May 22 05:41:33 4736Z kernel: [  618.670258] ieee80211 phy2: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
    May 22 05:41:33 4736Z kernel: [  618.670303] ieee80211 phy2: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.29
    May 22 05:41:33 4736Z kernel: [  618.923227] IPv6: ADDRCONF(NETDEV_UP): wlxacf1df1582ef: link is not ready
    May 22 05:41:34 4736Z wpa_supplicant[881]: dbus: wpa_dbus_get_object_properties: failed to get object properties: (none) none
    May 22 05:41:34 4736Z wpa_supplicant[881]: dbus: Failed to construct signal
    May 22 05:41:34 4736Z NetworkManager[737]: <info>  [1463875894.0470] device (wlxacf1df1582ef): supplicant interface state: starting -> ready
    May 22 05:41:34 4736Z NetworkManager[737]: <info>  [1463875894.0472] device (wlxacf1df1582ef): state change: unavailable -> disconnected (reason 'supplicant-available') [20 30 42]
    May 22 05:41:34 4736Z kernel: [  618.976788] IPv6: ADDRCONF(NETDEV_UP): wlxacf1df1582ef: link is not ready
    May 22 05:41:35 4736Z NetworkManager[737]: <info>  [1463875895.2609] device (wlxacf1df1582ef): supplicant interface state: ready -> inactive
    May 22 05:41:36 4736Z gnome-session[1459]: (gnome-software:1649): Gs-WARNING **: failed to get updates: no results to show
    May 22 05:41:36 4736Z ModemManager[757]: <info>  Couldn't find support for device at '/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1': not supported by any plugin
I do not think this is driver issue (or is it?) since, AFAIK, the device uses thert2800usb driver that is built into the kernel (I'm using Ubuntu 16.04 with 4.4.0-23-generic kernel).

Here are the device details:

Code:
ron@ron:~$ lshw -C network  
    *-network
           description: Wireless interface
           physical id: 1
           bus info: usb@2:1
           logical name: wlxacf1df1582ef
           serial: ac:f1:df:15:82:ef
           capabilities: ethernet physical wireless
           configuration: broadcast=yes driver=rt2800usb driverversion=4.4.0-23-generic firmware=0.29 ip=192.168.0.103 link=yes multicast=yes wireless=IEEE 802.11bgn

    ron@ron:~$ lsusb | grep D-Link
    Bus 002 Device 002: ID 2001:3c1d D-Link Corp.

    ron@ron:~$ lsmod | grep rt2800
    rt2800usb              28672  0
    rt2x00usb              20480  1 rt2800usb
    rt2800lib              90112  1 rt2800usb
    rt2x00lib              49152  3 rt2x00usb,rt2800lib,rt2800usb
    mac80211              659456  4 ath9k,rt2x00lib,rt2x00usb,rt2800lib
    crc_ccitt              16384  1 rt2800lib
Since I don't want my in-built wifi to be active, I've my /etc/network/interfaces as follows:

Code:
# interfaces(5) file used by ifup(8) and ifdown(8)
    auto lo
    iface lo inet loopback
    iface wlp4s0 inet manual
This is my /etc/NetworkManager/NetworkManager.conf:

Code:
[main]
    plugins=ifupdown,keyfile,ofono
    dns=dnsmasq
    
    [ifupdown]
    managed=false
 
Old 05-23-2016, 08:17 AM   #2
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Hi...

Welcome to the forum

Just as a thought, in case you don't get any help either from here or, I'm guessing, your post at askubuntu.com, you might want to post on the regular Ubuntu forums to see if this might be bug report material.

Unfortunately, I have no idea what might be the issue here.

Regards...
 
Old 05-23-2016, 02:47 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
Hello and welcome to LQ.

You said this. "I always have to re-plug the device to get it working." This would suggest to me that some issue with shutdown/standby is causing it. It could also be that for some reason the way mint boots up, it doesn't fully wait long enough to see this device.

Try this maybe to rule out power idea. Turn off computer, remove ac plug and press power button a few times. Then power up. Does it work?

Why don't you want network manager to handle it? https://wiki.debian.org/NetworkManager
 
Old 05-24-2016, 02:30 AM   #4
itsron
LQ Newbie
 
Registered: May 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
Hello and welcome to LQ.

You said this. "I always have to re-plug the device to get it working." This would suggest to me that some issue with shutdown/standby is causing it. It could also be that for some reason the way mint boots up, it doesn't fully wait long enough to see this device.
Oh, yeah may be. I remember changing timeout in /lib/systemd/system/NetworkManager-wait-online.service, but that time I was not using this USB wifi. I'll try changing timeout and see if it works.

Quote:
Why don't you want network manager to handle it? https://wiki.debian.org/NetworkManager
Ideally I want my USB wifi to connect to wifi networks automatically on boot , not the inbuilt wifi (for some reason it has become slow). So I added the in-built wifi interface to the /etc/networks/interface. Is this the way to go about it?
 
Old 05-25-2016, 08:23 AM   #5
itsron
LQ Newbie
 
Registered: May 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
Unhappy

Quote:
Originally Posted by itsron View Post
Oh, yeah may be. I remember changing timeout in /lib/systemd/system/NetworkManager-wait-online.service, but that time I was not using this USB wifi. I'll try changing timeout and see if it works.
I tried different timeouts in the above mentioned file but it did not help. Guess I'll have to file a bug report.
 
Old 05-26-2016, 02:52 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
Might ask this on a new post. Not sure I've done it. "So I added the in-built wifi interface to the /etc/networks/interface. Is this the way to go about it?"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DLink DWA-131 usb wireless adapter - ifup wlan1 fails, Association request to driver failed zjmarlow Linux - Wireless Networking 2 07-04-2015 08:22 AM
DLINK DWA-160 B2 Wi-Fi Adapter zkab Linux - Networking 1 11-08-2013 10:42 PM
[SOLVED] Issue with DLink DWA 140 B2 USB WIFI stick NEED A HOW TO FOR DUMMYS!:) Alimao Linux - Newbie 3 08-24-2010 01:15 PM
USB Wifi adapter D-Link DWA-125 (Ralink 2870) friendly distro? janimalia Linux - Wireless Networking 3 01-25-2010 02:30 PM
Ubuntu 8.04 - Dlink DWA-643 to run with airocract etc. Infernox222 Linux - Wireless Networking 1 05-14-2008 05:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration