Page 1 of 1

Enable/disable Wifi from command line

Posted: Thu Jan 08, 2009 1:51 am
by sddroog
Hi,

Is there a way to enable/disable Wifi and/or Bluetooth from the command line, instead of using the connection manager (Fn-F5)?

Thanks!

Re: Enable/disable Wifi from command line

Posted: Thu Jan 08, 2009 7:39 am
by Volker
The answer is yes, but you might have to install linux:

Assuming that wlan is rfkill0 (check /sys/class/rfkill/rfkill0/name):

Code: Select all

echo 0 > /sys/class/rfkill/rfkill0/state
echo 1 > /sys/class/rfkill/rfkill0/state
Bluetooth and wwan:

Code: Select all

echo enable > /proc/acpi/ibm/bluetooth
echo disable > /proc/acpi/ibm/bluetooth
echo enable > /proc/acpi/ibm/wan
echo disable > /proc/acpi/ibm/wan

Re: Enable/disable Wifi from command line

Posted: Thu Jan 08, 2009 12:54 pm
by sddroog
Thanks! However, installing linux was not what I had in mind...

Any solution for Windows (Vista)?