You are not logged in.

#1 2014-03-09 14:19:32

Dornith
Member
Registered: 2013-02-19
Posts: 78

[SOLVED] Linux no internet once resumed having switched from Windows

A lot of times I'll be working on linux, then want to play a game or something on windows (I have wine for some but for others wine doesn't work).  I hibernate linux and switch to windows, play for a couple hours, turn off windows and boot up linux again.  So far everything works perfectly, but when I try to use the internet, it doesn't work.  The really weird thing about it all is that it doesn't start out not working, but the connection gradually but quickly becomes unusable. 

I'm honestly baffled at why this would happen.  Windows and linux don't have any shared partitions other than a backup drive which I don't mount until it's in use, and windows can access my home directory with read-only permissions (although I rarely do).

I have an ASUS P8Z68-V LX mother board with the Realtek® 8111E Gigabit LAN controller. 

Also, one problem I suspected was that when I resume from hibernate that the network doesn't recognize my ip anymore even though my computer thinks it still has it (I'm pretty sure the window system and linux are set up to use the same ip but I might be misrecalling).  I tried restarting dhcpcd@enp4s0 but no luck.

Last edited by Dornith (2014-03-11 01:54:35)

Offline

#2 2014-03-09 16:57:08

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: [SOLVED] Linux no internet once resumed having switched from Windows

What happens if you reboot rather than hibernating?  I never understood the point of hibernating when modern systems boot up very quickly.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2014-03-10 01:54:03

Dornith
Member
Registered: 2013-02-19
Posts: 78

Re: [SOLVED] Linux no internet once resumed having switched from Windows

graysky wrote:

What happens if you reboot rather than hibernating?  I never understood the point of hibernating when modern systems boot up very quickly.

It works perfectly fine.  The reason I want to hibernate is because I tend to work on a lot of tasks at once, and rather than having to close and reopen them all, I'd like to just have it all still up.

Offline

#4 2014-03-10 02:12:12

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [SOLVED] Linux no internet once resumed having switched from Windows

Try reloading your network module.

Offline

#5 2014-03-10 02:35:15

Dornith
Member
Registered: 2013-02-19
Posts: 78

Re: [SOLVED] Linux no internet once resumed having switched from Windows

lucke wrote:

Try reloading your network module.

modprobe -r r8169

Results in me loosing all network connection (before it would still say I'm connected despite no ability to communicate).

modprobe -v r8169

Doesn't seem to do anything.  I might need parameters but I'm not sure what they are.  I usually don't work too much in modules.

Offline

#6 2014-03-10 07:28:43

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [SOLVED] Linux no internet once resumed having switched from Windows

What does

systemctl stop dhcpcd@enp4s0 && modprobe -r r8169 && modprobe r8169 && systemctl start dhcpcd@enp4s0

result in?

You could also try stopping dhcpcd and removing the module before hibernation. Also, disabling power management for the network card in Windows' Device Manager might help.

Offline

#7 2014-03-11 01:53:50

Dornith
Member
Registered: 2013-02-19
Posts: 78

Re: [SOLVED] Linux no internet once resumed having switched from Windows

lucke wrote:

What does

systemctl stop dhcpcd@enp4s0 && modprobe -r r8169 && modprobe r8169 && systemctl start dhcpcd@enp4s0

result in?

That worked perfectly!  Now I just need to set it up to do that automatically after resuming.

Offline

Board footer

Powered by FluxBB