Linux user adapts driver for stubborn TP-Link WiFi dongle

A Hackaday article details the challenges of getting a TP-Link Archer TX50U USB WiFi dongle working on Linux, requiring manual driver modifications. The device, equipped with a Realtek RTL8832CU chipset, did not attach to any driver upon plugging in. The author successfully resolved the issue by editing USB IDs in the driver source code and rebuilding it with DKMS.

The TP-Link Archer TX50U, a relatively new USB WiFi dongle, promised to enhance an older laptop's connectivity but encountered immediate issues on a Linux system. Upon connection, the device appeared in the USB device list via lsusb, revealing it as a Realtek chipset, but no driver bound to it, and its lights remained unlit. Further inspection with lsusb -t confirmed the absence of a driver attachment.

Research identified the internal RTL8832CU chip. The author downloaded a driver from GitHub user morrownr, selecting the latest version for rtl8852cu, labeled v1.19.22-103. Initial installation failed because the driver's supported USB IDs did not match the dongle's: vendor ID 0x37AD and device ID 0x0103, unlike the listed TP-Link variants with vendor 0x35B2 and devices 0x0101 or 0x0102.

To fix this, the author edited the file /usr/src/rtl8852cu-v1.19.22-103/os_dep/linux/usb_intf.c, duplicating an existing entry for 0x35B2:0x0102 and changing it to 0x37AD:0x0103. Using DKMS, the driver was then rebuilt and reinstalled, resulting in blinking lights and functional WiFi performance.

DKMS, or Dynamic Kernel Module Support, automates rebuilding kernel modules for new kernel versions, storing sources in /usr/src and tracking states in /var/lib/dkms. It prevents the need for manual recompilation after kernel updates, though it cannot resolve all compatibility issues, such as those with NVIDIA drivers during kernel changes.

The author skipped disabling secure boot for simplicity and critiqued the process's complexity, suggesting vendors provide better Linux support or allow easy USB ID overrides via module parameters. Reader comments echoed similar frustrations, including outdated guides for devices like Google Coral TPU and historical issues with Realtek hardware on Linux.

Articoli correlati

Intel engineers have developed a protocol and matching Linux driver to allow fast data movement between computers over USB4 or Thunderbolt cables without any networking setup.

Riportato dall'IA

A developer has submitted a patch to the Linux kernel mailing list for a new driver that monitors USB keyboard-like devices for suspicious activity. The hid-omg-detect module scores devices based on typing patterns and other signals without interfering with normal input. If a device appears malicious, it issues a warning recommending the use of USBGuard for blocking.

Questo sito web utilizza i cookie

Utilizziamo i cookie per l'analisi per migliorare il nostro sito. Leggi la nostra politica sulla privacy per ulteriori informazioni.
Rifiuta