[SOLVED] How to install Realtek wifi driver on Debian
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I got a couple of USB wifi adapters I want to use on Mint Debian, one of them has Bluetooth built in, but the system does not recognize the devices. I can only tell via lsusb that both are Realtek Semiconductor Corp. 802.11ac NIC, no model no. provided, and I don't have a windows machine to check. I wonder if there is a generic driver I can install, and I don't understand why this common h/w vendor does not get supported on the OS.
Bus 004 Device 002: ID 8087:8000 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 006: ID 138a:0017 Validity Sensors, Inc. VFS 5011 fingerprint sensor
Bus 002 Device 005: ID 0461:4e04 Primax Electronics, Ltd Lenovo Keyboard KB1021
Bus 002 Device 004: ID 058f:9540 Alcor Micro Corp. AU9540 Smartcard Reader
Bus 002 Device 003: ID 046d:c542 Logitech, Inc. M185 compact wireless mouse
Bus 002 Device 008: ID 04f2:b39a Chicony Electronics Co., Ltd Integrated Camera
Bus 002 Device 007: ID 8087:07dc Intel Corp. Bluetooth wireless interface Bus 002 Device 002: ID 0bda:c811 Realtek Semiconductor Corp. 802.11ac NIC
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
uname -a
Linux 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux
Its a Lenovo T440P with internal wifi, I just reinstall it but the USB wifi driver still not installed although detected.
I compiled morrownr's driver not so long back and it worked. Look for recent commits - that's the clue that they are still live. There can be drivers up there that haven't been touched in 10 years!
Thank guys for the info., I just opened another can of worms, so I better off to use the Buffalo adapter that worked out of the box, the only difference is it does not come with antenna and can not add one to it.
I tried with a TP-Link adapter and it worked out of the box, it was identified as Ralink Technology, Corp. MT7610U ("Archer T2U" 2.4G+5G WLAN Adapter, I don't know how Debian, or Linux as a whole to decide what drivers to pre-install, and does system update add new driver to it ?
They made out a few wifi chips around 2010-2015. In 2015, if memory serves, they were bought over by Mediatek. Try your luck on github, ralink.com, or mediatek.com in that order. Ralink chips come cheap as dirt and in large quantity. So all the cheapskates buy a few, make a wifi dongle in China or somewhere. If there's a driver, don't lose it, or you'll never see it again. I got a Ralink 5370(?), which had a driver written on a 2.6 kernel and compiled on a RHEL 6(?) about 2012.The Arm devs laboriously bent it straight and compiled it while the things were about but they didn't last. The aerial fell off mine.
I'd regard it as wasted money. Check drivers before you buy, my friend.
I tried with a TP-Link adapter and it worked out of the box, it was identified as Ralink Technology, Corp. MT7610U ("Archer T2U" 2.4G+5G WLAN Adapter, I don't know how Debian, or Linux as a whole to decide what drivers to pre-install, and does system update add new driver to it ?
That will be done with the ID of the hardware, f.e.:
Code:
Bus 003 Device 012: ID 2357:011f TP-Link 802.11ac WLAN Adapter
Code:
/sbin/modprobe -c | grep -i "2357.*011f"
alias usb:v2357p011Fd*dc*dsc*dp*icFFiscFFipFFin* rtw88_8821au
...I'd regard it as wasted money. Check drivers before you buy, my friend.
I wish I could check the driver before buying, I don't even know the original maker of the it apart from the brand name they used, and they are cheap to 'waste money on'.
Its a Lenovo T440P with internal wifi, I just reinstall it but the USB wifi driver still not installed although detected.
Slightly off-topic:
The 7260 that comes in the T440P isn't great, which I assume is why you're using a USB WiFi adapter? Every other Intel Wi-Fi chipset I've used had worked great except the 7260.
If you're feeling adventurous, you can remove the whitelist on the T440p to use any Wi-Fi card. I have an Intel AX200 in mine. https://m.youtube.com/watch?v=ce7kqUEccUM
The 7260 that comes in the T440P isn't great, which I assume is why you're using a USB WiFi adapter? Every other Intel Wi-Fi chipset I've used had worked great except the 7260.
If you're feeling adventurous, you can remove the whitelist on the T440p to use any Wi-Fi card. I have an Intel AX200 in mine. https://m.youtube.com/watch?v=ce7kqUEccUM
I found in rare occasion the TP does not recognize some wifi network even if it was 2.4Ghz, and I tried to replace the wifi card with those from Ideapad and Samsung but they didn't fit, the antenna port is much smaller on the TP one and used different 'key' on the card.
I found what seems a great way to test the quality of the various wifi cards you might have.
Code:
sudo iwlist wlan0 scan |grep -i Quality
I have seen listings of APs with as bad as -95dBm Quality. I've got Qualcomm Atheros wifi cards, which are high performance devices. I don't think I could connect at that level, but I could see it was there.
On poor cards, I don't see anything over -70dBm. As you probably know decibels are a Logarithmic scale, as that's a huge difference.
I do have the added advantage of my early days in televisions, where reception problems were frequent. I learned about optimising reception. Even during the few seconds of download during a test from speedtest.net, you change the wifi aerial orientation, and notice the rise or fall in speed. With that information, you can work out your optimal position, and orientation.
I found what seems a great way to test the quality of the various wifi cards you might have.
Code:
sudo iwlist wlan0 scan |grep -i Quality
I have seen listings of APs with as bad as -95dBm Quality. I've got Qualcomm Atheros wifi cards, which are high performance devices. I don't think I could connect at that level, but I could see it was there.
On poor cards, I don't see anything over -70dBm. As you probably know decibels are a Logarithmic scale, as that's a huge difference.
I do have the added advantage of my early days in televisions, where reception problems were frequent. I learned about optimising reception. Even during the few seconds of download during a test from speedtest.net, you change the wifi aerial orientation, and notice the rise or fall in speed. With that information, you can work out your optimal position, and orientation.
Right, I found the signal strength does not mean a thing unless the card itself can produce enough output to be pickup by the router, similar to cell phone. Some times I got 50% signal still can pickup by the router but sometimes 70% can not do, but with USB dongle not much I can do.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.