2

I installed Ubuntu alongside Windows. I was realizing that WiFi speed is slow. I tried to install the WiFi driver (I use tplinkwn823n pc) from the official website(Linux). The guide says to use, in step 3. Type “sudo make” to compile the driver file. 4. Type “sudo make install” to install the driver file. following the instruction from the installation guide this error

c1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:297: /home/rappa/Downloads/TL-WN823N_US_V3_160315_Linux/Driver/core/rtw_cmd.o] Error 1
make[1]: *** [Makefile:1881: /home/rappa/Downloads/TL-WN823N_US_V3_160315_Linux/Driver] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-47-generic'
make: *** [Makefile:1696: modules] Error 2

error show in terminal

Pilot6
  • 90,100
  • 91
  • 213
  • 324

1 Answers1

2

Installing the RTL8192EU(TP-LINK WN823N)

  1. Installing headers:

    sudo apt-get install git linux-headers-generic build-essential dkms
    
  2. Clone Repository:

    git clone https://github.com/Mange/rtl8192eu-linux-driver
    cd rtl8192eu-linux-driver
    
  3. Adding Driver to DMKS:

    sudo dkms add .
    
  4. Build and install driver:

    sudo dkms install rtl8192eu/1.0
    
  5. Distributions based on Ubuntu have RTL8XXXU Driver present running in kernelspace. Since We install rtl8192eu, we should blacklist the RTL8XXXU by running this command:

    echo "blacklist rtl8xxxu" | sudo tee /etc/modprobe.d/rtl8xxxu.conf
    
  6. Forcing the RTL8192EU to run in boot:

    echo -e "8192eu\n\nloop" | sudo tee /etc/modules
    
  7. Update change to GRUB/BIOS & inittramfs:

    sudo update-grub; sudo update-initramfs -u
    

    Then reboot:

    systemctl reboot -i
    

Related issue: How do I get a TP-Link TL-WN823N V3 wireless adapter working?

Sumarize: if you using latest ubuntu 20.04 LTS Very Recommended to install via git dmks, my ubuntu version was 22.04 LTS Latest Trying To Compile with the TL823N showing error(ubuntu 22.04 kernel isn't support, since it only support 5.15.0-xx). try to install from gitclone https://github.com/Mange/rtl8192eu-linux-driver (latest),after adding the to dmks, it won't readable because there is a RTL8XXX driver, by blacklisting(or disable) the driver the RTL8192EU Swith be primary driver because rtl8xxx was disable.

muru
  • 197,895
  • 55
  • 485
  • 740