Fedora install on Acer Aspire 5 (AMD) doesn't do wifi

I will start with the fact that I love Fedora.

But recently I wanted a new laptop and I chose an Acer Aspire 5. Wifi did not work during the install but I foolishly figured that it would pick it up after. It did not. How do I get Fedora to see and use the wifi?

Here is the output of inxi so that you can know my system:

Titan:~% sudo inxi -Fzx                                                         
[sudo] password for redmond:                                                    
System:                                                                         
  Kernel: 5.19.7-200.fc36.x86_64 arch: x86_64 bits: 64 compiler: gcc            
    v: 2.37-35.fc36 Desktop: Xfce v: 4.16.1                                     
    Distro: Fedora release 36 (Thirty Six)                                      
Machine:                                                                        
  Type: Laptop System: Acer product: Aspire A515-47 v: V1.01 serial: <filter>   
  Mobo: BC model: Ganymede_BCU v: V1.01 serial: <filter> UEFI: Insyde           
    v: 1.01 date: 04/07/2022                                                    
Battery:                                                                        
  ID-1: BAT1 charge: 50.1 Wh (100.0%) condition: 50.1/47.8 Wh (104.8%)          
    volts: 12.7 min: 11.2 model: LGC AP18C8K status: full                       
CPU:                                                                            
  Info: 6-core model: AMD Ryzen 5 5625U with Radeon Graphics bits: 64           
    type: MT MCP arch: Zen 3 rev: 0 cache: L1: 384 KiB L2: 3 MiB L3: 16 MiB     
  Speed (MHz): avg: 486 high: 1435 min/max: 400/4388 boost: enabled cores:      
    1: 400 2: 400 3: 400 4: 400 5: 400 6: 400 7: 400 8: 400 9: 1435 10: 400     
    11: 400 12: 400 bogomips: 55095                                             
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm      
Graphics:
v  Device-1: AMD Barcelo vendor: Acer Incorporated ALI driver: amdgpu            
    v: kernel arch: RDNA 2 bus-ID: 04:00.0                                      
  Device-2: Chicony ACER HD User Facing type: USB driver: uvcvideo              
    bus-ID: 1-3:3                                                               
  Display: x11 server: X.Org v: 1.20.14 driver: X: loaded: amdgpu               
    unloaded: fbdev,modesetting,vesa gpu: amdgpu resolution: 1920x1080~60Hz     
  OpenGL:                                                                       
    renderer: AMD RENOIR (LLVM 14.0.0 DRM 3.47 5.19.7-200.fc36.x86_64)          
    v: 4.6 Mesa 22.1.7 direct render: Yes                                       
Audio:                                                                          
  Device-1: AMD Renoir Radeon High Definition Audio                             
    vendor: Acer Incorporated ALI driver: snd_hda_intel v: kernel               
    bus-ID: 04:00.1                                                             
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor                               
    vendor: Acer Incorporated ALI driver: snd_rn_pci_acp3x v: kernel            
    bus-ID: 04:00.5                                                             
  Device-3: AMD Family 17h/19h HD Audio vendor: Acer Incorporated ALI           
    driver: snd_hda_intel v: kernel bus-ID: 04:00.6                             
  Sound Server-1: ALSA v: k5.19.7-200.fc36.x86_64 running: yes                  
  Sound Server-2: PulseAudio v: 15.0 running: no                                
  Sound Server-3: PipeWire v: 0.3.57 running: yes                               
Network:                                                                        
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet  
    vendor: Acer Incorporated ALI driver: r8169 v: kernel port: 3000
    bus-ID: 02:00.0                                                             
  IF: enp2s0 state: down mac: <filter>
  Device-2: Realtek driver: N/A port: 2000 bus-ID: 03:00.0       
  Device-3: Realtek RTL8153 Gigabit Ethernet Adapter type: USB             
    driver: r8152 bus-ID: 4-2:2
  IF: enp4s0f4u2 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:                                                                      
  Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8
    bus-ID: 1-4:5
  Report: bt-adapter ID: hci0 rfk-id: 4 state: down
    bt-service: enabled,running rfk-block: hardware: no software: yes
    address: <filter>
Drives:
  Local Storage: total: 476.94 GiB used: 32.15 GiB (6.7%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLQ512HBLU-00B00
    size: 476.94 GiB temp: 25.9 C
Partition:
  ID-1: / size: 475.67 GiB used: 31.8 GiB (6.7%) fs: btrfs dev: /dev/dm-0
    mapped: luks-2de2dd72-f6ed-445b-b726-d3dea9419cb8
  ID-2: /boot size: 973.4 MiB used: 294.2 MiB (30.2%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-3: /boot/efi size: 256 MiB used: 68.7 MiB (26.8%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 475.67 GiB used: 31.8 GiB (6.7%) fs: btrfs
    dev: /dev/dm-0 mapped: luks-2de2dd72-f6ed-445b-b726-d3dea9419cb8
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) dev: /dev/zram0
Sensors:
  System Temperatures: cpu: N/A mobo: N/A gpu: amdgpu temp: 40.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 343 Uptime: 21h 13m Memory: 14.98 GiB used: 2.93 GiB (19.5%)
  Init: systemd target: graphical (5) Compilers: gcc: 12.2.1 Packages: N/A
  note: see --pkg Shell: Bash v: 5.1.16 inxi: 3.3.19
Titan:~% [

Thanks in advance,

-Timothy

We need more info about that adapter to even see what it is. Use inxi -Nxxx and lspci -nn to show the device with its chipset so we can tell which driver is needed, and if there is one available to support that exact adapter.

lspci -nn
04:00.0 Network controller [0280]: Qualcomm Atheros AR93xx Wireless Network Adapter [168c:0030] (rev 01)
06:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
inxi -Nxxx
Network:
  Device-1: Qualcomm Atheros AR93xx Wireless Network Adapter driver: ath9k
    v: kernel pcie: speed: 2.5 GT/s lanes: 1 bus-ID: 04:00.0 chip-ID: 168c:0030
    class-ID: 0280
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: ASRock driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1
    port: f000 bus-ID: 06:00.0 chip-ID: 10ec:8168 class-ID: 0200

The info shown by inxi as chip-ID, and by lspci -nn as within the square brackets on the right as [XXXX:XXXX] is the specific chipset identifier needed, as you can see by my entries above.

Bluetooth:                                                                      
  Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8
    bus-ID: 1-4:5
  Report: bt-adapter ID: hci0 rfk-id: 4 state: down
    bt-service: enabled,running rfk-block: hardware: no software: yes
    address: <filter>
Drives:
  Local Storage: total: 476.94 GiB used: 32.15 GiB (6.7%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLQ512HBLU-00B00
    size: 476.94 GiB temp: 25.9 C
Partition:
  ID-1: / size: 475.67 GiB used: 31.8 GiB (6.7%) fs: btrfs dev: /dev/dm-0
    mapped: luks-2de2dd72-f6ed-445b-b726-d3dea9419cb8
  ID-2: /boot size: 973.4 MiB used: 294.2 MiB (30.2%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-3: /boot/efi size: 256 MiB used: 68.7 MiB (26.8%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 475.67 GiB used: 31.8 GiB (6.7%) fs: btrfs
    dev: /dev/dm-0 mapped: luks-2de2dd72-f6ed-445b-b726-d3dea9419cb8
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) dev: /dev/zram0
Sensors:
  System Temperatures: cpu: N/A mobo: N/A gpu: amdgpu temp: 40.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 343 Uptime: 21h 13m Memory: 14.98 GiB used: 2.93 GiB (19.5%)
  Init: systemd target: graphical (5) Compilers: gcc: 12.2.1 Packages: N/A
  note: see --pkg Shell: Bash v: 5.1.16 inxi: 3.3.19
Titan:~% 
Titan:~% sudo lspci -nn                                                                                                                         
00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex [1022:1630]                                          
00:00.2 IOMMU [0806]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU [1022:1631]                                                       
00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]                                        
00:01.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]                                        
00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]                                        
00:02.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]                                        
00:02.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]                                        
00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]                                        
00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus [1022:1635]                                
00:08.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus [1022:1635]                                
00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 51)                                              
00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51)                                               
00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 0 [1022:166a]                                      
00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 1 [1022:166b]                                      
00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 2 [1022:166c]                                      
00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 3 [1022:166d]                                      
00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 4 [1022:166e]                                      
00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 5 [1022:166f]                                      
00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 6 [1022:1670]                                      
00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 7 [1022:1671]                                      
01:00.0 Non-Volatile memory controller [0108]: Samsung Electronics Co Ltd NVMe SSD Controller 980 [144d:a809]
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 1
5)                                  
03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:b852]                                                           
04:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Barcelo [1002:15e7] (rev c2)                                   
04:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller [1002:1637]                  
04:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor [1022:15df]    
04:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 [1022:1639]                                            
04:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 [1022:1639]                                            
04:00.5 Multimedia controller [0480]: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor [1022:15e2] (rev 01)                 
04:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller [1022:15e3]                                  
05:00.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901] (rev 81)                         
05:00.1 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901] (rev 81)                         
Titan:~% -

Something weird happened with the first command,

Titan:~% sudo inxi -Nxxx
[sudo] password for redmond: 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Acer Incorporated ALI driver: r8169 v: kernel pcie: speed: 2.5 GT/s
    lanes: 1 port: 3000 bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200
  Device-2: Realtek driver: N/A pcie: speed: 2.5 GT/s lanes: 1 port: 2000
    bus-ID: 03:00.0 chip-ID: 10ec:b852 class-ID: 0280
  Device-3: Realtek RTL8153 Gigabit Ethernet Adapter type: USB
    driver: r8152 bus-ID: 4-2:2 chip-ID: 0bda:8153 class-ID: 0000
    serial: 000001
Titan:~% 

That initial post was not the output of inxi -Nxxx but the followup shows it. The output of lspci shows this

03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:b852] 

Although the answer is about ubuntu, I found this

And it seems the solution is to install an updated driver for that adapter.
There is no indicated driver loaded for that adapter at present.

  1. sudo dnf install git
    make a temp directory under your home directory where the rest can be done.
  2. mkdir rtl
    then cd into that directory
  3. cd rtl
    now download the driver source
  4. git clone https://github.com/HRex39/rtl8852be.git
    make sure the kernel headers are installed for compiling
  5. sudo dnf install kernel-devel kernel-header
    now to compile it
  6. cd rtl8852be
  7. make
  8. sudo make install
    which makes the module available for use
  9. sudo modprobe 8852be

If there are any errors while doing these steps then stop and fix the error before continuing.

If all this completes properly then inxi -Nxxx should now show the new module driver for that adapter.

There may be a few additional steps to make sure the new module loads when you reboot but it first needs to be loaded and tested before we go further.

Beautiful!

I did have to do a couple of minor tweaks to get it to work. Mainly as indicated by the readme I needed to checkout the dev branch.

Thank you for knowing where to look! I am going to try the reboot now,

-Timothy

1 Like

I am back and happy. Apparently secure boot is happy with the change. And the command line network manager remembered the wifi password,

Thank you! i SO

This is an extension of the same thread. Your first answer was so very good (until now) that I came back. Every new kernel update, I would recompile the driver. Then with the 6.1 kernels it would not compile. I am wiilling to accept many solutions especially if ehe network card is or soon will be supported (the 6.0 kernel still works). Here is the url of the driver

Titan:rtl8852be% git config --get remote.origin.url
httpffs://github.com/HRex39/rtl8852be.git
Titan:rtl8852be% 

I made it compile with the following changes to the dev branch:

index 7701980..eee226e 100644
--- a/Makefile
+++ b/Makefile
@@ -7,12 +7,13 @@ EXTRA_CFLAGS += -O1
 #EXTRA_CFLAGS += -pedantic
 #EXTRA_CFLAGS += -Wshadow -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wmis
sing-prototypes
 
-EXTRA_CFLAGS += -Wno-unused-variable
+EXTRA_CFLAGS += -w
+#EXTRA_CFLAGS += -Wno-unused-variable
 #EXTRA_CFLAGS += -Wno-unused-value
-EXTRA_CFLAGS += -Wno-unused-label
+#EXTRA_CFLAGS += -Wno-unused-label
 #EXTRA_CFLAGS += -Wno-unused-parameter
 #EXTRA_CFLAGS += -Wno-unused-function
-EXTRA_CFLAGS += -Wno-unused
+#EXTRA_CFLAGS += -Wno-unused
 #EXTRA_CFLAGS += -Wno-uninitialized
 --- a/os_dep/linux/ioctl_cfg80211.c
+++ b/os_dep/linux/ioctl_cfg80211.c
@@ -491,7 +491,7 @@ u8 rtw_cfg80211_ch_switch_notify(_adapter *adapter, u8 ch, u
8 bw, u8 offset,
                 *  called by others with block-tx.
                 */
 
-               cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0, f
alse);
+            cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0, -1, 
false);
 #else
                cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0);
 #endif
        return 0;
diff --git a/os_dep/osdep_service_linux.c b/os_dep/osdep_service_linux.c
index 8dab5a3..b58abcd 100644
--- a/os_dep/osdep_service_linux.c
+++ b/os_dep/osdep_service_linux.c
@@ -847,7 +847,7 @@ u64 rtw_division64(u64 x, u64 y)
 inline u32 rtw_random32(void)
 {
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
-       return prandom_u32();
+       return get_random_u32();
 #elif (LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 18))
        u32 random_int;
        get_random_bytes(&random_int , 4);
diff --git a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c
index 401c11e..6e8a109 100644
--- a/os_dep/linux/os_intfs.c
+++ b/os_dep/linux/os_intfs.c
@@ -291,7 +291,7 @@ int rtw_ndev_init(struct net_device *dev)
        rtw_adapter_proc_init(dev);
 
 #ifdef CONFIG_RTW_NAPI
-       netif_napi_add(dev, &adapter->napi, rtw_recv_napi_poll, RTL_NAPI_WEIGHT)
;
+       netif_napi_add(dev, &adapter->napi, rtw_recv_napi_poll);
 #endif /* CONFIG_RTW_NAPI */
 
        return 0;

now it shows the available wifi networks but it doesn’t connect. I am not sure what Tbtts are so I am suspicious of the notify arguement (I tried more than one value).

thanks in advance,

-timothy

I would accept a fully supported usb wifi card.

Right now, I am using a BrosTrend usb wifi adapter and it works with Fedora (unsupported). YMMV

Just in case