BCM43142 - no Wifi after computer suspends

Hello,
I installed Manjaro 20 Xfce on an HP-Pavilion-Notebook laptop.
I am having problems with the wifi. My network card is a Broadcom BCM43142. Access to the network is random at startup. But, above all, after a standby, the Wifi no longer works. The only way to make it work again is to restart the machine. Thanks for your help.
Some info before computer suspends :
hwinfo --netcard --wlan --bluetooth | grep -Ei "model:|driver:|status:|cmd:|file:|detected:" | grep -v "Config Status"

 Model: "Realtek RTL810xE PCI Express Fast Ethernet controller"
  Driver: "r8169"
  Device File: eno1
  Link detected: no
    Driver Status: r8169 is active
    Driver Activation Cmd: "modprobe r8169"
  Model: "Broadcom BCM43142 802.11b/g/n"
  Driver: "wl"
  Device File: wlo1
  Link detected: yes
    Driver Status: bcma is not active
    Driver Activation Cmd: "modprobe bcma"
    Driver Status: wl is active
    Driver Activation Cmd: "modprobe wl"

sudo inxi -Fx

System:    Host: hppavilionnotebook Kernel: 5.6.16-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.1.0 Console: tty 0 
           Distro: Manjaro Linux 
Machine:   Type: Laptop System: HP product: HP Pavilion Notebook v: Type1ProductConfigId serial: 5CD5480K4J 
           Mobo: HP model: 809A v: 89.33 serial: PFHTF018J9Q0EH UEFI: Insyde v: F.80 date: 06/14/2016 
Battery:   ID-1: BAT0 charge: 17.3 Wh condition: 23.4/23.4 Wh (100%) model: Hewlett-Packard Primary status: Unknown 
CPU:       Topology: Dual Core model: Intel Core i3-5020U bits: 64 type: MT MCP arch: Broadwell rev: 4 L2 cache: 3072 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 bogomips: 17565 
           Speed: 798 MHz min/max: 500/2100 MHz Core speeds (MHz): 1: 798 2: 798 3: 798 4: 798 
Graphics:  Device-1: Intel HD Graphics 5500 vendor: Hewlett-Packard driver: i915 v: kernel bus ID: 00:02.0 
           Display: server: X.org 1.20.8 driver: amdgpu,ati,intel unloaded: modesetting tty: 146x36 
           Message: Advanced graphics data unavailable in console for root. 
Audio:     Device-1: Intel Broadwell-U Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel bus ID: 00:03.0 
           Device-2: Intel Wildcat Point-LP High Definition Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel 
           bus ID: 00:1b.0 
           Sound Server: ALSA v: k5.6.16-1-MANJARO 
Network:   Device-1: Broadcom and subsidiaries BCM43142 802.11b/g/n vendor: Hewlett-Packard driver: wl v: kernel port: 6040 
           bus ID: 08:00.0 
           IF: wlo1 state: up mac: 60:6d:c7:e8:55:fb 
           Device-2: Realtek RTL810xE PCI Express Fast Ethernet vendor: Hewlett-Packard driver: r8169 v: kernel port: 4000 
           bus ID: 09:00.0 
           IF: eno1 state: down mac: dc:4a:3e:dd:2e:37

rfkill list all

0: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
1: hci0: Bluetooth
	Soft blocked: yes
	Hard blocked: no

iwconfig

lo        no wireless extensions.

eno1      no wireless extensions.

wlo1      IEEE 802.11  ESSID:"Freebox-bcaulier"  
          Mode:Managed  Frequency:2.437 GHz  Access Point: 14:0C:76:6F:4A:91   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off

sudo systemctl status NetworkManager

NetworkManager.service - Network Manager
     Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; vendor preset: disabled)
    Drop-In: /usr/lib/systemd/system/NetworkManager.service.d
             └─NetworkManager-ovs.conf
     Active: active (running) since Sat 2020-07-18 15:49:01 CEST; 13min ago
       Docs: man:NetworkManager(8)
   Main PID: 811 (NetworkManager)
      Tasks: 3 (limit: 4609)
     Memory: 15.8M
     CGroup: /system.slice/NetworkManager.service
             └─811 /usr/bin/NetworkManager --no-daemon

juil. 18 16:01:46 hppavilionnotebook NetworkManager[811]: <info>  [1595080906.2120] device (wlo1): supplicant interface state: completed -> 4way_handshake
juil. 18 16:01:46 hppavilionnotebook NetworkManager[811]: <info>  [1595080906.2197] device (wlo1): supplicant interface state: 4way_handshake -> completed
juil. 18 16:02:00 hppavilionnotebook NetworkManager[811]: <info>  [1595080920.4965] device (wlo1): supplicant interface state: completed -> disconnected
juil. 18 16:02:00 hppavilionnotebook NetworkManager[811]: <info>  [1595080920.5960] device (wlo1): supplicant interface state: disconnected -> scanning
juil. 18 16:02:01 hppavilionnotebook NetworkManager[811]: <info>  [1595080921.4085] device (wlo1): supplicant interface state: scanning -> associating
juil. 18 16:02:01 hppavilionnotebook NetworkManager[811]: <info>  [1595080921.4424] device (wlo1): supplicant interface state: associating -> disconnected
juil. 18 16:02:01 hppavilionnotebook NetworkManager[811]: <info>  [1595080921.9429] device (wlo1): supplicant interface state: disconnected -> scanning
juil. 18 16:02:02 hppavilionnotebook NetworkManager[811]: <info>  [1595080922.7428] device (wlo1): supplicant interface state: scanning -> associating
juil. 18 16:02:02 hppavilionnotebook NetworkManager[811]: <info>  [1595080922.7833] device (wlo1): supplicant interface state: associating -> 4way_handshake
juil. 18 16:02:02 hppavilionnotebook NetworkManager[811]: <info>  [1595080922.7919] device (wlo1): supplicant interface state: 4way_handshake -> completed

Some info after computer suspends :
rfkill list all

0: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no

sudo systemctl restart NetworkManager
rfkill list all

0: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no

iwconfig

lo        no wireless extensions.

eno1      no wireless extensions.

wlo1      IEEE 802.11  ESSID:off/any
          Mode:Managed   Access Point: Not-associated
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off

sudo systemctl status NetworkManager

NetworkManager.service - Network Manager
     Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; vendor preset: disabled)
    Drop-In: /usr/lib/systemd/system/NetworkManager.service.d
             └─NetworkManager-ovs.conf
     Active: active (running) since Sat 2020-07-18 10:13:08 CEST; 2min 18s ago
       Docs: man:NetworkManager(8)
   Main PID: 2819 (NetworkManager)
      Tasks: 3 (limit: 4609)
     Memory: 3.9M
     CGroup: /system.slice/NetworkManager.service
             └─2819 /usr/bin/NetworkManager --no-daemon

juil. 18 10:13:09 hppavilionnotebook NetworkManager[2819]: <info>  [1595059989.1298] device (eno1): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
juil. 18 10:13:09 hppavilionnotebook NetworkManager[2819]: <info>  [1595059989.1328] manager: (wlo1): new 802.11 Wi-Fi device (/org/freedesktop/NetworkManager/Devices/3)
juil. 18 10:13:09 hppavilionnotebook NetworkManager[2819]: <info>  [1595059989.1342] device (wlo1): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
juil. 18 10:13:09 hppavilionnotebook NetworkManager[2819]: <info>  [1595059989.1360] device (wlo1): set-hw-addr: set MAC address to E6:8C:FC:82:0D:E6 (scanning)
juil. 18 10:13:09 hppavilionnotebook NetworkManager[2819]: <info>  [1595059989.1425] ovsdb: Impossible de se connecter : Aucun fichier ou dossier de ce type
juil. 18 10:13:09 hppavilionnotebook NetworkManager[2819]: <info>  [1595059989.1551] modem-manager: ModemManager available
juil. 18 10:13:09 hppavilionnotebook NetworkManager[2819]: <info>  [1595059989.1898] device (wlo1): supplicant interface state: internal-starting -> disconnected
juil. 18 10:13:09 hppavilionnotebook NetworkManager[2819]: <info>  [1595059989.1903] device (wlo1): state change: unavailable -> disconnected (reason 'supplicant-available', sys-iface-state: 'managed')
juil. 18 10:13:09 hppavilionnotebook NetworkManager[2819]: <info>  [1595059989.1989] agent-manager: agent[f80a47b62afb4b69,:1.30/org.freedesktop.nm-applet/1000]: agent registered
juil. 18 10:13:15 hppavilionnotebook NetworkManager[2819]: <info>  [1595059995.1317] manager: startup complete

The first thing to do is try different kernel versions. Always keep at least 2 kernels installed for safety.

The next thing to try is a different driver, see my guide:



I would highly consider replacing wpa_supplicant with IWD, as this often produces less issues than wpa_supplicant (with some Broadcom wifi adapters). Instructions on how to do so are contained in the guide linked below:

If replacing iwd does not bring the results you want then you could try replacing Network Manager in addition to iwd.



Before making major changes to your system's configuration you should always make a backup first. I would highly suggest installing timeshift to take system snapshots before making any updates.



If none of those changes help your suspend situation, then the only workaround remaining is to write a systemd suspend service:



2 Likes

Hello,
I made a backup with Timeshift.
uname -a
Linux hppavilionnotebook 5.6.16-1-MANJARO #1 SMP PREEMPT Wed Jun 3 14:26:28 UTC 2020 x86_64 GNU/Linux

mhwd -li

Installed PCI configs:
---------------------------------------------------------- ------------------------------
                   NAME FREEDRIVER TYPE VERSION
-------------------------------------------------- ------------------------------
    network-broadcom-wl 2018.10.07 true PCI
            video-linux 2018.05.04 true PCI

I don't know where to start, because I'm new to Manjaro. (i used ubuntu for 4 years)
Remove network-broadcom-wl
sudo mhwd -r pci network-broadcom-wl

Removing network-broadcom-wl...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/local/pci/network-broadcom-wl/MHWDCONFIG
Processing classid: 0200
Processing classid: 0280
Processing classid: 0282
vérification des dépendances…
Paquets (1) linux56-broadcom-wl-6.30.223.271-20
Taille totale supprimée :  1,39 MiB
:: Voulez-vous désinstaller ces paquets ? [O/n] 
:: Traitement des changements du paquet…
désinstallation de linux56-broadcom-wl…
:: Exécution des crochets de post-transaction…
(1/2) Arming ConditionNeedsUpdate...
(2/2) Updating module dependencies...
Successfully removed network-broadcom-wl

Install bcm43142a0-firmware (1201710-8) with pacman-manager
Reboot without lan = No WIFI
Install bcm43142-firmware (1-1) with pacman-manager
Reboot without lan = No WIFI
Install broadcom-wl-dkms
dkms install broadcom-wl/6.30.223.271 -k 5.6.16-1-MANJARO

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by