Probably a reasonable starting point is to consider what your machine is doing on the network… ie What apps using the network are currently running? What kinds of network resources might be mounted or utilized, eg network shares both in the LAN or across the Internet? Anything like mail which might query a remote server every few minutes? Any notifications generated based on network activity?
You should also consider what kinds of Internet connections are used in each place. Dedicated Internet connections to the Provider are often more stable. Shared connections (upstream, not in your LAN) will often put your connection “to sleep” due to inactivity, particularly if the other upstream Users need that bandwidth.
I have exactly the same problem on openSUSE LEAP 42.2 (64 bit) with KDE 4.14.25.
No problem when network is wired, but network is often disconnecting when on WiFi. Only restart of the whole system helps.
Ok, a RTL8723BE PCIe Wireless Network Adapter supported by the ‘rtl8723be’ driver. I’ve seen reports that the installed wireless card may have two antenna ports but some vendors saved money by only including a single antenna on some laptop models. Read the comments in this thread by Larry Finger (wireless driver developer) about this situation.
Here’s another thread concerning an openSUSE user discussing the same issue. There is a solution to set the correct antenna (a driver option) when the module loads. This can be trialled by unloading the driver and the loading with an option to explicitly set the deisred antenna ‘ant_sel=1’ or "ant_sel=2’…
sudo modprobe -r rtl8723be
sudo modprobe rtl8723be ant_sel=2
then check the received signal level for each trialled antenna connection
sudo /usr/sbin/iw dev wlan0 scan | egrep "SSID|signal"
It should soon become apparent which antenna port is really connected to a physical antenna by the signal strength reported.
Once it is known whether ant_sel=1 or ant_sel=2 is appropriate, it can be configured permanently like this
echo "options rtl8723be ant_sel=2 fwlps=0" | sudo tee /etc/modprobe.d/rtl8723be.conf
The next time the driver is loaded, these settings will take effect.
If you’re doing anything that sets up multiple simultaneous network connections like torrent file sharing, you should change your TCP/IP Congesttion Control Algorithm. Also unless you severely throttle the number of simultaneous connections and/or bandwidth, you can also improve performance by enlarging and optimizing your TCP/IP buffers, shifting from local computing to networking.
I describe all you need to know and do, and I describe the networking symptoms that were fixed in this online paper I wrote many years ago for an earlier openSUSE, but is still very applicable today.
It seems here is no difference between antenna 1 and 2.
However, I have thoroughly tested WiFi for many hours during couple of days. Until now I have used mainly wired connection because of unstable WiFi. It appears the stability of WiFi is much better than a month ago. Perhaps as a result of updates?
Thank you again.
Thanks to you all for your help!
I have tested the antenna selection as you suggested. Here is the result:
It seems here is no difference between antenna 1 and 2.
However, I have thoroughly tested WiFi for many hours during couple of days. Until now I have used mainly wired connection because of unstable WiFi. It appears the stability of WiFi is much better than a month ago. Perhaps as a result of updates?
Thank you again.
That could be because your laptop does include two connected antennas. In any case, since you report the wifi link is more stable now nothing further needs to be done for now. Enjoy.
I just noticed one possible mistake you made - when you attempted to test with 'ant_sel=1" you didn’t unload the driver first based on what you posted here…