Skip to content

rfkill

Learn how to use rfkill to list, block, and unblock wireless devices such as Bluetooth, Wi-Fi, WWAN, NFC, and more on Linux systems


List available devices

rfkill list
0: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no

List all available options

rfkill list all

Dump data in json format

rfkill -J

No headings print everything in a one-liner

rfkill -n

Listening to events

rfkill event

Unblock bluetooth

rfkill unblock bluetooth

Unblock wlan

rfkill unblock wlan

Unblock all

rfkill unblock all

Block wifi

rfkill block wifi

Block bluetooth

rfkill block bluetooth

Block everything that is available

rfkill block all

Block all wireless radios with rfkill

rfkill block bluetooth uwb wimax wwan gps fm nfc

Define which output columns to use

rfkill --output ID,TYPE

Output all columns

rfkill --output-all

Block any module that is not builtin kernel by

echo "blacklist <module>"  >>  /etc/modprobe.d/blacklist.conf'

Block all wireless radios by default at boot via kernel command line

GRUB_CMDLINE_LINUX_DEFAULT="quiet rfkill.default_state=1"

Using OpenRC to disable Bluetooth

echo "rfkill block bluetooth" > /etc/local.d/disable-bluetooth.start

Disable Bluetooth at kernel level

printf '%s\n%s\n%s\n' bnep bluetooth btusb > /etc/modprobe.d/blacklist-bluetooth.conf