From: David Escalona Date: Mon, 30 Jan 2023 13:29:52 +0100 Subject: [PATCH] bluetooth.service: add Digi customizations These changes include: * Having the bluetooth stack start automatically on boot. * Remove the battery plugin at startup. Starting at Bluez 5.48, the battery characteristic was moved to the DBUS org.bluez.Battery1 interface. This causes the device to try to read information from iOS devices after establishing a connection, triggering a reverse pairing request. This scenario causes random disconnects in iOS devices unless a trust agent is registered in the host to take care of the pairing. Removing the battery plugin at startup fixes the issue. Upstream-Status: Inappropriate [DEY specific] Signed-off-by: Gabriel Valcazar Signed-off-by: David Escalona --- src/bluetooth.service.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bluetooth.service.in b/src/bluetooth.service.in index beb98ce0c..29048dfe2 100644 --- a/src/bluetooth.service.in +++ b/src/bluetooth.service.in @@ -6,7 +6,7 @@ ConditionPathIsDirectory=/sys/class/bluetooth [Service] Type=dbus BusName=org.bluez -ExecStart=@pkglibexecdir@/bluetoothd +ExecStart=@pkglibexecdir@/bluetoothd -P battery NotifyAccess=main #WatchdogSec=10 #Restart=on-failure @@ -34,5 +34,5 @@ NoNewPrivileges=true RestrictRealtime=true [Install] -WantedBy=bluetooth.target +WantedBy=multi-user.target Alias=dbus-org.bluez.service