On 02.11.2012 22:47, Julien Puydt wrote: > Le 02/11/2012 20:50, Michael Biebl a écrit : >> On 02.11.2012 18:53, Julien Puydt wrote: >>> Package: systemd >>> Version: 44-5 >>> >>> After entering my xfce session, I noticed that the blueman applet was >>> missing. A "service bluetooth start" made the applet appear, so systemd >>> should probably have started that service sooner. >>> >>> Perhaps the problem is due to my bluetooth adapter being an usb one? >> >> Can't reproduce the problem. Bluetooth works fine here. >> Can you attach the output of >> systemctl status bluetooth.service >> after the boot? > > After the boot, that command says that bluetooth.service is loaded but > disabled, and inactive dead... and indeed, I have to "service bluetooth > start" by hand.
There is a udev rule /lib/udev/rules.d/97-bluetooth.rules which runs /lib/udev/bluez-udev, so you should have a "bluetoothd --udev" process. Can you check if you have such a process after you have plugged in the bt adapter. What's the status of bluetooth.target after boot resp. before/after you plugin the usb adapter? That said, there might also be a problem of the bluez systemd integration, i.e. it ships the service disabled by default. Try to run "systemctl enable bluetooth.service" This should create a symlink ln -s '/lib/systemd/system/bluetooth.service' '/etc/systemd/system/bluetooth.target.wants/bluetooth.service' The way it should work with systemd is this: - bluetooth devices get tagged via /lib/udev/rules.d/99-systemd.rules. The relevant line is SUBSYSTEM=="bluetooth", TAG+="systemd", ENV{SYSTEMD_WANTS}="bluetooth.target" - Whenever a bluetooth device is detected, the bluetooth.target is activated. - Activating the bluetooth.target will start all services which are symlinked into bluetooth.target.wants. That's why you need to enable the bluetooth.service. I think when bluez is run under systemd, it should disable /lib/udev/rules.d/97-bluetooth.rules and rather start the bluetooth service by hooking up in bluetooth.target. I've CCed the bluez maintainer for his input on this. Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature