WIFI Not Works After Resume From Sleep

Good Day to Everybody,

Recently I've made some maintenance work on my old HP Pavilion 17-f211nw. Cleaning, thermal paste exchange, installation of ssd...etc. As part of work done, was installation Zorin OS 17 Core. System works fine i'm quite please with it except one thing...as in the topic title.
Every time I resume laptop from sleep my wifi doesn't work. I need to restart the computer to have working. Otherwise everything seems to be OK. Maybe it is not a big issue, because with new ssd laptop starts quite fast, but anyhow it is a restart which sometimes is not convenient.
Could somebody give me some hints, help-hand how to deal with the issue?. I shall admit that same issue I had with previously installed Linux Mint. Additionally i installed Zorin OS 17 on my wife's old Macbook Air and her computer works just fine without this issue.

After computer restart:

After resume from sleep:

Thank You in advance :slight_smile:

It seem your wireless card doesn't take an IP from your router, the only thing I can say it's many Linux distro have problem with suspend, so if you can, don't use it...

1 Like

Broadcom uses a Proprietary driver and it is notorious about wake from sleep.

You might switch to the open source driver:

sudo apt purge bcmwl-kernel-source

sudo apt install firmware-b43-installer b43-fwcutter

2 Likes

I tried but.....

I found a couple of interesting links/searches.

First, Brave A.I. search engine via mojeek:

" BCM41432 Sleep Connection Issue

The issue of the BCM43142 wireless adapter losing connection when waking from sleep in Ubuntu 22.04 on an HP Pavilion 17-f211nw is a known problem. Users have reported that after the laptop wakes from sleep, the Network Manager shows the Wi-Fi as "disabled via hardware switch," even though there is no physical hardware switch on the laptop.2

To resolve this issue, you can try the following steps:

  1. Check for Hardware Block :
  • Run the command rfkill list to check if the Wi-Fi is hard blocked. If it is, you may need to unblock it using rfkill unblock wifi .
  1. Update Kernel :
  • Ensure that your system is running the latest kernel. Sometimes, updating to a newer kernel can resolve hardware compatibility issues. You can install the latest kernel using the Mainline tool.
  1. Reinstall Broadcom Drivers :
  • Reinstall the Broadcom wireless drivers. You can do this by running the following commands:
sudo apt update
sudo apt install bcmwl-kernel-source
  1. Check for Firmware Updates :
  • Ensure that your laptop's firmware is up to date. Firmware updates can sometimes resolve hardware issues.
  1. Temporary Workaround :
  • If the above steps do not resolve the issue, a temporary workaround is to toggle the Wi-Fi on and off. You can do this through the Network Manager or by using the command line:
nmcli radio wifi off
nmcli radio wifi on

If the problem persists, you may want to consult the Ubuntu community forums or the HP support website for additional troubleshooting steps or updates."

Whilst not a Pavilion notebook some interesting bits in this thread:

Thanks. I was following what You mentioned.
The hardware is blocked according to rfkill, i.e. Hard blocked: Yes, but unblock doesn't help. Kernel is updated according to Zorin OS 17.2. I did as well re-installation of drivers.
When my wifi is off toggle software switch is not switching on...
What I can see from attached thread, it is a common issue and no easy, certain solution....

I wonder if updating the kernel would help. @Aravisian has written guides on how to install mainline kernels.

Maybe it shall be necessary, but I don't want to make some ■■■■■■■■, since I don't have so much experience with all that stuff

An alternative solution might be to purchase a USB wifi dongle:

https://www.thinkpenguin.com/catalog/networking-gear-gnu-linux

Yeap, right, but since I have working card and the only issue is with resume from sleep I would like to keep to no cost solution.....unless my card breaks completely.

1 Like

You could see if there are any Netgear WG111v3 dongles on e-bay, they always worked out of the box on my desktops running GNU/Linux.

1 Like

How does one gain experience, if they seek to avoid it?

I don't avoid it. That's why I ask for help on the form. On the another hand if solution requires deeper knowledge/more background (what I understand it is exactly in respect to kernel) I simply don't have it.

This post is in regards to a system that is not dual booting Windows OS and has Secure Boot disabled:

I can understand reticence to take actions you are uncertain about. One of the reasons we ask for help and for guidance is to gain that knowledge and certainty.
And you may need to downgrade the kernel, rather than upgrade it. Would need to know more before determining which you need...

If you installed the Open Source driver from post three, you may need to ensure that the existing Broadcom Proprietary driver does not conflict with it by blacklisting it.
echo -e "blacklist bcma\nblacklist brcmsmac" | sudo tee /etc/modprobe.d/blacklist-broadcom.conf
With that blacklisted, you must update initramfs:

sudo update-initramfs -u

You will not see a change until reboot.

Another step: Disable power management of Networking from disabling the card:

sudo nano /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

You will see:

[connection]
wifi.powersave = 3

Change that value to 2 to disable power management of networking:

[connection]
wifi.powersave = 2

Tap ctl+o to overwrite, then enter key to save current configuration. Tap ctl+x to exit the editor.

This too, needs a reboot to see the change.
Both of these are worth trying before trying to change the kernel.

1 Like

I did as requested. I blacklisted proprietary driver , disable power management etc. but did not help. Finally i changed kernel as described in link and i have no wifi at all.
Please see below

Afterwards I wanted to undo kernel and install proprietary driver but I have error as below

Above, I mentioned we may need to downgrade your kernel and I would need to research that more.
You can boot from Grub Menu > Advanced optiions and select the earlier kernel to boot from.

What steps did you take to "undo" the kernel?
To remove the 6.12 kernel, you only need to run

sudo apt remove --purge linux-generic-6.12

You can remove the repository with

sudo add-apt-repository --remove ppa:tuxinvader/jammy-mainline

This is exactly what I did 'purge' kernel and removed repo.