Page 1 of 1
Wifi USB Dongle not detected TP-Link TL-WN821N V6
Posted: Sat Mar 23, 2019 3:47 am
by sagsaw
I have installed MX LINUX but during live boot or after installation it did not detect my Wifi USB Dongle TP-Link TL-WN821N V6.
On the TP-Link website they have given drivers but they do not compile on kernel < 4.9.60
I have checked on distros with kernels < 4.9.60 and the Dongle is not detected but the driver compiles from source and works well.
What can be the solution to make it work?
Re: Wifi USB Dongle not detected TP-Link TL-WN821N V6
Posted: Sat Mar 23, 2019 4:14 am
by JayM
When it doesn't compile can you copy the text inside your terminal and paste it here enclosed within code tags (the </> icon in the forum editor's toolbar) so we can see what the compiler errors are?
Re: Wifi USB Dongle not detected TP-Link TL-WN821N V6
Posted: Sat Mar 23, 2019 3:02 pm
by Stevo
First, run
to make sure your USB ID database is fully updated (requires Net connection).
Then give us the result of
so our strong Google-Fu has something to work with.
Re: Wifi USB Dongle not detected TP-Link TL-WN821N V6
Posted: Sat Mar 23, 2019 3:10 pm
by Stevo
If it's the Realtek 8192eu, this repo has updated drivers source that will build up to the 5.1 kernel:
https://github.com/Mange/rtl8192eu-linux-driver Please read the full README to see how to blacklist the existing kernel driver.
Re: Wifi USB Dongle not detected TP-Link TL-WN821N V6
Posted: Sat Mar 23, 2019 6:56 pm
by sunrat
Stevo wrote: Sat Mar 23, 2019 3:10 pm
If it's the Realtek 8192eu, this repo has updated drivers source that will build up to the 5.1 kernel:
https://github.com/Mange/rtl8192eu-linux-driver Please read the full README to see how to blacklist the existing kernel driver.
The install instructions with that driver are for Ubuntu. You will need to install the headers for your actual kernel, not linux-headers-generic.
Is there a metapackage for MX kernels @Stevo?
Also I'm not sure if the TP-Link TL-WN821N V6 is rtl8192eu, I know the V5 is. It would help if we could see the device ID from the command
Re: Wifi USB Dongle not detected TP-Link TL-WN821N V6
Posted: Sat Mar 23, 2019 7:35 pm
by Stevo
MX ships with the stock kernel's headers and compilers, plus DKMS, so the "make" command runs out of the box. The other kernel install options in the MX Pkg Installer also install the headers along with the kernel. If you're doing it manually, then you have to install the headers, or just run
"sudo m-a prepare"
since we also ship module-assistant by default.

Re: Wifi USB Dongle not detected TP-Link TL-WN821N V6
Posted: Wed Apr 03, 2019 10:25 am
by sagsaw
Stevo wrote: Sat Mar 23, 2019 3:02 pm
First, run
to make sure your USB ID database is fully updated (requires Net connection).
Then give us the result of
so our strong Google-Fu has something to work with.
This is the output of the above ...
Code: Select all
Network: Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169
v: kernel port: e800 bus ID: 05:00.0 chip ID: 10ec:8168
Re: Wifi USB Dongle not detected TP-Link TL-WN821N V6
Posted: Wed Apr 03, 2019 10:27 am
by sagsaw
sunrat wrote: Sat Mar 23, 2019 6:56 pm
Stevo wrote: Sat Mar 23, 2019 3:10 pm
If it's the Realtek 8192eu, this repo has updated drivers source that will build up to the 5.1 kernel:
https://github.com/Mange/rtl8192eu-linux-driver Please read the full README to see how to blacklist the existing kernel driver.
The install instructions with that driver are for Ubuntu. You will need to install the headers for your actual kernel, not linux-headers-generic.
Is there a metapackage for MX kernels @Stevo?
Also I'm not sure if the TP-Link TL-WN821N V6 is rtl8192eu, I know the V5 is. It would help if we could see the device ID from the command
Output of the above
Code: Select all
Bus 005 Device 006: ID 2717:ff88 Xiaomi Inc. Mi/Redmi series (RNDIS + ADB)
Bus 005 Device 004: ID 0951:1666 Kingston Technology DataTraveler 100 G3/G4/SE9 G2
Bus 005 Device 002: ID 2357:0107 TP-Link TL-WN821N Version 5 RTL8192EU
Bus 005 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
Bus 002 Device 002: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
And most important though its seen in the output as version 5 ... v6.0 is clearly written on the USB dongle and its packaging.
Not a single linux out of 8 or 9 I tried detects and starts this dongle out of the box ... I need to compile the driver available on the TP LINK website ...
Which of course only works for kernels < than 4.9
Re: Wifi USB Dongle not detected TP-Link TL-WN821N V6
Posted: Wed Apr 03, 2019 8:36 pm
by Stevo
Did you see post 4 in this thread?
Re: Wifi USB Dongle not detected TP-Link TL-WN821N V6
Posted: Thu Apr 04, 2019 3:04 am
by sagsaw
Stevo wrote: Wed Apr 03, 2019 8:36 pm
Did you see post 4 in this thread?
The question was more in hope or suggestion if MX could make it work out of the box ... without any compiling or hacking.
Re: Wifi USB Dongle not detected TP-Link TL-WN821N V6
Posted: Thu Apr 04, 2019 7:10 am
by sunrat
sagsaw wrote: Thu Apr 04, 2019 3:04 am
Stevo wrote: Wed Apr 03, 2019 8:36 pm
Did you see post 4 in this thread?
The question was more in hope or suggestion if MX could make it work out of the box ... without any compiling or hacking.
Sorry, no. Build the module from Github. It would take maybe 5 minutes.
Re: Wifi USB Dongle not detected TP-Link TL-WN821N V6
Posted: Thu Apr 04, 2019 1:44 pm
by sagsaw
sunrat wrote: Thu Apr 04, 2019 7:10 am
sagsaw wrote: Thu Apr 04, 2019 3:04 am
Stevo wrote: Wed Apr 03, 2019 8:36 pm
Did you see post 4 in this thread?
The question was more in hope or suggestion if MX could make it work out of the box ... without any compiling or hacking.
Sorry, no. Build the module from Github. It would take maybe 5 minutes.
I am already doing the same but compiling the driver from source code provided by manufacturer but it works only till kernel 4.9
But wanna know why no? I thought over time more and more drivers are included with kernel standard by many distros.
Re: Wifi USB Dongle not detected TP-Link TL-WN821N V6
Posted: Thu Apr 04, 2019 5:08 pm
by Stevo
Why won't you use the github version when you know the version from TP-Link is outdated and won't work? You just keep repeating that it will only build on an older kernel. Yes, we get that by now.
Re: Wifi USB Dongle not detected TP-Link TL-WN821N V6
Posted: Fri Apr 05, 2019 3:07 am
by sagsaw
Stevo wrote: Thu Apr 04, 2019 5:08 pm
Why won't you use the github version when you know the version from TP-Link is outdated and won't work? You just keep repeating that it will only build on an older kernel. Yes, we get that by now.
Dunno if its the same code base as the manufacturer.
And my second question is why its not standard bundled with kernel like many other drivers?
Re: Wifi USB Dongle not detected TP-Link TL-WN821N V6
Posted: Fri Apr 05, 2019 3:44 am
by JayM
sagsaw wrote: Fri Apr 05, 2019 3:07 am
Stevo wrote: Thu Apr 04, 2019 5:08 pm
Why won't you use the github version when you know the version from TP-Link is outdated and won't work? You just keep repeating that it will only build on an older kernel. Yes, we get that by now.
Dunno if its the same code base as the manufacturer.
And my second question is why its not standard bundled with kernel like many other drivers?
Because if every single driver or module for every single piece of hardware in existence was included and enabled in the kernel, the kernel would be extremely bloated, huge and very slow.
You should have been around in the early days of Linux before kernels were modular. The kernel that came with distros was just generic enough to let you boot up but didn't perform well nor accommodate a huge variety of hardware, and the standard operating procedure was to recompile it for your particular hardware first thing, adding needed drivers and removing unneeded ones to optimize the kernel for your particular computer while still keeping it lean and fast. Nobody ever complained that distros' kernels weren't pre-optimized for their own particular computer hardware, they just rolled up their sleeves and started configuring and compiling.
Re: Wifi USB Dongle not detected TP-Link TL-WN821N V6
Posted: Fri Apr 05, 2019 2:35 pm
by sagsaw
JayM wrote: Fri Apr 05, 2019 3:44 am
sagsaw wrote: Fri Apr 05, 2019 3:07 am
Stevo wrote: Thu Apr 04, 2019 5:08 pm
Why won't you use the github version when you know the version from TP-Link is outdated and won't work? You just keep repeating that it will only build on an older kernel. Yes, we get that by now.
Dunno if its the same code base as the manufacturer.
And my second question is why its not standard bundled with kernel like many other drivers?
Because if every single driver or module for every single piece of hardware in existence was included and enabled in the kernel, the kernel would be extremely bloated, huge and very slow.
You should have been around in the early days of Linux before kernels were modular. The kernel that came with distros was just generic enough to let you boot up but didn't perform well nor accommodate a huge variety of hardware, and the standard operating procedure was to recompile it for your particular hardware first thing, adding needed drivers and removing unneeded ones to optimize the kernel for your particular computer while still keeping it lean and fast. Nobody ever complained that distros' kernels weren't pre-optimized for their own particular computer hardware, they just rolled up their sleeves and started configuring and compiling.
Been there done that ... Debian Potato onwards ... Kernel 2.0 I think it was ... where getting a serial mouse working on linux was an issue ... CorelLinux was a very very superb commercial attempt at linux ... I had it shipped from US via a relative. It was a superb distro and how lovely was the BOX pack with all the manuals and the monitor top Linux Penquin mascot soft toy frreee gift inside and al frree 3d linux game licence was it Civilization dunt remember ... I thought microsoft will die soon because it also had staroffice licenced.
Only that over the years ... ever since I laid my hands on the first ever live cd I have experienced KNOPPIX ... well what to say ... OLD HABBITS DIED SOFT.
Hence the demand.
And if this driver works for many different dongles then It make a case for inclusion.
Re: Wifi USB Dongle not detected TP-Link TL-WN821N V6
Posted: Fri Apr 05, 2019 5:25 pm
by Stevo
sagsaw wrote: Fri Apr 05, 2019 3:07 am
Stevo wrote: Thu Apr 04, 2019 5:08 pm
Why won't you use the github version when you know the version from TP-Link is outdated and won't work? You just keep repeating that it will only build on an older kernel. Yes, we get that by now.
Dunno if its the same code base as the manufacturer.
And my second question is why its not standard bundled with kernel like many other drivers?
It's modified from Realtek's original code in order to build on newer kernels and fix other bugs, which you can see if you ever went to that Github repo.
As for the second question, how should we know why and what the kernel developers decide to support in the kernel?
It looks like you may also have to blacklist the standard
rtl8xxxu driver by editing /etc/modprobe.d/blacklist.conf and adding the line
Re: Wifi USB Dongle not detected TP-Link TL-WN821N V6
Posted: Sat Apr 06, 2019 1:44 am
by sagsaw
Stevo wrote: Fri Apr 05, 2019 5:25 pm
sagsaw wrote: Fri Apr 05, 2019 3:07 am
Stevo wrote: Thu Apr 04, 2019 5:08 pm
Why won't you use the github version when you know the version from TP-Link is outdated and won't work? You just keep repeating that it will only build on an older kernel. Yes, we get that by now.
Dunno if its the same code base as the manufacturer.
And my second question is why its not standard bundled with kernel like many other drivers?
It's modified from Realtek's original code in order to build on newer kernels and fix other bugs, which you can see if you ever went to that Github repo.
As for the second question, how should we know why and what the kernel developers decide to support in the kernel?
It looks like you may also have to blacklist the standard
rtl8xxxu driver by editing /etc/modprobe.d/blacklist.conf and adding the line
Finally, is MX or for that matter anyone else or a DISTRO not allowed to add a driver with their distro kernel ?
Re: Wifi USB Dongle not detected TP-Link TL-WN821N V6
Posted: Sat Apr 06, 2019 2:45 am
by sunrat
sagsaw wrote: Sat Apr 06, 2019 1:44 amFinally, is MX or for that matter anyone else or a DISTRO not allowed to add a driver with their distro kernel ?
Kernels are open source, you can do what you like as long as you keep the same licence for the modified one. That said, Realtek have an unbelievably huge number of different devices and drivers it would be unrealistic to add them all to default distro kernels.
Have you tried building the driver from Github yet? Is your wifi working?
Re: Wifi USB Dongle not detected TP-Link TL-WN821N V6
Posted: Sat Apr 06, 2019 1:56 pm
by sagsaw
sunrat wrote: Sat Apr 06, 2019 2:45 am
sagsaw wrote: Sat Apr 06, 2019 1:44 amFinally, is MX or for that matter anyone else or a DISTRO not allowed to add a driver with their distro kernel ?
Kernels are open source, you can do what you like as long as you keep the same licence for the modified one. That said, Realtek have an unbelievably huge number of different devices and drivers it would be unrealistic to add them all to default distro kernels.
Have you tried building the driver from Github yet? Is your wifi working?
Yes built the driver from GITHUB got it to work on live usb ... yes compiled it on live ... but speed is not good ... 300n dongle but does not work at good speed in fact the connection information does not show anything ...
am attaching screen shot ...
And you can see in the second screen shot the speed using openspeedtest website indicating 38mbps which actually should be 75mbps at least as seen on my mobile phone with full HD streaming on my TV active simultaneously else the speed is 100mbps.
Re: Wifi USB Dongle not detected TP-Link TL-WN821N V6
Posted: Sat Apr 06, 2019 1:58 pm
by sagsaw
Stevo wrote: Fri Apr 05, 2019 5:25 pm
sagsaw wrote: Fri Apr 05, 2019 3:07 am
Stevo wrote: Thu Apr 04, 2019 5:08 pm
Why won't you use the github version when you know the version from TP-Link is outdated and won't work? You just keep repeating that it will only build on an older kernel. Yes, we get that by now.
Dunno if its the same code base as the manufacturer.
And my second question is why its not standard bundled with kernel like many other drivers?
It's modified from Realtek's original code in order to build on newer kernels and fix other bugs, which you can see if you ever went to that Github repo.
As for the second question, how should we know why and what the kernel developers decide to support in the kernel?
It looks like you may also have to blacklist the standard
rtl8xxxu driver by editing /etc/modprobe.d/blacklist.conf and adding the line
Did it works ... did not have to blacklist anything as the file blacklist.conf is not present. Of course did it all on live usb without any persisant or anything ... but the speed of the GITHUB driver is very slow ... as indicated with screenshots in my above posts.
Re: Wifi USB Dongle not detected TP-Link TL-WN821N V6
Posted: Mon Apr 08, 2019 3:28 pm
by Stevo
If the blacklist.conf file does not exist, you need to create it first, then. You may still be running the kernel driver, but
will show you what driver it's using.
Re: Wifi USB Dongle not detected TP-Link TL-WN821N V6
Posted: Thu Apr 11, 2019 1:25 am
by m_pav
I compiled the 8192eu driver earlier this year and it runs fine on my tiny WN823N USB dongle, except for the startup message about driver module taints the kernel. I'm using it to share my LAN connection from my office PC to anybody that needs a connection so I don't have to share my primary wlan password.
Speeds are in the 200mpbs + at close range and down to 30mbps at a distance of 55 metres, so no issue here with the driver module
Re: Wifi USB Dongle not detected TP-Link TL-WN821N V6
Posted: Sat Mar 13, 2021 6:00 am
by PrimeSuspect
I appreciate this is an old thread now but if anyone else is having issues trying to compile stuff to get this working it does so out of the box with Alt Linux. You`ll just need some patience trying to navigate their site since the various downloads are not that well labelled. I use the `starter kits` with both MATE and KDE5 and this dongle works with both as soon as you plug it in.
Re: Wifi USB Dongle not detected TP-Link TL-WN821N V6
Posted: Sat Mar 13, 2021 6:16 am
by Eadwine Rose
So.. your advice on fixing this is using something other than MX Linux, and that is why you dug up an old thread. How is this helpful exactly?
Re: Wifi USB Dongle not detected TP-Link TL-WN821N V6
Posted: Thu Mar 18, 2021 4:41 am
by PrimeSuspect
Eadwine Rose wrote: Sat Mar 13, 2021 6:16 am
So.. your advice on fixing this is using something other than MX Linux, and that is why you dug up an old thread. How is this helpful exactly?
Plenty of other distros are mentioned in other threads without folks getting into a fanboy twist about it. Not everyone wants, or maybe understands, about make, git, kernel headers, gcc and the terminal work necessary to bring it all together for a wifi driver. Linux is meant to be all about choice and a friendly community. I just gave a optional choice so maybe try being friendly about it.
Re: Wifi USB Dongle not detected TP-Link TL-WN821N V6
Posted: Thu Mar 18, 2021 5:08 am
by Eadwine Rose
We're about MX Linux here, not about showing people elsewhere.
Also do not dig up old topics, it is bad form.
Topic locked.