Tuesday, March 6, 2018

How to disconnect from a wireless network in Gnome 3.10


I wanted to start my hotspot (using ap-hotspot). To enable it, you have to disconnect from the wireless network you're connected to.


This was no problem in Gnome 3.8's network manager, but I cannot find a similar functionallity in Gnome 3.10.


The only way I found to disconnect is clicking on "forget this network". Is there a way to just disconnect without forgetting all my settings?


Edit:


$ gnome-control-center --version
gnome-control-center 3.10.1

Just in case somebody has an old control center but a new gnome shell. ;-)



As the below GUI method was not valid for gnome-control-center 3.10. It is possible to use nmcli (command‐line tool for controlling NetworkManager)


nmcli d disconnect iface wlan0


  • d for device

  • disconnect command to disconnect network interface

  • iface wlan0 network interface name (Check from ifconfig -a or iwconfig)


otherway, using connection id:


nmcli c down id WiFiConn


  • c for connection

  • down command to drop connection

  • id WiFiConn name of connection as it was saved in NetworkManager (Check nmcli c).


Reference: man nmcli




This for gnome-control-center 3.6.3 (still used by Ubuntu 14.04). From Gnome indicator bar:



  1. Wi-Fi → WiFi Settings


    enter image description here


  2. Click on arrow to the right of current active connection


    enter image description here


  3. Disconnect


    enter image description here



No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...