Wi-fi breaks after every restart/shutdown on Linux Mint 20 Cinnamon

Questions about WIFI networks and devices
Forum rules
Before you post please read how to get help
Post Reply
Olivi
Level 1
Level 1
Posts: 7
Joined: Wed Oct 28, 2020 4:04 pm

Wi-fi breaks after every restart/shutdown on Linux Mint 20 Cinnamon

Post by Olivi »

Hi,

Problem is as title says. What I've been doing as a workaround is, I plug in on an Ethernet cable, then run sudo apt-get update. It works like a charm but, yeah, I really wish I didn't have to this.

Is there a way to fix this issue permanently?

Thank you in advance.
OS:
Linux Mint 20 Cinnamon (64-bits)

System:
Kernel: 5.4.0-52-generic x86_64 bits: 64 compiler: gcc v: 9.3.0
Desktop: Cinnamon 4.6.7 wm: muffin 4.6.3 dm: LightDM 1.30.0
Distro: Linux Mint 20 Ulyana base: Ubuntu 20.04 focal
Machine:
Type: Portable System: Dell product: Inspiron 5737 v: A10 serial: <filter>
Chassis: type: 8 v: A10 serial: <filter>
Mobo: Dell model: 045YHR v: A00 serial: <filter> UEFI [Legacy]: Dell
v: A10 date: 01/24/2018
Battery:
ID-1: BAT1 charge: 41.9 Wh condition: 41.9/66.6 Wh (63%) volts: 12.9/11.1
model: LGC DELL 0MF6943B type: Li-ion serial: <filter> status: Full
CPU:
Topology: Dual Core model: Intel Core i7-4500U bits: 64 type: MT MCP
arch: Haswell rev: 1 L2 cache: 4096 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
bogomips: 19155
Speed: 798 MHz min/max: 800/1700 MHz Core speeds (MHz): 1: 798 2: 798
3: 798 4: 798
Graphics:
Device-1: Intel Haswell-ULT Integrated Graphics vendor: Dell driver: i915
v: kernel bus ID: 00:02.0 chip ID: 8086:0a16
Device-2: AMD Venus XT [Radeon HD 8870M / R9 M270X/M370X] vendor: Dell
driver: radeon v: kernel bus ID: 03:00.0 chip ID: 1002:6821
Display: x11 server: X.Org 1.20.8 driver: ati,modesetting,radeon
unloaded: fbdev,vesa resolution: 1920x1080~60Hz
OpenGL: renderer: Mesa DRI Intel HD Graphics 4400 (HSW GT2)
v: 4.5 Mesa 20.0.8 compat-v: 3.0 direct render: Yes
Audio:
Device-1: Intel Haswell-ULT HD Audio vendor: Dell driver: snd_hda_intel
v: kernel bus ID: 00:03.0 chip ID: 8086:0a0c
Device-2: Intel 8 Series HD Audio vendor: Dell driver: snd_hda_intel
v: kernel bus ID: 00:1b.0 chip ID: 8086:9c20
Sound Server: ALSA v: k5.4.0-52-generic
Network:
Device-1: Realtek RTL810xE PCI Express Fast Ethernet vendor: Dell
driver: r8169 v: kernel port: 4000 bus ID: 01:00.0 chip ID: 10ec:8136
IF: enp1s0 state: down mac: <filter>
Device-2: Intel Wireless 7260 driver: iwlwifi v: kernel port: 4000
bus ID: 02:00.0 chip ID: 8086:08b1
IF: wlp2s0 state: up mac: <filter>
Drives:
Local Storage: total: 931.51 GiB used: 36.22 GiB (3.9%)
ID-1: /dev/sda vendor: Seagate model: ST1000LM024 HN-M101MBB
size: 931.51 GiB speed: 6.0 Gb/s rotation: 5400 rpm serial: <filter>
rev: 0001 scheme: MBR
Partition:
ID-1: / size: 915.40 GiB used: 36.22 GiB (4.0%) fs: ext4 dev: /dev/sda5
Sensors:
System Temperatures: cpu: 42.0 C mobo: N/A gpu: radeon temp: 46 C
Fan Speeds (RPM): cpu: 0
Repos:
No active apt repos in: /etc/apt/sources.list
Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
1: deb http://mirror.ufscar.br/mint-archive ulyana main upstream import backport
2: deb http://mirror.ufscar.br/ubuntu focal main restricted universe multiverse
3: deb http://mirror.ufscar.br/ubuntu focal-updates main restricted universe multiverse
4: deb http://mirror.ufscar.br/ubuntu focal-backports main restricted universe multiverse
5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
6: deb http://archive.canonical.com/ubuntu/ focal partner
Info:
Processes: 196 Uptime: 7h 57m Memory: 15.53 GiB used: 1.40 GiB (9.0%)
Init: systemd v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 9 Shell: bash
v: 5.0.17 running in: gnome-terminal inxi: 3.0.38

iwconfig:
lo no wireless extensions.

enp1s0 no wireless extensions.

wlp2s0 IEEE 802.11 ESSID:"vanmar"
Mode:Managed Frequency:2.452 GHz Access Point: EC:41:18:06:8E:69
Bit Rate=300 Mb/s Tx-Power=22 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
Link Quality=70/70 Signal level=-21 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:133 Missed beacon:0


lsusb :
Bus 001 Device 005: ID 0c45:64ad Microdia
Bus 001 Device 004: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 003: ID 8087:07dc Intel Corp.
Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lspci
00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09)
00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 09)
00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series HECI #0 (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 3 (rev e4)
00:1c.3 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 4 (rev e4)
00:1c.4 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 5 (rev e4)
00:1d.0 USB controller: Intel Corporation 8 Series USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller (rev 07)
02:00.0 Network controller: Intel Corporation Wireless 7260 (rev 73)
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Venus XT [Radeon HD 8870M / R9 M270X/M370X]
User avatar
MartyMint
Level 7
Level 7
Posts: 1608
Joined: Thu Dec 27, 2012 10:50 pm

Re: Wi-fi breaks after every restart/shutdown on Linux Mint 20 Cinnamon

Post by MartyMint »

Olivi wrote:
Fri Oct 30, 2020 3:59 pm
Hi,

Problem is as title says. What I've been doing as a workaround is, I plug in on an Ethernet cable, then run sudo apt-get update. It works like a charm but, yeah, I really wish I didn't have to this.

sudo apt-get update shouldn't have anything to do with restarting your wifi/network.
That command merely updates your apt list.
sleeper12
Level 13
Level 13
Posts: 4706
Joined: Thu May 25, 2017 3:22 pm

Re: Wi-fi breaks after every restart/shutdown on Linux Mint 20 Cinnamon

Post by sleeper12 »

Turn power management off:

Code: Select all

 sudo sed -i 's/3/2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf 
Reboot
Olivi
Level 1
Level 1
Posts: 7
Joined: Wed Oct 28, 2020 4:04 pm

Re: Wi-fi breaks after every restart/shutdown on Linux Mint 20 Cinnamon

Post by Olivi »

MartyMint and sleeper12,

thank you for replying so fast!


@MartyMint oh. I didn't know that. Sorry, someone recommended that to me and it "worked". By "worked", I mean it was probably a coincidence and then, in my lack of experience with Linux, I was lead to think that it was the command that did the trick. But thanks for teaching me on what the command does!

@sleeper12, weirdly enough I just did two reboots and the Wi-Fi driver was working fine this time!! Should I still proceed with the command in this case or only execute it if it breaks again?
Also, I'm thinking maybe it's the system updates that might have something to do with this, because twice have I updated some system files, and it coincidentally broke around these instances.
Olivi
Level 1
Level 1
Posts: 7
Joined: Wed Oct 28, 2020 4:04 pm

Re: Wi-fi breaks after every restart/shutdown on Linux Mint 20 Cinnamon

Post by Olivi »

Guys,

It just broke again after an update and a reboot.

I did what sleeper12 told me, I copy pasted the command and rebooted. Still, no wi-fi signal.

Then... and I'm not joking nor I know why this helps, I ran sudo apt-get update, it returned this:
Ignored:1 http://mirror.ufscar.br/mint-archive ulyana InRelease
Found:2 http://mirror.ufscar.br/ubuntu focal InRelease
Found:3 http://mirror.ufscar.br/ubuntu focal-updates InRelease
Found:4 http://mirror.ufscar.br/ubuntu focal-backports InRelease
Found:5 http://mirror.ufscar.br/mint-archive ulyana Release
Found:6 http://security.ubuntu.com/ubuntu focal-security InRelease
Found:7 http://archive.canonical.com/ubuntu focal InRelease
Reading packages list... Done*

After a reboot, everything was back to normal. What's going on?

*P.s: My system is in Italian, I had to translate the output result above. Disregard if some sound weird or not 'real' commands, it's just because I don't know their English originals in Linux
sleeper12
Level 13
Level 13
Posts: 4706
Joined: Thu May 25, 2017 3:22 pm

Re: Wi-fi breaks after every restart/shutdown on Linux Mint 20 Cinnamon

Post by sleeper12 »

Is power management off now or still on? Check with:

Code: Select all

 iwconfig 
Olivi
Level 1
Level 1
Posts: 7
Joined: Wed Oct 28, 2020 4:04 pm

Re: Wi-fi breaks after every restart/shutdown on Linux Mint 20 Cinnamon

Post by Olivi »

sleeper12 wrote:
Fri Oct 30, 2020 9:57 pm
Is power management off now or still on? Check with:

Code: Select all

 iwconfig 
This is the output:
enp1s0 no wireless extensions.

lo no wireless extensions.



Note: It broke again and I connected my laptop to the Ethernet cable and, upon another restart, wireless was back to normal. Is this relevant?
sleeper12
Level 13
Level 13
Posts: 4706
Joined: Thu May 25, 2017 3:22 pm

Re: Wi-fi breaks after every restart/shutdown on Linux Mint 20 Cinnamon

Post by sleeper12 »

Let's assume it's off then & see if wifi keeps working or not.
Olivi
Level 1
Level 1
Posts: 7
Joined: Wed Oct 28, 2020 4:04 pm

Re: Wi-fi breaks after every restart/shutdown on Linux Mint 20 Cinnamon

Post by Olivi »

sleeper12 wrote:
Sat Oct 31, 2020 10:52 am
Let's assume it's off then & see if wifi keeps working or not.
Thanks mate! So far so good.
Post Reply

Return to “Wireless”