IT/Hardware/USB-WiFi: Difference between revisions
Walttheboss (talk | contribs) m (→Drivers) |
Walttheboss (talk | contribs) No edit summary |
||
(17 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Drivers== | === Drivers === | ||
In order to determine what driver you need, | In order to determine what driver you need, you must first find out what USB-Wifi adapter you are using. To do so use | ||
<code>lsusb</code> | |||
You may need to dig deeper | |||
to list all USB devices connected to your computer and look for the WiFi adapter. | |||
<code>sudo lshw -C network</code> | |||
These two pages give great information. | |||
[https://github.com/morrownr/USB-WiFi/blob/main/home/USB_WiFi_Chipsets.md Chipsets] | |||
[https://github.com/morrownr/USB-WiFi/blob/main/home/USB_WiFi_Adapter_out-of-kernel_drivers_for_Linux.md Kernel Drivers] | |||
=== PowerSave === | |||
Sometimes the wireless NIC will drop ever so many minutes. This is likely a powersave issue. | |||
/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf | |||
Change the powersave value to 2 | |||
Save the file and restart the computer. | |||
If you don't believe me run iwconfig and the "Power Management:on" flag will still be there. You can restart NetworkManager | |||
sudo systemctl restart NetworkManager | |||
Run iwconfig and taadaa still "on" Just restart the computer. | |||
Has limited success on 8812cu chipset | |||
Another option which may likely work better is to use tlp | |||
Install tlp from the repositories | |||
<code>systemctl enable tlp.service</code> | |||
<code>sudo nano /etc/tlp.conf</code> | |||
Change these lines so that both are "off" and then save: | |||
# WiFi power saving mode: on=enable, off=disable; not supported by all adapters. | |||
#WIFI_PWR_ON_AC=off | |||
#WIFI_PWR_ON_BAT=on | |||
<code>sudo tlp start</code> | |||
Check the status here: | |||
<code>tlp-stat --rfkill</code> | |||
[https://www.tecmint.com/tlp-increase-and-optimize-linux-battery-life/#:~:text=It%20should%20start%20automatically%20as,under%20SystemD%20using%20systemctl%20command.&text=After%20the%20service%20starts%20running,to%20actually%20start%20using%20it. Here are lots of usage examples] | |||
===RTLwifi PPA=== | ===RTLwifi PPA=== | ||
To install a driver from this repository, download the repository using the following command: | To install a driver from this repository, download the repository using the following command: | ||
<code>sudo add-apt-repository ppa:kelebek333/kablosuz</code> | <code>sudo add-apt-repository ppa:kelebek333/kablosuz</code> | ||
Then open Synaptic Package Manager, search for rtl and mark the driver you need for installation and apply changes. | Then open Synaptic Package Manager, search for rtl and mark the driver you need for installation and apply changes. | ||
[https://ubuntuhandbook.org/index.php/2021/01/install-rtl8188eu-rtl8723ds-drivers-ppa-ubuntu-20-04/ Original Source:] | |||
===RTW8821=== | |||
This is a variant of the RTL It worked well natively till the 6.5 kernel when it broke again. | |||
<code>git clone <nowiki>https://github.com/morrownr/8821cu-20210916.git</nowiki></code> | |||
<code>cd 8821cu-20210916</code> | |||
<code>sudo ./install-driver.sh</code> | |||
It will open a dialog where you can edit more options. | |||
Reboot to finish | |||
Update this driver(from the directory) with the following commands as needed: | |||
$ git pull | |||
$ sudo sh install-driver.sh | |||
Note: Updates to this driver SHOULD be performed before distro | |||
upgrades such as Ubuntu 23.10 to 24.04. | |||
Note: Updates can be performed as often as you like. It is | |||
recommended to update at least every 2 months. | |||
Note: Work on this driver, like the Linux kernel, is continuous. | |||
Enjoy! | |||
[https://askubuntu.com/questions/1162974/wireless-usb-adapter-0bdac811-realtek-semiconductor-corp Original Source:] |
Latest revision as of 13:18, 30 May 2024
Drivers
In order to determine what driver you need, you must first find out what USB-Wifi adapter you are using. To do so use
lsusb
You may need to dig deeper
to list all USB devices connected to your computer and look for the WiFi adapter.
sudo lshw -C network
These two pages give great information.
PowerSave
Sometimes the wireless NIC will drop ever so many minutes. This is likely a powersave issue.
/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
Change the powersave value to 2
Save the file and restart the computer.
If you don't believe me run iwconfig and the "Power Management:on" flag will still be there. You can restart NetworkManager
sudo systemctl restart NetworkManager
Run iwconfig and taadaa still "on" Just restart the computer.
Has limited success on 8812cu chipset
Another option which may likely work better is to use tlp
Install tlp from the repositories
systemctl enable tlp.service
sudo nano /etc/tlp.conf
Change these lines so that both are "off" and then save:
- WiFi power saving mode: on=enable, off=disable; not supported by all adapters.
- WIFI_PWR_ON_AC=off
- WIFI_PWR_ON_BAT=on
sudo tlp start
Check the status here:
tlp-stat --rfkill
Here are lots of usage examples
RTLwifi PPA
To install a driver from this repository, download the repository using the following command:
sudo add-apt-repository ppa:kelebek333/kablosuz
Then open Synaptic Package Manager, search for rtl and mark the driver you need for installation and apply changes.
RTW8821
This is a variant of the RTL It worked well natively till the 6.5 kernel when it broke again.
git clone https://github.com/morrownr/8821cu-20210916.git
cd 8821cu-20210916
sudo ./install-driver.sh
It will open a dialog where you can edit more options.
Reboot to finish
Update this driver(from the directory) with the following commands as needed:
$ git pull
$ sudo sh install-driver.sh
Note: Updates to this driver SHOULD be performed before distro
upgrades such as Ubuntu 23.10 to 24.04.
Note: Updates can be performed as often as you like. It is
recommended to update at least every 2 months.
Note: Work on this driver, like the Linux kernel, is continuous.
Enjoy!