Jump to content

Photo

NetworkManager inactive after hibernation

- - - - - networkmanager hibernation

Best Answer gnuisance , 26 March 2015 - 10:51 PM

Thank you sputnik!  I was able to resolve my issue by modifying the bash script you provide.

# cat /etc/pm/sleep.d/77ethernet
#!/bin/bash 
case $1 in
   resume)
       /etc/init.d/NetworkManager restart
      ;;
esac
Go to the full post »


7 replies to this topic

#1
gnuisance

gnuisance

    Newbie

  • Members
  • Pip
  • 6 posts

Each time I resume from hibernation the NetworkManager daemon  needs to be restart.  Does anyone else have this issue?



#2
spectromas

spectromas

    Advanced Member

  • Members
  • PipPipPip
  • 81 posts

I have been experiencing something similar actually but the behaviour hasn't been completely consistent for me so far.



#3
sputnik

sputnik

    Advanced Member

  • Members
  • PipPipPip
  • 117 posts

I believe I have that issue too.  I rarely use hibernate, so too lazy to fix it.

I do know however, I had an issue with sleep and found that the linux ethernet driver didn't like to sleep for me.  The manufacturer's driver had other issues, but would sleep.  So I would trade them out (I still do this):

# cat /etc/pm/sleep.d/77ethernet
#!/bin/bash 
case $1 in 
   suspend) 
	modprobe -r r8169
	modprobe r8168
	ethtool -s eth0 wol bg
      ;; 
   resume) 
	modprobe -r r8168
	modprobe r8169
	ethtool -s eth0 wol bg
      ;; 
esac

Every new kernel I rebuild the manufacturer driver too. 

So there's some extra confusion if you decide to go after this.


  • gnuisance likes this

#4
gnuisance

gnuisance

    Newbie

  • Members
  • Pip
  • 6 posts
✓  Best Answer

Thank you sputnik!  I was able to resolve my issue by modifying the bash script you provide.

# cat /etc/pm/sleep.d/77ethernet
#!/bin/bash 
case $1 in
   resume)
       /etc/init.d/NetworkManager restart
      ;;
esac


#5
sputnik

sputnik

    Advanced Member

  • Members
  • PipPipPip
  • 117 posts

Oh, thank you too.  I'll do that too.  I love it when I don't have to think.


  • gnuisance likes this

#6
spectromas

spectromas

    Advanced Member

  • Members
  • PipPipPip
  • 81 posts

So what's the issue, NM needs to be restarted after hibernation?



#7
gnuisance

gnuisance

    Newbie

  • Members
  • Pip
  • 6 posts

The issue was I want to avoid restarting NetworkManager manually after hibernation.  After a much closer look I realize my computer was not in hibernation but suspended.  The previously posted script allowed for network connectivity without manually restarting NetworkManager, resolving my issue.



#8
sputnik

sputnik

    Advanced Member

  • Members
  • PipPipPip
  • 117 posts

Hmm, kinda late, but I just wanted to point out that I did have the problem in hibernate mode and it's definitely hibernation, powered off.  And yeah, the restart in the 77ethernet file does the trick.  So I guess that code executes for suspend and hibernation?  Hope I'm not misleading people here, it was ages ago I hunted that down.





Reply to this topic



  



Also tagged with one or more of these keywords: networkmanager, hibernation

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users