Implement on-demand bluez daemon starting

Bug #381060 reported by Baptiste Mille-Mathias
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bluez (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Hello,

Redhat developped a nice feature for Fedora to start only the bluetooth service only if there is bluetooth adapter on the system the original bug is https://bugzilla.redhat.com/show_bug.cgi?id=484345).

This feature use udev to start/stop on add/removal of bluetooth device to start the init bluetooth script.
I'll attach the result of my test.

Revision history for this message
Baptiste Mille-Mathias (bmillemathias) wrote :

The udev rules

Revision history for this message
Baptiste Mille-Mathias (bmillemathias) wrote :

the default file stored in /etc/default/bluetooth, as Redhat, I added a line BLUETOOTH_ENABLED=1 which enable or not this feature

Revision history for this message
Baptiste Mille-Mathias (bmillemathias) wrote :

The init script, it needs to be tested on all cases to see it works as expected.

Revision history for this message
Baptiste Mille-Mathias (bmillemathias) wrote :

a new rules files to install the udev rule.

Revision history for this message
Baptiste Mille-Mathias (bmillemathias) wrote :

humm, my files were against 4.39...
so now please find a patch. I'm not an experienced hacker so please test with care...

Thanks

summary: - Add on-demand bluez starting
+ Implement on-demand bluez daemon starting
Revision history for this message
Mario Limonciello (superm1) wrote :

So this started to go upstream, lets wait until it lands upstream before we pull it in.

Changed in bluez (Ubuntu):
status: New → Triaged
Revision history for this message
Baptiste Mille-Mathias (bmillemathias) wrote :

Another solution was committed upstream.

Changed in bluez (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.