Skip to Content

Comprobaciones básicas

# Bluetooth service status systemctl status bluetooth # Bluetooth adapter information (hciconfig is deprecated; use bluetoothctl/btmgmt) bluetoothctl show bluetoothctl list # List all adapters # RF switch status rfkill list bluetooth

Si Bluetooth está desactivado:

sudo rfkill unblock bluetooth sudo systemctl restart bluetooth

Usando bluetoothctl

sudo bluetoothctl

Comandos comunes:

power on # Turn on Bluetooth agent on # Enable agent default-agent # Set as default agent scan on # Scan for devices devices # List discovered devices pair XX:XX:XX:XX:XX # Pair trust XX:XX:XX:XX:XX # Trust device connect XX:XX:XX:XX:XX # Connect info XX:XX:XX:XX:XX # View device info remove XX:XX:XX:XX:XX # Remove device quit # Exit

Problemas comunes

No puedo descubrir dispositivos

# Confirm the Bluetooth adapter is powered on bluetoothctl power on # Rescan sudo bluetoothctl scan on

Si aún no se encuentran los dispositivos, verifique el registro del kernel:

sudo dmesg | grep -i bluetooth sudo dmesg | grep -i "hci\|btusb"

Fallo de emparejamiento

  1. Elimine el registro de emparejamiento anterior y vuelva a emparejar:
sudo bluetoothctl remove XX:XX:XX:XX:XX:XX scan on pair XX:XX:XX:XX:XX:XX
  1. Algunos dispositivos requieren ingresar un código PIN, generalmente 0000 o 1234

  2. Borre el caché de Bluetooth:

sudo rm -rf /var/lib/bluetooth/* sudo systemctl restart bluetooth

Emparejado pero no se puede conectar

# Trust the device first sudo bluetoothctl trust XX:XX:XX:XX:XX:XX connect XX:XX:XX:XX:XX:XX

Si aparece “Error al conectar: ​​org.bluez.Error.Failed”:

# Restart the Bluetooth stack sudo systemctl restart bluetooth sudo modprobe -r btusb && sudo modprobe btusb

Desconexiones frecuentes después de conectarse

# View Bluetooth logs journalctl -u bluetooth -f # Disable Bluetooth power management sudo nano /etc/bluetooth/main.conf

Agregar o modificar en la sección [Policy]:

[Policy] AutoEnable=true [General] FastConnectable=true

Reinicie el servicio:

sudo systemctl restart bluetooth

Mala calidad de audio de los auriculares Bluetooth

Es posible que los auriculares Bluetooth utilicen el protocolo SCO/HSP (modo de llamada) en lugar de A2DP (audio de alta calidad).

# Check the current audio protocol wpctl status # Switch to A2DP in PipeWire # In GNOME Sound settings, select the output profile as "High Fidelity Playback (A2DP Sink)"

Latencia del teclado/ratón Bluetooth

hcitool está en desuso; Los parámetros de conexión ahora son negociados automáticamente por el kernel y BlueZ. Para solucionar problemas de latencia, primero confirme la conexión con bluetoothctl info XX:XX:XX:XX:XX:XX, luego inspeccione/administre el adaptador con btmgmt:

# View adapter info and current connections btmgmt info btmgmt con # List current connections

Actualización de BlueZ

Ubuntu 26.04 viene con la pila Bluetooth BlueZ. Consulta la versión:

bluetoothd --version

Si tiene problemas de compatibilidad, instale una versión más reciente (si está disponible):

sudo apt update sudo apt install --only-upgrade bluez

Adaptadores Bluetooth USB

Si el Bluetooth incorporado es problemático, puede utilizar un adaptador USB Bluetooth:

# Confirm detection lsusb | grep -i bluetooth # Load driver sudo modprobe btusb # If there are multiple adapters, list and choose which one to use bluetoothctl list # List all adapters and their MACs bluetoothctl select XX:XX:XX:XX:XX:XX # Select a specific adapter bluetoothctl power on # Power on that adapter

Depuración de registros de Bluetooth

# Enable verbose logging sudo nano /etc/systemd/system/bluetooth.service.d/override.conf
[Service] ExecStart= ExecStart=/usr/libexec/bluetooth/bluetoothd -d
sudo systemctl daemon-reload sudo systemctl restart bluetooth journalctl -u bluetooth -f