Ask Your Question
0

wireless connection randomly dies

asked 2016-02-11 20:43:11 -0500

Ignaciorz1612 gravatar image

updated 2016-03-03 23:00:11 -0500

more info: akmods --force gives me this:

Checking kmods exist for 4.4.3-300.fc23.x86_64 [ OK ] Files needed for building modules against kernel 4.4.3-300.fc23.x86_64 could not be found as the following directories are missing: /usr/src/kernels/4.4.3-300.fc23.x86_64/ /usr/lib/modules/4.4.3-300.fc23.x86_64/build/Is the correct kernel-devel package installed? [FAILED]

I have done lots of research and found similar problems, but haven't found a solution yet.

This is on Fedora 23 LXDE (4.4.2-301.fc23.x86_64) on a Lenovo G51 laptop.

Problem: wireless connection (to any wireless network) dies after an arbitrary amount of minutes, with no error notification. The tray icon remains as if connected for some minutes while the connection is already dead. Attempts to reconnect are futile, only solution is reboot and connect again. I have tried using wicd instead of NetworkManager, and this keeps happening. If I am streaming or downloading, connection dies much sooner (a few minutes, sometimes less). A quick fix by a friend was to create a script that does:

rmmod rtl8821ae 
modprobe rtl8821ae

...and a shortcut icon to run it when needed. This has the same effect as rebooting, but much quicker (and, you know, without rebooting...) but the problem continues and now it seems to be taking less time to "crash" after the last kernel update (4.4.2) It is really frustrating.

some outputs

lspci:

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1566
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Mullins [Radeon R4/R5 Graphics] (rev 45)
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Kabini HDMI/DP Audio
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 156b
00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1
00:08.0 Encryption controller: Advanced Micro Devices, Inc. [AMD] Device 1537
00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 11)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 40)
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39)
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39)
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 42)
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 02)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1580
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1581
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1582
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1583
00 ...
(more)
edit retag flag offensive close merge delete

Comments

What's the chipset on your Wifi adapter? lspci | grep WiFi

florian gravatar imageflorian ( 2016-02-12 08:54:17 -0500 )edit

01:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821AE 802.11ac PCIe Wireless Network Adapter

Ignaciorz1612 gravatar imageIgnaciorz1612 ( 2016-02-12 12:57:07 -0500 )edit

Regarding your added info above: looks like your are missing the kernel-devel for 4.4.3-300.fc23.x86_64.

Check it with ls -l /usr/src/kernels/ or rpm -qa kernel-devel,

and install it with dnf install kernel-devel-4.4.3-300.fc23.x86_64

florian gravatar imageflorian ( 2016-03-04 12:54:44 -0500 )edit

Thanks, installed it, that fixed the message, the problem persists tho =/

Ignaciorz1612 gravatar imageIgnaciorz1612 ( 2016-03-06 20:25:04 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2016-03-08 14:56:01 -0500

Ignaciorz1612 gravatar image

updated 2016-03-29 19:43:31 -0500

Okay, F24 alpha is out today (with kernel 4.5) , I installed it and the problem seems to be fixed.

edit flag offensive delete link more

Comments

...tried to apply patch, but it says regd.c does not exist -__-

Ignaciorz1612 gravatar imageIgnaciorz1612 ( 2016-03-08 20:31:41 -0500 )edit
0

answered 2016-03-30 04:36:05 -0500

Realtek WiFi chipsets typically have a problem with power management under linux. I have an RTL8723be and it behaves much the same (connection drops after a while, adapter stops responding et al). The solution is to disable both firmware & link power management using a .conf file that has to be placed in /etc/modprobe.d/.

To find out the parameters to be disabled type modinfo -p <your-network-module-name> at the bash prompt (terminal).

In my case this would be:

modinfo -p rtl8723be

This will show something like:

swenc:Set to 1 for software crypto (default 0)
 (bool)
ips:Set to 0 to not use link power save (default 1)
 (bool)
swlps:Set to 1 to use SW control power save (default 0)
 (bool)
fwlps:Set to 1 to use FW control power save (default 1)
 (bool)
msi:Set to 1 to use MSI interrupts mode (default 0)
 (bool)
debug:Set debug level (0-5) (default 0) (int)
disable_watchdog:Set to 1 to disable the watchdog (default 0)
 (bool)

Now, as you can see, I have disabled both fwlps (firmware power saving) and ips (link power saving). I did this with a file called rtl8723be.conf (it could be anything.conf, naming it after the module in question just makes it easier to remember) that i have placed in /etc/modprobe.d (the folder where the kernel looks for module options while loading modules).

My configuration file reads as below:

options rtl8723be fwlps=0 ips=0

This is the standard format for any module configuration file. options <module-name> <parameter 1="">=0/1 <parameter 2="">=0/1...

This may seem involved but it works. Once you do this, reboot and you will not face any more problems with wifi plus it will work across kernel upgrades since it's just a module configuration file.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-02-11 20:43:11 -0500

Seen: 783 times

Last updated: Mar 30 '16