You are not logged in.

#1 2023-02-16 17:07:43

maboleth
Member
Registered: 2020-01-03
Posts: 220

[solved] What to do when internet is not possible after suspend?

Every once in a while, after suspend, internet connection is not possible. It's not exclusive to Linux, happens in Windows too. But there I have a network troubleshooter that always recommends to "reset the adapter" and after that internet is back and working.

I'd like to know how to "reset the adapter" in Linux too?

I'm using ethernet connection with a cable modem. In Linux, NetworkManager, its built-in dhcp, with Nm systray app. I also use systemd-resolvd.service.

Trying to disconnect and reconnect via NM app doesn't help. 'Please wait' icon endlessly loops until it stops without internet.
Stopping and restarting NetworkManager.service doesn't help either.

The only thing that helps is restart.

What should I do next time?

Thanks!

Last edited by maboleth (2023-02-16 20:03:22)

Offline

#2 2023-02-16 17:31:50

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,732
Website

Re: [solved] What to do when internet is not possible after suspend?

Check for any error logs from network manager to describe what the actual problem is.  A "please wait" icon is not informative.  I don't know where to look for nm logs, but if nothing else, the output of the following (when this problem occurs) would be a start:

ip a
systemctl status NetworkManager.service

"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2023-02-16 18:52:19

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,771
Website

Re: [solved] What to do when internet is not possible after suspend?

maboleth wrote:

I'd like to know how to "reset the adapter" in Linux too?

Perhaps try

# modprobe -rv $driver
# modprobe -v $driver

Replace $driver with the actual name of the driver, which can be found with

lspci -k | grep -A3 Eth

See the "kernel driver in use" line.

Wild guess: https://wiki.archlinux.org/title/Networ … 8111/8168B

NM logs to the systemd journal so that would be useful here.

Offline

#4 2023-02-16 20:03:05

maboleth
Member
Registered: 2020-01-03
Posts: 220

Re: [solved] What to do when internet is not possible after suspend?

Thanks a lot guys. Kernel driver is r8169. I will mark this as Solved, but will test it when the time comes.

Offline

#5 2023-02-18 09:13:04

maboleth
Member
Registered: 2020-01-03
Posts: 220

Re: [solved] What to do when internet is not possible after suspend?

Head_on_a_Stick wrote:

Perhaps try

# modprobe -rv $driver
# modprobe -v $driver

Happened today and this one helped immediately. Thanks.

Offline

Board footer

Powered by FluxBB