How I Added a Wifi driver to a New Linux Install

Adding a wifi driver to a state-of-the-art HP laptop. In this case its a Ryzen 7 8725U with a newer wifi-6 wifi card. There are no linux drivers in the distributions for this chipset, but you can grab the driver from repositories and compile them.
Here’s how I did it:




This has what I had actually typed, minus the resulting outputs it all gave me.
I dont remember exactly why I repeated a command. i got the wrong driver a couple of times.

sudo add-apt-repository -r ppa:kelebek333/kablosuz

sudo add-apt-repository ppa:kelebek333/kablosuz

# ok, that took two tries, I dont remember why

# now some modprobes to make sure I have the correct device

sudo apt install rtl8723de-dkms


# now some modprobes to make sure I have the correct device
# I tried a number of things, guided by suggestions from various websites

sudo modprobe -r rtl8723de

sudo modprobe rtl8723de

sudo modprobe -r RTL8852AU

sudo modprobe -r rtl8852au-dkms

sudo apt install rtl8852au-dkms

sudo modprobe -r rtl8852au-dkms

sudo modprobe -r rtl8852au

sudo modprobe rtl8852au

sudo modprobe -r rtl8852au


# still wan not confident I had the correct repo, added it again
sudo add-apt-repository -r ppa:kelebek333/kablosuz

# got rid of this driver because it was the wrong device and is a waste
sudo apt purge rtw89-dkms

# now update links to drivers now that I know what driver goes with what device due to reports from modprobe
# updating pulls in latest metadata from new repositories
sudo apt update

# ok, I will need git installed to do the clone command
sudo apt install git bc

# grab the source code for the rtl8852be device (which is the new wifi-6 chip with blutetooth on chip)
git clone https://github.com/HRex39/rtl8852be.git

# change directory to the new source code directory we just pulled in with git
cd rtl8852be

# build the source code
make

# and install it
sudo make install

# ok, is the 8852 chip now accessible via the newly installed driver?
sudo modprobe 8852be

YES! We are done. The wifi channel now comes up and you can configure it.
removed the temporary USB wifi dongle and reboot. And it comes up and connects.

Facebook friends may comment