this is what Gemini says,for vers 3 but mine is vers 4
Linux (Debian 9.20) Support:
The TL-WN823N typically uses a Realtek chipset (often RTL8192EU). While TP-Link provides Linux drivers on their support pages, these might be beta versions or require manual compilation.
For Debian 9.20 (Stretch), which uses a kernel version around 4.9, the rtl8192eu driver is generally needed. Here's what you might encounter and how to approach it:
* Kernel Support: According to the Linux Hardware Database, the RTL8192EU chipset (used in many TL-WN823N versions, specifically v2/v3) is supported by kernel versions 4.9 and newer via the rtl8xxxu driver. Debian 9.20's kernel should provide some level of support.
* Firmware: You might need to install firmware-realtek package from the non-free repositories in Debian to ensure all necessary firmware is available.
* Compiling Drivers: If the adapter isn't recognized out-of-the-box or with the firmware-realtek package, you may need to compile a driver from source. TP-Link's support site often provides Linux drivers for specific hardware versions (e.g., TL-WN823N(EU)_V2_160315_Linux.zip for V2). There are also community-maintained drivers on GitHub (like Mange/rtl8192eu-linux-driver or clnhub/rtl8192eu-linux).
