You are not logged in.
Hello,
i've a apple magic mouse (bluetooth) and i can pair it using gnome-bluetooth or hidd --search.
However, i can't connect it at arch startup, i must reconnect it every time.
i put this:
cat /etc/conf.d/bluetooth
HIDD_ENABLE="true"
# Arguments to hidd
HIDD_OPTIONS="--connect <B8:78:2E:EC:8C:5A>" and journal of systemd service bluetooth:
sept. 08 22:51:17 GillesArch bluetoothd[263]: Bluetooth daemon 4.101
sept. 08 22:51:17 GillesArch bluetoothd[263]: Starting SDP server
sept. 08 22:51:17 GillesArch bluetoothd[263]: DIS cannot start: GATT is disabled
sept. 08 22:51:17 GillesArch bluetoothd[263]: Failed to init deviceinfo plugin
sept. 08 22:51:17 GillesArch bluetoothd[263]: Failed to init proximity plugin
sept. 08 22:51:17 GillesArch bluetoothd[263]: Failed to init time plugin
sept. 08 22:51:17 GillesArch bluetoothd[263]: Failed to init alert plugin
sept. 08 22:51:17 GillesArch bluetoothd[263]: Failed to init thermometer plugin
sept. 08 22:51:17 GillesArch bluetoothd[263]: Failed to init gatt_example plugin
sept. 08 22:51:17 GillesArch bluetoothd[263]: Bluetooth Management interface initialized
sept. 08 22:51:17 GillesArch bluetoothd[263]: bluetoothd[263]: Bluetooth daemon 4.101
sept. 08 22:51:17 GillesArch bluetoothd[263]: bluetoothd[263]: Starting SDP server
sept. 08 22:51:17 GillesArch bluetoothd[263]: bluetoothd[263]: DIS cannot start: GATT is disabled
sept. 08 22:51:17 GillesArch bluetoothd[263]: bluetoothd[263]: Failed to init deviceinfo plugin
sept. 08 22:51:17 GillesArch bluetoothd[263]: bluetoothd[263]: Failed to init proximity plugin
sept. 08 22:51:17 GillesArch bluetoothd[263]: bluetoothd[263]: Failed to init time plugin
sept. 08 22:51:17 GillesArch bluetoothd[263]: bluetoothd[263]: Failed to init alert plugin
sept. 08 22:51:17 GillesArch bluetoothd[263]: bluetoothd[263]: Failed to init thermometer plugin
sept. 08 22:51:17 GillesArch bluetoothd[263]: bluetoothd[263]: Failed to init gatt_example plugin
sept. 08 22:51:17 GillesArch bluetoothd[263]: bluetoothd[263]: Bluetooth Management interface initialized
sept. 08 22:51:17 GillesArch bluetoothd[263]: bluetoothd[263]: Unknown command complete for opcode 19
sept. 08 22:51:17 GillesArch bluetoothd[263]: Unknown command complete for opcode 19
sept. 08 22:51:17 GillesArch bluetoothd[263]: bluetoothd[263]: Adapter /org/bluez/263/hci0 has been enabled
sept. 08 22:51:17 GillesArch bluetoothd[263]: Adapter /org/bluez/263/hci0 has been enabled
sept. 08 22:51:26 GillesArch bluetoothd[263]: bluetoothd[263]: Endpoint registered: sender=:1.51 path=/MediaEndpoint/HFPAG
sept. 08 22:51:26 GillesArch bluetoothd[263]: bluetoothd[263]: Endpoint registered: sender=:1.51 path=/MediaEndpoint/HFPHS
sept. 08 22:51:26 GillesArch bluetoothd[263]: bluetoothd[263]: Endpoint registered: sender=:1.51 path=/MediaEndpoint/A2DPSource
sept. 08 22:51:26 GillesArch bluetoothd[263]: Endpoint registered: sender=:1.51 path=/MediaEndpoint/HFPAG
sept. 08 22:51:26 GillesArch bluetoothd[263]: Endpoint registered: sender=:1.51 path=/MediaEndpoint/HFPHS
sept. 08 22:51:26 GillesArch bluetoothd[263]: Endpoint registered: sender=:1.51 path=/MediaEndpoint/A2DPSource Can someone help me?
Offline
I decided to ditch bluez4 and install bluez 5 i.e. bluez. Then use the command line to get the BT mouse paired.
So my blue packages are now:
sudo pacman -Qs blue
local/bluez 5.7-1
Daemons for the bluetooth protocol stack
local/bluez-libs 5.7-1
Deprecated libraries for the bluetooth protocol stack
local/bluez-utils 5.7-1
Development and debugging utilities for the bluetooth protocol stack
local/sbc 1.1-1
Bluetooth Subband Codec (SBC) libraryThen I get the bluetooth service working via systemctl and then configure in the command line. The key facility is bluetoothctl which is available once bluez5 is running.
Here is the set of commands:
1) Start the daemon
[root@lapmike3 ~]# systemctl start bluetooth
[root@lapmike3 ~]# systemctl status bluetooth
bluetooth.service - Bluetooth service
Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; disabled)
Active: active (running) since Mon 2013-08-12 20:20:38 BST; 4s ago
Docs: man:bluetoothd(8)
Main PID: 1824 (bluetoothd)
Status: "Running"
CGroup: name=systemd:/system/bluetooth.service
└─1824 /usr/lib/bluetooth/bluetoothd
Aug 12 20:20:38 lapmike3 systemd[1]: Starting Bluetooth service...
Aug 12 20:20:38 lapmike3 bluetoothd[1824]: Bluetooth daemon 5.7
Aug 12 20:20:38 lapmike3 systemd[1]: Started Bluetooth service.
Aug 12 20:20:38 lapmike3 bluetoothd[1824]: Starting SDP server
Aug 12 20:20:38 lapmike3 bluetoothd[1824]: Bluetooth management interface 1.3 initialized2) Now use the available tools to set up the BT mouse pairing:
[root@lapmike3 ~]# hciconfig
hci0: Type: BR/EDR Bus: USB
BD Address: 00:1E:37:xx:xx:xx ACL MTU: 310:10 SCO MTU: 64:8
UP RUNNING PSCAN
RX bytes:34665 acl:1505 sco:0 events:707 errors:0
TX bytes:7896 acl:318 sco:0 commands:142 errors:0
[root@lapmike3 ~]# hcitool scan
Scanning ...
00:07:61:xx:xx:xx Bluetooth Travel Mouse[root@lapmike3 ~]# bluetoothctl
[NEW] Controller 00:1E:37:xx:xx:xx lapmike3-0 [default]
[NEW] Device 00:07:61:xx:xx:xx Bluetooth Travel Mouse
[NEW] Device 10:F9:EE:xx:xx:xx Nokia 6303i classic
[bluetooth]# list
Controller 00:1E:37:xx:xx:xx lapmike3-0 [default]
[bluetooth]# select 00:1E:37:xx:xx:xx
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# scan on
Discovery started
[CHG] Controller 00:1E:37:xx:xx:xx Discovering: yes
[CHG] Device 00:07:61:xx:xx:xx LegacyPairing: yes
[CHG] Device 00:07:61:xx:xx:xx RSSI: -56
[bluetooth]# devices
Device 00:07:61:xx:xx:xx Bluetooth Travel Mouse
Device 10:F9:EE:xx:xx:xx Nokia 6303i classic
[bluetooth]# trust 00:07:61:xx:xx:xx
Changing 00:07:61:xx:xx:xx trust succeeded
[CHG] Device 00:07:61:xx:xx:xx Trusted: yes
[bluetooth]# pairable on
Changing pairable on succeeded
[bluetooth]# pair 00:07:61:xx:xx:xx
Attempting to pair with 00:07:61:xx:xx:xx
[CHG] Device 00:07:61:xx:xx:xx Connected: yes
[CHG] Device 00:07:61:xx:xx:xx Modalias: usb:v046DpB002d4809
Pairing successful
[CHG] Device 00:07:61:xx:xx:xx Modalias: usb:v046DpB002d4809
[CHG] Device 00:07:61:xx:xx:xx UUIDs has unsupported type
[CHG] Device 00:07:61:xx:xx:xx Paired: yes
[CHG] Device 00:07:61:3D:E6:ED Paired: no
[CHG] Device 00:07:61:3D:E6:ED Connected: no
[bluetooth]# connect 00:07:61:xx:xx:xx
Attempting to connect to 00:07:61:xx:xx:xx
[CHG] Device 00:07:61:xx:xx:xx Connected: yes
Connection successful
[bluetooth]#
[bluetooth]# quit
[DEL] Controller 00:1E:37:xx:xx:xx lapmike3-0 [default]
[root@lapmike3 ~]# systemctl enable bluetooth
ln -s '/usr/lib/systemd/system/bluetooth.service' '/etc/systemd/system/dbus-org.bluez.service'
ln -s '/usr/lib/systemd/system/bluetooth.service' '/etc/systemd/system/bluetooth.target.wants/bluetooth.service'Note that the "select" command above is to select the address of the bluetooth controller - not the mouse! Ensure that you put in the correct address for each of the commands above where it is needed.
The BT mouse now works fine - next set up to work after reboot.
To make it work after reboot just make the following file:
[mike@lapmike3 ~]$ cat /etc/udev/rules.d/10-local.rules
# Set bluetooth power up
ACTION=="add", KERNEL=="hci0", RUN+="/usr/bin/hciconfig hci0 up"In your case the BT mouse address will be different to the obfuscated address in the above (for security reasons)
I hope this helps.
Last edited by mcloaked (2013-09-09 18:36:35)
Mike C
Offline
Thank you for your help!
But i use gnome shell and i can't remove bluez4 to install bluez 5 because gnome-bluetooth uses it.
An idea?
Offline
Thank you for your help!
But i use gnome shell and i can't remove bluez4 to install bluez 5 because gnome-bluetooth uses it.
An idea?
OK - I am not a gnome shell user but KDE! Maybe a gnome shell user will be able to help?
Mike C
Offline
There's a pertinent discussion about this at the following bug-report
Offline