Disable wireless on startup

There are so many ways to disable the card. The simplest I would say would be to put:

sudo ifdown wlan0 

in your /etc/rc.local above the line exit 0. This should disable the wireless card (replace wlan0 with your wireless interface card)

If you want to enable/disable on a keyboard press, this thread on Ubuntu Forums explains how to link a keyboard event to a script. If you want it to toggle when you push keys you will have to add some logic to the script. Though the simplest way might be to have one key to enable and another to disable.

down script

    #!/bin/bash
    IFACE=wlan0
    ifconfig ${IFACE} down

and up script

    #!/bin/bash
    IFACE=wlan0
    ifconfig ${IFACE} up

You can stop it connecting to specific connections automatically quite easily.

  1. Right click the Network Manager notification applet
  2. Click Edit Connections...
  3. Under the Wireless tab, click edit on the connection(s) you want to disable by default and click edit.
  4. Uncheck Connect automatically
  5. Click apply, close the window, rinse and repeat.

When you want to connect, just left click the applet and select an access point.

Note: This doesn't power off the wifi card and it'll still be searching for wireless access points. This might not be what you're looking for. But if it is, great!

Note 2: If your connection drops, it won't automatically reconnect.


Create session on startup application such as:

Settings >> Preference >> Startup Application

Add then fill command :

dbus-send --system --type=method_call --dest=org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.DBus.Properties.Set string:org.freedesktop.NetworkManager string:WirelessEnabled variant:boolean:false

false means off but it can be to enable by fn+F2 or something else.


I use wicd instead of NetworkManager. It remembers wi-fi state after reboot/next boot. Don't know how, but it does. :)

If you don't need some NM features, use wicd. It's easyer to use and control.


If your FN+F2 do not work in Ubuntu (it should, mine does in an Asus EeePC netbook), then i really reccomend you using Jupiter. Its a sweet, well polished notification area applet.

With it, you can enable and disable Bluetooth and WiFi separately, as well as other nice controls for notebooks and netbooks. It remembers the state after reboot and even remember the state per power source (meaning it can always turn WiFi ON when you plug in power, and automatically turn it OFF when you are on battery). And you can bind all actions to keystrokes.

A nice review, and some screenshots: http://www.webupd8.org/2010/06/jupiter-take-advantage-of-asus-super.html

Official project page: http://www.jupiterapplet.org/

PPA (for automatic updates in APT/Synaptic/Software Center: https://launchpad.net/~webupd8team/+archive/jupiter

Wiki (great thecnical documentation): http://sourceforge.net/apps/mediawiki/jupiter/index.php?title=Main_Page