After resume (opening the lid of the notebook) the internet is very slow 8Mbps instead of 500Mbps. Nothing helps but reboot. I tried sudo netconfig update -f, sudo systemctl restart NetworkManager, sudo systemctl restart network but with no success; only reboot helped.
Testing on a Laptop – WLAN – two AVM FRITZ!WLAN 1750 Repeaters in a daisy-chain from the DSL FRITZ!Box.
I’m currently attached to the 2nd Repeater in the daisy-chain.
Data rate between the 1st and 2nd Repeater is between 205 Mbit/s and 216 MBit/s – 2.4 GHz band.
Data rate between this Laptop and the 2nd Repeater varies between 72 MBit/s and 1 MBit/s – it seems to cycle up and down between the upper and lower values.
Fairly heavy neighbourhood WLAN activity in the 2.4 GHz band – up to 16 neighbours on the channels in the middle of the band …
Suspending the Laptop either by closing the lid or, using the KDE Plasma program starter, doesn’t seem to affect the WLAN data rate in any way at all.
Needless to say,
Proper benchmarking practice is to run multiple tests and also make sure after resuming that you machine has completely “spun up.”
I can imagine a multitude of possible causes both network and system that might cause a slow connection,
You might try simply doing a networking service restart which should “re-announce” your machine to the network and refresh your network settings
As I mentiond in my original post, I tried sudo netconfig update -f, sudo systemctl restart NetworkManager, sudo systemctl restart network, but with no success; only reboot helped.
You might try running a small netcat (nc) test between two machines in your LAN to see if the problem is your gateway or not…
In fact, you can use netcat to quickly and simply test the network connection between any two machines.
Of course, don’t use name resolution unless you want to include testing for that, only use IP addresses.
The things you did on your machine are generally what I would do to test if there is a problem on your machine, so next step is to see if there is a network problem…
For instance if you are running a Workgroup instead of Network based authentication (eg AD or LDAP), then depending on what’s happening there can be Browse Master issues.
As I described, the main difference I can think of when you boot a system vs. simply waking up is that your system may need to “announce” itself again on your network properly, which happens when you boot. Linux doesn’t ARP that much so other machines may “forget” your machine if it’s offline long enough for cached information about your machine expires.
Obviously, I would be woth mentioning my notebook is connected directly to the modem, no network is involved. And in addition, please bear in mind I am not a Linux expert, more an advance user.
That itself could be information, how do you connect to the Internet?
And, if you are indeed connecting directly through a real modem (not a proxy device like an Android phone which people may call a modem but really isn’t), then you should have log files for that type of connection that can be inspected.
I’ll admit that at least where I’m at… It has been a very long time since people dialed up the Internet directly. Even if you are doing PPoE on your machine itself would be unusual today. Typically all access is through an Internet Gateway device which handles the type of Internet connection, whether it’s broadband or dialup.
Settings for eth0:
Supported ports: TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: Not reported
Advertised pause frame use: No
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 2
Transceiver: internal
Auto-negotiation: off
MDI-X: on (auto)
Supports Wake-on: pumbg
Wake-on: d
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
Closed the lid
After 10 minutes or so open the lid
Tried speed: 8 Mb/s
entered the command ethtool eth0 with the result:
ethtool eth0
Settings for eth0:
Supported ports: TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: Not reported
Advertised pause frame use: No
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: 10Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: off
MDI-X: off (auto)
Supports Wake-on: pumbg
Wake-on: d
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
It could be a broken Ethernet cable – old cable, broken conductors, broken connectors, whatever …
It could be the Ethernet auto-negotiation with the Modem or Router you use to connect to your ISP – the Intel interface is saying that, the Modem or Router is not supporting auto-negotiation – check the settings on that box …
It is a bit strange that a broken Ethernet cable – old cable, broken conductors, broken connectors, whatever has anything to do with the notebook lid open or close.
I would assume that after opening the lid and resume with work settings are somehow forgotten by Linux or Plasma or whatever. Rebooting the notebook revives high internet connection, and this has nothing to do with cable hardware.
OK… The question now is. Why doesn’t Network Manager auto-negotiate after resume?
I wonder if that is a problem you’ve recently experienced, following a software update perhaps. Or, is it a problem that has always been present on that hardware?
There does appear to be quite a lot of issues with Network Manager following a suspend/resume cycle, if one Googles for example: