[oe-commits] Ash Charles : bluez4: Allow systemd to activate bluetooth

git at git.openembedded.org git at git.openembedded.org
Tue Aug 18 10:01:11 UTC 2015


Module: meta-openembedded.git
Branch: master-next
Commit: 5cd87e8d6cec23ae23d1dc07ebb0c6b2f65603c3
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=5cd87e8d6cec23ae23d1dc07ebb0c6b2f65603c3

Author: Ash Charles <ashcharles at gmail.com>
Date:   Thu Jul 30 12:57:19 2015 -0700

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 <ashcharles at gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 meta-oe/recipes-connectivity/bluez/bluez4_4.101.bb | 1 -
 1 file changed, 1 deletion(-)

diff --git a/meta-oe/recipes-connectivity/bluez/bluez4_4.101.bb b/meta-oe/recipes-connectivity/bluez/bluez4_4.101.bb
index e97b22e..7719d05 100644
--- a/meta-oe/recipes-connectivity/bluez/bluez4_4.101.bb
+++ b/meta-oe/recipes-connectivity/bluez/bluez4_4.101.bb
@@ -49,4 +49,3 @@ FILES_${PN}-dbg += "\
 "
 
 SYSTEMD_SERVICE_${PN} = "bluetooth.service"
-SYSTEMD_AUTO_ENABLE = "disable"



More information about the Openembedded-commits mailing list