You are not logged in.

#1 2015-01-06 10:11:13

Hwiparam
Member
From: Poland
Registered: 2011-09-26
Posts: 91

Bluetooth - Failure to automatically bring up the hci0 at startup

I've got a Bluetooth dongle:

Bus 003 Device 003: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

Which I need for a BT keyboard. I've already followed the instructions from https://wiki.archlinux.org/index.php/bluetooth_keyboard , and it seems to work, but after a (re)boot need to manually enter "hciconfig hci0 up" to get it working... At startup, the interface is DOWN, after I bring it up manually the keyboard seems to work well...

# hcitool dev
Devices:
        hci0    00:15:83:3D:0A:57
# journalctl -b |grep -i bluetooth
sty 06 10:43:32 localhost systemd[1]: Starting Bluetooth service...
sty 06 10:43:32 localhost systemd[1]: Starting systemd Unit to automatically start a Bluetooth keyboard...
sty 06 10:43:32 localhost kernel: Bluetooth: Core ver 2.19
sty 06 10:43:32 localhost kernel: Bluetooth: HCI device and connection manager initialized
sty 06 10:43:32 localhost kernel: Bluetooth: HCI socket layer initialized
sty 06 10:43:32 localhost kernel: Bluetooth: L2CAP socket layer initialized
sty 06 10:43:32 localhost kernel: Bluetooth: SCO socket layer initialized
sty 06 10:43:32 localhost bluetoothd[286]: Bluetooth daemon 5.27
sty 06 10:43:32 localhost bluetoothd[286]: Starting SDP server
sty 06 10:43:32 localhost systemd[1]: Started Bluetooth service.
sty 06 10:43:32 localhost systemd[1]: Failed to start systemd Unit to automatically start a Bluetooth keyboard.
sty 06 10:43:32 localhost kernel: Bluetooth: BNEP (Ethernet Emulation) ver 1.3
sty 06 10:43:32 localhost kernel: Bluetooth: BNEP filters: protocol multicast
sty 06 10:43:32 localhost kernel: Bluetooth: BNEP socket layer initialized
sty 06 10:43:32 localhost bluetoothd[286]: Bluetooth management interface 1.7 initialized
sty 06 10:43:33 localhost systemd[1]: Starting Bluetooth.
sty 06 10:43:33 localhost systemd[1]: Reached target Bluetooth.
sty 06 10:43:33 localhost bluetoothd[286]: Sap driver initialization failed.
sty 06 10:43:33 localhost bluetoothd[286]: sap-server: Operation not permitted (1)
sty 06 10:46:53 localhost kernel: Bluetooth: HIDP (Human Interface Emulation) ver 1.2
sty 06 10:46:53 localhost kernel: Bluetooth: HIDP socket layer initialized
sty 06 10:46:53 localhost kernel: input: OKB003 Bluetooth  Keyboard as /devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3:1.0/bluetooth/hci0/hci0:41/0005:05AC:022C.0004/input/input22
sty 06 10:46:53 localhost kernel: apple 0005:05AC:022C.0004: input,hidraw3: BLUETOOTH HID v1.1b Keyboard [OKB003 Bluetooth  Keyboard] on 00:15:83:3d:0a:57
# systemctl status btkbd.service
● btkbd.service - systemd Unit to automatically start a Bluetooth keyboard
   Loaded: loaded (/etc/systemd/system/btkbd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since wto 2015-01-06 10:43:32 CET; 2h 2min ago
     Docs: https://wiki.archlinux.org/index.php/Bluetooth_Keyboard
  Process: 288 ExecStart=/usr/bin/hciconfig hci0 up (code=exited, status=1/FAILURE)
 Main PID: 288 (code=exited, status=1/FAILURE)

sty 06 10:43:32 localhost systemd[1]: Starting systemd Unit to automatically start a Bluetooth keyboard...
sty 06 10:43:32 localhost hciconfig[288]: Can't get device info: No such device
sty 06 10:43:32 localhost systemd[1]: btkbd.service: main process exited, code=exited, status=1/FAILURE
sty 06 10:43:32 localhost systemd[1]: Failed to start systemd Unit to automatically start a Bluetooth keyboard.
sty 06 10:43:32 localhost systemd[1]: Unit btkbd.service entered failed state.
sty 06 10:43:32 localhost systemd[1]: btkbd.service failed.
$ dmesg | grep tooth
[    1.737246] Bluetooth: Core ver 2.19
[    1.737255] Bluetooth: HCI device and connection manager initialized
[    1.737273] Bluetooth: HCI socket layer initialized
[    1.737274] Bluetooth: L2CAP socket layer initialized
[    1.737277] Bluetooth: SCO socket layer initialized
[    1.755661] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    1.755662] Bluetooth: BNEP filters: protocol multicast
[    1.755666] Bluetooth: BNEP socket layer initialized
[  202.630386] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[  202.630403] Bluetooth: HIDP socket layer initialized
[  202.633980] input: OKB003 Bluetooth  Keyboard as /devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3:1.0/bluetooth/hci0/hci0:41/0005:05AC:022C.0004/input/input22
[  202.634456] apple 0005:05AC:022C.0004: input,hidraw3: BLUETOOTH HID v1.1b Keyboard [OKB003 Bluetooth  Keyboard] on 00:15:83:3d:0a:57

What else can I show?

Last edited by Hwiparam (2015-01-06 13:25:16)

Offline

Board footer

Powered by FluxBB