Wired connection doesn't work after suspend.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Wired connection doesn't connect after suspending PC and starting it back. The system is Ubuntu 16.04 LTS.
Output of lspci command:
00:00.0 Host bridge: Intel Corporation Device 590f (rev 05)
00:02.0 VGA compatible controller: Intel Corporation Device 5902 (rev 04)
00:14.0 USB controller: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller (rev 31)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-H Thermal subsystem (rev 31)
00:16.0 Communication controller: Intel Corporation Sunrise Point-H CSME HECI #1 (rev 31)
00:17.0 SATA controller: Intel Corporation Sunrise Point-H SATA controller [AHCI mode] (rev 31)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #5 (rev f1)
00:1c.5 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #6 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-H LPC Controller (rev 31)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-H PMC (rev 31)
00:1f.3 Audio device: Intel Corporation Sunrise Point-H HD Audio (rev 31)
00:1f.4 SMBus: Intel Corporation Sunrise Point-H SMBus (rev 31)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 02)
And output of lspci -k | grep -iA3 ethernet (I don't know what does this command show but I have come across this command when I was looking for the answer in google) command:
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 02)
Subsystem: ASRock Incorporation Motherboard (one of many)
Kernel driver in use: r8169
Kernel modules: r8169`
Edit on Sep 9 2017, Sat: I tried to install r8168 driver from realtek's site. First, I followed the manual instructions in this site: https:/
I tried to install dependencies by entering the code into terminal:
sudo apt-get install build-essential linux-headers-
and then I downloaded the driver from Realtek's site: http://
I downloaded the version which states Linux driver for kernel up to 4.7. I don't exactly if that is the case, if that one is causing me the problems.
Then I blacklisted my already installed and working r8169 driver by this code:
user@linux:~$ sudo sh -c 'echo blacklist r8169 >> /etc/modprobe.
Then I untarred the archive by this code: tar xfvj 0009-r8168-
which showed me the following output:
r8168-8.044.02/
r8168-8.
r8168-8.
r8168-8.
r8168-8.044.02/src/
r8168-8.
r8168-8.
r8168-8.
r8168-8.
r8168-8.
r8168-8.
r8168-8.
r8168-8.
r8168-8.
r8168-8.
r8168-8.
r8168-8.
r8168-8.
After that I got into that folder r8168-8.044.02/ and compiled the script autorun.sh sudo ./autorun.shwhich showed me the following output on terminal:
Check old driver and unload it.
rmmod r8169
Build the module and install
At main.c:158:
- SSL error:02001002:
- SSL error:2006D080:BIO routines:
sign-file: certs/signing_
Backup r8169.ko
rename r8169.ko to r8169.bak
DEPMOD 4.10.0-33-generic
load module r8168
Updating initramfs. Please wait.
update-initramfs: Generating /boot/initrd.
W: Possible missing firmware /lib/firmware/
Completed.
Then I run this code: lsmod | grep r8168 which output: r8168 499712 0
Then I run sudo ethtool -i enp2s0.
After that I suspended my PC and reopened it back, but it had the same problem, it did not connect to Wired connection after suspension. I had reboot it to get working Ethernet connection. After rebooting I tried to install it automatically rather than manually, so I edited /etc/apt/
After rebooting I followed some of the instructions in this site: https:/
I run:
sudo bash
then rmmod r8169 which output rmmod: ERROR: Module r8169 is not currently loaded.
then make clean which output:
make -C src/ clean
make[1]: Entering directory '/home/
make -C /lib/modules/
make[2]: Entering directory '/usr/src/
CLEAN /home/garakchy/
rm: cannot remove '/home/
Makefile:1569: recipe for target 'clean' failed
make[2]: *** [clean] Error 1
make[2]: Leaving directory '/usr/src/
Makefile:99: recipe for target 'clean' failed
make[1]: *** [clean] Error 2
make[1]: Leaving directory '/home/
Makefile:47: recipe for target 'clean' failed
make: *** [clean] Error 2
then make modules which output:
make -C src/ modules
make[1]: Entering directory '/home/
make -C /lib/modules/
make[2]: Entering directory '/usr/src/
rm: cannot remove '/home/
Makefile:1511: recipe for target 'crmodverdir' failed
make[2]: *** [crmodverdir] Error 1
make[2]: Leaving directory '/usr/src/
Makefile:95: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory '/home/
Makefile:40: recipe for target 'modules' failed
make: *** [modules] Error 2
then make install etc. After all, I suspended my PC and reopened it back, it totally crashed and stopped working at all, let alone the not working Ethernet connection. My PC got stuck. I reboot. After rebooting my PC temporarily working in good condition, but I wanted to go back to r8169 driver, which was installed default. So, I changed modprobe.
Output of sudo lshw -class network command:
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:02:00.0
logical name: enp2s0
version: 02
serial: d0:50:99:72:eb:0c
size: 100Mbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
resources: irq:17 ioport:
It shows r8168 as a driver still, even if I had blacklisted it.
Here are some other information that I thought would be useful: http://
########## wireless info START ##########
Report from: 09 Sep 2017 16:58 +03 +0300
Booted last: 09 Sep 2017 00:00 +03 +0300
Script from: 25 Mar 2017 07:04 UTC +0000
##### release #######
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
##### kernel #######
Linux 4.10.0-33-generic #37~16.04.1-Ubuntu SMP Fri Aug 11 14:07:24 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Parameters: ro, quiet, splash, vt.handoff=7
##### desktop #######
Ubuntu
##### lspci #######
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 02)
Subsystem: ASRock Incorporation Motherboard (one of many) [1849:8168]
Kernel driver in use: r8168
##### lsusb #######
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 002: ID 046d:c52f Logitech, Inc. Unifying Receiver
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
##### PCMCIA card info ##################
##### rfkill #######
##### lsmod #######
mxm_wmi 16384 0
wmi 16384 1 mxm_wmi
##### interfaces #######
auto lo
iface lo inet loopback
##### ifconfig #######
enp2s0 Link encap:Ethernet HWaddr <MAC 'enp2s0' [IF1]>
inet addr:192.168.1.26 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::9d89:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:841359 errors:0 dropped:0 overruns:0 frame:0
TX packets:508522 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:1206038659 (1.2 GB) TX bytes:39262133 (39.2 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:3258 errors:0 dropped:0 overruns:0 frame:0
TX packets:3258 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:329425 (329.4 KB) TX bytes:329425 (329.4 KB)
##### iwconfig #######
enp2s0 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 enp2s0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 enp2s0
192.168.1.0 0.0.0.0 255.255.255.0 U 100 0 0 enp2s0
##### resolv.conf #######
nameserver 127.0.1.1
search home
##### network managers ##################
Installed:
NetworkManager
Running:
root 826 1 0 15:07 ? 00:00:00 /usr/sbin/
##### NetworkManager info ###############
GENERAL.DEVICE: enp2s0
GENERAL.TYPE: ethernet
GENERAL.NM-TYPE: NMDeviceEthernet
GENERAL.VENDOR: Realtek Semiconductor Co., Ltd.
GENERAL.PRODUCT: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (Motherboard (one of many))
GENERAL.DRIVER: r8168
GENERAL.
GENERAL.
GENERAL.HWADDR: <MAC 'enp2s0' [IF1]>
GENERAL.MTU: 1500
GENERAL.STATE: 100 (connected)
GENERAL.REASON: 0 (No reason given)
GENERAL.UDI: /sys/devices/
GENERAL.IP-IFACE: enp2s0
GENERAL.
GENERAL.NM-MANAGED: yes
GENERAL.
GENERAL.
GENERAL.
GENERAL.
GENERAL.CONNECTION: Wired connection 1
GENERAL.CON-UUID: 10942507-
GENERAL.CON-PATH: /org/freedeskto
GENERAL.METERED: no (guessed)
CAPABILITIES.
CAPABILITIES.SPEED: 100 Mb/s
CAPABILITIES.
WIRED-PROPERTIE
CONNECTIONS.
CONNECTIONS.
IP4.ADDRESS[1]: 192.168.1.26/24
IP4.GATEWAY: 192.168.1.1
IP4.ROUTE[1]: dst = 169.254.0.0/16, nh = 0.0.0.0, mt = 1000
IP4.DNS[1]: 192.168.1.1
IP4.DOMAIN[1]: home
DHCP4.OPTION[1]: requested_
DHCP4.OPTION[2]: requested_
DHCP4.OPTION[3]: requested_host_name = 1
DHCP4.OPTION[4]: requested_
DHCP4.OPTION[5]: requested_
DHCP4.OPTION[6]: requested_
DHCP4.OPTION[7]: requested_
DHCP4.OPTION[8]: requested_wpad = 1
DHCP4.OPTION[9]: requested_
DHCP4.OPTION[10]: next_server = 0.0.0.0
DHCP4.OPTION[11]: expiry = 1505045259
DHCP4.OPTION[12]: requested_
DHCP4.OPTION[13]: requested_
DHCP4.OPTION[14]: routers = 192.168.1.1
DHCP4.OPTION[15]: dhcp_message_type = 5
DHCP4.OPTION[16]: ip_address = 192.168.1.26
DHCP4.OPTION[17]: requested_
DHCP4.OPTION[18]: domain_name = home
DHCP4.OPTION[19]: dhcp_renewal_time = 43200
DHCP4.OPTION[20]: requested_
DHCP4.OPTION[21]: broadcast_address = 192.168.1.255
DHCP4.OPTION[22]: domain_name_servers = 192.168.1.1 192.168.1.1
DHCP4.OPTION[23]: requested_
DHCP4.OPTION[24]: dhcp_lease_time = 86400
DHCP4.OPTION[25]: dhcp_rebinding_time = 75600
DHCP4.OPTION[26]: requested_
DHCP4.OPTION[27]: subnet_mask = 255.255.255.0
DHCP4.OPTION[28]: network_number = 192.168.1.0
DHCP4.OPTION[29]: requested_routers = 1
DHCP4.OPTION[30]: dhcp_server_
IP6.ADDRESS[1]: fe80::9d89:
IP6.GATEWAY:
##### NetworkManager.
[main]
NetworkingEnabl
WirelessEnabled
WWANEnabled=true
##### NetworkManager.conf ###############
[main]
plugins=
dns=dnsmasq
[ifupdown]
managed=false
##### NetworkManager profiles ###########
##### iw reg get #######
Region: Europe/Istanbul (based on set time zone)
country 00: DFS-UNSET
(2402 - 2472 @ 40), (6, 20), (N/A)
(2457 - 2482 @ 20), (6, 20), (N/A), PASSIVE-SCAN
(2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN
(5170 - 5250 @ 80), (6, 20), (N/A), PASSIVE-SCAN
(5250 - 5330 @ 80), (6, 20), (0 ms), DFS, 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 ###################
enp2s0 no frequency information.
lo no frequency information.
##### iwlist scan #######
enp2s0 Interface doesn't support scanning.
lo Interface doesn't support scanning.
##### module infos #######
##### module parameters #################
##### /etc/modules #######
##### modprobe options ##################
[/etc/modprobe.
blacklist ath_pci
[/etc/modprobe.
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
blacklist r8168
[/etc/modprobe.
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.
remove iwlwifi \
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
&& /sbin/modprobe -r mac80211
[/etc/modprobe.
softdep mlx4_core post: mlx4_en
##### rc.local #######
exit 0
##### pm-utils #######
##### udev rules #######
##### dmesg #######
[ 27.284525] IPv6: ADDRCONF(
[ 27.284681] enp2s0: 0xffff9b47c0c8d000, <MAC 'enp2s0' [IF1]>, IRQ 17
[ 27.312137] IPv6: ADDRCONF(
[ 30.374732] r8168: enp2s0: link up
[ 30.374745] IPv6: ADDRCONF(
########## wireless info END ############
I don't know what to do. Can you help me please? Thanks
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-
ProcVersionSign
Uname: Linux 4.10.0-33-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.10
Architecture: amd64
CurrentDesktop: Unity
Date: Sun Sep 10 20:41:09 2017
InstallationDate: Installed on 2017-07-26 (45 days ago)
InstallationMedia: Ubuntu 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215.2)
SourcePackage: linux-hwe
UpgradeStatus: No upgrade log present (probably fresh install)
affects: | linux-hwe (Ubuntu) → linux (Ubuntu) |
This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:
apport-collect 1716261
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.