Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NetworkManager inactive after suspend/resume
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
qstrahl
n00b
n00b


Joined: 05 Jul 2013
Posts: 3
Location: Toronto, ON

PostPosted: Mon Jul 08, 2013 11:27 am    Post subject: NetworkManager inactive after suspend/resume Reply with quote

Subject says it all. If I suspend my laptop, nm-applet disappears from my systray and I lose my connection to the network. /etc/init.d/NetworkManager status says "inactive". /etc/init.d/NetworkManager restart brings nm-applet back to my systray and it connects to my network, but it's quite annoying to have to escalate privileges like that to restore a service that apparently I can shut down as a user.

I'm not the only one to experience this, but none of the suggestions in that thread helped. Any help you could provide would be greatly appreciated.
Back to top
View user's profile Send private message
eccerr0r
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 4004
Location: USA

PostPosted: Thu Jul 18, 2013 11:06 pm    Post subject: Reply with quote

Curious as to what Ethernet adapter you're using? And hardware (motherboard, etc.)? What kernel?

My only guess is that the driver does not suspend/resume that device properly.

My machines generally suspend/resume network interfaces fine... but most of the time it's the wifi that's the interface I'm using.

As far as I know: hardware ethernet drivers that have worked for me (S3 suspend):
sky2 (foxconn), tg3 (dell), atl1c (eeepc), most r8169 (hp, gigabyte). All these are onboard adapters.

I haven't tested my other ethernets, mostly because they aren't in machines that support S3. However I have tested some that do survive S4 hibernate:
e100, 3c59x (both PCI adaptors)

Only thing I can think of at the moment relates to the wifi on my eeepc, which ASPM of PCIe of wifi to make it show up again... I forget the details...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed to be advocating?
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3206

PostPosted: Fri Jul 19, 2013 5:46 am    Post subject: Reply with quote

You can bring the network down during suspend and start it back up on resume. That will take care of networkmanager.

The other option is to send a hibernate command to networkmanager on suspend and a resume command when you resume. This has to be done as root and the commands are dbus commands. Like this
Code:
dbus-send --system --dest=org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager.sleep

dbus-send --system --dest=org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager.wake

_________________
emerge --quiet redefined | E17 vids: I, II
Back to top
View user's profile Send private message
skunk
Guru
Guru


Joined: 28 May 2003
Posts: 581
Location: granada, spain

PostPosted: Sat Jun 14, 2014 1:54 pm    Post subject: Reply with quote

i've this problem after switching from sys-power/upower to sys-power/upower-pm-utils and the above dbus command has no effect.
what works is issuing a networkmanager restart after resume by placing a script into /etc/pm/sleep.d, but since this is just a hack, i'm wondering if there is any more orthodox way (eg. tuning some parameter) to solve this issue...
thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum