I just tested a simple script (called "network_restar") to make NM
restart upon resume... and IT HAS WORKED!

Rather than creating it via terminal right into the relative folder
(/lib/systemd/system-sleep), I did it thru text editor, saved it in Home
and moved it to that folder as sudo.

>> Script content:

case "${1}" in
  resume|thaw)
    sudo service network-manager restart
;;
esac

>> After this, run (line by line, supposing you have saved script your
Home dir):

sudo su
(type your root password!)

mv network_restart /lib/systemd/system-sleep

chmod +x /lib/systemd/system-sleep/network_restart

>> Script seen on: http://askubuntu.com/questions/766718/script-to-
restart-network-manager-after-resume-from-sleep


** Attachment added: "Script to make Network Manager restart upon resume"
   
https://bugs.launchpad.net/ubuntu/+source/network-manager-applet/+bug/1589073/+attachment/4704863/+files/network_restart

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager-applet in Ubuntu.
https://bugs.launchpad.net/bugs/1589073

Title:
  nm-applet not showing existing wifi connection

Status in network-manager-applet package in Ubuntu:
  Incomplete

Bug description:
  Frequently, not always, the wifi connection and the existing wifi
  networks don't show up on nm-applet. Still, the default network
  connection is established in the background. But nm-applet does not
  allow connection management.

  In the picture: nm-applet shows no connections/netowrks but in the
  connection information dialog you can confirm that the wifi connection
  was established

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: network-manager 1.1.93-0ubuntu4
  ProcVersionSignature: Ubuntu 4.4.0-22.40-generic 4.4.8
  Uname: Linux 4.4.0-22-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2.1
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Sat Jun  4 11:33:41 2016
  IfupdownConfig:
   # interfaces(5) file used by ifup(8) and ifdown(8)
   auto lo
   iface lo inet loopback
  InstallationDate: Installed on 2016-05-16 (18 days ago)
  InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.1)
  IpRoute:
   default via 192.168.1.254 dev wlp13s0  proto static  metric 600
   169.254.0.0/16 dev docker0  scope link  metric 1000 linkdown
   172.17.0.0/16 dev docker0  proto kernel  scope link  src 172.17.0.1 linkdown
   192.168.1.0/24 dev wlp13s0  proto kernel  scope link  src 192.168.1.113  
metric 600
   192.168.122.0/24 dev virbr0  proto kernel  scope link  src 192.168.122.1 
linkdown
  NetworkManager.state:
   [main]
   NetworkingEnabled=true
   WirelessEnabled=true
   WWANEnabled=true
  SourcePackage: network-manager
  UpgradeStatus: No upgrade log present (probably fresh install)
  nmcli-nm: Error: command ['nmcli', '-f', 'all', 'nm'] failed with exit code 
2: Error: Object 'nm' is unknown, try 'nmcli help'.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager-applet/+bug/1589073/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to