My desktop's PCI wireless card is always scanning for available wireless networks, but I only rarely use it. Can I keep the radio turned off until I need it?
|
There are at least two Upstart jobs that affect the default wireless state:
If you look at those two job configurations you will find that they have no temporal relationship, which seems like a design flaw to me. I'm guessing this race condition is rarely a problem because All the solutions to enforcing a wireless-off default that I've seen try to use A better solution would be for us to impose our desired states in Our first job configuration does the actual file modifications we need. It will run as early as possible and will only run once. Create
As I prefer total radio silence when my laptop starts, I soft block all radios, not just wireless, but you can modify the first Our second job configuration is responsible for ensuring that neither of the
With this solution I am no longer seeing race condition problems, although I have not addressed the theoretical race between For more detail on how these jobs work together to achieve our temporal goal, refer to my question and answer, "How do I create a single-execution Upstart job guaranteed to complete before two other jobs begin?" |
||||
|
|
|
"Modern" solution using Network Manager: simply uncheck the Wireless Enabled option at the Network Manager applet (KDE: Network Management). The command The wireless state is remembered in the file
Put this before (old answer that involves editing file A bit hacky, but it should work. A wireless card can be disabled using the
How does it work? It does not have a manpage, running
Ah, now we get somewhere. You need to run Now, if you want to disable the wireless functions at boottime, add the command to /etc/rc.local by running
When finished, press Ctrl + X, then press Y to save it and press Enter to accept the filename. If you decide to activate the device later, run: |
|||||||||||||||||||||
|
|
The easiest way to disable your wireless card is to right-click on the NetworkManager indicator (small icon on top-right on the panel), and untick the |
|||||||||
|
Note : If you use
|
|
Personally I use Jupiter the power management applet to disable the wireless on my laptop as it is controlled by a special button. I don't think is in the main repo I had to add a ppa from Andrew at Webupd8 to get it. Hope this helps. |
|||
|
|
|
You could add
to ensure that, if you're using NetworkManager (I have version 0.8.4~git.20110319t175609.d14809b-0ubuntu3), you go to menu "Edit Connections" -> "Wireless" tab, click on the connection, click "Edit", and make sure that, in the "Wireless" tab, the "Connect Automatically" checkbox is NOT checked. |
|||||
|