Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Update killed my USB WiFi adapter RTL8821AU

Hybrid View

  1. #1
    Join Date
    Mar 2019
    Beans
    11

    Update killed my USB WiFi adapter RTL8821AU

    Linux noob here. I had previously followed this thread to get the drivers installed and working, I think possibly from this source https://github.com/diederikdehaas/rtl8812AU

    AFAIK I didn't have it set to update automatically after a new linux kernel update (through dkmks?) so after the update my WiFi is no longer recognised.

    As per advice here is my wireless-info.txt http://paste.ubuntu.com/p/7PYCBkPVB3/

    Hoping this will be an easy fix and maybe to have the driver working after another such update without having to sort it manually.

    Thanks in advance.

  2. #2
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    25,643
    Distro
    Ubuntu Development Release

    Re: Update killed my USB WiFi adapter RTL8821AU

    Please run and post:
    Code:
    sudo dkms status
    I suspect that the dkms rebuild process went wrong.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D., Sc.D.

  3. #3
    Join Date
    Mar 2019
    Beans
    11

    Re: Update killed my USB WiFi adapter RTL8821AU

    Thanks for your help.

    result:
    Code:
    rtl8812AU, #MODULE_VERSION#: added
    I know that looks wrong, probably as a result of me tinkering away trying to sort this myself rather than asking for help.

    FYI the downloaded files for the driver (from github I presume) are located at /home/richard/rtl8812AU

    Thanks
    Last edited by richyg; March 15th, 2019 at 05:48 PM.

  4. #4
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    25,643
    Distro
    Ubuntu Development Release

    Re: Update killed my USB WiFi adapter RTL8821AU

    Please run:
    Code:
    sudo dkms remove rtl8812AU/#MODULE_VERSION#
    And, assuming there is no error, warning, etc., show me:
    Code:
    sudo dkms status
    I hope it returns a blank.

    If there is a warning, error, etc., please post it.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D., Sc.D.

  5. #5
    Join Date
    Mar 2019
    Beans
    11

    Re: Update killed my USB WiFi adapter RTL8821AU

    error returned:

    Code:
    richard@richard-pc:~$ sudo dkms remove rtl8812AU/#MODULE_VERSION#
    Error! Invalid number of parameters passed.
    Usage: remove <module>/<module-version> --all
       or: remove <module>/<module-version> -k <kernel-version>

  6. #6
    Join Date
    Mar 2019
    Beans
    11

    Re: Update killed my USB WiFi adapter RTL8821AU

    UPDATE: OK so I managed to delete the folders manually from /var/lib/dkms/ and /usr/src

    I should have waited for further instructions but I tried following the install commands from the Readme (carefully) but the WiFi is still not working after a reboot. Here is the transcript:
    Code:
     richard@richard-pc:~$ sudo dkms remove rtl8812AU/#MODULE_VERSION#
    
     [sudo] password for richard:  
     Error! Invalid number of parameters passed.
    
     Usage: remove <module>/<module-version> --all
    
        or: remove <module>/<module-version> -k <kernel-version>
     rrichard@richard-pc:~$ cd /var/lib/dkms
     richard@richard-pc:/var/lib/dkms$ dir
     dkms_dbversion  rtl8812AU
     richard@richard-pc:/var/lib/dkms$ sudo rm -R rtl8812AU
     richard@richard-pc:/var/lib/dkms$ sudo dkms status
     richard@richard-pc:/var/lib/dkms$ cd
     richard@richard-pc:~$ cd rtl8812AU
     richard@richard-pc:~/rtl8812AU$ DRV_NAME=rtl8812AU
     richard@richard-pc:~/rtl8812AU$ DRV_VERSION=4.3.20
     richard@richard-pc:~/rtl8812AU$ sudo mkdir /usr/src/${DRV_NAME}-${DRV_VERSION}
     richard@richard-pc:~/rtl8812AU$ git archive driver-${DRV_VERSION} | sudo tar -x -C /usr/src/${DRV_NAME}-${DRV_VERSION}
     richard@richard-pc:~/rtl8812AU$ sudo dkms add -m ${DRV_NAME} -v ${DRV_VERSION}
     
     
     Creating symlink /var/lib/dkms/rtl8812AU/4.3.20/source ->
                      /usr/src/rtl8812AU-4.3.20
     
     
     DKMS: add completed.
     richard@richard-pc:~/rtl8812AU$ sudo dkms build -m ${DRV_NAME} -v ${DRV_VERSION}
     
     
     Kernel preparation unnecessary for this kernel.  Skipping...
     
     
     Building module:
     cleaning build area...
     'make' KVER=4.18.0-16-generic......................................................
     cleaning build area...
     
     
     DKMS: build completed.
     richard@richard-pc:~/rtl8812AU$ sudo dkms install -m ${DRV_NAME} -v ${DRV_VERSION}
     
     
     8812au:
     Running module version sanity check.
     
     
     Good news! Module version v4.3.20_16317.20160108 for 8812au.ko
     exactly matches what is already found in kernel 4.18.0-16-generic.
     DKMS will not replace this module.
     You may override by specifying --force.
     
     
     depmod......
     
     
     DKMS: install completed.
     richard@richard-pc:~/rtl8812AU$ sudo /sbin/depmod -a
    dkms status now shows:
    Code:
    richard@richard-pc:~$ dkms status
    rtl8812AU, 4.3.20, 4.18.0-16-generic, i686: installed (WARNING! Diff between built and installed module!)
    sorry @jeremy31 I didn't see your post before trying the above
    Last edited by richyg; March 16th, 2019 at 05:30 PM.

  7. #7
    Join Date
    May 2014
    Location
    /home
    Beans
    9,604
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Update killed my USB WiFi adapter RTL8821AU

    Quote Originally Posted by richyg View Post
    UPDATE: OK so I managed to delete the folders manually from /var/lib/dkms/ and /usr/src

    I should have waited for further instructions but I tried following the install commands from the Readme (carefully) but the WiFi is still not working after a reboot. Here is the transcript:
    Code:
     richard@richard-pc:~$ sudo dkms remove rtl8812AU/#MODULE_VERSION#
    
     [sudo] password for richard:  
     Error! Invalid number of parameters passed.
    
     Usage: remove <module>/<module-version> --all
    
        or: remove <module>/<module-version> -k <kernel-version>
     rrichard@richard-pc:~$ cd /var/lib/dkms
     richard@richard-pc:/var/lib/dkms$ dir
     dkms_dbversion  rtl8812AU
     richard@richard-pc:/var/lib/dkms$ sudo rm -R rtl8812AU
     richard@richard-pc:/var/lib/dkms$ sudo dkms status
     richard@richard-pc:/var/lib/dkms$ cd
     richard@richard-pc:~$ cd rtl8812AU
     richard@richard-pc:~/rtl8812AU$ DRV_NAME=rtl8812AU
     richard@richard-pc:~/rtl8812AU$ DRV_VERSION=4.3.20
     richard@richard-pc:~/rtl8812AU$ sudo mkdir /usr/src/${DRV_NAME}-${DRV_VERSION}
     richard@richard-pc:~/rtl8812AU$ git archive driver-${DRV_VERSION} | sudo tar -x -C /usr/src/${DRV_NAME}-${DRV_VERSION}
     richard@richard-pc:~/rtl8812AU$ sudo dkms add -m ${DRV_NAME} -v ${DRV_VERSION}
     
     
     Creating symlink /var/lib/dkms/rtl8812AU/4.3.20/source ->
                      /usr/src/rtl8812AU-4.3.20
     
     
     DKMS: add completed.
     richard@richard-pc:~/rtl8812AU$ sudo dkms build -m ${DRV_NAME} -v ${DRV_VERSION}
     
     
     Kernel preparation unnecessary for this kernel.  Skipping...
     
     
     Building module:
     cleaning build area...
     'make' KVER=4.18.0-16-generic......................................................
     cleaning build area...
     
     
     DKMS: build completed.
     richard@richard-pc:~/rtl8812AU$ sudo dkms install -m ${DRV_NAME} -v ${DRV_VERSION}
     
     
     8812au:
     Running module version sanity check.
     
     
     Good news! Module version v4.3.20_16317.20160108 for 8812au.ko
     exactly matches what is already found in kernel 4.18.0-16-generic.
     DKMS will not replace this module.
     You may override by specifying --force.
     
     
     depmod......
     
     
     DKMS: install completed.
     richard@richard-pc:~/rtl8812AU$ sudo /sbin/depmod -a
    dkms status now shows:
    Code:
    richard@richard-pc:~$ dkms status
    rtl8812AU, 4.3.20, 4.18.0-16-generic, i686: installed (WARNING! Diff between built and installed module!)
    sorry @jeremy31 I didn't see your post before trying the above
    That looks good, so reboot and post results for
    Code:
    modinfo 8812au
    Hopefully it works

  8. #8
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    25,643
    Distro
    Ubuntu Development Release

    Re: Update killed my USB WiFi adapter RTL8821AU

    Please post:
    Code:
    lsusb
    And also:
    Code:
    modinfo rtl8812au | grep alias
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D., Sc.D.

  9. #9
    Join Date
    May 2014
    Location
    /home
    Beans
    9,604
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Update killed my USB WiFi adapter RTL8821AU

    Code:
    sudo dkms remove rtl8812AU/#MODULE_VERSION# --all
    I normally change some of the dkms.conf so that dkms can be used normally
    Code:
    PACKAGE_NAME="rtl8812AU"
    PACKAGE_VERSION=1.0
    BUILT_MODULE_NAME[0]="8812au"
    MAKE="'make' KVER=${kernelver}"
    CLEAN="'make' clean"
    DEST_MODULE_LOCATION[0]="/updates/dkms"
    AUTOINSTALL="YES"
    Then I just do the
    Code:
    sudo dkms add ./rtl8812AU
    sudo dkms install rtl8812AU/1.0
    The instructions on the github site show
    Code:
    DRV_NAME=rtl8812AU
     DRV_VERSION=4.3.20
    sudo mkdir /usr/src/${DRV_NAME}-${DRV_VERSION}
    git archive driver-${DRV_VERSION} | sudo tar -x -C /usr/src/${DRV_NAME}-${DRV_VERSION}
    sudo dkms add -m ${DRV_NAME} -v ${DRV_VERSION}
    sudo dkms build -m ${DRV_NAME} -v ${DRV_VERSION}
    sudo dkms install -m ${DRV_NAME} -v ${DRV_VERSION}

  10. #10
    Join Date
    May 2014
    Location
    /home
    Beans
    9,604
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Update killed my USB WiFi adapter RTL8821AU

    I think you need
    Code:
    git clone https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git
    cd rtl8812AU_8821AU_linux
    sudo make -f Makefile.dkms install
    Reboot

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •