USB Wifi card TL-WN823N in Ubuntu 14.04.2

7,534

First, I suggest you blacklist the driver for the internal device. From a terminal:

sudo -i
echo "blacklist iwl4965"  >>  /etc/modprobe.d/blacklist.conf
exit

Detach the ethernet as Network Manager will prefer it to wireless. Reboot. Is the USB wireless working?

If not, please edit your question to add the result of:

lsusb
dmesg | grep 8192

Based on your additions, I will refine this answer.

Share:
7,534

Related videos on Youtube

Mario Ramirez
Author by

Mario Ramirez

Updated on September 18, 2022

Comments

  • Mario Ramirez
    Mario Ramirez over 1 year

    I have installed Ubuntu 14.04.2 in an old VAIO notebok (MODEL PCG-5J2L). It has a builtin wifi NIC, but it doesn't work for Windows nor Ubuntu.

    I've switched it off. I bought an USB wifi card TP Link TL-WN823N for using wifi connectivity, but it doesn't work either.

    I've read a lot web pages about how to install new drivers for the my VAIO linux box, because I've read ubuntu has old drivers for this USB wifi NIC (rtl8192cu module):

    https://github.com/pvaret/rtl8192cu-fixes/blob/master/README.md

    But my USB wifi stick TP Link TL-WN823N doesn't work yet. I'm not an a linux expert.

    fconfig -a

    eth0      Link encap:Ethernet  direcciónHW 00:1a:80:3e:5a:e9  
              Direc. inet:192.168.1.133  Difus.:192.168.1.255  Másc:255.255.255.0
              Dirección inet6: fe80::21a:80ff:fe3e:5ae9/64 Alcance:Enlace
              ACTIVO DIFUSIÓN FUNCIONANDO MULTICAST  MTU:1500  Métrica:1
              Paquetes RX:2880 errores:0 perdidos:0 overruns:0 frame:0
              Paquetes TX:2810 errores:0 perdidos:0 overruns:0 carrier:0
              colisiones:0 long.colaTX:1000 
              Bytes RX:998287 (998.2 KB)  TX bytes:395843 (395.8 KB)
    
    lo        Link encap:Bucle local  
              Direc. inet:127.0.0.1  Másc:255.0.0.0
              Dirección inet6: ::1/128 Alcance:Anfitrión
              ACTIVO BUCLE FUNCIONANDO  MTU:65536  Métrica:1
              Paquetes RX:988 errores:0 perdidos:0 overruns:0 frame:0
              Paquetes TX:988 errores:0 perdidos:0 overruns:0 carrier:0
              colisiones:0 long.colaTX:0 
              Bytes RX:91214 (91.2 KB)  TX bytes:91214 (91.2 KB)
    
    wlan0     Link encap:Ethernet  direcciónHW 00:13:e8:bd:4f:ab  
              DIFUSIÓN MULTICAST  MTU:1500  Métrica:1
              Paquetes RX:0 errores:0 perdidos:0 overruns:0 frame:0
              Paquetes TX:0 errores:0 perdidos:0 overruns:0 carrier:0
              colisiones:0 long.colaTX:1000 
              Bytes RX:0 (0.0 B)  TX bytes:0 (0.0 B)
    
    wlan1     Link encap:Ethernet  direcciónHW 14:cc:20:13:69:df  
              DIFUSIÓN MULTICAST  MTU:1500  Métrica:1
              Paquetes RX:0 errores:0 perdidos:0 overruns:0 frame:0
              Paquetes TX:0 errores:0 perdidos:0 overruns:0 carrier:0
              colisiones:0 long.colaTX:1000 
              Bytes RX:0 (0.0 B)  TX bytes:0 (0.0 B)
    

    lsmod | grep 8192

    8192cu                572775  0
    

    lsmod

    Module                  Size  Used by
    
    bnep                   18895  2 
    rfcomm                 53664  0 
    bluetooth             342208  10 bnep,rfcomm
    hid_generic            12492  0 
    snd_hda_codec_realtek    59259  1 
    arc4                   12536  2 
    pcmcia                 51828  0 
    uvcvideo               71309  0 
    videobuf2_vmalloc      13048  1 uvcvideo
    videobuf2_memops       13170  1 videobuf2_vmalloc
    videobuf2_core         39258  1 uvcvideo
    usbhid                 47070  0 
    videodev              108503  2 uvcvideo,videobuf2_core
    hid                    87604  2 hid_generic,usbhid
    coretemp               13195  0 
    joydev                 17101  0 
    iwl4965               106859  0 
    serio_raw              13230  0 
    iwlegacy               88016  1 iwl4965
    parport_pc             31981  0 
    ppdev                  17391  0 
    mac80211              546067  2 iwl4965,iwlegacy
    snd_hda_intel          42794  3 
    snd_hda_codec         164067  2 snd_hda_codec_realtek,snd_hda_intel
    yenta_socket           40201  0 
    tifm_7xx1              13163  0 
    snd_hwdep              13272  1 snd_hda_codec
    lpc_ich                16864  0 
    pcmcia_rsrc            18319  1 yenta_socket
    tifm_core              15133  1 tifm_7xx1
    snd_pcm                85501  2 snd_hda_codec,snd_hda_intel
    pcmcia_core            22328  3 pcmcia,pcmcia_rsrc,yenta_socket
    cfg80211              409394  3 iwl4965,iwlegacy,mac80211
    snd_page_alloc         14230  2 snd_pcm,snd_hda_intel
    snd_seq_midi           13132  0 
    snd_seq_midi_event     14475  1 snd_seq_midi
    snd_rawmidi            25135  1 snd_seq_midi
    sony_laptop            44359  0 
    snd_seq                55383  2 snd_seq_midi_event,snd_seq_midi
    i915                  710013  3 
    8192cu                572775  0 
    video                  18903  1 i915
    drm_kms_helper         48868  1 i915
    mac_hid                13037  0 
    drm                   244037  4 i915,drm_kms_helper
    shpchp                 32128  0 
    snd_seq_device         14137  3 snd_seq,snd_rawmidi,snd_seq_midi
    snd_timer              28584  2 snd_pcm,snd_seq
    snd                    60939  16 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_seq_midi
    soundcore              12600  1 snd
    i2c_algo_bit           13197  1 i915
    lp                     13299  0 
    parport                40836  3 lp,ppdev,parport_pc
    firewire_ohci          35529  0 
    psmouse                91357  0 
    firewire_core          61867  1 firewire_ohci
    r8169                  61562  0 
    crc_itu_t              12627  1 firewire_core
    mii                    13654  1 r8169
    pata_acpi              12886  0 
    

    iwconfig

    wlan0     IEEE 802.11abgn  ESSID:off/any  
              Mode:Managed  Access Point: Not-Associated   Tx-Power=off   
              Retry  long limit:7   RTS thr:off   Fragment thr:off
              Power Management:off
    
    lo        no wireless extensions.
    
    eth0      no wireless extensions.
    
    wlan1     unassociated  Nickname:"<WIFI@REALTEK>"
              Mode:Auto  Frequency=2.412 GHz  Access Point: Not-Associated   
              Sensitivity:0/0  
              Retry:off   RTS thr:off   Fragment thr:off
              Power Management:off
              Link Quality:0  Signal level:0  Noise level:0
              Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
              Tx excessive retries:0  Invalid misc:0   Missed beacon:0
    

    I executed your commands and rebooted my machine. USB wifi stick doesn't work.
    The requested ouputs are:

    lsusb

    Bus 002 Device 003: ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 005 Device 002: ID 192f:0616 Avago Technologies, Pte. ADNS-5700 Optical Mouse Controller (5-button)
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 001 Device 002: ID 05ca:1839 Ricoh Co., Ltd Visual Communication Camera VGP-VCC6 [R5U870]
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    

    dmesg | grep 8192

    [    0.004163] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.004168] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.197862] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.197886] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.197923] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.920740] agpgart-intel 0000:00:00.0: detected 8192K stolen memory
    [   14.454253] 8192cu: module verification failed: signature and/or  required key missing - tainting kernel
    [   14.459120] rtl8192cu driver version=v4.0.2_9000.20130911
    [   14.459492] CHIP TYPE: RTL8188C_8192C
    [   14.460240] ====> ReadAdapterInfo8192C
    [   14.808096] readAdapterInfo_8192CU(): REPLACEMENT = 1
    [   14.808099] <==== ReadAdapterInfo8192C in 348 ms
    [   14.808944] usbcore: registered new interface driver rtl8192cu
    

    $ sudo rfkill unblock all

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

    $ sudo nmcli nm wifi on

    And nothing works. When i did:

    $ sudo ifconfig wlan0 up

    my USB wifi NIC started to blink. Also, when i made:

    $ sudo iwlist wlan0 scanning

    wlan0 Scan completed :

          Cell 01 - Address: CA:D7:19:E9:59:60
    
                    ESSID:""
    
                    Protocol:IEEE 802.11bgn
    
                    Mode:Master
    
                    Frequency:2.437 GHz (Channel 6)
    
                    Encryption key:on
    
                    Bit Rates:144 Mb/s
    
                    Quality=20/100  Signal level=96/100  
    
          Cell 02 - Address: C8:D7:19:E9:59:6E
    
                    ESSID:"tokito"
    
                    Protocol:IEEE 802.11bgn
    
                    Mode:Master
    
                    Frequency:2.437 GHz (Channel 6)
    
                    Encryption key:on
    
                    Bit Rates:300 Mb/s
    
                    Extra:rsn_ie=30140100000fac040100000fac040100000fac020c00
    
                    IE: IEEE 802.11i/WPA2 Version 1
    
                        Group Cipher : CCMP
    
                        Pairwise Ciphers (1) : CCMP
    
                        Authentication Suites (1) : PSK
    
                    IE: Unknown:     DD940050F204104A0001101044000102103B00010310470010EB606877966F6240CA6804FEA3F2B41E10210013436973636F2053797374656D732C20496E632E1023000E4C696E6B737973204541363530301024000645413635303010420008247B7365726E6F7D1054000800060050F204000110110009746F6B69746F204150100800022008103C0001031049000600372A000120
    
                    Quality=20/100  Signal level=100/100  
    
          Cell 03 - Address: 00:26:ED:AC:C0:7D
    
                    ESSID:"Movistar"
    
                    Protocol:IEEE 802.11bg
    
                    Mode:Master
    
                    Frequency:2.437 GHz (Channel 6)
    
                    Encryption key:on
    
                    Bit Rates:54 Mb/s
    
                    Quality=48/100  Signal level=84/100  
    
          Cell 04 - Address: FC:94:E3:11:F5:52
    
                    ESSID:"majofran.."
    
                    Protocol:IEEE 802.11bgn
    
                    Mode:Master
    
                    Frequency:2.427 GHz (Channel 4)
    
                    Encryption key:on
    
                    Bit Rates:144 Mb/s
    
                    Extra:wpa_ie=dd180050f20101000050f20401000050f20401000050f2020c00
    
                    IE: WPA Version 1
    
                        Group Cipher : CCMP
    
                        Pairwise Ciphers (1) : CCMP
    
                        Authentication Suites (1) : PSK
    
                    Extra:rsn_ie=30140100000fac040100000fac040100000fac020c00
    
                    IE: IEEE 802.11i/WPA2 Version 1
    
                        Group Cipher : CCMP
    
                        Pairwise Ciphers (1) : CCMP
    
                        Authentication Suites (1) : PSK
    
                    Quality=34/100  Signal level=44/100  
    
          Cell 05 - Address: 64:66:B3:F3:FD:8E
    
                    ESSID:"tokito_EXT"
    
                    Protocol:IEEE 802.11bgn
    
                    Mode:Master
    
                    Frequency:2.437 GHz (Channel 6)
    
                    Encryption key:on
    
                    Bit Rates:300 Mb/s
    
                    Extra:wpa_ie=dd1a0050f20101000050f20202000050f2040050f20201000050f202
    
                    IE: WPA Version 1
    
                        Group Cipher : TKIP
    
                        Pairwise Ciphers (2) : CCMP TKIP
    
                        Authentication Suites (1) : PSK
    
                    Extra:rsn_ie=30180100000fac020200000fac04000fac020100000fac020000
    
                    IE: IEEE 802.11i/WPA2 Version 1
    
                        Group Cipher : TKIP
    
                        Pairwise Ciphers (2) : CCMP TKIP
    
                        Authentication Suites (1) : PSK
    
                    IE: Unknown: DD7E0050F204104A0001101044000102103B000103104700107B260273ED8453ECAB7C0AD42FDE9F141021000754502D4C494E4B1023000A544C2D5741383530524510240003322E301042000010540008000000000000000010110018576972656C657373204E20415020544C2D57413835305245100800020008103C000103
    
                    Quality=10/100  Signal level=50/100  
    
          Cell 06 - Address: 4C:72:B9:1F:C5:B8
    
                    ESSID:"Peluchin01"
    
                    Protocol:IEEE 802.11bgn
    
                    Mode:Master
    
                    Frequency:2.432 GHz (Channel 5)
    
                    Encryption key:on
    
                    Bit Rates:144 Mb/s
    
                    Extra:rsn_ie=30140100000fac040100000fac040100000fac020c00
    
                    IE: IEEE 802.11i/WPA2 Version 1
    
                        Group Cipher : CCMP
    
                        Pairwise Ciphers (1) : CCMP
    
                        Authentication Suites (1) : PSK
    
                    Quality=68/100  Signal level=48/100  
    

    The built-in wifi card is switched off by hardware. When I switch it to on, keeps off. Any clue?

  • Fabby
    Fabby about 9 years
    Chili555 at it again! ;-)
  • Mario Ramirez
    Mario Ramirez about 9 years
    Hi! Any update? i made sudo apt-get update & apt-get dist-upgrade. Nothing works yet !!!
  • chili555
    chili555 about 9 years
    Please see my edited answer. Sorry for my mis-step. How about the diagnostics I requested?