Saltar al contenido

cuaderno de campo

anotaciones

Menú
  • casa
    • dinou del carrer nou
  • cocina
    • pan
    • repostería
    • verdura
  • huerto
    • instrucciones sobre el huerto
    • plano del número 29
    • huerto del año 2025
  • humanidades
    • fonoteca
    • galería
  • juego
    • colección de roms
    • steamos en steam deck
    • lista de juego
    • dosbox
  • linux
    • bash
    • sistema operativo
    • ssh
  • web
    • apache
    • css
    • html5
    • javascript
    • mysql
    • php
Menú

bluetooth de la raspberry pi 3

Publicada el 25 de julio de 202520 de noviembre de 2026 por ernesto
  • hardware del bluetooth
    • activar/desactivar el bluetooth de la raspberry pi 3
  • servicio del bluetooth
  • bluetoothctl
    • bash
    • rc.local
  • ALSA + Bluez 5
    • MPD
  • fuentes
Puesto al día el 19 de noviembre de 2026.

hardware del bluetooth

en primer lugar, cabe comprobar si el sistema operativo detecta el hardware:

sudo bluetoothctl

[NEW] Controller B8:27:EB:03:01:15 RB3 [default]

lo que, en cualquier momento, equivale al comando list:

sudo bluetoothctl

[bluetooth] list

Controller B8:27:EB:03:01:15 RB3 [default]

activar/desactivar el bluetooth de la raspberry pi 3

nano /boot/config.txt
dtoverlay=pi3-disable-bt

si se elimina o comenta esta línea, el bluetooth se activará normalmente.

servicio del bluetooth

sudo systemctl status bluetooth.service
bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled)
Active: inactive (dead)

si el servicio de bluetooth no está activo (esto es, inactive), se lo puede habilitar mediante systemctl:

sudo systemctl enable bluetooth.service

Synchronizing state for bluetooth.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d bluetooth defaults
Executing /usr/sbin/update-rc.d bluetooth enable

una vez se ha dispuesto que el servicio bluetooth se activará cada vez que arranque el sistema operativo (esto es, enable), puede activarse el servicio mediante start:

sudo systemctl start bluetooth.service
sudo systemctl status bluetooth.service
bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled)
Active: active (running) since vie 2018-08-03 15:39:50 CEST; 13s ago

bluetoothctl

bluetoothctl

Agent registered
[CHG] Controller B8:27:EB:03:01:15 Pairable: yes

[bluetooth] scan on

[NEW] Device 68:52:10:77:E0:02 [AV] B-Series Soundbar

[bluetooth] devices

Device 68:52:10:77:E0:02 [AV] B-Series Soundbar

[bluetooth] pair 68:52:10:77:E0:02

Attempting to pair with 68:52:10:77:E0:02
[CHG] Device 68:52:10:77:E0:02 Connected: yes
[...]
[CHG] Device 68:52:10:77:E0:02 ServicesResolved: yes
[CHG] Device 68:52:10:77:E0:02 Paired: yes
Pairing successful

[bluetooth] trust 68:52:10:77:E0:02

[CHG] Device 68:52:10:77:E0:02 Trusted: yes
Changing 68:52:10:77:E0:02 trust succeeded

[bluetooth] connect 68:52:10:77:E0:02

Attempting to connect to 68:52:10:77:E0:02
Connection successful

[bluetooth] exit

bash

nano /home/ernesto/bin/rtb

#!/bin/bash
bluetoothctl pair 68:52:10:77:E0:02
bluetoothctl trust 68:52:10:77:E0:02
bluetoothctl connect 68:52:10:77:E0:02

chmod +x /home/ernesto/bin/rtb

rc.local

nano /etc/rc.local

/home/ernesto/bin/rtb
exit 0

sudo systemctl restart rc-local.service

si se llama al ejecutable /home/ernesto/bin/rtb desde /etc/rc-local, éste se ejecutará cada vez que arranque el sistema operativo y, de esta manera, se conectará la raspberry pi con el dispositivo 68:52:10:77:E0:02 vía bluetooth automáticamente.

ALSA + Bluez 5

You can use bluez-alsa to provide integration between Bluez and ALSA. This setup can be used either completely without Pulseaudio, or you can then use your headset as another ALSA device in Pulseaudio (in which case disable its bluetooth support, so the two don't collide).

«ALSA + Bluez 5» en Bluetooth headset de la Gentoo wiki.

sudo apt show bluez-alsa-utils

Bluetooth Audio ALSA Backend allow bluetooth audio without PulseAudio [...] From now on, Bluez acts as a middleware between an audio application, which implements Bluetooth audio profile, and a Bluetooth audio device.

sudo apt install bluez-alsa-utils

MPD

nano audio/.mpd/mpd.conf

audio_output {
type "alsa"
name "RB3 BLUETOOTH"
device "bluealsa"
mixer_type "software"
}

puede añadirse este audio_output además del que se emplee, por ejemplo, con la tarjeta de sonido.

fuentes

  • «ALSA + Bluez 5» en Bluetooth headset de la Gentoo wiki.
  • arkq, «Bluetooth Audio ALSA Backend» en Github, 2026.
  • Maximilian Ballard, «Connect to a Bluetooth Device via the Terminal» en Baeldung linux, 2026.
Etiquetado como bluetoothctl, Raspberry Pi, rc.local, systemctl
  • MPD: Music Player Daemon

    Puesto al día el 20 de noviembre de 2026. instalación sudo apt install mpd [borrador] instalación de la última versión de…

Feed RSS: rutas fuera rutas fuera

  • El black metal está saturado.. 19 de noviembre de 2026 Iberian Darkness
  • La Naranja Metálica #115 (11×01) 17 de noviembre de 2026 Belisario
  • I like the beats and I like the yelling, 16th November 26 16 de noviembre de 2026 Hate Meditations
  • Concierto de Graveland en España. 13 de noviembre de 2026 Iberian Darkness
  • The CD is dead, long live the CD 11 de noviembre de 2026 Hate Meditations
  • I like the beats and I like the yelling, 9th November 26 9 de noviembre de 2026 Hate Meditations
  • Atacados por criaturas extrañas, con Javier Resines 5 de noviembre de 2026 Javier Resines
  • I like the beats and I like the yelling, 2nd November 26 2 de noviembre de 2026 Hate Meditations
  • Reseñas breves (octubre de 2026) 31 de octubre de 2026 Belisario

Archivo

cuaderno de campo 2011-2026