Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have wifi on my 10.04 machine, but I have no use for it. This command will disable it on startup

/usr/bin/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

However, when the machine wakes up from suspend, the wifi comes back on. I have tried to put the above command in a script in /etc/pm/sleep.d but this doesn't work.

share|improve this question
add comment

2 Answers

What about adding something like this

[keyfile]
unmanaged-devices=mac:01:23:45:67:89:AB
# the mac address is only an example

to /etc/NetworkManager/nm-system-settings.conf, or blacklisting the wifi kernel module?

share|improve this answer
    
I've tried both these suggestions but neither works. For the second I added blacklist rt3090 to /etc/modprobe.d/blacklist.conf and rebooted. I used to have a driver from a ppa for this and I uninstalled it, but after a recent kernel update the wifi returned. –  daithib8 Apr 6 '11 at 11:52
    
lsmod says rt3090sta 674216 1 –  daithib8 Apr 6 '11 at 12:12
    
I added blacklist rt3090sta instead and that worked. Confusingly, lshw said the driver was called rt3090 –  daithib8 Apr 6 '11 at 12:55
    
As an aside: powertop still says A USB device is active 100.0% of the time: USB device 2-6 : 2.4G Multimedia Wireless Kit (Chicony). I don't have any other wifis and nothing is connected to the usb. –  daithib8 Apr 6 '11 at 13:19
add comment

Does your system have a wifi kill switch on it? If so, you can tape the switch to the "Off" position, which will deactivate your wifi until you turn kill switch back to the operating position.

share|improve this answer
1  
You can also turn it off at the BIOS level. Without specifics of the machine, there's no way to tell exactly how to do it. –  jrg Apr 4 '11 at 21:02
    
I don't have a bios switch –  daithib8 Apr 6 '11 at 12:57
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.