1

I am quite new in the Ubuntu world and while installing 22.04. on my new HP G9 Free Dos laptop I got similar issue as described in this thread: wifi Adapter not found realtek RTL8852BE WiFi 6 802.11ax PCIe in ubuntu 22.04

I am just not sure if I can do the same or not as I have a HP not Lenovo

The result of my terminal command lspci -nnk | grep 0280 -A3 is:

01:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:b852]
    DeviceName: WLAN
    Subsystem: Hewlett-Packard Company Device [103c:88e3]
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)

Thanks - command make was not available so I did install it via sudo apt install make then running make said:

/bin/sh: 1: cc: not found
(standard_in) 1: syntax error
#rm -f .symvers.8852be
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.15.0-50-generic/build M=/home/administrator/rtl8852be  modules
make[1]: Verzeichnis „/usr/src/linux-headers-5.15.0-50-generic“ wird betreten
arch/x86/Makefile:142: CONFIG_X86_X32 enabled but no binutils support
make[1]: gcc: Datei oder Verzeichnis nicht gefunden
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
  You are using:           
/bin/sh: 1: gcc: not found
(standard_in) 1: syntax error
  CC [M]  /home/administrator/rtl8852be/platform/platform_linux_pc_pci.o
/bin/sh: 1: gcc: not found
make[2]: *** [scripts/Makefile.build:297: /home/administrator/rtl8852be/platform/platform_linux_pc_pci.o] Fehler 127
make[1]: *** [Makefile:1900: /home/administrator/rtl8852be] Fehler 2
make[1]: Verzeichnis „/usr/src/linux-headers-5.15.0-50-generic“ wird verlassen
make: *** [Makefile:637: modules] Fehler 2

Sorry for the german words - any easy way to switch to english?

PeterPan1
  • 11
  • 4
  • I just searched for your WiFi adapter and it shows me there are a few questions on ask Ubuntu about it. The driver 10ec:b852 You may want to do the same and see if any of the questions and answers already on the site help you. – David Oct 15 '22 at 13:54
  • HI David, thanks for quick reply - I saw 2 with answers. I am not sure if I can just try what is suggested there or if I could damage anything which cannot be fixed afterwards. – PeterPan1 Oct 15 '22 at 14:10
  • Loading a driver can not damage hardware. Post the 2 you are thinking of trying. – David Oct 15 '22 at 14:16
  • Please be aware the first answer includes steps about reversing some user actions that are applicable only to that context. You can follow the second which is the same minus the initial steps not applicable to your situation. – ChanganAuto Oct 15 '22 at 14:26
  • Thanks - command make was not available so I did install it via `sudo apt install make` – PeterPan1 Oct 15 '22 at 14:37
  • Details added above as too much text – PeterPan1 Oct 15 '22 at 14:51
  • 1
    The absense of 'make', 'gcc' et al suggests that you first need to install build-essential. Then try again. Welcome to Ask Ubuntu. – chili555 Oct 15 '22 at 14:58
  • Great - after installing build essentials I could run make and it is working now - thanks for quick support. Very impressive. – PeterPan1 Oct 15 '22 at 15:33
  • WiFi was running well a couple of days but since today again the message No Wi-Fi Adapter found. What can I do? – PeterPan1 Oct 23 '22 at 20:48
  • Found it by myself: ```cd rtl8852be make clean git pull make sudo make install``` But do I really need to do it every time when WLAN disappears? – PeterPan1 Oct 23 '22 at 21:37
  • Perhaps not. May we see a link to the file you are compiling? – chili555 Oct 23 '22 at 22:34
  • hopefully that is what you expected: https://paste.ubuntu.com/p/n4yVb3p7Gt/plain/ – PeterPan1 Oct 24 '22 at 10:30
  • No, sorry. What I need to see is where you got the file rtl8852be. Did you download it from a website? From github? HRex39, perhaps?? – chili555 Oct 24 '22 at 10:58
  • I followed the instructions in (https://askubuntu.com/questions/1412450/network-driver-for-realtek-10ecb852) so got it from GitHub - Yes HRex39 – PeterPan1 Oct 24 '22 at 11:42

1 Answers1

0

You have compiled the driver for your currently running kernel version only. When a newer kernel version is installed as offered by Software Updater, you must recompile:

cd rtl8852be
make clean
git pull
make
sudo make install
sudo modprobe 8852be

In order to avoid recompiling, the DKMS process is used. https://en.wikipedia.org/wiki/Dynamic_Kernel_Module_Support However, the HRex39 repository has no dkms.conf file nor does the README.md mention any DKMS procedure.

The probable successor here also has no DKMS mechanism: https://github.com/lwfinger/rtw8852be

chili555
  • 58,968
  • 8
  • 93
  • 129