Bug 1318441

Summary: bluetooth cannot be enabled in the GUI, doesn't see hardware, bluetoothctl works OK
Product: [Fedora] Fedora Reporter: Chris Murphy <bugzilla>
Component: gnome-bluetoothAssignee: Bastien Nocera <bnocera>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: akostadi, ben.r.xiao, bnocera, fede, luton, massi.ergosum, micsim2007, mkasik, pfrields, sheepdestroyer
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-16 13:07:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screenshot
none
journal none

Description Chris Murphy 2016-03-16 22:26:08 UTC
Description of problem: It's not possible to enable Bluetooth in Gnome Settings, see screenshot.


Version-Release number of selected component (if applicable):
gnome-settings-daemon-3.19.91-1.fc24.x86_64
bluez-5.37-3.fc24.x86_64
bluez-cups-5.37-3.fc24.x86_64
bluez-obexd-5.37-3.fc24.x86_64
gnome-bluetooth-3.18.2-2.fc24.x86_64
NetworkManager-bluetooth-1.2.0-0.6.beta2.fc24.x86_64
pulseaudio-module-bluetooth-8.0-6.fc24.x86_64
gnome-bluetooth-libs-3.18.2-2.fc24.x86_64
bluez-libs-5.37-3.fc24.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Gnome Settings > Bluetooth
2.
3.

Actual results:

No Bluetooth Found (see screenshot)


Expected results:

Should be found and I should be able to turn it on.


Additional info:

Comment 1 Chris Murphy 2016-03-16 22:26:26 UTC
Created attachment 1137150 [details]
screenshot

Comment 2 Chris Murphy 2016-03-16 22:27:23 UTC
Created attachment 1137151 [details]
journal

Comment 3 Chris Murphy 2016-03-16 22:29:48 UTC
[bluetooth]# power on
Changing power on succeeded
[NEW] Device 58:1F:AA:EB:B4:6A 58-1F-AA-EB-B4-6A
[CHG] Device 58:1F:AA:EB:B4:6A RSSI: -72
[bluetooth]# scan on
Discovery started
[CHG] Device 58:1F:AA:EB:B4:6A RSSI: -64
[CHG] Device 58:1F:AA:EB:B4:6A LegacyPairing: no
[CHG] Device 58:1F:AA:EB:B4:6A Name: Mouses
[CHG] Device 58:1F:AA:EB:B4:6A Alias: Mouses
[CHG] Device 58:1F:AA:EB:B4:6A LegacyPairing: yes
[CHG] Device 58:1F:AA:EB:B4:6A RSSI: -55
[CHG] Device 58:1F:AA:EB:B4:6A RSSI: -66
[CHG] Device 58:1F:AA:EB:B4:6A RSSI: -54
[bluetooth]# pair 58:1F:AA:EB:B4:6A
Attempting to pair with 58:1F:AA:EB:B4:6A
[CHG] Device 58:1F:AA:EB:B4:6A Connected: yes
[CHG] Device 58:1F:AA:EB:B4:6A Modalias: usb:v05ACp030Dd0306
[CHG] Device 58:1F:AA:EB:B4:6A UUIDs: 00001124-0000-1000-8000-00805f9b34fb
[CHG] Device 58:1F:AA:EB:B4:6A UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Device 58:1F:AA:EB:B4:6A Paired: yes
Pairing successful
[Mouses]# trust 58:1F:AA:EB:B4:6A
[CHG] Device 58:1F:AA:EB:B4:6A Trusted: yes
Changing 58:1F:AA:EB:B4:6A trust succeeded
[CHG] Device 58:1F:AA:EB:B4:6A Connected: no
[CHG] Device 58:1F:AA:EB:B4:6A RSSI: -76
[CHG] Device 58:1F:AA:EB:B4:6A RSSI: -54
[CHG] Device 58:1F:AA:EB:B4:6A RSSI: -68
[bluetooth]# exit
[DEL] Controller 34:02:86:CC:D8:6D BlueZ 5.37 [default]

Now the bluetooth mouse works in gnome-shell but Gnome Settings > Bluetooth still says no bluetooth is found.

Comment 4 Chris Murphy 2016-03-16 22:31:12 UTC
From the journal, this looks suspicious:

[  135.297659] localhost dbus-daemon[1706]: Activating via systemd: service name='org.bluez.obex' unit='dbus-org.bluez.obex.service'
[  135.299752] localhost dbus-daemon[1706]: Activation via systemd failed for unit 'dbus-org.bluez.obex.service': Unit dbus-org.bluez.obex.service not found.
[  150.314475] localhost dbus-daemon[1706]: Activating via systemd: service name='org.bluez.obex' unit='dbus-org.bluez.obex.service'
[  150.315544] localhost dbus-daemon[1706]: Activation via systemd failed for unit 'dbus-org.bluez.obex.service': Unit dbus-org.bluez.obex.service not found.
[  200.735605] localhost dbus-daemon[1706]: Activating via systemd: service name='org.bluez.obex' unit='dbus-org.bluez.obex.service'
[  200.741663] localhost dbus-daemon[1706]: Activation via systemd failed for unit 'dbus-org.bluez.obex.service': Unit dbus-org.bluez.obex.service not found.


And this is the portion where bluetoothctl is being used successfully:

[  804.692194] localhost bluetoothd[1225]: ** Message: vendor 0x0 product: 0x0
[  828.277146] localhost dbus-daemon[1706]: Activating via systemd: service name='org.bluez.obex' unit='dbus-org.bluez.obex.service'
[  828.277750] localhost dbus-daemon[1706]: Activation via systemd failed for unit 'dbus-org.bluez.obex.service': Unit dbus-org.bluez.obex.service not found.
[  842.297689] localhost kernel: Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[  842.297704] localhost kernel: Bluetooth: HIDP socket layer initialized
[  842.302222] localhost kernel: input: Mouses as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5.1/1-5.1:1.0/bluetooth/hci0/hci0:256/0005:05AC:030D.0003/input/input14
[  842.304699] localhost kernel: magicmouse 0005:05AC:030D.0003: input,hidraw2: BLUETOOTH HID v3.06 Mouse [Mouses] on 34:02:86:cc:d8:6d
[  842.403240] localhost /usr/libexec/gdm-x-session[1650]: (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5.1/1-5.1:1.0/bluetooth/hci0/hci0:256/0005:05AC:030D.0003/input/input14/event11"

Comment 5 Marek Kašík 2016-04-27 14:19:35 UTC
This comment https://bugs.archlinux.org/task/45816#comment139181 helped me to resolve the issue although I'm not sure whether the solution is correct.

Comment 6 Mike Simms 2016-06-23 21:02:41 UTC
*** Bug 1349644 has been marked as a duplicate of this bug. ***

Comment 7 Mike Simms 2016-06-23 21:09:00 UTC
(In reply to Marek Kašík from comment #5)
> This comment https://bugs.archlinux.org/task/45816#comment139181 helped me
> to resolve the issue although I'm not sure whether the solution is correct.

That works for me in F24 MATE-Compiz so yes it seems to be. I couldn't transfer anything over obex until doing this:

cd /usr/lib/systemd/user/
ln -s obex.service dbus-org.bluez.obex.service

Comment 8 Mike Simms 2016-06-23 22:46:01 UTC
Well half way there with obex, I can send files to my phone but not receive them. any help would be appreciated, I've added it as a trusted device and have the blueman transfer set to receive from trusted devices.

Comment 9 Luke Macken 2016-08-18 16:48:37 UTC
(In reply to Mike Simms from comment #7)
> (In reply to Marek Kašík from comment #5)
> > This comment https://bugs.archlinux.org/task/45816#comment139181 helped me
> > to resolve the issue although I'm not sure whether the solution is correct.
> 
> That works for me in F24 MATE-Compiz so yes it seems to be. I couldn't
> transfer anything over obex until doing this:
> 
> cd /usr/lib/systemd/user/
> ln -s obex.service dbus-org.bluez.obex.service

I can confirm that this works around the problem for me.

Fresh F24 install, and I hit the `Unit dbus-org.bluez.obex.service not found.` error when trying to do a Bluetooth file transfer.

Comment 10 Luke 2016-08-21 17:58:30 UTC
Up-to-date Fedora 24 KDE: I've had similar problems. My Mobile couldn't send files to my laptop, laptop could pair with the mobile though. Installing obex and

cd /usr/lib/systemd/user/
ln -s obex.service dbus-org.bluez.obex.service

solved the problem, now I can exchange files with mobile devices.

This is probably neither Gnome nor KDE fault then.

Comment 11 sheepdestroyer 2016-08-28 15:58:46 UTC
same problem, solution above worked. thanks

Comment 12 Aleksandar Kostadinov 2016-10-28 17:29:13 UTC
FYI a more user friendly way to achieve this is:
https://ask.fedoraproject.org/en/question/94337/bluetooth-isnt-working/?answer=94342#post-id-94342

pasting answer here:

sudo dnf install bluez-obexd
systemctl --user start obex
sudo systemctl --global enable obex

Comment 13 Luke 2016-10-28 18:26:33 UTC
sudo dnf install bluez-obexd
systemctl --user start obex
sudo systemctl --global enable obex

Works allright! (Up-to-date F24 KDE)

Comment 14 Benjamin Xiao 2016-11-15 19:04:29 UTC
Any plans to fix this so it works out of the box? Seems not user-friendly

Comment 15 Bastien Nocera 2016-11-16 13:07:34 UTC

*** This bug has been marked as a duplicate of bug 1389347 ***