View previous topic :: View next topic |
Author |
Message |
qstrahl n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Jul 2013 Posts: 3 Location: Toronto, ON
|
Posted: Mon Jul 08, 2013 11:27 am Post subject: NetworkManager inactive after suspend/resume |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
eccerr0r Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
Joined: 01 Jul 2004 Posts: 9890 Location: almost Mile High in the USA
|
Posted: Thu Jul 18, 2013 11:06 pm Post subject: |
|
|
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/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ppurka Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 26 Dec 2004 Posts: 3256
|
Posted: Fri Jul 19, 2013 5:46 am Post subject: |
|
|
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 | Now using kde5 | e is unstable :-/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
skunk l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/11317999223f8841cedbe91.gif)
Joined: 28 May 2003 Posts: 646 Location: granada, spain
|
Posted: Sat Jun 14, 2014 1:54 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|