Ubuntu 16.04蓝牙鼠标无法被搜索到求助
Hey there, let's work through this Bluetooth mouse issue together—since you confirmed it works fine in your work environment, we can cross off hardware failure as the cause right away. Here are some targeted steps to fix that stuck "searching for devices" loop:
1. Check if the Bluetooth Service is Running Properly
First, make sure the core Bluetooth service isn't misbehaving:
- Open a terminal and run:
sudo systemctl status bluetooth - If it shows "inactive (dead)", start it with:
sudo systemctl start bluetooth - To ensure it launches automatically on boot, enable it:
sudo systemctl enable bluetooth
2. Reset the Bluetooth Module & Clear Cache
Corrupted cache or temporary glitches often throw off device detection. Let's reset the module:
- Turn off Bluetooth via the command line:
bluetoothctl power off - Restart the Bluetooth service:
sudo systemctl restart bluetooth - Re-enable Bluetooth:
bluetoothctl power on
3. Manual Pairing via bluetoothctl (More Reliable Than GUI)
The GUI scanner can sometimes miss devices—let's use the terminal-based tool for better control:
- Launch the Bluetooth interactive shell:
bluetoothctl - Run these commands in sequence:
agent on default-agent scan on - Wait 30 seconds—you should see your mouse's name and MAC address (e.g.,
AA:BB:CC:DD:EE:FF) pop up in the list. - Once found, pair, connect, and trust it to ensure auto-connect later:
pair AA:BB:CC:DD:EE:FF connect AA:BB:CC:DD:EE:FF trust AA:BB:CC:DD:EE:FF - Type
exitto leave the shell.
4. Refresh Bluetooth Firmware
Since you suspect firmware issues, let's reinstall the system's Bluetooth firmware packages to rule out corrupted files:
- Update your package list and reinstall the firmware:
sudo apt update && sudo apt install --reinstall linux-firmware - Reboot your system after the installation finishes, then try scanning again.
5. Check Bluetooth Adapter Kernel Module
Sometimes the kernel module for your Bluetooth adapter might not load correctly:
- List your Bluetooth adapters to confirm they're detected:
hciconfig - If you don't see an adapter like
hci0, load the commonbtusbmodule (works for most USB Bluetooth adapters):sudo modprobe btusb - Enable the adapter:
sudo hciconfig hci0 up
6. Rule Out Wireless Interference
2.4GHz Wi-Fi and Bluetooth share the same frequency band, which can cause detection conflicts:
- Temporarily turn off your Wi-Fi (via the system tray or
sudo rfkill block wifi), then try scanning for the mouse again. If it shows up, switch your Wi-Fi to the 5GHz band (if your router supports it) to avoid future conflicts.
7. Force Classic Bluetooth Mode
Some older mice only support classic Bluetooth (not BLE). Let's adjust the controller mode:
- Open the main Bluetooth config file in a text editor:
sudo nano /etc/bluetooth/main.conf - Find the line starting with
#ControllerMode, remove the#to uncomment it, and set it to:ControllerMode = bredr - Save the file (Ctrl+O, then Enter) and exit (Ctrl+X), then restart the Bluetooth service:
sudo systemctl restart bluetooth
Try these steps one by one—start with the simpler ones like resetting the service and manual pairing, since those often resolve detection issues quickly.
内容的提问来源于stack exchange,提问作者Rostov

