is there a CLI to disable wireless in network-manager in Jaunty?

Asked by Brandon Williams

In Hardy, this command line could be used to disable wireless in network-manager:

dbus-send --system --type=method_call --dest=org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager.setWirelessEnabled boolean:false

Using boolean:true would enable wireless in network-manager.

This method no longer works in Jaunty. Is there a new way to do this that works with the latest network-manager?

Question information

English Edit question
Ubuntu network-manager Edit question
No assignee Edit question
Solved by:
Brandon Williams
Last query:
Last reply:
Revision history for this message
Brandon Williams (opensource-subakutty) said :

I figured it out. The WirelessEnabled setting is now a dbus property, and is set using DBus.Properties.Set, rather than NetworkManager.setWirelessEnabled as was done before.

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