I am trying to bluetoothctl power on but I get no controller availabe
Jump to turn (6)
- User
I am trying to bluetoothctl power on but I get no controller availabe
- Assistant
I am trying to bluetoothctl power on but I get no controller availabe
If you’re experiencing the “No default controller available” message when trying to use bluetoothctl to turn on Bluetooth, it usually means that your system is not recognizing your Bluetooth adapter. Here are some troubleshooting steps you can follow:
Check Bluetooth Adapter Presence:
lsusb or lspci to check if your Bluetooth adapter is connected. This will list all connected USB or PCI devices. Look for an entry related to Bluetooth.Install Necessary Packages:
bluez package is installed. You can install it using your package manager if it's not present:
sudo apt update && sudo apt install bluezsudo dnf install bluezsudo pacman -S bluezCheck if the Bluetooth Service is Running:
systemctl status bluetooth to check if the Bluetooth service is active. If it isn’t running, you can start it with:
sudo systemctl start bluetooth
sudo systemctl enable bluetooth
Restart Bluetooth Service:
sudo systemctl restart bluetooth
Check Kernel Modules:
btusb. Load it manually with:
sudo modprobe btusb
Update System:
Check dmesg Output:
dmesg command to look for errors related to Bluetooth. This can provide more information if there’s a hardware compatibility issue.Bluetooth is Hard Blocked:
rfkill list to check if Bluetooth is hard or soft blocked. You can unblock Bluetooth using:
sudo rfkill unblock bluetooth
Reboot System:
If you have tried the above steps and are still facing issues, there might be a hardware problem or compatibility issue with your Bluetooth adapter. Consider checking for support or updated drivers from the manufacturer of your adapter.
❯ lspci (base) 0000:00:00.0 Host bridge: Intel Corporation 11th Gen Core Processor Host Bridge/DRAM Registers (rev 05) 0000:00:01.0 PCI bridge: Intel Corporation 11th Gen Core Processor PCIe Controller #1 (rev 05) 0000:00:02.0 VGA compatible controller: Intel Corporation TigerLake-H GT1 [UHD Graphics] (rev 01) 0000:00:04.0 Signal processing controller: Intel Corporation TigerLake-LP Dynamic Tuning Processor Participant (rev 05) 0000:00:06.0 System peripheral: Intel Corporation RST VMD Managed Controller 0000:00:07.0 PCI bridge: Intel Corporation Tiger Lake-H Thunderbolt 4 PCI Express Root Port #0 (rev 05) 0000:00:08.0 System peripheral: Intel Corporation GNA Scoring Accelerator module (rev 05) 0000:00:0a.0 Signal processing controller: Intel Corporation Tigerlake Telemetry Aggregator Driver (rev 01) 0000:00:0d.0 USB controller: Intel Corporation Tiger Lake-H Thunderbolt 4 USB Controller (rev 05) 0000:00:0d.2 USB controller: Intel Corporation Tiger Lake-H Thunderbolt 4 NHI #0 (rev 05) 0000:00:0e.0 RAID bus controller: Intel Corporation Volume Management Device NVMe RAID Controller 0000:00:14.0 USB controller: Intel Corporation Tiger Lake-H USB 3.2 Gen 2x1 xHCI Host Controller (rev 11) 0000:00:14.2 RAM memory: Intel Corporation Tiger Lake-H Shared SRAM (rev 11) 0000:00:15.0 Serial bus controller: Intel Corporation Tiger Lake-H Serial IO I2C Controller #0 (rev 11) 0000:00:16.0 Communication controller: Intel Corporation Tiger Lake-H Management Engine Interface (rev 11) 0000:00:1b.0 System peripheral: Intel Corporation RST VMD Managed Controller 0000:00:1c.0 PCI bridge: Intel Corporation Device 43bf (rev 11) 0000:00:1d.0 PCI bridge: Intel Corporation Device 43b6 (rev 11) 0000:00:1f.0 ISA bridge: Intel Corporation HM570 LPC/eSPI Controller (rev 11) 0000:00:1f.3 Audio device: Intel Corporation Tiger Lake-H HD Audio Controller (rev 11) 0000:00:1f.4 SMBus: Intel Corporation Tiger Lake-H SMBus Controller (rev 11) 0000:00:1f.5 Serial bus controller: Intel Corporation Tiger Lake-H SPI Controller (rev 11) 0000:01:00.0 VGA compatible controller: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] (rev a1) 0000:01:00.1 Audio device: NVIDIA Corporation GA106 High Definition Audio Controller (rev a1) 0000:2d:00.0 Network controller: MEDIATEK Corp. MT7921 802.11ax PCI Express Wireless Network Adapter 0000:2e:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller (rev 15) 10000:e0:06.0 PCI bridge: Intel Corporation 11th Gen Core Processor PCIe Controller #0 (rev 05) 10000:e0:1b.0 PCI bridge: Intel Corporation Tiger Lake-H PCIe Root Port #17 (rev 11) 10000:e1:00.0 Non-Volatile memory controller: Intel Corporation SSD 670p Series [Keystone Harbor] (rev 03) 10000:e2:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller 980 (DRAM-less)
Based on the output of your lspci command, it appears that your system is using a MEDIATEK MT7921 wireless network adapter. This adapter includes both Wi-Fi and Bluetooth capabilities. If your Bluetooth is not being detected, it might be related to driver issues or the Bluetooth component not initializing properly.
Here are some additional steps you can take to troubleshoot and resolve the issue:
Verify Bluetooth Kernel Module:
mt7921e specifically for the MediaTek MT7921 is loaded:
lsmod | grep mt7921e
sudo modprobe mt7921e
bluetoothctl list.Check dmesg for Bluetooth Errors:
dmesg command to look for any errors or messages related to the MT7921 adapter:
dmesg | grep -i bluetooth
Update Software and Drivers:
sudo apt update && sudo apt upgrade
sudo apt dist-upgrade
sudo dnf update
sudo pacman -Syu
Install Firmware Updates:
linux-firmware package:
sudo apt install linux-firmware
ok after bluetoothctl I power on, how to connect to my device
Once you've successfully powered on your Bluetooth adapter using bluetoothctl, you can connect to your device by following these steps:
Start bluetoothctl:
Open a terminal and start the bluetoothctl interactive shell:
bluetoothctl
Scan for Devices:
To find available Bluetooth devices, enable scanning. In the interactive shell, type:
scan on
This will list nearby Bluetooth devices. Note the MAC address (a hexadecimal number separated by colons, e.g., XX:XX:XX:XX:XX:XX) of the device you want to connect to.
Pair with the Device:
Pair your device by using the pair command followed by the device's MAC address:
pair XX:XX:XX:XX:XX:XX
If a pin or confirmation is needed, follow the prompts that appear on your screen or on the device.
Trust the Device (Optional but Recommended):
If you want your computer to automatically connect to the device in the future without needing to accept the connection each time, you can mark the device as trusted:
trust XX:XX:XX:XX:XX:XX
Connect to the Device:
After pairing (and optionally trusting) the device, connect to it using:
connect XX:XX:XX:XX:XX:XX
Exit bluetoothctl:
Once your device is connected, you can exit the bluetoothctl shell by typing:
exit
Verify Connection:
You can confirm your connection by checking the status in your system's Bluetooth settings or using the command bluetoothctl and then typing info XX:XX:XX:XX:XX:XX to get details about the connection status.
If you encounter any issues during these steps, ensure that:
and how do i fiind my device
To find your Bluetooth device using bluetoothctl, you need to perform a scan to discover nearby devices. Here's a step-by-step guide on how to do this after starting bluetoothctl:
Start the bluetoothctl Shell:
Open a terminal and type:
bluetoothctl
Turn on the Controller (if not already on):
Ensure your Bluetooth adapter is powered on:
power on
Enable Scanning:
Start scanning for available devices:
scan on
This command initiates a scan for nearby Bluetooth devices. You'll see a list of devices appearing, each identified by its MAC address (e.g., XX:XX:XX:XX:XX:XX) and a name, if available.
Identify Your Device:
Look through the list of devices for the name or MAC address that matches your Bluetooth device. If your device has a display or offers a name in its settings, make sure it corresponds with what you see on the screen.
Stop Scanning:
Once you find your device, you can stop the scan to reduce unnecessary Bluetooth traffic:
scan off
Take Note of the Device's MAC Address:
Make a note of the MAC address of your device, as you'll need it for pairing and connecting.
If your device doesn't show up, you can try a few troubleshooting steps:
Ensure the Device is Discoverable: Some devices need to be put into a pairing mode, where they are discoverable to other Bluetooth devices. Refer to your device's manual for instructions.
Proximity: Ensure you are in close range of the device, as physical obstacles and distance can affect the ability to detect Bluetooth devices.
Reset the Device: Sometimes resetting the Bluetooth device can help it to appear again during scanning.
Interference: Ensure there are no other Bluetooth or wireless devices nearby that might be interfering with the scan.
Once you've found and identified your device, you can proceed with pairing and connecting as described in the previous response.
how to reinstall bluez
Reinstalling bluez, the official Linux Bluetooth protocol stack, can help resolve issues related to Bluetooth connectivity. Here's how you can do it on different Linux distributions:
Remove bluez:
sudo apt remove --purge bluez
Reinstall bluez:
sudo apt update
sudo apt install bluez
Restart Bluetooth Service:
sudo systemctl restart bluetooth
Remove bluez:
sudo dnf remove bluez
Reinstall bluez:
sudo dnf install bluez
Restart Bluetooth Service:
sudo systemctl restart bluetooth
Remove bluez:
sudo pacman -R bluez
Reinstall bluez:
sudo pacman -S bluez
Restart Bluetooth Service:
sudo systemctl restart bluetooth
Reboot Your System: After reinstalling bluez and restarting the Bluetooth service, it may help to reboot your system to ensure all changes take effect properly.
Check for Additional Packages: Depending on your setup, you might also need additional packages, such as bluez-utils, which provides important utilities like bluetoothctl.
Verify Installation: You can verify if bluez is properly installed by checking the version:
bluetoothctl --version
Reinstalling bluez can help resolve issues that stem from misconfigurations or corrupted installations. If you continue to experience issues, make sure that your Bluetooth hardware is functioning correctly and that there are no additional configuration issues affecting your system.
I am using openssue
If you're using openSUSE, you can reinstall the bluez package using the Zypper package manager. Follow these steps:
Open a Terminal:
Ctrl + Alt + T.Remove BlueZ:
To remove BlueZ, you will use the remove option with zypper, but first ensure you know if any other packages might depend on bluez. Typically, you might just reinstall over the existing installation without removing it entirely:
sudo zypper remove bluez
Reinstall BlueZ:
Even if you have removed it, you can reinstall using the following command:
sudo zypper install bluez
Restart Bluetooth Service:
Restart the Bluetooth service to ensure the new installation is functioning properly:
sudo systemctl restart bluetooth
Check Service Status:
Verify that the Bluetooth service is running:
sudo systemctl status bluetooth
Reboot Your System:
If you continue to experience issues, rebooting can help apply changes:
sudo reboot
Ensure that your Bluetooth adapter is enabled and recognized by your system.
Use bluetoothctl to verify that the Bluetooth stack is working properly:
bluetoothctl
power on
If issues persist after reinstalling bluez, there might be other underlying issues such as hardware problems, kernel module issues, or system configuration problems that need to be addressed. You can also check the openSUSE forums or support resources for community assistance specific to your hardware and configuration.
Not yet included in a published release.
Check Available Bluetooth Devices:
bluetoothctl list to see if the controller is available.Check BIOS/UEFI Settings:
Reboot Your System:
If you've attempted these steps and are still encountering issues, it may be worth checking if there are any specific Linux-related support or troubleshooting forums for your hardware, or consider reaching out to the manufacturer’s support for more specialized help. Additionally, you can search online for others who have had similar issues with the MT7921, as they might have found specific solutions or workarounds.