1

I found this thread:

https://askubuntu.com/questions/439901/how-do-i-install-a-d-link-dwa-131

But it has been closed. One comment referred to this guide:

http://bernaerts.dyndns.org/linux/74-ubuntu/277-ubuntu-precise-dwa-131-rev-b1

But it doesn't work.

To begin, the guide is for this:

package barcode showing H/W Ver.:B1 F/W Ver.:2.00

But my package has

package barcode showing H/W Ver.:B1 F/W Ver.:2.01

As for the vendor ID of

2001 and Device ID 330d

I can't see either of those numbers on the box or in the example shown in the guide.

Next, the guide talks about updating the kernel but the kernel I am running is already higher:

My kernel

Linux connor 3.11.0-19-generic #33-Ubuntu SMP Tue Mar 11 18:48:34 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

My version

connor@connor:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 13.10
Release:    13.10
Codename:   saucy

When I do the next step sudo modprobe rtl8192cu swenc=1 there's no output

Then the next echo "2001 330D" | sudo tee /sys/bus/usb/drivers/rtl8192cu/new_id this is the output

2001 330D

My lsusb

Bus 003 Device 006: ID 2001:330d D-Link Corp. 

I've also been trying this thread

http://ubuntuforums.org/showthread.php?t=2200493&page=2&p=12978483#post12978483

I did the driver update instruction, it seemed to update but when I reboot still no light coming on the USB device

Next I try this command

lsmod
iwconfig
ifconfig -a
cat /etc/resolv.conf

This is the output

Module                  Size  Used by
rfcomm                 69130  0 
crct10dif_pclmul       14289  0 
crc32_pclmul           13113  0 
lrw                    13286  1 aesni_intel
gf128mul               14951  1 lrw
ath9k                 155907  0 
ath9k_common           13859  1 ath9k
ath9k_hw              444732  2 ath9k_common,ath9k
ath                    23827  3 ath9k_common,ath9k,ath9k_hw
mac80211              597268  1 ath9k
cfg80211              480503  3 ath,ath9k,mac80211

connor@connor:~$ iwconfig

wlan0     IEEE 802.11bgn  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=16 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off

connor@connor:~$ ifconfig -a

wlan0     Link encap:Ethernet  HWaddr 24:fd:52:79:9c:53  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 

Does anyone know how to get this device working?


Update:

lsusb output, with/without USB modem attached (difference only)

connor@connor:~$ lsusb

Bus 003 Device 013: ID 2001:330d D-Link Corp. 

dmesg output, last 20 lines

9
  • Check out: askubuntu.com/questions/432640/… Same USB ID, and works with 13.10 'rtl8192cu' driver.
    – david6
    Apr 6, 2014 at 4:12
  • @david6 I tried editing the original to add the dmesg output but it exceeded the character limit so added output to comment
    – ConnorJ
    Apr 6, 2014 at 4:58
  • OK, can't give the dmesg output anywhere, it's too long. What should I be looking for in the output @david6?
    – ConnorJ
    Apr 6, 2014 at 4:59
  • @david6 - had a look at the link you provided. I'm a total n00b and don't know how to do anything much - how do I make it use the rtl8192cu driver?
    – ConnorJ
    Apr 6, 2014 at 5:01
  • @david6 Updated original with the requested outputs
    – ConnorJ
    Apr 6, 2014 at 6:39

4 Answers 4

1

Am on 14.04 with same DWA131-B1 adapter, used this driver (follow instructions there) and added 8192cu to /etc/modules and

echo "2001 330D" | sudo tee /sys/bus/usb/drivers/rtl8192cu/new_id 

to /etc/rc.local (note that this still uses the 'rtl') as per this so far stable and fast without swenc=1

1
  • I agree, the swenc=1 was just a precautionary measure because nobody had really tested it out at the time.
    – mchid
    Aug 19, 2015 at 3:18
0

Prerequisites:

sudo apt-get install linux-firmware-nonfree

Output from, that changes with/without the USB modem inserted.

lsusb

eg. (as you have already supplied)

Bus 003 Device 006: ID 2001:330d D-Link Corp.


Try the following

dmesg

sudo rfkill unblock all
sudo modprobe rtl8192cu

dmesg

What you are looking for is: What (if anything) was added to the dmesg output, after the driver (rtl8182cu) was loaded to memory.

13
  • where should I post the output, in the comments here or do I need to edit your answer?
    – ConnorJ
    Apr 6, 2014 at 9:11
  • The apt-get command gives same output with or without USB attached: linux-firmware-nonfree is already the newest version.
    – ConnorJ
    Apr 6, 2014 at 9:12
  • With the command you've given me, should each line be entered separately or do I just copy and past the whole lot into terminal?
    – ConnorJ
    Apr 6, 2014 at 9:14
  • OK, so I ran each command separately - the output is ridiculously large (three A4 pages in Libre Office) but a lot seems to be different - too much for me to be able to tell you what has changed witht he limited number of characters available. For instance the last line said: [20191.291350] ata3: EH complete Now it says: [20466.037120] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
    – ConnorJ
    Apr 6, 2014 at 9:21
  • I've added the lsusb outputs both with and without USB attached in my original post
    – ConnorJ
    Apr 6, 2014 at 9:27
0

The default kernel driver is weak and gets a range of maybe 2-5 meters with a clear line of sight to the AP.

I have this card and it works great when you use the newer firmware from realtek. The original new firmware won't build properly on kernels >=3.10 however, patched versions are available from github.

Here are the instructions:

12.04 & 14.04+: you can view these instructions or just do as I say.

(use these instructions when your wireless USB device [rtl8192cu] is not automatically recognized by Ubuntu)

sudo modprobe rtl8192cu
echo "2001 330D" | sudo tee /sys/bus/usb/drivers/rtl8192cu/new_id
echo "rtl8192cu" | sudo tee -a /etc/modules

Then, edit /etc/rc.local by opening the file with your favorite text editor like in this example:

sudo gedit /etc/rc.local

make sure it says . . .

echo "2001 330D" | tee /sys/bus/usb/drivers/rtl8192cu/new_id

exit 0

You can use the wireless now or, alternatively, you can make sure you have all of your work saved before you type:

sudo reboot

Your wireless driver should start up automatically.


To compile and install the proprietary Realtek 8192cu driver, run the following commands in an open terminal:

sudo apt-get update && sudo apt-get install git build-essential linux-headers-generic dkms
git clone https://github.com/dz0ny/rt8192cu.git --depth 1
cd rt8192cu
sudo make dkms

For hard installation use:

make
sudo make install

instead of sudo make dkms .

To enable this driver, use the command:

sudo modprobe 8192cu

Finally, update /etc/modules with this command before you reboot:

echo '8192cu' | sudo tee -a /etc/modules

Souce #1: bernaerts.dyndns.org

Source #2: github.com/dz0ny

0

Try this - https://github.com/Mange/rtl8192eu-linux-driver

sudo apt-get install git build-essential

git clone https://github.com/Mange/rtl8192eu-linux-driver.git

cd rtl8192eu-linux-driver

sudo make

sudo make install

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .