Skip to content

Commit ea7c85d

Browse files
ashcharlesshr-project
authored andcommitted
bluez4: Allow systemd to activate bluetooth
The bluetooth.service runs bluetoothd to manage bluetooth devices, if present, in the system. By design, it should be running in either of two cases: 1. A userspace utility (e.g. networkmanager) has made a dbus request for bluetooth services provided by org.bluez. Even without this patch, the bluetooth.service gets run via dbus activation under the systmed aliased name 'dbus-org-bluez.service'. Perfect! 2. A bluetooth device is added to the system. When a bluetooth device is added, udev triggers the special systemd target, bluetooth.target intended to pull in any services needed for bluetooth linked under bluetooth.target.wants. Enable bluetooth.service so it gets linked under bluetooth.target.wants and bluetoothd gets started when a user adds a bluetooth device to the system. To be clear, this isn't forcing bluetooth to be running all the time--- only when either of #1 or #2 are true. Signed-off-by: Ash Charles <[email protected]> Signed-off-by: Martin Jansa <[email protected]>
1 parent 430347d commit ea7c85d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

meta-oe/recipes-connectivity/bluez/bluez4_4.101.bb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,3 @@ FILES_${PN}-dbg += "\
4949
"
5050

5151
SYSTEMD_SERVICE_${PN} = "bluetooth.service"
52-
SYSTEMD_AUTO_ENABLE = "disable"

0 commit comments

Comments
 (0)