先需要安装dkmssudo apt install dkms
1 下载rtlwifi_new
git clone-b extended https://github.com/lwfinger/rtlwifi_new.git
2拷贝rtlwifi_new到/usr/src/目录下
sudo cp-Rrtlwifi_new//usr/src/
3 dkms add
cmd@TR:/usr/src$ sudo dkms add./rtlwifi_new
Creating symlink/var/lib/dkms/rtlwifi-new/0.6/source->/usr/src/rtlwifi-new-0.6DKMS:add completed.
4dkms install
cmd@TR:/usr/src$ sudo dkms install rtlwifi-new/0.6
Kernel preparation unnecessaryforthiskernel.Skipping...
Building module:
cleaning build area....(bad exit status:2)
make-j8KERNELRELEASE=4.15.0-34-generic-C/lib/modules/4.15.0-34-generic/buildM=/var/lib/dkms/rtlwifi-new/0.6/
build..............
cleaning build area...(bad exit status:2)DKMS:
build completed.rtl_pci.ko:Running module version sanity check.
-Original module
-Installation
-Installing to/lib/modules/4.15.0-34-generic/updates/dkms/
rtl_usb.ko:
Running module version sanity check.-Original module
-Installation
-Installing to/lib/modules/4.15.0-34-generic/updates/dkms/
rtlwifi.ko:
Running module version sanity check.-Original module
-Installation
-Installing to/lib/modules/4.15.0-34-generic/updates/dkms/
btcoexist.ko:
Running module version sanity check.
-Original module
-Installation
-Installing to/lib/modules/4.15.0-34-generic/updates/dkms/
halmac.ko:
Running module version sanity check.
-Original module
-Installation
-Installing to/lib/modules/4.15.0-34-generic/updates/dkms/
phydm_mod.ko:
Running module version sanity check.
-Original module
-Installation
-Installing to/lib/modules/4.15.0-34-generic/updates/dkms/
rtl8188ee.ko:Running module version sanity check.
-Original module
-Installation
-Installing to/lib/modules/4.15.0-34-generic/updates/dkms/
rtl8192c-common.ko:
Running module version sanity check.
-Original module
-Installation
-Installing to/lib/modules/4.15.0-34-generic/updates/dkms/
rtl8192ce.ko:
Running module version sanity check.
-Original module
-Installation
-Installing to/lib/modules/4.15.0-34-generic/updates/dkms/
rtl8192cu.ko:Running module version sanity check.
-Original module
-Installation
-Installing to/lib/modules/4.15.0-34-generic/updates/dkms/
rtl8192de.ko:Running module version sanity check.
-Original module
-Installation
-Installing to/lib/modules/4.15.0-34-generic/updates/dkms/
rtl8192ee.ko:Running module version sanity check.
-Original module
-Installation
-Installing to/lib/modules/4.15.0-34-generic/updates/dkms/
rtl8192se.ko:Running module version sanity check.
-Original module
-Installation
-Installing to/lib/modules/4.15.0-34-generic/updates/dkms/
rtl8723ae.ko:Running module version sanity check.
-Original module
-Installation
-Installing to/lib/modules/4.15.0-34-generic/updates/dkms/
rtl8723be.ko:Running module version sanity check.
-Original module
-Installation
-Installing to/lib/modules/4.15.0-34-generic/updates/dkms/
rtl8723de.ko:Running module version sanity check.
-Original module
-Installation
-Installing to/lib/modules/4.15.0-34-generic/updates/dkms/
rtl8723-common.ko:Running module version sanity check.
-Original module
-Installation
-Installing to/lib/modules/4.15.0-34-generic/updates/dkms/
rtl8821ae.ko:
Running module version sanity check.
-Original module
-Installation
-Installing to/lib/modules/4.15.0-34-generic/updates/dkms/
rtl8822be.ko:
Running module version sanity check.
-Original module
-Installation
-Installing to/lib/modules/4.15.0-34-generic/updates/dkms/depmod...DKMS:install completed.
5拷贝编译生成的相关到/lib/firmware/rtlwifi/
cmd@TR:/usr/src$ sudo cp/usr/src/rtlwifi-new-0.6/firmware/rtlwifi/* /lib/firmware/rtlwifi/
6 sudo depmod -a
7 echo "options rtl8723be ips=0 fwlps=0" | sudo tee /etc/modprobe.d/rtl8723be.conf
8 sudo modprobe -v rtl8723be fwlps=0 ips=0
9 重启 sudo reboot