Wireless USB Adapter 0bda:c811 Realtek Semiconductor Corp

I am a bit lost sorting through the pile of documentation and Q&As about this topic so im just going to specifically ask.

I run an ASUS laptop, its a few years old and is unable to use 5ghz wifi, so i have use a usb wireless adapter (Flenco is the brand name, its just a standard 600mbps adapter, and no im not sure what serious of words and numbers anyone would need to identify it lol), to connect to the much faster wifi. on windows obviously no issue, plug and play etc. its the difference between 4-6 mbps download and 45-60mbps download.

I can not for the life of me get my linux to see it, and im too much of a noob to keep randomly messing up my system grasping at straws. It doesnt show up when i run lsusb, at least not under any name that would lead me down a fix path, not that i would know what to do from there anyways.

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 04ca:2006 Lite-On Technology Corp. Broadcom BCM43142A0 Bluetooth Device
Bus 001 Device 003: ID 04f2:b483 Chicony Electronics Co., Ltd 
Bus 001 Device 008: ID 05a7:1020 Bose Corp. 
Bus 001 Device 007: ID 04d9:a0f0 Holtek Semiconductor, Inc. 
Bus 001 Device 006: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 002: ID 0bda:c811 Realtek Semiconductor Corp. 
Bus 001 Device 005: ID 0c45:5004 Microdia 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I am completely positive this has been solved a hundred times over and I apologize for that, if someone could maybe point me towards a prior answer or offer a little more direct guidance that would be amazing.

I run Ubuntu 19.04, everything is up to date and working very well, just this issue.

Thanks!

Bus 001 Device 009: ID 0bda:c811 Realtek Semiconductor Corp. 
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0bda Realtek Semiconductor Corp.
  idProduct          0xc811 
  bcdDevice            2.00
  iManufacturer           1 
  iProduct                2 
  iSerial                 3 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0035
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           5
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              2 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x05  EP 5 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x06  EP 6 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x87  EP 7 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               3
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x08  EP 8 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0

this is the only entry that changed.

also, model number is X455L.


Solution 1:

The good news is that your 0bda:c811 device has support and has been the subject of several answers and duplicates here before; for example: USB WIFI Realtek not an MTP device The bad news is that the previous driver files will not properly compile on Ubuntu 19.04 using a 5.0.0-xx kernel version.

I recommend that you use another method. With a temporary working internet connection, open a terminal and do:

sudo apt update
sudo apt install build-essential git dkms bc
git clone https://github.com/brektrou/rtl8821CU.git
cd rtl8821CU
chmod +x dkms-install.sh
sudo ./dkms-install.sh

It builds successfully, albeit with a few possibly harmless warnings, on my 5.0.0-23 system

Next, do:

sudo modprobe 8821cu

Your wireless should now be working.