I've bought a laptop with Realtek rtl8723bu wifi adapter. Wifi works slowly and with weak signal compared to windows. I've search on the net and there are some solutions that download a driver from github, but none of them worked for me (I get an error since the fist step). What could I do? Thanks a lot.
I've followed these steps:
sudo apt install build-essential dkms sudo apt install git git clone https://github.com/lwfinger/rtl8723bu.git sudo apt install libelf-dev
sudo -i echo blacklist rtl8xxxu >> /etc/modprobe.d/blacklist.conf exit
This ensured that the old driver was not be used for my device. In my case the problematic driver was rtl8xxxu. So I black listed it.
3rd Step: Now I disabled a line in the makefile of the new driver, because without this hack, two instances of the wireless chipset was shown in Network Manager
cd rtl8723bu nano Makefile
Go down to line 21 and change this line:
EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE
To comment it out, like this:
#EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE
Save (Ctrl+o followed by Enter) and exit (Ctrl+x) the text editor.
4th Step: Now build and install the driver:
source dkms.conf sudo mkdir /usr/src/$PACKAGE_NAME-$PACKAGE_VERSION sudo cp -r core hal include os_dep platform dkms.conf Makefile rtl8723b_fw.bin /usr/src/$PACKAGE_NAME-$PACKAGE_VERSION sudo dkms add $PACKAGE_NAME/$PACKAGE_VERSION sudo dkms autoinstall $PACKAGE_NAME/$PACKAGE_VERSION
5th Step: Finally, install the compiled module with this command:
make sudo make install
But I can't dkms fail on fist step. Also I wonder if that's a secure thing to do.