Skip to content

Instantly share code, notes, and snippets.

@gpproton
Forked from jonatanaxe/wifirtw88
Created January 15, 2022 02:36
Show Gist options
  • Save gpproton/a04cc4a3b9aae03ce6e072b38435ca0a to your computer and use it in GitHub Desktop.
Save gpproton/a04cc4a3b9aae03ce6e072b38435ca0a to your computer and use it in GitHub Desktop.
sudo sed -i 's/3/2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
sudo apt install dkms build-essential make
git clone https://github.com/lwfinger/rtw88 && cd rtw88 && make clean && sudo dkms add . && sudo dkms install rtlwifi-new/0.6
//verificar se o "Power Management:off" caso estiver "Power Management:on" deslique e ligue o note
iwconfig
@gpproton
Copy link
Author

gpproton commented Jan 15, 2022

Perform the following

  • first added the below configs to /etc/modprobe.d/r8822be.conf

Official wifi driver disable

blacklist rtw88_8822be
blacklist rtwpci
blacklist rtw88
options r8822be aspm=0
options rtw_pci disable_aspm=y disable_msi=y

  • Then execute the commands in the gist

To troubleshoot using modprobe

check installed driver

lsmod | grep rtw

load driver

sudo modprobe rtw_8822be

load without restart

sudo modprobe -w rtw_8822be

remove driver

sudo modprobe -r rtw_8822be

More troubleshooting commands

sudo lshw -C network

inxi -Fxxxz

inxi -Fxz

rfkill list iwconfig

mokutil --sb-state

lspci -nnk | grep -iA3 net

@gpproton
Copy link
Author

gpproton commented Jan 15, 2022

Fix BTF generation error

sudo apt install build-essential dkms
sudo cp /sys/kernel/btf/vmlinux /usr/lib/modules/`uname -r`/build/

Source: https://forum.proxmox.com/threads/kernel-module-not-found-when-compile-skipping-btf-generation.100974/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment