Rfkill

From DikapediaV2
Jump to: navigation, search

rfkill - tool for enabling and disabling wireless devices

See also: Bluetoothctl

Display current status of all radio devices


The rfkill list all command is used to display the current status of all radio devices on a Linux system. These radio devices typically include Wi-Fi, Bluetooth, and other wireless communication devices. The rfkill utility provides a user-space interface to the kernel’s RF kill switch subsystem, allowing you to query and control the blocking status of these devices.

$ rfkill list all
 1: phy0: Wireless LAN
 Soft blocked: no
 Hard blocked: no
 2: dell-wifi: Wireless LAN
 Soft blocked: no
 Hard blocked: no
 3: dell-bluetooth: Bluetooth
 Soft blocked: yes
 Hard blocked: no
  • Soft Blocked: Indicates whether the device is soft blocked (yes or no). A soft block is a software-level block that can be toggled using software commands.
  • Hard Blocked: Indicates whether the device is hard blocked (yes or no). A hard block is a hardware-level block, usually controlled by a physical switch or button.


Block or Unblock Bluetooth device


If the Bluetooth device (dell-bluetooth) is soft blocked, this means it is disabled via software. To unblock it, you can use the following rfkill unblock command. This will remove the soft block and allow the Bluetooth device to operate:

sudo rfkill unblock bluetooth

or
sudo rfkill unblock 3

Alternatively, you can do the reverse to block it:

sudo rfkill block bluetooth

sudo rfkill block 3



Reference: https://usercomp.com/news/1466027/bluetooth-headset-pairing-issue-in-linux