12.04 disabling wireless via dbus does not work

Posted by FlabbergastedPickle on Ask Ubuntu See other posts from Ask Ubuntu or by FlabbergastedPickle
Published on 2012-09-06T19:42:41Z Indexed on 2012/09/06 21:51 UTC
Read the original article Hit count: 284

Filed under:
|
|
|
|

I am using a proprietary rt3652sta driver for my wireless card. It appears as a ra0 device on the 64-bit Ubuntu 12.04.

According to the online documentation the following used to work definitely up to 10.04.

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

This however has no effect on the aforesaid wireless card in 12.04. Also, rfkill does not work as it does not even list the wireless button (again, likely due to the wireless driver being proprietary):

rfkill list

It only lists the hci0 (bluetooth) one and one can block/unblock it accordingly but this has no effect on the wifi.

ifup/down also does not work (AFAICT)...

And this leaves me with disabling wireless through the network manager applet. However, trying to do so via dbus appears not to work and yet I would like to automate it via a script.

Any ideas how I could find out the proper dbus structure for the call? Is this even possible in Ubuntu 12.04?

© Ask Ubuntu or respective owner

Related posts about 12.04

Related posts about command-line