Traduit de English par IA ·
« Même carte SD que l’imprimante de tickets » est l’indice. Vérifiez /boot/firmware/config.txt (sous Bookworm, il a été déplacé depuis /boot) pour dtoverlay=disable-bt. Notre intégrateur a ajouté cette ligne pour un hat RS-485 sur une passerelle de ligne, et six mois plus tard quelqu’un a passé une journée à essayer d’appairer un scanner sur le même Pi.Sur le Pi 4, la puce Bluetooth est reliée au bon UART. disable-bt attribue cet UART aux broches GPIO et le Bluetooth disparaît complètement, ce qui correspond à votre sortie rfkill. Commentez la ligne, puis :
sudo systemctl enable --now hciuart
sudo reboot
# après redémarrage
rfkill list # doit afficher hci0: Bluetooth
bluetoothctl show
Si vous avez besoin à la fois d’un UART matériel et du Bluetooth sur le Pi 4, dtoverlay=miniuart-bt conserve le Bluetooth sur le mini UART, ou utilisez l’un des UART supplémentaires (uart2 à uart5) que possède le Pi 4.
« Same SD card as the receipt printer » is the clue. Check /boot/firmware/config.txt (on Bookworm it moved from /boot) for dtoverlay=disable-bt. Our integrator put that in for an RS-485 hat on a line gateway and six months later someone spent a day trying to pair a scanner to the same Pi.
On the Pi 4 the Bluetooth chip hangs off the good UART. disable-bt gives that UART to the GPIO pins and Bluetooth disappears completely, which matches your rfkill output. Comment the line out, then:
sudo systemctl enable --now hciuart
sudo reboot
# after reboot
rfkill list # should show hci0: Bluetooth
bluetoothctl show
If you need both a hardware UART and Bluetooth on the Pi 4, dtoverlay=miniuart-bt keeps Bluetooth on the mini UART, or use one of the extra UARTs (uart2 to uart5) the Pi 4 has.

