Skip to content

Commit c24edd3

Browse files
authored
added documentation to disable the BlueZ battery plugin (#33133)
1 parent 8e27412 commit c24edd3

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

docs/guides/BUILDING.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,20 @@ Complete the following steps:
135135
136136
1. Reboot your Raspberry Pi after installing `pi-bluetooth`.
137137
138-
#### Enable experimental Bluetooth support in BlueZ
138+
#### Enable experimental Bluetooth support and disable battery plugin in BlueZ
139139
140140
The Matter application on Linux uses BlueZ to communicate with the Bluetooth
141141
controller. The BlueZ version that comes with Ubuntu 22.04 does not support all
142142
the features required by the Matter application by default. To enable these
143143
features, you need to enable experimental Bluetooth support in BlueZ.
144144
145+
Also disable the battery plugin from BlueZ, because iOS devices advertises a
146+
battery service via BLE, which requires pairing if accessed. BlueZ includes a
147+
battery plugin by default which tries to connect to the battery service. The
148+
authentication fails, because in this case no BLE pairing has been done. If the
149+
BlueZ battery plugin is not disabled, the BLE connection will be terminated
150+
during the Matter commissioning process.
151+
145152
1. Edit the `bluetooth.service` unit by running the following command:
146153
147154
```sh
@@ -153,7 +160,7 @@ features, you need to enable experimental Bluetooth support in BlueZ.
153160
```ini
154161
[Service]
155162
ExecStart=
156-
ExecStart=/usr/lib/bluetooth/bluetoothd -E
163+
ExecStart=/usr/lib/bluetooth/bluetoothd -E -P battery
157164
```
158165
159166
1. Restart the Bluetooth service by running the following command:

0 commit comments

Comments
 (0)