Wifi connection goes on and off

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
MauroDiamantino

Wifi connection goes on and off

Post by MauroDiamantino »

Hello :D , I have a HP Notebook, model 14-an020la, on which I have installed the Linux Mint 18.1 (Serena), 64-bits. After a weeks that I had installed the OS, I realized that the wifi connection sometimes works fine but sometimes it turns off and I have to reconnect it manually.
I typed the next command in a terminal:
mauro@HP-Mauro ~ $ lspci -vk
And I got the next result (I put only the piece referred to the network adapter and ethernet controller):

Code: Select all

02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller (rev 07)
	Subsystem: Hewlett-Packard Company RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller
	Flags: bus master, fast devsel, latency 0, IRQ 36
	I/O ports at 3000 [size=256]
	Memory at f0c00000 (64-bit, non-prefetchable) [size=4K]
	Memory at f0800000 (64-bit, prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: r8169
	Kernel modules: r8169

03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter
	DeviceName:  
	Subsystem: Hewlett-Packard Company RTL8723BE PCIe Wireless Network Adapter
	Flags: bus master, fast devsel, latency 0, IRQ 46
	I/O ports at 2000 [size=256]
	Memory at f0b00000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: rtl8723be
	Kernel modules: rtl8723be
Have someone had the same problem? Is there a way to fix it? Is the problem in the driver or in the network manager?
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.
plawrence50

Re: Wifi connection goes on and off

Post by plawrence50 »

After I installed Sonya my wifi was a bit erratic , but bit of googling found that a number of people were suffering from this and the solution seemed to be to turn off wireless power management.

in the file /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

change the value of wifi.powersave = 3 to 2

Give it a try, worked for me.
JeremyB
Level 21
Level 21
Posts: 13878
Joined: Fri Feb 21, 2014 8:17 am

Re: Wifi connection goes on and off

Post by JeremyB »

A realtek 8723 in a HP laptop, probably just has one antenna wire.
In terminal do

Code: Select all

sudo modprobe -r rtl8723be

Code: Select all

sudo modprobe rtl8723be ant_sel=1

Code: Select all

iwlist scan | egrep -i 'ssid|level'

Code: Select all

sudo modprobe -r rtl8723be

Code: Select all

sudo modprobe rtl8723be ant_sel=2

Code: Select all

iwlist scan | egrep -i 'ssid|level'
Post results
emtea
Level 2
Level 2
Posts: 71
Joined: Fri Jun 14, 2013 7:16 am
Location: Ripley, Derbyshire, UK

Re: Wifi connection goes on and off

Post by emtea »

plawrence50 wrote:After I installed Sonya my wifi was a bit erratic , but bit of googling found that a number of people were suffering from this and the solution seemed to be to turn off wireless power management.

in the file /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

change the value of wifi.powersave = 3 to 2

Give it a try, worked for me.

Working for me too, thanks. Hopefully it will continue to do so after this simple fix. This has been very frustrating recently.
Locked

Return to “Networking”