RSS

Install drivers for Wifi usb adapters Trendnet TEW-624UB, TP-Link WN821N, Asus n13, Edimax etc based on rtl8192cu wireless chipset on linux.

23 Oct

Install drivers for Wifi N300 usb adapters Trendnet TEW-624UB, TP-Link WN821N, Asus n13, Edimax etc on linux, based on the rtl8192cu realtek chipset/drivers.
TEW-624UB_d1_d05_21-1-1

The rtl8192cu drivers come shipped with the default kernels in linux. Albeit functional, its unmaintained by Realtek. The devices supported are for N150 based devices and N300 devices are dilapidated in their functionality by this driver.

This doc will tell you how to install drivers for the rtl8192cu wifi chipset working at full N300 speeds from kernel 3.10 onwards…

Realtek does not provide updated drivers and hence is maintained at github by Janez Troha and Steffan Keller.

On Ubuntu/debian download the dependencies:

sudo apt-get install git build-essential linux-headers-generic

On Arch/Manjaro download the dependencies:

pacman -S linux-headers

choose the correct header series for your kernel.

Download rtl8192cu for kernel 3.10:

git clone https://github.com/dz0ny/rt8192cu.git

If git is not present, install it.

Next, change directory:

cd rt8192cu

Run make:

make
sudo make install

Note: If you get an error like /build directory already exists, then delete it by using its absolute path…like:

rmdir /lib/..../..../..../build

Now you have to remove the old driver from the kernel:

sudo modprobe -r rtl8192cu

Next, enter your newly compiled module(8192cu.ko) into the kernel:

sudo modprobe 8192cu

Blacklist the old driver(rtl8192cu), so that it does not load on startup:

sudo echo "blacklist rtl8192cu" >> /etc/modprobe.d/blacklist.conf

REBOOT. The rtl8192cu should work days on end without a glitch.

NOTE:THE DRIVER LOCATED AT http://152.104.125.41/downloads/downloadsView.aspx?Langid=1&PNid=48&PFid=48&Level=5&Conn=4&DownTypeID=3&GetDown=false&Downloads=true#RTL8192CU WILL NOT WORK WITH KERNEL 3.8++(maybe even earlier versions may not work). JANEZ TROHA HAS MAD CHANGES TO THE SOURCE TO MAKE IT COMPATIBLE WITH NEWER KERNELS. UPDATE FOR NEWER KERNELS–3.11++ WILL BE DECLARED AT HIS GIT: https://github.com/dz0ny/rt8192cu

A myriad of devices on the market made by Tplink, asus, edimax, trendnet etc are based on this pathetic rtl8192cu chipset. Realtek does not bother updating the driver to work with new hardware on newer kernels. I have a dlink dwa 131 N300 which i believe has the rtl8192su chipset but has excellent linux and windows support. DWA-131 works plug-n-play on windows/linux. My point being stay aloof from devices based on the rtl8192cu wifi chipset.

A SPECIAL THANKS TO JANEZ TROHA

Advertisements
 
18 Comments

Posted by on October 23, 2013 in Uncategorized

 

Tags: , ,

18 responses to “Install drivers for Wifi usb adapters Trendnet TEW-624UB, TP-Link WN821N, Asus n13, Edimax etc based on rtl8192cu wireless chipset on linux.

  1. Hjalti

    October 23, 2013 at 10:01 pm

    Thanks so much!

     
  2. Kieron O'Meara

    November 13, 2013 at 8:41 pm

    Hi Tuxstack,
    Thank you for taking the time to create this webpage, unfortunately as a newbie, you lost my understanding at about paragraph 4, sorry!

    I have a windows laptop that I would like to convert to Linux Ubuntu.
    The problem is that it needs a USB wireless connection at the moment.
    I am nervous after installation of Ubuntu that I will lose network access.

    I want to learn all about Ubuntu, but if my machine loses access to the internet, I ain’t gonna be learnin’ diddly squat.

    Which USB device do you recommend I buy for my laptop? Is the above one a good choice.
    At this stage I’m not too concerned by performance, just as long as it works at all.

    My laptop is a Panasonic CF18, I have successfully tried Ubuntu on it before but lost network connection using my current USB dongle (An Elecom USB device, sorry no more details on it)

    p.s. I was directed to this page by Google in response to my search for “tp link usb wireless adapter linux”

    Thank you

     
    • tuxstack

      November 21, 2013 at 8:30 am

      Hello and Welcome Kieron.

      I’d suggest you buy the D-link DWA-131 wireless N 300Mbps wireless adapter.
      It is plug n play on both windows 8/8.1 and linux(all distributions including ubuntu). Drivers are in built. The driver for linux is much better than that of the devices i have mentioned in the post above i.e. rtl8192cu.

      Get the Dlink DWA 131. I guarantee you, it will work. It is one of the cheapest and best quality adapter for desktop/laptops in most countries.

      The latency of dwa-131(rtl8192su) is 1ms to router.
      The latency of rtl8192cu based devices are 5ms to router.
      Lower the latency, the better.

      This post is for those who already own the rtl8192cu based adapter. So obviously no matter how cheap, you cant throw it away.

       
      • Lone Gunman

        August 28, 2014 at 3:29 pm

        WRONG ANSWER! I just got one of those Dlink DWA-131 wireless adapters and Ubuntu 14.04 DOES NOT RECOGNIZE IT! NADDA! ZIP!

        So a message for others who read here, don’t buy one of these!

        ALERT: THE DWA 131 HAS THE RTL8192SU CHIPSET AND NOT THE RTL8192CU WHICH IS THE DISCUSSION OF THIS TOPIC.
        INSTALL THE DRIVERS BY TYPING AT THE TERMINAL: sudo apt-get install linux-firmware-nonfree

         
  3. Clement

    March 12, 2014 at 10:15 am

    HOW DO I INSTALL ON KALI LINUX ?

     
    • tuxstack

      March 13, 2014 at 4:19 pm

      Same method.
      The above method is oblivious to any distro.

       
  4. Ivan

    May 18, 2014 at 1:42 am

    I bought the Asus n-13 adapter after I switched to Linux via Zorin OS 8 as a middle finger to Windows XP. After a month I came across this article and Bing Badda Bam I am wireless at a smokin’ speed. You guys are the best, thank you so much!

     
    • tuxstack

      May 27, 2014 at 6:40 am

      Thanks Ivan!
      Glad it worked for you.

       
  5. paul

    May 30, 2014 at 12:00 pm

    Hi, I have been using this information, which worked well for the past few months, it has been a life saver actually! But I did a clean install this morning (manjaro) and isnt doing it’s magic any more. I have errors after the “make” part. Can you help?

    I put the error message in here.

    https://forum.manjaro.org/index.php?topic=13891.0

     
    • tuxstack

      June 16, 2014 at 4:59 am

      Works flawless for me with manjaro and kernel 3.14.
      The method listed on this blog is not required for manjaro, at least.

      Note: Did you only install the kernel?
      Did you use mhwd-kernel to install the newest kernel?
      mhwd-kernel wont work correctly as kernel 3.14 has newer dependencies of gcc etc…

      first try—- # pacman -Syyuu
      The above command will upgrade your system.
      Next install the kernel with —- # mhwd-kernel -i linux314

      Then Most probably it should be plug and play, if not then try the method on this blog.

       
  6. Dario

    May 30, 2014 at 1:08 pm

    Hey there! I have the Asus USB-N13 and tried to install the driver, but when I do “make”, I get the following error:

    make ARCH=i386 CROSS_COMPILE= -C /lib/modules/3.14-kali1-686-pae/build M=/root/rt8192cu modules
    make: *** /lib/modules/3.14-kali1-686-pae/build: No such file or directory. Stop.
    make: *** [modules] Error 2

    can you help?

     
    • tuxstack

      June 16, 2014 at 4:51 am

      It should be plug and play with kernel 3.14….Im not sure whether its distribution specific or whether kernel 3.14 has the driver internally because it works on manjaro linux.

      Kali may have limited modules.

      Make sure you have kernel 3.14 headers installed.

       
  7. james

    June 16, 2014 at 7:50 am

    why is it when i install the driver it says that linux/smp_lock.h

     
  8. james

    June 16, 2014 at 7:54 am

    please show me how to install on kali linux this Lb-link BL-Lw05-AR5 wireless usb adapter.. i cant install the driver .. it always says linux/smp.lock.h no such file or directory .. terminated..

    help me please

     
    • tuxstack

      June 17, 2014 at 3:20 am

      Thats a big kernel lock which is no longer used in newer kernels.
      What is the dump of # lsusb

      This device should now be plug n play with newer kernels.
      Kali linux is debian sid and I believe their modules are custom chosen and kernels custom built for security.
      You could try with another distro and confirm it works.

      This driver for this device is now opensource.
      If you really want to persist you could contact the current maintainer and provide him with the details/messages.
      https://github.com/dz0ny

       
  9. Ivan

    August 1, 2014 at 2:31 pm

    My original post was based on Zorin OS8. I have updated to Pinguy OS 14.04 and am having difficulty installing. What I think is happening is that 14.04 uses kernel 3.13 and the install is based on kernel 3.10. Is there a git setup for kernel 3.13 yet? Thank you in advance.

     
    • tuxstack

      September 23, 2014 at 2:08 pm

      The drivers are in a deprecated state.
      The support for this device is in a shady state.

      Nonetheless Realtek, Qualcomm, etc are now heavily committed to the linux cause and have excellent devices and support for them.

      NOTE: ANY DEVICE BASED ON THE RTL8192CU CHIPSET IS PRETTY MUCH SCREWED. YOU WILL HAVE NO OPTION BUT TO PICK ANOTHER. EVEN THE RTL8192SU IS STABLE AND WORKS FLAWLESSLY.

       
  10. Casp

    September 26, 2014 at 9:35 pm

    I found your directions to be flawless, but I was not able to blacklist the original driver for a “permission denied” error being generated. Therefore, I don’t know whether my TP Link WN822 will finally work within Linux (Ubuntu).

    Does anyone here know how to fix this error? I searched forums and found the instructions to be beyond my ken…

    Thanks, so much, for this article and anyone reading this reply, R. F. Whitmer

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s