Problem with wifi connection

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
miindck
Level 2
Level 2
Posts: 90
Joined: Wed Oct 07, 2020 8:04 pm

Problem with wifi connection

Post by miindck »

Every 2-4 hours my wifi stops responding and if I type "ping google.com" in terminal, it times out and I have to disable and then re-enable wifi adapter to make the connection timeout go away.

Can anyone tell me what could be wrong and how to fix it?

I never had this problem with windows 10 so it is not a hardware issue for sure.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
JeremyB
Level 21
Level 21
Posts: 13724
Joined: Fri Feb 21, 2014 8:17 am

Re: Problem with wifi connection

Post by JeremyB »

Probably wifi power management, try

Code: Select all

sudo sed -i 's/wifi.powersave = 3/wifi.powersave = 2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
systemctl restart network-manager.service
User avatar
miindck
Level 2
Level 2
Posts: 90
Joined: Wed Oct 07, 2020 8:04 pm

Re: Problem with wifi connection

Post by miindck »

That did not fix my problem. My wifi still hung up and I had to disable and re-enable the wifi.
kelebek333
Level 4
Level 4
Posts: 418
Joined: Sat Jun 25, 2011 11:57 am

Re: Problem with wifi connection

Post by kelebek333 »

Can you post outputs of wireless script?
User avatar
miindck
Level 2
Level 2
Posts: 90
Joined: Wed Oct 07, 2020 8:04 pm

Re: Problem with wifi connection

Post by miindck »

kelebek333 wrote: Mon Apr 26, 2021 5:30 pm Can you post outputs of wireless script?
Here is the output of the above script.
script output
kelebek333
Level 4
Level 4
Posts: 418
Joined: Sat Jun 25, 2011 11:57 am

Re: Problem with wifi connection

Post by kelebek333 »

02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8188EE Wireless Network Adapter [10ec:8179] (rev 01)
Subsystem: Hewlett-Packard Company RTL8188EE mini-PCIe card [103c:197d]
Kernel driver in use: rtl8188ee
You can try to create a configuration file for rtl8188ee module with following command.

Code: Select all

echo "options rtl8188ee swenc=1 fwlps=0 ips=0 aspm=0" | sudo tee /etc/modprobe.d/rtl8188ee.conf
Then reboot your PC or reload rtl8188ee module and Network Mamanager with following commands.

Code: Select all

sudo rmmod rtl8188ee
sudo modprobe rtl8188ee
sudo systemctl restart NetworkManager

You can remove configuration file with following command if required.

Code: Select all

sudo rm -f /etc/modprobe.d/rtl8188ee.conf
User avatar
miindck
Level 2
Level 2
Posts: 90
Joined: Wed Oct 07, 2020 8:04 pm

Re: Problem with wifi connection

Post by miindck »

kelebek333 wrote: Tue Apr 27, 2021 1:37 pm

Code: Select all

echo "options rtl8188ee swenc=1 fwlps=0 ips=0 aspm=0" | sudo tee /etc/modprobe.d/rtl8188ee.conf
Then reboot your PC or reload rtl8188ee module and Network Mamanager with following commands.

Code: Select all

sudo rmmod rtl8188ee
sudo modprobe rtl8188ee
sudo systemctl restart NetworkManager

You can remove configuration file with following command if required.

Code: Select all

sudo rm -f /etc/modprobe.d/rtl8188ee.conf

I followed the instructions, but the problem still remains.
sleeper12
Level 21
Level 21
Posts: 14315
Joined: Thu May 25, 2017 3:22 pm

Re: Problem with wifi connection

Post by sleeper12 »

Does it help if you Disable IPv6?
https://easylinuxtipsproject.blogspot.c ... html#ID2.2

Also, let's see:

Code: Select all

 inxi -Fxxxrz 
User avatar
miindck
Level 2
Level 2
Posts: 90
Joined: Wed Oct 07, 2020 8:04 pm

Re: Problem with wifi connection

Post by miindck »

sleeper12 wrote: Wed Apr 28, 2021 1:24 pm Does it help if you Disable IPv6?
https://easylinuxtipsproject.blogspot.c ... html#ID2.2
I disabled the ipv6 and the problem is a little bit solved, instead of hang-ups after 2 hours now it hangs up after about 4 hrs.

Output of inxi -Fxxxrz

Code: Select all

System:
  Kernel: 5.4.0-72-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: Laptop System: Hewlett-Packard product: HP 15 Notebook PC 
  v: 0972110003405F00000620180 serial: <filter> Chassis: type: 10 serial: <filter> 
  Mobo: Hewlett-Packard model: 2213 v: 57.51 serial: <filter> UEFI: Insyde v: F.36 
  date: 12/18/2014 
Battery:
  ID-1: BAT1 charge: 22.4 Wh condition: 22.4/31.1 Wh (72%) volts: 12.6/11.1 
  model: COMPAL PABAS0241231 type: Li-ion serial: <filter> status: Full 
CPU:
  Topology: Quad Core model: Intel Pentium N3540 bits: 64 type: MCP arch: Silvermont 
  rev: 8 L2 cache: 1024 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 17333 
  Speed: 900 MHz min/max: 500/2666 MHz Core speeds (MHz): 1: 502 2: 502 3: 511 4: 679 
Graphics:
  Device-1: Intel Atom Processor Z36xxx/Z37xxx Series Graphics & Display 
  vendor: Hewlett-Packard driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:0f31 
  Display: x11 server: X.Org 1.20.9 driver: modesetting unloaded: fbdev,vesa 
  resolution: 1366x768~60Hz 
  OpenGL: renderer: Mesa DRI Intel HD Graphics (BYT) v: 4.2 Mesa 20.2.6 compat-v: 3.0 
  direct render: Yes 
Audio:
  Device-1: Intel Atom Processor Z36xxx/Z37xxx Series High Definition Audio 
  vendor: Hewlett-Packard driver: snd_hda_intel v: kernel bus ID: 00:1b.0 
  chip ID: 8086:0f04 
  Sound Server: ALSA v: k5.4.0-72-generic 
Network:
  Device-1: Realtek RTL8188EE Wireless Network Adapter vendor: Hewlett-Packard 
  driver: rtl8188ee v: kernel port: 2000 bus ID: 02:00.0 chip ID: 10ec:8179 
  IF: wlp2s0 state: up mac: <filter> 
  Device-2: Realtek RTL810xE PCI Express Fast Ethernet vendor: Hewlett-Packard 
  driver: r8169 v: kernel port: 1000 bus ID: 04:00.0 chip ID: 10ec:8136 
  IF: enp4s0 state: down mac: <filter> 
Drives:
  Local Storage: total: 931.51 GiB used: 514.49 GiB (55.2%) 
  ID-1: /dev/sda vendor: Western Digital model: WD10JPVX-22JC3T0 size: 931.51 GiB 
  speed: 3.0 Gb/s rotation: 5400 rpm serial: <filter> rev: 1A01 temp: 38 C scheme: GPT 
Partition:
  ID-1: / size: 25.02 GiB used: 19.99 GiB (79.9%) fs: ext4 dev: /dev/sda8 
  ID-2: /home size: 9.54 GiB used: 4.94 GiB (51.8%) fs: ext4 dev: /dev/sda9 
  ID-3: swap-1 size: 12.79 GiB used: 731.3 MiB (5.6%) fs: swap dev: /dev/sda7 
Sensors:
  System Temperatures: cpu: 57.0 C mobo: 56.0 C 
  Fan Speeds (RPM): N/A 
Repos:
  No active apt repos in: /etc/apt/sources.list 
  Active apt repos in: /etc/apt/sources.list.d/additional-repositories.list 
  1: deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable
  Active apt repos in: /etc/apt/sources.list.d/git-core-ppa-focal.list 
  1: deb http://ppa.launchpad.net/git-core/ppa/ubuntu focal main
  Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 
  1: deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
  Active apt repos in: /etc/apt/sources.list.d/obsproject-obs-studio-focal.list 
  1: deb http://ppa.launchpad.net/obsproject/obs-studio/ubuntu focal main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
  1: deb http://mirror.clarkson.edu/linuxmint/packages ulyana main upstream import backport
  2: deb http://la-mirrors.evowise.com/ubuntu focal main restricted universe multiverse
  3: deb http://la-mirrors.evowise.com/ubuntu focal-updates main restricted universe multiverse
  4: deb http://la-mirrors.evowise.com/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
  Active apt repos in: /etc/apt/sources.list.d/skype-stable.list 
  1: deb [arch=amd64] https://repo.skype.com/deb stable main
  Active apt repos in: /etc/apt/sources.list.d/teams.list 
  1: deb [arch=amd64] https://packages.microsoft.com/repos/ms-teams stable main
  Active apt repos in: /etc/apt/sources.list.d/teamviewer.list 
  1: deb https://linux.teamviewer.com/deb stable main
  Active apt repos in: /etc/apt/sources.list.d/vscode.list 
  1: deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main
Info:
  Processes: 241 Uptime: 12h 51m Memory: 3.73 GiB used: 2.22 GiB (59.5%) 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 
sleeper12
Level 21
Level 21
Posts: 14315
Joined: Thu May 25, 2017 3:22 pm

Re: Problem with wifi connection

Post by sleeper12 »

Not sure it will help, but you can try:

Code: Select all

 sudo modprobe -r rtl8188ee && sudo modprobe rtl8188ee 

Code: Select all

 sudo service network-manager restart 
You might also shutdown & restart router & machine.
User avatar
miindck
Level 2
Level 2
Posts: 90
Joined: Wed Oct 07, 2020 8:04 pm

Re: Problem with wifi connection

Post by miindck »

sleeper12 wrote: Sat May 08, 2021 12:41 am Not sure it will help, but you can try:

Code: Select all

 sudo modprobe -r rtl8188ee && sudo modprobe rtl8188ee 

Code: Select all

 sudo service network-manager restart 
You might also shutdown & restart router & machine.
Do I need to do this (sudo modprobe -r rtl8188ee && sudo modprobe rtl8188ee) every time I reboot or just one time?
sleeper12
Level 21
Level 21
Posts: 14315
Joined: Thu May 25, 2017 3:22 pm

Re: Problem with wifi connection

Post by sleeper12 »

miindck wrote: Sun May 09, 2021 2:25 pm

Do I need to do this (sudo modprobe -r rtl8188ee && sudo modprobe rtl8188ee) every time I reboot or just one time?
If it works, you should only need to do it once.
Locked

Return to “Networking”