pop-os / pop

A project for managing all Pop!_OS sources
https://system76.com/pop
2.44k stars 85 forks source link

Wifi stop working after restart or hibernation (MEDIATEK Corp. MT7630e) #882

Open DocAmaroo opened 4 years ago

DocAmaroo commented 4 years ago

[Edit - 24th september 2020]

Distribution (run cat /etc/os-release):

NAME="Pop!_OS"
VERSION="20.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 20.04 LTS"
VERSION_ID="20.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
LOGO=distributor-logo-pop-os

Related hardware (I run lscpi):

Network controller: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter

Issue/Bug Description: On startup everything works completly fine but when i restart or put my computer on sleep/hibernation the wifi tells me there is no wireless networks available. The only way it works is on startup only after a complete reboot.

I already tried to restart the network service with sudo service network-manager restart and other stuff i find in the internet but it didn't work...

Everything is up to date ( sudo apt-get update & sudo apt-get upgrade )

Steps to reproduce (if you know):

:children_crossing: BEFORE TO READ THIS :children_crossing: The script and those commands only work for this (or similar) wireless card : Network controller: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter (to see you're wireless card use lspci | grep Wireless)

If it's not, follow the steps in this tutorial : https://linux.claudeclerc.fr/linuxaddict:reparer:wifisleepmode It's in french but you might be able to translate it easily.

Step 1 Get the zip file : wifi-wakeup-linux.zip and unzip it with : unzip path/to/wifi-wakeup-linux.zip

Step 2 Open a terminal and run :

sudo modprobe -r mt76x0e #wifi should shutdown it's normal
sudo modprobe mt76x0e #wifi should restart
sudo cp path/to/wifi-wakeup-linux/wifi-wakeup.sh /lib/systemd/system-sleep/
sudo chmod +x /lib/systemd/system-sleep/wifi-wakeup.sh

NB: Sometimes on 'restart' the wifi not enabling, just put the computer on sleep and wake him up and should work fine :wink:

Hope it works for you ! Bye !

daniel7an commented 8 months ago

After 100500 tries to fix, this worked perfectly. Thank you!