Network Disconnects after resuming pc from suspend

I just recently updated to 18.04 lts using -d option. Earlier in 17.10 I had issues while shutting down. And thought that seems to be less in this since the last two days I updated, now a new problem is annoying me.
As soon as I suspend (which I do more than often) and resume my pc, I see a disconnected sign in the top bar in networks. I tried restarting my router and also reconnected the lan cable but it doesn’t connect until I restart the system! I also tried using the network service restart option but still the network is disconnected. Hope somebody does find a solution for this fix since restarting again and again takes a lot of valuable time.
Thanks.

Sounds like a more general Ubuntu issue rather than UB specific.

Suggest in addition post on ubuntuforums.org and askubuntu.com

Don’t forget to include the info from this script in your question since networking issues needs very detailed hardware descriptions:

Unfortunately I tried a lot of things like network manager restart command and installing r1689(some driver) and now after wakeup the icon shows detecting a network but still doesn’t connect.
Since I cannot attach the file being a new user, here is the info from the script you gave:

########## wireless info START ##########

Report from: 12 May 2018 11:19 IST +0530

Booted last: 12 May 2018 00:00 IST +0530

Script from: 10 Jan 2018 20:04 UTC +0000

release

Distributor ID: Ubuntu
Description: Ubuntu 18.04 LTS
Release: 18.04
Codename: bionic

kernel

Linux 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Parameters: ro, quiet, splash, vt.handoff=1

desktop

Budgie Desktop

lspci

03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 06)
Subsystem: Gigabyte Technology Co., Ltd Onboard Ethernet [1458:e000]
Kernel driver in use: r8168

lsusb

Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 04ca:0061 Lite-On Technology Corp.
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 003: ID 1a2c:0e24 China Resource Semico Co., Ltd
Bus 003 Device 002: ID 0d8c:000e C-Media Electronics, Inc. Audio Adapter (Planet UP-100, Genius G-Talk)
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 009 Device 003: ID 0bc2:2320 Seagate RSS LLC USB 3.0 bridge [Portable Expansion Drive]
Bus 009 Device 002: ID 1058:1230 Western Digital Technologies, Inc. My Book (WDBFJK0030HBK)
Bus 009 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 008 Device 005: ID 045e:028e Microsoft Corp. Xbox360 Controller
Bus 008 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

PCMCIA card info
rfkill
lsmod

wmi_bmof 16384 0
wmi 24576 1 wmi_bmof

interfaces

[/etc/network/interfaces]
auto lo
iface lo inet loopback

ifconfig

enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.105 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::1deb:5c2e:429b:570 prefixlen 64 scopeid 0x20
ether txqueuelen 1000 (Ethernet)
RX packets 55219 bytes 63248247 (63.2 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 49908 bytes 3910441 (3.9 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 25 base 0x5000

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 20020 bytes 963282 (963.2 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 20020 bytes 963282 (963.2 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

iwconfig

enp3s0 no wireless extensions.

lo no wireless extensions.

route

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 100 0 0 enp3s0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 enp3s0
192.168.1.0 0.0.0.0 255.255.255.0 U 100 0 0 enp3s0

resolv.conf

nameserver 127.0.0.53

network managers

Installed:

NetworkManager

Running:

root 1144 1 0 10:42 ? 00:00:00 /usr/sbin/NetworkManager --no-daemon

NetworkManager info

GENERAL.DEVICE: enp3s0
GENERAL.TYPE: ethernet
GENERAL.NM-TYPE: NMDeviceEthernet
GENERAL.VENDOR: Realtek Semiconductor Co., Ltd.
GENERAL.PRODUCT: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (Onboard Ethernet)
GENERAL.DRIVER: r8168
GENERAL.DRIVER-VERSION: 8.045.08-NAPI
GENERAL.FIRMWARE-VERSION: –
GENERAL.HWADDR:
GENERAL.MTU: 1500
GENERAL.STATE: 100 (connected)
GENERAL.REASON: 0 (No reason given)
GENERAL.UDI: /sys/devices/pci0000:00/0000:00:06.0/0000:03:00.0/net/enp3s0
GENERAL.IP-IFACE: enp3s0
GENERAL.IS-SOFTWARE: no
GENERAL.NM-MANAGED: yes
GENERAL.AUTOCONNECT: yes
GENERAL.FIRMWARE-MISSING: no
GENERAL.NM-PLUGIN-MISSING: no
GENERAL.PHYS-PORT-ID: –
GENERAL.CONNECTION: Wired connection 1
GENERAL.CON-UUID: 377c0e62-5fd1-3f5e-a69b-6b2651a7fd3e
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/1
GENERAL.METERED: no (guessed)
CAPABILITIES.CARRIER-DETECT: yes
CAPABILITIES.SPEED: 100 Mb/s
CAPABILITIES.IS-SOFTWARE: no
CAPABILITIES.SRIOV: no
WIRED-PROPERTIES.CARRIER: on
IP4.ADDRESS[1]: 192.168.1.105/24
IP4.GATEWAY: 192.168.1.1
IP4.ROUTE[1]: dst = 0.0.0.0/0, nh = 192.168.1.1, mt = 100
IP4.ROUTE[2]: dst = 192.168.1.0/24, nh = 0.0.0.0, mt = 100
IP4.ROUTE[3]: dst = 169.254.0.0/16, nh = 0.0.0.0, mt = 1000
IP4.DNS[1]: 123.108.224.6
IP4.DNS[2]: 123.108.225.6
DHCP4.OPTION[1]: interface_mtu = 576
DHCP4.OPTION[2]: requested_domain_search = 1
DHCP4.OPTION[3]: network_number = 192.168.1.0
DHCP4.OPTION[4]: requested_broadcast_address = 1
DHCP4.OPTION[5]: requested_domain_name = 1
DHCP4.OPTION[6]: dhcp_option_overload = 3
DHCP4.OPTION[7]: requested_rfc3442_classless_static_routes = 1
DHCP4.OPTION[8]: routers = 192.168.1.1
DHCP4.OPTION[9]: requested_wpad = 1
DHCP4.OPTION[10]: requested_netbios_scope = 1
DHCP4.OPTION[11]: next_server = 0.0.0.0
DHCP4.OPTION[12]: broadcast_address = 255.255.255.255
DHCP4.OPTION[13]: dhcp_message_type = 5
DHCP4.OPTION[14]: requested_interface_mtu = 1
DHCP4.OPTION[15]: expiry = 1526128936
DHCP4.OPTION[16]: ip_address = 192.168.1.105
DHCP4.OPTION[17]: requested_subnet_mask = 1
DHCP4.OPTION[18]: requested_static_routes = 1
DHCP4.OPTION[19]: subnet_mask = 255.255.255.0
DHCP4.OPTION[20]: requested_domain_name_servers = 1
DHCP4.OPTION[21]: requested_ntp_servers = 1
DHCP4.OPTION[22]: requested_netbios_name_servers = 1
DHCP4.OPTION[23]: requested_time_offset = 1
DHCP4.OPTION[24]: requested_ms_classless_static_routes = 1
DHCP4.OPTION[25]: requested_routers = 1
DHCP4.OPTION[26]: dhcp_lease_time = 7200
DHCP4.OPTION[27]: requested_host_name = 1
DHCP4.OPTION[28]: dhcp_server_identifier = 192.168.1.1
DHCP4.OPTION[29]: domain_name_servers = 123.108.224.6 123.108.225.6
IP6.ADDRESS[1]: fe80::1deb:5c2e:429b:570/64
IP6.GATEWAY: –
IP6.ROUTE[1]: dst = ff00::/8, nh = ::, mt = 256, table=255
IP6.ROUTE[2]: dst = fe80::/64, nh = ::, mt = 256
IP6.ROUTE[3]: dst = fe80::/64, nh = ::, mt = 100
CONNECTIONS.AVAILABLE-CONNECTION-PATHS: /org/freedesktop/NetworkManager/Settings/{1}
CONNECTIONS.AVAILABLE-CONNECTIONS[1]: 377c0e62-5fd1-3f5e-a69b-6b2651a7fd3e | Wired connection 1

NetworkManager.state

[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true

NetworkManager.conf

[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=true

[device]
wifi.scan-rand-mac-address=no

NetworkManager profiles
Netplan config

[/etc/netplan/01-network-manager-all.yaml]
network:
version: 2
renderer: NetworkManager

iw reg get

Region: Asia/Kolkata (based on set time zone)

global
country 00: DFS-UNSET
(2402 - 2472 @ 40), (6, 20), (N/A)
(2457 - 2482 @ 20), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN
(2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN
(5170 - 5250 @ 80), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN
(5250 - 5330 @ 80), (6, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN
(5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
(5735 - 5835 @ 80), (6, 20), (N/A), PASSIVE-SCAN
(57240 - 63720 @ 2160), (N/A, 0), (N/A)

iwlist channels

enp3s0 no frequency information.

lo no frequency information.

iwlist scan

enp3s0 Interface doesn’t support scanning.

lo Interface doesn’t support scanning.

module infos
module parameters
/etc/modules
modprobe options

[/etc/modprobe.d/amd64-microcode-blacklist.conf]
blacklist microcode

[/etc/modprobe.d/blacklist-ath_pci.conf]
blacklist ath_pci

[/etc/modprobe.d/blacklist.conf]
blacklist evbug
blacklist usbmouse
blacklist usbkbd
blacklist eepro100
blacklist de4x5
blacklist eth1394
blacklist snd_intel8x0m
blacklist snd_aw2
blacklist i2c_i801
blacklist prism54
blacklist bcm43xx
blacklist garmin_gps
blacklist asus_acpi
blacklist snd_pcsp
blacklist pcspkr
blacklist amd76x_edac

[/etc/modprobe.d/blacklist-rare-network.conf]
alias net-pf-3 off
alias net-pf-6 off
alias net-pf-9 off
alias net-pf-11 off
alias net-pf-12 off
alias net-pf-19 off
alias net-pf-21 off
alias net-pf-36 off

[/etc/modprobe.d/iwlwifi.conf]
remove iwlwifi
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod)
&& /sbin/modprobe -r mac80211

[/etc/modprobe.d/r8168-dkms.conf]
options RTL8111/8168/8411 fwlps=N

rc.local

grep: /etc/rc.local: No such file or directory

pm-utils
udev rules
dmesg

[ 2255.219409] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2

########## wireless info END ############

As mentioned previously general Ubuntu issues such as this are most likely to be answered on ubuntuforums.org or askubuntu.com

We can help with Ubuntu budgie specifics.

Okay will continue to scavenge the net for more solutions.

Don’t forget to report a bug. The canonical devs would be interested here since this should work out of the box. They probably will ask you to initially try the newest 4.17 kernel to see if that resolves things

In a terminal run

ubuntu-bug linux

Finally it is resolved. I upgraded my kernel version to 4.17.0-041700rc5-generic and now the issue seems to be resolved. The easiest way to do so is using the ukuu tool, you can check this upgrading kernel using ukuu video. Also thanks to the LTS version I found out the cause of my desktop hanging on shutdown. After pressing esc at the time of shutdown, I caught the culprit as a MYSQL stop job which would cause my machine to wait 10 mins until shutdown, and that in turn is caused by some timezone misconfig. I think the solution from this post will most likely solve that problem too - mysql stop job is running while shutdown . Thanks for the support. Hope this solves other people’s problem if facing a similar one.

1 Like